homeUserInfor.vue 48 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666
  1. <template>
  2. <view class="member-wrap">
  3. <common-wrapper :config="configData">
  4. <view class="member-card" :class="'style' + (styleConfig + 1)">
  5. <template v-if="styleConfig == 0">
  6. <view
  7. class="card-header acea-row row-between-wrapper"
  8. @click="goUserInfo"
  9. >
  10. <view class="user-info acea-row row-middle">
  11. <view class="avatar">
  12. <image v-if="avatarUrl" :src="avatarUrl" mode="aspectFill" />
  13. <view class="empty-box" v-else>
  14. <image src="/static/images/shan.png" mode="aspectFill" />
  15. </view>
  16. </view>
  17. <view class="text">
  18. <view class="name line1" :style="[nameTextStyle]">{{
  19. userName
  20. }}</view>
  21. <view class="level line1" :style="[numTextStyle]">{{
  22. userSubText
  23. }}</view>
  24. </view>
  25. </view>
  26. <view class="menu-entry" v-if="menuList.length">
  27. <view
  28. class="item"
  29. v-for="(item, index) in menuList"
  30. :key="index"
  31. @click.stop="goLink(getInfo(item, 1))"
  32. >
  33. <template v-if="menuStyle == 0">
  34. <image
  35. v-if="item.img"
  36. :src="item.img"
  37. mode="aspectFill"
  38. class="menu-img"
  39. />
  40. </template>
  41. <template v-else>
  42. <text
  43. v-if="item.icon"
  44. class="iconfont"
  45. :class="item.icon"
  46. :style="[menuIconStyle]"
  47. ></text>
  48. </template>
  49. </view>
  50. </view>
  51. </view>
  52. </template>
  53. <template v-if="styleConfig == 1">
  54. <view
  55. class="card-header acea-row row-between-wrapper"
  56. @click="goUserInfo"
  57. >
  58. <view class="user-info style-2 acea-row row-between-wrapper">
  59. <view class="text">
  60. <view class="name line1" :style="[nameTextStyle]">{{
  61. userName
  62. }}</view>
  63. <view class="level line1" :style="[numTextStyle]">{{
  64. userSubTextPlain
  65. }}</view>
  66. </view>
  67. <view class="avatar">
  68. <image v-if="avatarUrl" :src="avatarUrl" mode="aspectFill" />
  69. <view class="empty-box" v-else>
  70. <image src="/static/images/shan.png" mode="aspectFill" />
  71. </view>
  72. </view>
  73. </view>
  74. </view>
  75. </template>
  76. <template v-if="styleConfig == 2">
  77. <view
  78. class="card-header acea-row row-center-wrapper"
  79. @click="goUserInfo"
  80. >
  81. <view class="user-info style-3">
  82. <view class="avatar">
  83. <image v-if="avatarUrl" :src="avatarUrl" mode="aspectFill" />
  84. <view class="empty-box" v-else>
  85. <image src="/static/images/shan.png" mode="aspectFill" />
  86. </view>
  87. </view>
  88. <view class="text">
  89. <view class="name line1" :style="[nameTextStyle]">{{
  90. userName
  91. }}</view>
  92. <view class="level line1" :style="[numTextStyle]">{{
  93. userSubText
  94. }}</view>
  95. </view>
  96. </view>
  97. <view class="menu-entry" v-if="menuList.length">
  98. <view
  99. class="item"
  100. v-for="(item, index) in menuList"
  101. :key="index"
  102. @click.stop="goLink(getInfo(item, 1))"
  103. >
  104. <template v-if="menuStyle == 0">
  105. <image
  106. v-if="item.img"
  107. :src="item.img"
  108. mode="aspectFill"
  109. class="menu-img"
  110. />
  111. </template>
  112. <template v-else>
  113. <text
  114. v-if="item.icon"
  115. class="iconfont"
  116. :class="item.icon"
  117. :style="[menuIconStyle]"
  118. ></text>
  119. </template>
  120. </view>
  121. </view>
  122. </view>
  123. </template>
  124. <template v-if="styleConfig == 3">
  125. <view class="style-4-container acea-row row-between-wrapper">
  126. <view class="left-card" :style="[moduleCardStyle]">
  127. <view class="user-info acea-row row-middle" @click="goUserInfo">
  128. <view class="avatar">
  129. <image v-if="avatarUrl" :src="avatarUrl" mode="aspectFill" />
  130. <view class="empty-box" v-else>
  131. <image src="/static/images/shan.png" mode="aspectFill" />
  132. </view>
  133. </view>
  134. <view class="text">
  135. <view class="name line1" :style="[nameTextStyle]">{{
  136. userName
  137. }}</view>
  138. <view class="level line1" :style="[numTextStyle]">{{
  139. userSubTextPlain
  140. }}</view>
  141. </view>
  142. </view>
  143. <view
  144. class="stats-row card-data acea-row row-around"
  145. v-if="
  146. (assetMode == 0 && checkType.length) ||
  147. (assetMode == 1 && assetList.length)
  148. "
  149. >
  150. <template v-if="assetMode == 0">
  151. <view
  152. class="item"
  153. v-for="(item, index) in dataList"
  154. :key="index"
  155. @click.stop="handleDataNavigation(item)"
  156. :class="{
  157. 'style-vert': dataStyle == 0,
  158. 'style-horiz': dataStyle == 1,
  159. 'style-vert-2': dataStyle == 2,
  160. }"
  161. >
  162. <template v-if="dataStyle == 0">
  163. <view
  164. class="num line1"
  165. :style="{ color: dataNumColor }"
  166. >{{ item.val }}</view
  167. >
  168. <view
  169. class="label line1"
  170. :style="{ color: dataTitleColor }"
  171. >{{ item.name }}</view
  172. >
  173. </template>
  174. <template v-else>
  175. <view
  176. class="label line1"
  177. :style="{ color: dataTitleColor }"
  178. >{{ item.name }}</view
  179. >
  180. <view
  181. class="num line1"
  182. :style="{ color: dataNumColor }"
  183. >{{ item.val }}</view
  184. >
  185. </template>
  186. </view>
  187. </template>
  188. <template v-if="assetMode == 1">
  189. <view
  190. class="item"
  191. v-for="(item, index) in assetList"
  192. :key="index"
  193. @click.stop="goLink(getInfo(item, 1))"
  194. >
  195. <view class="icon-box">
  196. <image
  197. v-if="assetStyle == 0 && item.img"
  198. :src="item.img"
  199. mode="aspectFill"
  200. class="asset-img"
  201. />
  202. <text
  203. v-else-if="assetStyle == 1 && item.icon"
  204. class="iconfont"
  205. :class="item.icon"
  206. :style="[assetIconStyle]"
  207. ></text>
  208. <text
  209. v-else
  210. class="iconfont icon-tuiguang"
  211. :style="[assetIconStyle]"
  212. ></text>
  213. </view>
  214. <view
  215. class="label line1"
  216. :style="{ color: moduleTitleColor }"
  217. >{{ getInfo(item, 0) }}</view
  218. >
  219. </view>
  220. </template>
  221. </view>
  222. </view>
  223. <view
  224. class="right-card"
  225. :style="[moduleCardStyle]"
  226. v-if="rightEntryList.length"
  227. @click="goLink(getInfo(rightEntryList[0], 2))"
  228. >
  229. <view class="entry-content">
  230. <view
  231. class="title line1"
  232. :style="{ color: moduleTitleColor }"
  233. >{{ getInfo(rightEntryList[0], 0) }}</view
  234. >
  235. <view class="subtitle line1">
  236. <text class="sub-text">{{
  237. getInfo(rightEntryList[0], 1)
  238. }}</text>
  239. <text class="iconfont icon-you2"></text>
  240. </view>
  241. <view class="img-box">
  242. <image
  243. v-if="rightEntryList[0].img"
  244. :src="rightEntryList[0].img"
  245. mode="aspectFill"
  246. />
  247. </view>
  248. </view>
  249. </view>
  250. </view>
  251. </template>
  252. <template v-if="styleConfig == 4">
  253. <view class="style-5-container" :style="[cardStyle]">
  254. <view
  255. class="header acea-row row-between-wrapper"
  256. @click="goUserInfo"
  257. >
  258. <view class="left">
  259. <view class="avatar">
  260. <image v-if="avatarUrl" :src="avatarUrl" mode="aspectFill" />
  261. <view class="empty-box" v-else>
  262. <image src="/static/images/shan.png" mode="aspectFill" />
  263. </view>
  264. </view>
  265. <view class="text">
  266. <view class="name line1" :style="[nameTextStyle]">{{
  267. userName
  268. }}</view>
  269. <view class="level line1" :style="[numTextStyle]">{{
  270. userSubTextPlain
  271. }}</view>
  272. </view>
  273. </view>
  274. <view class="menu-entry" v-if="menuList.length">
  275. <view
  276. class="item"
  277. v-for="(item, index) in menuList"
  278. :key="index"
  279. @click.stop="goLink(getInfo(item, 1))"
  280. >
  281. <template v-if="menuStyle == 0">
  282. <image
  283. v-if="item.img"
  284. :src="item.img"
  285. mode="aspectFill"
  286. class="menu-img"
  287. />
  288. </template>
  289. <template v-else>
  290. <text
  291. v-if="item.icon"
  292. class="iconfont"
  293. :class="item.icon"
  294. :style="[menuIconStyle]"
  295. ></text>
  296. </template>
  297. </view>
  298. </view>
  299. </view>
  300. <view
  301. class="card-data acea-row row-around"
  302. v-if="
  303. (assetMode == 0 && checkType.length) ||
  304. (assetMode == 1 && assetList.length)
  305. "
  306. >
  307. <template v-if="assetMode == 0">
  308. <view
  309. class="item"
  310. v-for="(item, index) in dataList"
  311. :key="index"
  312. @click.stop="handleDataNavigation(item)"
  313. :class="{
  314. 'style-vert': dataStyle == 0,
  315. 'style-horiz': dataStyle == 1,
  316. 'style-vert-2': dataStyle == 2,
  317. }"
  318. >
  319. <template v-if="dataStyle == 0">
  320. <view class="num line1" :style="{ color: dataNumColor }">{{
  321. item.val
  322. }}</view>
  323. <view
  324. class="label line1"
  325. :style="{ color: dataTitleColor }"
  326. >{{ item.name }}</view
  327. >
  328. </template>
  329. <template v-else>
  330. <view
  331. class="label line1"
  332. :style="{ color: dataTitleColor }"
  333. >{{ item.name }}</view
  334. >
  335. <view class="num line1" :style="{ color: dataNumColor }">{{
  336. item.val
  337. }}</view>
  338. </template>
  339. </view>
  340. </template>
  341. <template v-else>
  342. <view
  343. class="item style-icon"
  344. v-for="(item, index) in assetList"
  345. :key="index"
  346. @click.stop="goLink(getInfo(item, 1))"
  347. >
  348. <view class="icon-box">
  349. <image
  350. v-if="assetStyle == 0 && item.img"
  351. :src="item.img"
  352. mode="aspectFill"
  353. class="img-icon"
  354. />
  355. <text
  356. v-else-if="assetStyle == 1 && item.icon"
  357. class="iconfont"
  358. :class="item.icon"
  359. :style="assetIconStyle"
  360. ></text>
  361. </view>
  362. <view class="label line1" :style="assetTextStyle">{{
  363. getInfo(item, 0)
  364. }}</view>
  365. </view>
  366. </template>
  367. </view>
  368. </view>
  369. </template>
  370. <template
  371. v-if="
  372. ((assetMode == 0 && checkType.length) ||
  373. (assetMode == 1 && assetList.length)) &&
  374. styleConfig != 3 &&
  375. styleConfig != 4
  376. "
  377. >
  378. <view class="card-data acea-row row-around">
  379. <template v-if="assetMode == 0">
  380. <view
  381. class="item"
  382. v-for="(item, index) in dataList"
  383. :key="index"
  384. @click.stop="handleDataNavigation(item)"
  385. :class="{
  386. 'style-vert': dataStyle == 0,
  387. 'style-horiz': dataStyle == 1,
  388. 'style-vert-2': dataStyle == 2,
  389. }"
  390. >
  391. <template v-if="dataStyle == 0">
  392. <view class="num line1" :style="{ color: dataNumColor }">{{
  393. item.val
  394. }}</view>
  395. <view
  396. class="label line1"
  397. :style="{ color: dataTitleColor }"
  398. >{{ item.name }}</view
  399. >
  400. </template>
  401. <template v-else>
  402. <view
  403. class="label line1"
  404. :style="{ color: dataTitleColor }"
  405. >{{ item.name }}</view
  406. >
  407. <view class="num line1" :style="{ color: dataNumColor }">{{
  408. item.val
  409. }}</view>
  410. </template>
  411. </view>
  412. </template>
  413. <template v-else>
  414. <view
  415. class="item style-icon"
  416. v-for="(item, index) in assetList"
  417. :key="index"
  418. @click.stop="goLink(getInfo(item, 1))"
  419. >
  420. <view class="icon-box">
  421. <image
  422. v-if="assetStyle == 0 && item.img"
  423. :src="item.img"
  424. mode="aspectFill"
  425. class="img-icon"
  426. />
  427. <text
  428. v-else-if="assetStyle == 1 && item.icon"
  429. class="iconfont"
  430. :class="item.icon"
  431. :style="assetIconStyle"
  432. ></text>
  433. </view>
  434. <view class="label line1" :style="assetTextStyle">{{
  435. getInfo(item, 0)
  436. }}</view>
  437. </view>
  438. </template>
  439. </view>
  440. </template>
  441. <template v-if="memberStyleConfig == 0 && memberList.length">
  442. <view class="member-style-1" :style="[cardStyle, memberTopStyle]">
  443. <view
  444. class="item"
  445. v-for="(item, index) in memberList"
  446. :key="index"
  447. @click="goLink(getInfo(item, 2))"
  448. >
  449. <view class="text-box">
  450. <view class="title line1">{{ getInfo(item, 0) }}</view>
  451. <view class="subtitle line1"
  452. >{{ getInfo(item, 1) }}
  453. <text class="iconfont icon-you2"></text
  454. ></view>
  455. </view>
  456. <view class="img-box">
  457. <image v-if="item.img" :src="item.img" mode="aspectFill" />
  458. </view>
  459. <view class="line" v-if="index < memberList.length - 1"></view>
  460. </view>
  461. </view>
  462. </template>
  463. <template v-if="memberStyleConfig == 1">
  464. <view
  465. class="member-style-2"
  466. :style="[cardStyle, memberTopStyle]"
  467. @click="goLink(ms2ButtonLink)"
  468. >
  469. <view class="top-row">
  470. <view class="left-info">
  471. <view class="title-area">
  472. <image
  473. v-if="ms2TitleType == 1 && ms2TitleImage"
  474. :src="ms2TitleImage"
  475. mode="aspectFill"
  476. class="title-img"
  477. />
  478. <view
  479. v-else
  480. class="title-text line1"
  481. :style="{ color: ms2TitleColor }"
  482. >{{ ms2TitleText }}</view
  483. >
  484. </view>
  485. <view
  486. class="intro-text line1"
  487. :style="{ color: ms2IntroColor }"
  488. >{{ ms2IntroText }}</view
  489. >
  490. </view>
  491. <view class="right-rights">
  492. <view
  493. class="right-item"
  494. v-for="(item, index) in ms2RightsList"
  495. :key="index"
  496. >
  497. <view class="icon-wrap">
  498. <image v-if="item.img" :src="item.img" mode="aspectFill" />
  499. <text
  500. v-else-if="item.icon"
  501. class="iconfont"
  502. :class="item.icon"
  503. :style="{ color: ms2RightsColor }"
  504. ></text>
  505. </view>
  506. <view class="text line1" :style="{ color: ms2RightsColor }">{{
  507. getInfo(item, 0)
  508. }}</view>
  509. </view>
  510. <text
  511. class="iconfont icon-you2"
  512. :style="{ color: ms2RightsColor }"
  513. ></text>
  514. </view>
  515. </view>
  516. <view class="divider"></view>
  517. <view class="bottom-row">
  518. <view class="explain-list">
  519. <view class="icons" v-if="ms2ExplainIcons">
  520. <image :src="ms2ExplainIcons" mode="aspectFill" />
  521. </view>
  522. <view
  523. class="explain-text line1"
  524. :style="{ color: ms2ExplainColor }"
  525. >{{ ms2ExplainText }}</view
  526. >
  527. </view>
  528. <view
  529. class="action-btn line1"
  530. :style="{ color: ms2ButtonColor, background: ms2ButtonBgColor }"
  531. >{{ ms2ButtonText }}</view
  532. >
  533. </view>
  534. </view>
  535. </template>
  536. <template v-if="memberStyleConfig == 2">
  537. <view class="member-style-3" :style="[cardStyle, memberTopStyle]">
  538. <view class="content-wrapper" :style="[ms3ContainerStyle]">
  539. <view class="desc line1" :style="{ color: ms3TitleColor }">{{
  540. ms3TitleText
  541. }}</view>
  542. <view
  543. class="btn line1"
  544. :style="{ color: ms3ButtonColor, borderColor: ms3ButtonColor }"
  545. @click="goLink('/pages/annex/vip_paid/index')"
  546. >{{ ms3ButtonText }}</view
  547. >
  548. </view>
  549. </view>
  550. </template>
  551. <template v-if="memberStyleConfig == 3">
  552. <view class="member-style-4" :style="[cardStyle, memberTopStyle]">
  553. <view class="left-box">
  554. <view class="label">可提现(元)</view>
  555. <view class="value">{{ withdrawAmount }}</view>
  556. </view>
  557. <view
  558. class="right-box"
  559. @click="goLink('/pages/users/user_cash/index')"
  560. >立即提现</view
  561. >
  562. </view>
  563. </template>
  564. </view>
  565. </common-wrapper>
  566. </view>
  567. </template>
  568. <script>
  569. import commonWrapper from "./commonWrapper.vue";
  570. import { mapGetters } from "vuex";
  571. export default {
  572. components: { commonWrapper },
  573. name: "homeMember",
  574. props: {
  575. dataConfig: {
  576. type: Object,
  577. default: () => ({}),
  578. },
  579. },
  580. computed: {
  581. ...mapGetters(["userInfo", "isLogin"]),
  582. configData() {
  583. return {
  584. ...this.dataConfig,
  585. paddingConfig: this.dataConfig.paddingConfig || {
  586. isAll: false,
  587. valList: [
  588. {
  589. val: this.dataConfig.topConfig
  590. ? this.dataConfig.topConfig.val
  591. : 0,
  592. },
  593. {
  594. val: this.dataConfig.prConfig ? this.dataConfig.prConfig.val : 0,
  595. },
  596. {
  597. val: this.dataConfig.bottomConfig
  598. ? this.dataConfig.bottomConfig.val
  599. : 0,
  600. },
  601. {
  602. val: this.dataConfig.prConfig ? this.dataConfig.prConfig.val : 0,
  603. },
  604. ],
  605. },
  606. marginConfig: this.dataConfig.marginConfig || {
  607. isAll: false,
  608. valList: [
  609. {
  610. val: this.dataConfig.mbConfig ? this.dataConfig.mbConfig.val : 0,
  611. },
  612. { val: 0 },
  613. { val: 0 },
  614. { val: 0 },
  615. ],
  616. },
  617. };
  618. },
  619. styleConfig() {
  620. return (
  621. Number(
  622. this.dataConfig.styleConfig && this.dataConfig.styleConfig.tabVal,
  623. ) || 0
  624. );
  625. },
  626. memberStyleConfig() {
  627. return (
  628. Number(
  629. this.dataConfig.memberStyleConfig &&
  630. this.dataConfig.memberStyleConfig.tabVal,
  631. ) || 0
  632. );
  633. },
  634. menuStyle() {
  635. return (
  636. Number(
  637. this.dataConfig.menuConfig && this.dataConfig.menuConfig.listStyle,
  638. ) || 0
  639. );
  640. },
  641. userInfoConfig() {
  642. return (
  643. Number(
  644. this.dataConfig.userInfoConfig &&
  645. this.dataConfig.userInfoConfig.tabVal,
  646. ) || 0
  647. );
  648. },
  649. assetMode() {
  650. return (
  651. Number(this.dataConfig.assetMode && this.dataConfig.assetMode.tabVal) ||
  652. 0
  653. );
  654. },
  655. dataStyle() {
  656. return (
  657. Number(this.dataConfig.dataStyle && this.dataConfig.dataStyle.tabVal) ||
  658. 0
  659. );
  660. },
  661. checkType() {
  662. return (
  663. (this.dataConfig.checkboxInfo && this.dataConfig.checkboxInfo.type) ||
  664. []
  665. );
  666. },
  667. avatarUrl() {
  668. return this.userInfo.avatar || "";
  669. },
  670. menuList() {
  671. return (
  672. (this.dataConfig.menuConfig && this.dataConfig.menuConfig.list) || []
  673. );
  674. },
  675. assetStyle() {
  676. return this.dataConfig.assetConfig
  677. ? this.dataConfig.assetConfig.listStyle
  678. : 2;
  679. },
  680. assetList() {
  681. return (
  682. (this.dataConfig.assetConfig && this.dataConfig.assetConfig.list) || []
  683. );
  684. },
  685. memberList() {
  686. return (
  687. (this.dataConfig.memberConfig && this.dataConfig.memberConfig.list) ||
  688. []
  689. );
  690. },
  691. rightEntryList() {
  692. return (
  693. (this.dataConfig.rightEntryConfig &&
  694. this.dataConfig.rightEntryConfig.list) ||
  695. []
  696. );
  697. },
  698. moduleTitleColor() {
  699. return this.dataConfig.moduleTextColor &&
  700. this.dataConfig.moduleTextColor.color &&
  701. this.dataConfig.moduleTextColor.color[0]
  702. ? this.dataConfig.moduleTextColor.color[0].item
  703. : "#333";
  704. },
  705. moduleCardStyle() {
  706. if (this.styleConfig != 3) return {};
  707. let color1 =
  708. this.dataConfig.moduleBgColor &&
  709. this.dataConfig.moduleBgColor.color &&
  710. this.dataConfig.moduleBgColor.color[0]
  711. ? this.dataConfig.moduleBgColor.color[0].item
  712. : "#fff";
  713. let color2 =
  714. this.dataConfig.moduleBgColor &&
  715. this.dataConfig.moduleBgColor.color &&
  716. this.dataConfig.moduleBgColor.color[1]
  717. ? this.dataConfig.moduleBgColor.color[1].item
  718. : "#fff";
  719. return {
  720. background: `linear-gradient(90deg, ${color1} 0%, ${color2} 100%)`,
  721. borderRadius: this.radiusFromConfig(this.dataConfig.moduleRadius),
  722. };
  723. },
  724. memberTopStyle() {
  725. if (this.styleConfig == 3 || this.styleConfig == 4) {
  726. return { marginTop: "20rpx" };
  727. }
  728. return {};
  729. },
  730. cardStyle() {
  731. if (this.memberStyleConfig == 2) {
  732. let style = {
  733. borderRadius: this.radiusFromConfig(this.dataConfig.cardBgRadius),
  734. };
  735. const mode = this.dataConfig.ms3BgMode
  736. ? this.dataConfig.ms3BgMode.tabVal
  737. : 0;
  738. if (
  739. mode === 1 &&
  740. this.dataConfig.ms3BackgroundImage &&
  741. this.dataConfig.ms3BackgroundImage.url
  742. ) {
  743. style.backgroundImage = `url(${this.dataConfig.ms3BackgroundImage.url})`;
  744. style.backgroundRepeat = "no-repeat";
  745. style.backgroundSize = "100% 100%";
  746. } else {
  747. const c1 =
  748. this.dataConfig.cardBgColor &&
  749. this.dataConfig.cardBgColor.color &&
  750. this.dataConfig.cardBgColor.color[0]
  751. ? this.dataConfig.cardBgColor.color[0].item
  752. : "#fff";
  753. const c2 =
  754. this.dataConfig.cardBgColor &&
  755. this.dataConfig.cardBgColor.color &&
  756. this.dataConfig.cardBgColor.color[1]
  757. ? this.dataConfig.cardBgColor.color[1].item
  758. : c1;
  759. style.background = `linear-gradient(90deg, ${c1} 0%, ${c2} 100%)`;
  760. }
  761. return style;
  762. }
  763. if (this.memberStyleConfig == 3) {
  764. let style = {
  765. borderRadius: this.radiusFromConfig(this.dataConfig.cardBgRadius),
  766. };
  767. const mode = this.dataConfig.ms4BgMode
  768. ? this.dataConfig.ms4BgMode.tabVal
  769. : 0;
  770. if (
  771. mode === 1 &&
  772. this.dataConfig.ms4BackgroundImage &&
  773. this.dataConfig.ms4BackgroundImage.url
  774. ) {
  775. style.backgroundImage = `url(${this.dataConfig.ms4BackgroundImage.url})`;
  776. style.backgroundRepeat = "no-repeat";
  777. style.backgroundSize = "100% 100%";
  778. } else {
  779. const c1 =
  780. this.dataConfig.cardBgColor &&
  781. this.dataConfig.cardBgColor.color &&
  782. this.dataConfig.cardBgColor.color[0]
  783. ? this.dataConfig.cardBgColor.color[0].item
  784. : "#fff";
  785. const c2 =
  786. this.dataConfig.cardBgColor &&
  787. this.dataConfig.cardBgColor.color &&
  788. this.dataConfig.cardBgColor.color[1]
  789. ? this.dataConfig.cardBgColor.color[1].item
  790. : c1;
  791. style.background = `linear-gradient(90deg, ${c1} 0%, ${c2} 100%)`;
  792. }
  793. return style;
  794. }
  795. let color1 =
  796. this.dataConfig.cardBgColor &&
  797. this.dataConfig.cardBgColor.color &&
  798. this.dataConfig.cardBgColor.color[0]
  799. ? this.dataConfig.cardBgColor.color[0].item
  800. : "#fff";
  801. let color2 =
  802. this.dataConfig.cardBgColor &&
  803. this.dataConfig.cardBgColor.color &&
  804. this.dataConfig.cardBgColor.color[1]
  805. ? this.dataConfig.cardBgColor.color[1].item
  806. : "#fff";
  807. return {
  808. background: `linear-gradient(90deg, ${color1} 0%, ${color2} 100%)`,
  809. borderRadius: this.radiusFromConfig(this.dataConfig.cardBgRadius),
  810. };
  811. },
  812. nameTextStyle() {
  813. let color =
  814. this.dataConfig.nameColor &&
  815. this.dataConfig.nameColor.color &&
  816. this.dataConfig.nameColor.color[0]
  817. ? this.dataConfig.nameColor.color[0].item
  818. : "#333333";
  819. let size =
  820. this.dataConfig.nameSize && this.dataConfig.nameSize.val
  821. ? this.dataConfig.nameSize.val
  822. : 16;
  823. return { color: color, fontSize: size * 2 + "rpx" };
  824. },
  825. numTextStyle() {
  826. let color =
  827. this.dataConfig.numColor &&
  828. this.dataConfig.numColor.color &&
  829. this.dataConfig.numColor.color[0]
  830. ? this.dataConfig.numColor.color[0].item
  831. : "#333333";
  832. let size =
  833. this.dataConfig.numSize && this.dataConfig.numSize.val
  834. ? this.dataConfig.numSize.val
  835. : 14;
  836. return { color: color, fontSize: size * 2 + "rpx" };
  837. },
  838. dataTitleColor() {
  839. return this.dataConfig.dataTitleColor &&
  840. this.dataConfig.dataTitleColor.color &&
  841. this.dataConfig.dataTitleColor.color[0]
  842. ? this.dataConfig.dataTitleColor.color[0].item
  843. : "#333333";
  844. },
  845. dataNumColor() {
  846. return this.dataConfig.dataNumColor &&
  847. this.dataConfig.dataNumColor.color &&
  848. this.dataConfig.dataNumColor.color[0]
  849. ? this.dataConfig.dataNumColor.color[0].item
  850. : "#333333";
  851. },
  852. assetIconStyle() {
  853. let color =
  854. this.dataConfig.assetIconColor &&
  855. this.dataConfig.assetIconColor.color &&
  856. this.dataConfig.assetIconColor.color[0]
  857. ? this.dataConfig.assetIconColor.color[0].item
  858. : "#ff9900";
  859. let size =
  860. this.dataConfig.assetIconSize && this.dataConfig.assetIconSize.val
  861. ? this.dataConfig.assetIconSize.val
  862. : 20;
  863. return { color: color, fontSize: size * 2 + "rpx" };
  864. },
  865. assetTextStyle() {
  866. let color =
  867. this.dataConfig.assetTextColor &&
  868. this.dataConfig.assetTextColor.color &&
  869. this.dataConfig.assetTextColor.color[0]
  870. ? this.dataConfig.assetTextColor.color[0].item
  871. : "#333";
  872. let size =
  873. this.dataConfig.assetTextSize && this.dataConfig.assetTextSize.val
  874. ? this.dataConfig.assetTextSize.val
  875. : 12;
  876. return { color: color, fontSize: size * 2 + "rpx" };
  877. },
  878. menuIconStyle() {
  879. let iconStyle =
  880. this.dataConfig.iconStyleConfig || this.dataConfig.iconStyle || {};
  881. let color =
  882. iconStyle.color && iconStyle.color.color && iconStyle.color.color[0]
  883. ? iconStyle.color.color[0].item
  884. : "#333";
  885. let size = iconStyle.size && iconStyle.size.val ? iconStyle.size.val : 20;
  886. let padding =
  887. iconStyle.padding && iconStyle.padding.val ? iconStyle.padding.val : 0;
  888. let rotate =
  889. iconStyle.rotate && iconStyle.rotate.val ? iconStyle.rotate.val : 0;
  890. return {
  891. color: color,
  892. fontSize: size * 2 + "rpx",
  893. padding: padding * 2 + "rpx",
  894. transform: `rotate(${rotate}deg)`,
  895. display: "inline-block",
  896. };
  897. },
  898. assetIconStyle() {
  899. return { fontSize: "48rpx", color: "#ff9900" };
  900. },
  901. userName() {
  902. if (!this.isLogin) return "请点击登录";
  903. return (this.userInfo && this.userInfo.nickname) || "";
  904. },
  905. userSubText() {
  906. if (!this.isLogin) return "";
  907. if (this.userInfoConfig == 0)
  908. return (this.userInfo && this.userInfo.phone) || "";
  909. let uid =
  910. (this.userInfo && (this.userInfo.uid || this.userInfo.id)) || "";
  911. return uid ? `ID: ${uid}` : "";
  912. },
  913. userSubTextPlain() {
  914. if (!this.isLogin) return "";
  915. if (this.userInfoConfig == 0)
  916. return (this.userInfo && this.userInfo.phone) || "";
  917. return (this.userInfo && (this.userInfo.uid || this.userInfo.id)) || "";
  918. },
  919. ms2TitleType() {
  920. return (
  921. Number(
  922. this.dataConfig.ms2TitleType && this.dataConfig.ms2TitleType.tabVal,
  923. ) || 0
  924. );
  925. },
  926. ms2TitleText() {
  927. return (
  928. (this.dataConfig.ms2TitleText && this.dataConfig.ms2TitleText.value) ||
  929. ""
  930. );
  931. },
  932. ms2TitleColor() {
  933. return this.dataConfig.ms2TitleColor &&
  934. this.dataConfig.ms2TitleColor.color &&
  935. this.dataConfig.ms2TitleColor.color[0]
  936. ? this.dataConfig.ms2TitleColor.color[0].item
  937. : "";
  938. },
  939. ms2TitleImage() {
  940. return (
  941. (this.dataConfig.ms2TitleImage && this.dataConfig.ms2TitleImage.url) ||
  942. ""
  943. );
  944. },
  945. ms2IntroText() {
  946. return (
  947. (this.dataConfig.ms2IntroText && this.dataConfig.ms2IntroText.value) ||
  948. ""
  949. );
  950. },
  951. ms2IntroColor() {
  952. return this.dataConfig.ms2IntroColor &&
  953. this.dataConfig.ms2IntroColor.color &&
  954. this.dataConfig.ms2IntroColor.color[0]
  955. ? this.dataConfig.ms2IntroColor.color[0].item
  956. : "";
  957. },
  958. ms2RightsList() {
  959. return (
  960. (this.dataConfig.ms2RightsList && this.dataConfig.ms2RightsList.list) ||
  961. []
  962. );
  963. },
  964. ms2RightsColor() {
  965. return this.dataConfig.ms2RightsColor &&
  966. this.dataConfig.ms2RightsColor.color &&
  967. this.dataConfig.ms2RightsColor.color[0]
  968. ? this.dataConfig.ms2RightsColor.color[0].item
  969. : "";
  970. },
  971. ms2ExplainIcons() {
  972. return (
  973. (this.dataConfig.ms2ExplainIcons &&
  974. this.dataConfig.ms2ExplainIcons.url) ||
  975. ""
  976. );
  977. },
  978. ms2ExplainText() {
  979. return (
  980. (this.dataConfig.ms2ExplainText &&
  981. this.dataConfig.ms2ExplainText.value) ||
  982. ""
  983. );
  984. },
  985. ms2ExplainColor() {
  986. return this.dataConfig.ms2ExplainColor &&
  987. this.dataConfig.ms2ExplainColor.color &&
  988. this.dataConfig.ms2ExplainColor.color[0]
  989. ? this.dataConfig.ms2ExplainColor.color[0].item
  990. : "";
  991. },
  992. ms2ButtonText() {
  993. return (
  994. (this.dataConfig.ms2ButtonText &&
  995. this.dataConfig.ms2ButtonText.value) ||
  996. ""
  997. );
  998. },
  999. ms2ButtonLink() {
  1000. return (
  1001. (this.dataConfig.ms2ButtonLink &&
  1002. this.dataConfig.ms2ButtonLink.value) ||
  1003. ""
  1004. );
  1005. },
  1006. ms2ButtonColor() {
  1007. return this.dataConfig.ms2ButtonColor &&
  1008. this.dataConfig.ms2ButtonColor.color &&
  1009. this.dataConfig.ms2ButtonColor.color[0]
  1010. ? this.dataConfig.ms2ButtonColor.color[0].item
  1011. : "";
  1012. },
  1013. ms2ButtonBgColor() {
  1014. return this.dataConfig.ms2ButtonBgColor &&
  1015. this.dataConfig.ms2ButtonBgColor.color &&
  1016. this.dataConfig.ms2ButtonBgColor.color[0]
  1017. ? this.dataConfig.ms2ButtonBgColor.color[0].item
  1018. : "";
  1019. },
  1020. ms3TitleText() {
  1021. return (
  1022. (this.dataConfig.ms3TitleText && this.dataConfig.ms3TitleText.value) ||
  1023. ""
  1024. );
  1025. },
  1026. ms3TitleColor() {
  1027. return this.dataConfig.ms3TitleColor &&
  1028. this.dataConfig.ms3TitleColor.color &&
  1029. this.dataConfig.ms3TitleColor.color[0]
  1030. ? this.dataConfig.ms3TitleColor.color[0].item
  1031. : "";
  1032. },
  1033. ms3ButtonText() {
  1034. return (
  1035. (this.dataConfig.ms3ButtonText &&
  1036. this.dataConfig.ms3ButtonText.value) ||
  1037. ""
  1038. );
  1039. },
  1040. ms3ButtonColor() {
  1041. return this.dataConfig.ms3ButtonColor &&
  1042. this.dataConfig.ms3ButtonColor.color &&
  1043. this.dataConfig.ms3ButtonColor.color[0]
  1044. ? this.dataConfig.ms3ButtonColor.color[0].item
  1045. : "";
  1046. },
  1047. ms3ContainerStyle() {
  1048. let pad =
  1049. this.dataConfig.ms3PaddingConfig &&
  1050. this.dataConfig.ms3PaddingConfig.valList
  1051. ? this.dataConfig.ms3PaddingConfig.valList
  1052. : [{ val: 0 }, { val: 0 }, { val: 0 }, { val: 0 }];
  1053. return {
  1054. padding: `${pad[0].val * 2}rpx ${pad[1].val * 2}rpx ${
  1055. pad[2].val * 2
  1056. }rpx ${pad[3].val * 2}rpx`,
  1057. };
  1058. },
  1059. withdrawAmount() {
  1060. if (!this.isLogin) return "0.00";
  1061. let val =
  1062. (this.userInfo &&
  1063. (this.userInfo.brokerage_price ||
  1064. this.userInfo.brokeragePrice ||
  1065. this.userInfo.brokerage)) ||
  1066. 0;
  1067. return val;
  1068. },
  1069. dataList() {
  1070. let list = [
  1071. { id: 1, name: "余额", key: "money" },
  1072. { id: 3, name: "优惠券", key: "coupon" },
  1073. { id: 2, name: "积分", key: "integral" },
  1074. { id: 5, name: "收藏商品", key: "collection" },
  1075. { id: 6, name: "浏览记录", key: "visit" },
  1076. { id: 8, name: "推广佣金", key: "brokerage" },
  1077. { id: 9, name: "推广人", key: "spreadCount" },
  1078. { id: 10, name: "推广订单", key: "spreadOrderCount" },
  1079. ];
  1080. return list
  1081. .filter((item) => this.checkType.indexOf(item.id) != -1)
  1082. .map((item) => ({ ...item, val: this.getDataValue(item.key) }));
  1083. },
  1084. },
  1085. methods: {
  1086. radiusFromConfig(cfg) {
  1087. if (!cfg) return "0rpx";
  1088. let type = Number(cfg.type) || 0;
  1089. let val = Number(cfg.val) || 0;
  1090. let valList = cfg.valList || [];
  1091. if (type && valList.length >= 4) {
  1092. return `${valList[0].val * 2}rpx ${valList[1].val * 2}rpx ${
  1093. valList[3].val * 2
  1094. }rpx ${valList[2].val * 2}rpx`;
  1095. }
  1096. return val * 2 + "rpx";
  1097. },
  1098. getInfo(item, index) {
  1099. if (!item || !item.info || !item.info[index]) return "";
  1100. return item.info[index].value || "";
  1101. },
  1102. getDataValue(key) {
  1103. if (!this.isLogin) return 0;
  1104. let u = this.userInfo || {};
  1105. if (key === "money") return u.now_money || u.nowMoney || 0;
  1106. if (key === "coupon")
  1107. return u.couponCount || u.coupon_num || u.couponNum || 0;
  1108. if (key === "integral") return u.integral || 0;
  1109. if (key === "collection") return u.collectCount || u.collect_count || 0;
  1110. if (key === "visit") return u.visitCount || u.visit_num || 0;
  1111. if (key === "brokerage")
  1112. return u.brokerage_price || u.brokeragePrice || u.brokerage || 0;
  1113. if (key === "spreadCount") return u.spread_count || u.spreadCount || 0;
  1114. if (key === "spreadOrderCount")
  1115. return u.order_count || u.spread_order_count || u.spreadOrderCount || 0;
  1116. return 0;
  1117. },
  1118. goUserInfo() {
  1119. if (!this.isLogin) {
  1120. this.$emit("changeLogin");
  1121. return;
  1122. }
  1123. uni.navigateTo({ url: "/pages/users/user_info/index" });
  1124. },
  1125. handleDataNavigation(item) {
  1126. let url = "";
  1127. switch (item.id) {
  1128. case 1:
  1129. url = "/pages/users/user_money/index";
  1130. break;
  1131. case 3:
  1132. url = "/pages/users/user_coupon/index";
  1133. break;
  1134. case 2:
  1135. url = "/pages/users/user_integral/index";
  1136. break;
  1137. case 5:
  1138. url = "/pages/users/user_goods_collection/index";
  1139. break;
  1140. case 6:
  1141. url = "/pages/users/visit_list/index";
  1142. break;
  1143. case 8:
  1144. url = "/pages/users/user_spread_money/index?type=2";
  1145. break;
  1146. case 9:
  1147. url = "/pages/users/promoter-list/index";
  1148. break;
  1149. case 10:
  1150. url = "/pages/users/promoter-order/index";
  1151. break;
  1152. }
  1153. if (url) {
  1154. this.goLink(url);
  1155. }
  1156. },
  1157. goLink(url) {
  1158. if (!url) return;
  1159. if (!this.isLogin) {
  1160. this.$emit("changeLogin");
  1161. return;
  1162. }
  1163. if (this.$util && this.$util.JumpPath) {
  1164. this.$util.JumpPath(url);
  1165. return;
  1166. }
  1167. uni.navigateTo({ url });
  1168. },
  1169. },
  1170. };
  1171. </script>
  1172. <style lang="scss" scoped>
  1173. .member-card {
  1174. position: relative;
  1175. overflow: hidden;
  1176. .left-card {
  1177. .label {
  1178. font-size: 22rpx;
  1179. color: rgba(255, 255, 255, 0.8);
  1180. margin-top: 0;
  1181. }
  1182. }
  1183. }
  1184. .card-header {
  1185. position: relative;
  1186. padding: 28rpx 20rpx;
  1187. }
  1188. .user-info {
  1189. .avatar {
  1190. width: 90rpx;
  1191. height: 90rpx;
  1192. border-radius: 50%;
  1193. margin-right: 20rpx;
  1194. overflow: hidden;
  1195. image {
  1196. width: 100%;
  1197. height: 100%;
  1198. border-radius: 50%;
  1199. }
  1200. .empty-box {
  1201. width: 100%;
  1202. height: 100%;
  1203. background: #f3f9ff;
  1204. border: 2rpx solid #eeeeee;
  1205. display: flex;
  1206. align-items: center;
  1207. justify-content: center;
  1208. image {
  1209. width: 52rpx;
  1210. height: 40rpx;
  1211. border-radius: 0;
  1212. }
  1213. }
  1214. }
  1215. .text {
  1216. flex: 1;
  1217. .name {
  1218. font-weight: 600;
  1219. }
  1220. .level {
  1221. margin-top: 8rpx;
  1222. opacity: 0.9;
  1223. }
  1224. }
  1225. &.style-2 {
  1226. width: 100%;
  1227. padding: 0 20rpx;
  1228. .avatar {
  1229. margin-right: 0;
  1230. margin-left: 20rpx;
  1231. }
  1232. }
  1233. &.style-3 {
  1234. display: flex;
  1235. flex-direction: column;
  1236. align-items: center;
  1237. .avatar {
  1238. margin-right: 0;
  1239. margin-bottom: 16rpx;
  1240. }
  1241. .text {
  1242. text-align: center;
  1243. }
  1244. }
  1245. }
  1246. .menu-entry {
  1247. display: flex;
  1248. align-items: center;
  1249. position: absolute;
  1250. right: 20rpx;
  1251. top: 28rpx;
  1252. z-index: 10;
  1253. .item {
  1254. margin-left: 20rpx;
  1255. }
  1256. .menu-img {
  1257. width: 40rpx;
  1258. height: 40rpx;
  1259. display: block;
  1260. }
  1261. }
  1262. .card-data {
  1263. padding: 24rpx 0;
  1264. flex-wrap: nowrap;
  1265. .item {
  1266. width: 100%;
  1267. text-align: center;
  1268. display: flex;
  1269. align-items: center;
  1270. justify-content: center;
  1271. }
  1272. .num {
  1273. font-size: 32rpx;
  1274. font-weight: 600;
  1275. }
  1276. .label {
  1277. font-size: 24rpx;
  1278. margin-top: 0;
  1279. }
  1280. .style-vert,
  1281. .style-vert-2 {
  1282. flex-direction: column;
  1283. .label {
  1284. margin-top: 6rpx;
  1285. }
  1286. }
  1287. .style-horiz {
  1288. flex-direction: row;
  1289. .label {
  1290. margin-top: 0;
  1291. margin-right: 0;
  1292. }
  1293. .num {
  1294. margin-left: 10rpx;
  1295. }
  1296. }
  1297. .style-icon {
  1298. flex-direction: column;
  1299. .icon-box {
  1300. width: 56rpx;
  1301. height: 56rpx;
  1302. margin: 0 auto;
  1303. margin-bottom: 10rpx;
  1304. display: flex;
  1305. align-items: center;
  1306. justify-content: center;
  1307. .img-icon {
  1308. width: 56rpx;
  1309. height: 56rpx;
  1310. }
  1311. .iconfont {
  1312. font-size: 48rpx;
  1313. line-height: 1;
  1314. }
  1315. }
  1316. .label {
  1317. margin-top: 0;
  1318. }
  1319. }
  1320. }
  1321. .style-4-container {
  1322. align-items: stretch;
  1323. .left-card,
  1324. .right-card {
  1325. flex: 1;
  1326. padding: 20rpx;
  1327. box-sizing: border-box;
  1328. }
  1329. .entry-content {
  1330. display: flex;
  1331. flex-direction: column;
  1332. align-items: center;
  1333. text-align: center;
  1334. }
  1335. .left-card {
  1336. flex: 2;
  1337. margin-right: 20rpx;
  1338. .stats-row {
  1339. margin-top: 20rpx;
  1340. .icon-box {
  1341. width: 48rpx;
  1342. height: 48rpx;
  1343. margin: 0 auto;
  1344. display: flex;
  1345. align-items: center;
  1346. justify-content: center;
  1347. .asset-img {
  1348. width: 48rpx;
  1349. height: 48rpx;
  1350. }
  1351. }
  1352. .label {
  1353. font-size: 24rpx;
  1354. margin-top: 10rpx;
  1355. text-align: center;
  1356. }
  1357. }
  1358. }
  1359. .right-card {
  1360. .title {
  1361. font-size: 28rpx;
  1362. font-weight: 600;
  1363. margin-bottom: 10rpx;
  1364. }
  1365. .subtitle {
  1366. font-size: 24rpx;
  1367. color: #ff9900;
  1368. display: flex;
  1369. align-items: center;
  1370. margin-bottom: 16rpx;
  1371. .icon-you2 {
  1372. font-size: 24rpx;
  1373. margin-left: 6rpx;
  1374. }
  1375. }
  1376. .img-box {
  1377. width: 120rpx;
  1378. height: 120rpx;
  1379. image {
  1380. width: 100%;
  1381. height: 100%;
  1382. }
  1383. }
  1384. }
  1385. .item {
  1386. flex-direction: column;
  1387. }
  1388. }
  1389. .style-5-container {
  1390. padding: 40rpx;
  1391. background: #fff;
  1392. border-radius: 24rpx;
  1393. margin-top: 90rpx;
  1394. .header {
  1395. margin-bottom: 90rpx;
  1396. position: relative;
  1397. .left {
  1398. position: absolute;
  1399. top: -92rpx;
  1400. left: 0;
  1401. display: flex;
  1402. align-items: flex-end;
  1403. .avatar {
  1404. width: 148rpx;
  1405. height: 148rpx;
  1406. margin-right: 24rpx;
  1407. border: 4rpx solid #fff;
  1408. border-radius: 50%;
  1409. box-shadow: 0 4rpx 20rpx rgba(0, 0, 0, 0.1);
  1410. image {
  1411. width: 100%;
  1412. height: 100%;
  1413. border-radius: 50%;
  1414. }
  1415. .empty-box {
  1416. width: 100%;
  1417. height: 100%;
  1418. border-radius: 50%;
  1419. background: #eee;
  1420. display: flex;
  1421. align-items: center;
  1422. justify-content: center;
  1423. image {
  1424. width: 60rpx;
  1425. height: 60rpx;
  1426. border-radius: 0;
  1427. }
  1428. }
  1429. }
  1430. .text {
  1431. .name {
  1432. font-weight: bold;
  1433. margin-bottom: 8rpx;
  1434. font-size: 32rpx;
  1435. }
  1436. .level {
  1437. font-size: 24rpx;
  1438. opacity: 0.8;
  1439. }
  1440. }
  1441. }
  1442. .menu-entry {
  1443. position: absolute;
  1444. top: 0rpx;
  1445. right: 0;
  1446. display: flex;
  1447. align-items: center;
  1448. .item {
  1449. margin-left: 20rpx;
  1450. .menu-img {
  1451. width: 60rpx;
  1452. height: 60rpx;
  1453. }
  1454. .iconfont {
  1455. font-size: 60rpx;
  1456. color: #333;
  1457. }
  1458. }
  1459. }
  1460. }
  1461. }
  1462. .member-style-1 {
  1463. display: flex;
  1464. align-items: center;
  1465. justify-content: space-between;
  1466. padding: 30rpx 0;
  1467. margin-top: 20rpx;
  1468. .item {
  1469. flex: 1;
  1470. display: flex;
  1471. justify-content: space-between;
  1472. align-items: center;
  1473. position: relative;
  1474. padding: 0 40rpx;
  1475. .text-box {
  1476. .title {
  1477. font-size: 28rpx;
  1478. color: #333;
  1479. font-weight: bold;
  1480. margin-bottom: 10rpx;
  1481. }
  1482. .subtitle {
  1483. font-size: 22rpx;
  1484. color: #ff7d00;
  1485. display: flex;
  1486. align-items: center;
  1487. .iconfont {
  1488. font-size: 20rpx;
  1489. margin-top: 2rpx;
  1490. }
  1491. }
  1492. }
  1493. .img-box {
  1494. width: 88rpx;
  1495. height: 88rpx;
  1496. image {
  1497. width: 100%;
  1498. height: 100%;
  1499. object-fit: cover;
  1500. border-radius: 50%;
  1501. }
  1502. }
  1503. .line {
  1504. position: absolute;
  1505. right: 0;
  1506. top: 50%;
  1507. transform: translateY(-50%);
  1508. width: 2rpx;
  1509. height: 40rpx;
  1510. background: #eee;
  1511. }
  1512. }
  1513. }
  1514. .member-style-2 {
  1515. margin-top: 36rpx;
  1516. padding: 30rpx;
  1517. box-sizing: border-box;
  1518. .top-row {
  1519. display: flex;
  1520. justify-content: space-between;
  1521. align-items: center;
  1522. .left-info {
  1523. flex: 1;
  1524. .title-area {
  1525. display: flex;
  1526. align-items: center;
  1527. .title-img {
  1528. max-width: 324rpx;
  1529. height: 72rpx;
  1530. }
  1531. .title-text {
  1532. font-size: 32rpx;
  1533. font-weight: 600;
  1534. }
  1535. }
  1536. .intro-text {
  1537. margin-top: 8rpx;
  1538. font-size: 24rpx;
  1539. }
  1540. }
  1541. .right-rights {
  1542. display: flex;
  1543. align-items: center;
  1544. .right-item {
  1545. margin-left: 16rpx;
  1546. text-align: center;
  1547. .icon-wrap {
  1548. width: 56rpx;
  1549. height: 56rpx;
  1550. margin: 0 auto;
  1551. display: flex;
  1552. align-items: center;
  1553. justify-content: center;
  1554. image {
  1555. width: 56rpx;
  1556. height: 56rpx;
  1557. }
  1558. }
  1559. .text {
  1560. margin-top: 6rpx;
  1561. font-size: 20rpx;
  1562. }
  1563. }
  1564. .icon-you2 {
  1565. font-size: 24rpx;
  1566. margin-left: 10rpx;
  1567. }
  1568. }
  1569. }
  1570. .divider {
  1571. height: 1rpx;
  1572. background: rgba(0, 0, 0, 0.08);
  1573. margin: 16rpx 0;
  1574. }
  1575. .bottom-row {
  1576. display: flex;
  1577. align-items: center;
  1578. justify-content: space-between;
  1579. .explain-list {
  1580. display: flex;
  1581. align-items: center;
  1582. flex: 1;
  1583. .icons {
  1584. width: 140rpx;
  1585. height: 36rpx;
  1586. margin-right: 10rpx;
  1587. image {
  1588. width: 100%;
  1589. height: 100%;
  1590. }
  1591. }
  1592. .explain-text {
  1593. font-size: 22rpx;
  1594. }
  1595. }
  1596. .action-btn {
  1597. padding: 10rpx 18rpx;
  1598. border-radius: 30rpx;
  1599. font-size: 22rpx;
  1600. font-weight: 600;
  1601. max-width: 240rpx;
  1602. text-align: center;
  1603. }
  1604. }
  1605. }
  1606. .member-style-3 {
  1607. margin-top: 36rpx;
  1608. .content-wrapper {
  1609. display: flex;
  1610. align-items: center;
  1611. justify-content: space-between;
  1612. }
  1613. .desc {
  1614. font-size: 24rpx;
  1615. }
  1616. .btn {
  1617. border: 2rpx solid;
  1618. padding: 8rpx 24rpx;
  1619. border-radius: 28rpx;
  1620. font-size: 24rpx;
  1621. }
  1622. }
  1623. .member-style-4 {
  1624. margin-top: 36rpx;
  1625. padding: 40rpx;
  1626. display: flex;
  1627. align-items: center;
  1628. justify-content: space-between;
  1629. .left-box {
  1630. .label {
  1631. color: #999;
  1632. font-size: 24rpx;
  1633. margin-bottom: 10rpx;
  1634. }
  1635. .value {
  1636. color: #f6d99d;
  1637. font-size: 48rpx;
  1638. font-weight: 700;
  1639. }
  1640. }
  1641. .right-box {
  1642. background: #f6d99d;
  1643. color: #5a350c;
  1644. padding: 10rpx 30rpx;
  1645. border-radius: 40rpx;
  1646. font-size: 24rpx;
  1647. font-weight: 700;
  1648. }
  1649. }
  1650. </style>