index.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867
  1. <template>
  2. <div class="mine" @scroll="handleScroll">
  3. <div class="banner">
  4. <div class="flex-row">
  5. <div class="block_1">
  6. <img :src="userinfo.avatar" class="avatar" />
  7. <input type="file" @change="onFileChange" class="upload" accept="image/*" />
  8. <!-- <van-uploader v-model="fileList" multiple :max-count="1" :after-read="afterRead" class="avatar"> </van-uploader> -->
  9. </div>
  10. <div class="flex-col">
  11. <span class="text_1">{{ userinfo.heading }}</span>
  12. <div class="flex-row">
  13. <span class="text_2">Uid:{{ userinfo.nickname }}</span>
  14. <img src="@/assets/images/trade/copy.png" alt="" class="copys" @click="copy" :data-clipboard-text="this.userinfo.nickname" />
  15. </div>
  16. <div class="flex-row">
  17. <span
  18. :class="[
  19. userinfo.is_super == 1
  20. ? 'text_3 level1'
  21. : userinfo.is_super == 2
  22. ? 'text_3 level2'
  23. : userinfo.is_super == 3
  24. ? 'text_3 level3'
  25. : userinfo.is_super == 4
  26. ? 'text_3 level4'
  27. : userinfo.is_super >= 5
  28. ? 'text_3 level5'
  29. : 'text_3',
  30. ]"
  31. >{{ $t('lang35') }}{{ userinfo.addressEncrypt }}</span
  32. >
  33. <img src="@/assets/images/trade/copy.png" alt="" class="copys" @click="copy" :data-clipboard-text="this.userinfo.address" />
  34. </div>
  35. <div class="lang flex-col">
  36. <img src="@/assets/images/lang1.png" alt="" class="lang_img" @click="reckoningClick('language')" />
  37. <span>{{ $t('lang79') }}</span>
  38. </div>
  39. </div>
  40. </div>
  41. </div>
  42. <div class="content">
  43. <div class="navbox flex-row jsb">
  44. <div class="navbox_item flex-row" v-for="(item, index) in navlist" :key="index" @click="navigatorTo(item.url)">
  45. <img :src="item.icon" alt="" />
  46. <span>{{ item.text }}</span>
  47. </div>
  48. </div>
  49. <!-- <div class="balance_box">
  50. <div class="balance_li" @click="reckoningClick('assets')">
  51. <div class="left">
  52. <span class="amount">{{ $t('lang36') }}</span>
  53. </div>
  54. <div class="right">
  55. <span>{{ $t('lang37') }}</span>
  56. </div>
  57. </div>
  58. <div class="balance_li" @click="reckoningClick('teaRights')">
  59. <div class="left">
  60. <span class="amount">{{ $t('lang218') }}</span>
  61. </div>
  62. <div class="right">
  63. <span>{{ $t('lang39') }}</span>
  64. </div>
  65. </div>
  66. </div> -->
  67. <!-- <div class="list">
  68. <div @click="switchovers('myTeaFriends')" class="li">
  69. <div class="li_left">
  70. <div class="imgbox">
  71. <img src="@/assets/images/my.png" class="li_img" />
  72. </div>
  73. <span>{{ $t('lang40') }}</span>
  74. </div>
  75. <van-icon name="arrow" color="#aaaaaa" size="16" />
  76. </div>
  77. <div @click="switchovers('invite')" class="li">
  78. <div class="li_left">
  79. <div class="imgbox">
  80. <img src="@/assets/images/invite.png" class="li_img" />
  81. </div>
  82. <span>{{ $t('lang41') }}</span>
  83. </div>
  84. <van-icon name="arrow" color="#aaaaaa" size="16" />
  85. </div>
  86. <div @click="switchovers('1')" class="li">
  87. <div class="li_left">
  88. <div class="imgbox">
  89. <img src="@/assets/images/trade/custom.png" class="li_img" />
  90. </div>
  91. <span>{{ $t('lang43') }}</span>
  92. </div>
  93. <van-icon name="arrow" color="#aaaaaa" size="16" />
  94. </div>
  95. <div @click="switchovers('setting')" class="li">
  96. <div class="li_left">
  97. <div class="imgbox">
  98. <img src="@/assets/images/set.png" class="li_img" />
  99. </div>
  100. <span>{{ $t('lang44') }}</span>
  101. </div>
  102. <van-icon name="arrow" color="#aaaaaa" size="16" />
  103. </div>
  104. </div> -->
  105. </div>
  106. <div>
  107. <van-tabs @click="onClick" color="#29B286" title-active-color="#29B286">
  108. <van-tab v-for="(item, index) in statusList" :key="index" :title="item.key"> </van-tab>
  109. </van-tabs>
  110. </div>
  111. <div class="list_box">
  112. <div class="flex-row jsb">
  113. <div class="small_nav flex-row">
  114. <span :class="[index == smallNavIndex ? 'small_nav_item nav_active' : 'small_nav_item']" v-for="(item, index) in smallNav" :key="index">{{ item.key }}</span>
  115. </div>
  116. <div class="flex-row">
  117. <van-radio-group v-model="radio">
  118. <van-radio name="1" checked-color="#29b286" icon-size="16px">{{ $t('lang256') }}</van-radio>
  119. </van-radio-group>
  120. <van-icon name="search" size="22" color="#000000" />
  121. </div>
  122. </div>
  123. <div class="record flex-row jsb" v-if="nft_list.length > 0">
  124. <div class="record_item flex-col" v-for="(item, index) in nft_list" :key="index" @click="toTeaRight('teaRights', item)">
  125. <img :src="item.img_url" alt="" />
  126. <span class="record_item_name">{{ item.name }}</span>
  127. <span class="record_item_count">{{ $t('lang257') }} {{ item.hold_num }}</span>
  128. </div>
  129. </div>
  130. <div class="record bare" v-else>
  131. <span>{{ $t('lang82') }}</span>
  132. </div>
  133. </div>
  134. <!-- 上级弹窗 -->
  135. <van-popup v-model="superiorShow" round style="width: 80%">
  136. <Superior :address="userinfo.parent_address" :level="userinfo.team_level_name" :parantId="userinfo.parent_id"></Superior>
  137. </van-popup>
  138. <BottomNavigation></BottomNavigation>
  139. </div>
  140. </template>
  141. <script>
  142. import Superior from './superiorPopup.vue';
  143. import { Notify } from 'vant';
  144. import { usApi, newsLetterApi, walletApi, homeApi } from '@/api/index';
  145. import { mapState } from 'vuex';
  146. import union from '../../api/union';
  147. import BottomNavigation from '@/components/BottomNavigation.vue';
  148. import Clipboard from 'clipboard';
  149. import Web3 from 'web3';
  150. export default {
  151. data() {
  152. return {
  153. show: false, //上级弹窗状态
  154. withdrawShow: false, //提现弹窗状态
  155. total: 0,
  156. team_level_name: '',
  157. userinfo: {
  158. address: undefined,
  159. nickname: undefined,
  160. avatar: undefined,
  161. team_level_id: undefined,
  162. seso_url: undefined,
  163. submit_limit: 0,
  164. direct_super: {
  165. one: 0,
  166. two: 0,
  167. direct_super: 0,
  168. },
  169. },
  170. order_count: {
  171. pay: 0,
  172. sell: 0,
  173. success: 0,
  174. cancel: 0,
  175. },
  176. withdrawAmount: 0, // 提现金额
  177. feeObj: {
  178. usdt: 0,
  179. withdraw_fee_rate: 0,
  180. withdraw_min_amount: 0,
  181. },
  182. receiptAmount: 0, // 实际到账金额
  183. superiorShow: false, //上级弹窗
  184. navlist: [
  185. {
  186. text: this.$t('lang250'),
  187. icon: require('@/assets/images/index/qb.png'),
  188. url: 'assets',
  189. },
  190. {
  191. text: this.$t('lang251'),
  192. icon: require('@/assets/images/index/dd.png'),
  193. url: 'operationLog',
  194. },
  195. {
  196. text: this.$t('lang252'),
  197. icon: require('@/assets/images/index/sq.png'),
  198. url: 'myTeaFriends',
  199. },
  200. {
  201. text: this.$t('lang253'),
  202. icon: require('@/assets/images/index/sz.png'),
  203. url: 'setting',
  204. },
  205. ],
  206. fileList: [
  207. {
  208. url: '',
  209. },
  210. ],
  211. nft_list: [],
  212. statusList: [
  213. //0总览 1寄售中 2已售出 3存储中 4已赠送 5已提货
  214. {
  215. key: this.$t('lang248'),
  216. value: 0,
  217. },
  218. {
  219. key: this.$t('lang141'),
  220. value: 1,
  221. },
  222. {
  223. key: this.$t('lang221'),
  224. value: 2,
  225. },
  226. {
  227. key: this.$t('lang222'),
  228. value: 3,
  229. },
  230. {
  231. key: this.$t('lang193'),
  232. value: 4,
  233. },
  234. {
  235. key: this.$t('lang223'),
  236. value: 5,
  237. },
  238. ],
  239. chooseStatus: 0,
  240. page: 1,
  241. smallNav: [
  242. {
  243. key: this.$t('lang254'),
  244. value: 0,
  245. },
  246. {
  247. key: this.$t('lang255'),
  248. value: 1,
  249. },
  250. ],
  251. smallNavIndex: 0,
  252. radio: '',
  253. selectedFile: null, // 存储选中的文件
  254. imageUrl: null, // 存储图片预览的URL
  255. };
  256. },
  257. created() {
  258. this.init();
  259. },
  260. mounted() {
  261. // this.init();
  262. },
  263. methods: {
  264. init() {
  265. if (this.account) {
  266. this.userinfo = JSON.parse(localStorage.getItem('userinfo'));
  267. this.userinfo.addressEncrypt = this.userinfo.address.substring(0, 5) + '****' + this.userinfo.address.substring(this.userinfo.address.length - 5, this.userinfo.address.length);
  268. this.getUserInfo();
  269. this.getNftList();
  270. }
  271. },
  272. afterRead(file) {
  273. // 此时可以自行将文件上传至服务器
  274. file.status = 'uploading';
  275. file.message = '上传中...';
  276. setTimeout(() => {
  277. file.status = 'failed';
  278. file.message = '上传失败';
  279. }, 1000);
  280. },
  281. submit() {},
  282. onClick(status) {
  283. // console.log(status);
  284. if (status == 3) {
  285. this.$router.push({ name: 'storing' });
  286. } else {
  287. this.chooseStatus = status;
  288. this.page = 1;
  289. this.nft_list = [];
  290. this.getNftList();
  291. }
  292. },
  293. getNftList() {
  294. homeApi.getMyNftList({ page: this.page, type_id: this.chooseStatus }).then(res => {
  295. if (res.code == 200) {
  296. this.total = res.data.total;
  297. if (this.nft_list.length >= res.data.total) {
  298. this.page = -1; // 重置为 -1,表示没有更多数据
  299. } else {
  300. this.nft_list = [...this.nft_list, ...res.data.data];
  301. // console.log(this.nft_list.length);
  302. if (this.nft_list.length >= res.data.total) {
  303. this.page = -1; // 重置为 -1,表示没有更多数据
  304. }
  305. }
  306. } else {
  307. }
  308. });
  309. },
  310. switchovers(router) {
  311. console.log(router);
  312. if (router == '') {
  313. // window.location.href = this.userinfo.seso_url;
  314. this.superiorShow = true;
  315. } else if (router == '1') {
  316. this.$toast(this.$t('lang2'));
  317. } else {
  318. this.$router.push({ name: router });
  319. }
  320. },
  321. reckoningClick(name) {
  322. this.$router.push({ name: name });
  323. },
  324. toTeaRight(name, item) {
  325. this.$router.push({ name: name, query: { product_id: item.product_id, type_id: this.chooseStatus } });
  326. },
  327. onFileChange(event) {
  328. console.log(event.target.files[0]);
  329. this.selectedFile = event.target.files[0]; // 获取选中的文件
  330. const formData = new FormData();
  331. formData.append('file', this.selectedFile);
  332. homeApi.upload(formData).then(res => {
  333. if (res.code == 200) {
  334. this.getUserInfo();
  335. homeApi.setUserInfo({ avatar: res.data.fullurl }).then(res1 => {
  336. if (res1.code == 200) {
  337. this.getUserInfo();
  338. }
  339. });
  340. } else {
  341. }
  342. });
  343. },
  344. previewImage() {
  345. const reader = new FileReader();
  346. reader.onload = e => {
  347. this.imageUrl = e.target.result; // 设置图片预览的URL
  348. };
  349. reader.readAsDataURL(this.selectedFile); // 读取文件内容,并显示为DataURL格式的base64编码字符串
  350. },
  351. getUserInfo() {
  352. homeApi.getUserInfo({}).then(res => {
  353. if (res.code == 200) {
  354. this.userinfo = res.data;
  355. this.order_count = res.data.order_count;
  356. this.userinfo.addressEncrypt = this.userinfo.address.substring(0, 5) + '****' + this.userinfo.address.substring(this.userinfo.address.length - 5, this.userinfo.address.length);
  357. }
  358. });
  359. },
  360. handleScroll(event) {
  361. const container = event.target;
  362. const scrollTop = container.scrollTop; // 滚动距离
  363. const scrollHeight = container.scrollHeight; // 内容总高度
  364. const clientHeight = container.clientHeight; // 可视区域高度
  365. // 判断是否滑动到底部
  366. if (scrollTop + clientHeight >= scrollHeight - 10) {
  367. // console.log(this.page);
  368. // console.log('到底部');
  369. if (this.page != -1) {
  370. this.page++; // 页数加 1
  371. this.getNftList(); // 触发加载更多
  372. }
  373. }
  374. },
  375. copy() {
  376. if (this.userinfo.address) {
  377. var clipboard = new Clipboard('.copys');
  378. clipboard.on('success', e => {
  379. this.$toast(this.$t('lang45'));
  380. clipboard.destroy(); // 释放内存
  381. });
  382. clipboard.on('error', e => {
  383. this.$toast(this.$t('lang46'));
  384. clipboard.destroy(); // 释放内存
  385. });
  386. }
  387. },
  388. navigatorTo(router) {
  389. if (this.$route.name == router) return;
  390. if (router != '') {
  391. this.$router.push({ name: router });
  392. } else {
  393. this.$toast(this.$t('lang2'));
  394. }
  395. },
  396. },
  397. computed: {
  398. ...mapState(['account']),
  399. },
  400. watch: {
  401. account() {
  402. this.init();
  403. },
  404. withdrawAmount(e) {
  405. // this.receiptAmount = 0;
  406. this.receiptAmount = Number(e) - Number(e) * Number(this.feeObj.withdraw_fee_rate);
  407. },
  408. },
  409. components: {
  410. Superior,
  411. BottomNavigation,
  412. },
  413. };
  414. </script>
  415. <style lang="less" scoped>
  416. .mine {
  417. height: 100vh;
  418. overflow: scroll;
  419. .banner {
  420. // display: flex;
  421. // justify-content: space-between;
  422. background: linear-gradient(to bottom right, #29b286, #dae9fd);
  423. padding: 30px 16px 30px;
  424. .block_1 {
  425. position: relative;
  426. box-shadow: 0px 0px 29px 0px rgba(97, 142, 184, 0.19);
  427. // background-color: rgba(169, 191, 245, 1);
  428. border-radius: 50%;
  429. width: 68px;
  430. height: 68px;
  431. // border: 3px solid rgba(#b6b3b3, 1);
  432. margin-right: 14px;
  433. overflow: hidden;
  434. .avatar {
  435. width: 100%;
  436. height: 100%;
  437. background-color: #fff;
  438. // /deep/ .van-uploader__preview,
  439. // /deep/.van-image,
  440. // /deep/.van-uploader__wrapper,
  441. // /deep/.van-uploader__upload {
  442. // width: 68px !important;
  443. // height: 68px !important;
  444. // margin: 0;
  445. // }
  446. // /deep/ .van-uploader__upload,
  447. // /deep/ .van-image__error,
  448. // /deep/ .van-image__loading {
  449. // background-color: rgba(#000, 0) !important;
  450. // }
  451. }
  452. .upload {
  453. width: 68px;
  454. height: 68px;
  455. left: 0;
  456. pointer-events: auto;
  457. position: absolute;
  458. opacity: 0;
  459. }
  460. }
  461. .copys {
  462. width: 16px;
  463. height: 16px;
  464. margin-left: 4px;
  465. }
  466. .lang {
  467. position: absolute;
  468. right: 14px;
  469. top: 14px;
  470. color: #373737;
  471. font-size: 10px;
  472. align-items: center;
  473. &_img {
  474. width: 20px;
  475. margin-bottom: 2px;
  476. }
  477. }
  478. .grade {
  479. display: flex;
  480. align-items: center;
  481. font-size: 14px;
  482. color: #fff;
  483. .grade_img {
  484. display: block;
  485. width: 7px;
  486. height: 12px;
  487. }
  488. }
  489. .text_1 {
  490. color: rgb(0, 0, 0);
  491. font-size: 16px;
  492. font-weight: normal;
  493. padding: 8px 0 0;
  494. }
  495. .text_2 {
  496. color: rgba(#000, 0.6);
  497. font-size: 13px;
  498. padding-top: 3px;
  499. }
  500. .text_3 {
  501. color: rgba(#000, 0.6);
  502. font-size: 13px;
  503. margin-top: 3px;
  504. }
  505. .level1 {
  506. color: #8b4513 !important;
  507. border-radius: 6px;
  508. padding: 2px 6px;
  509. background-color: #000;
  510. }
  511. .level2 {
  512. color: silver !important;
  513. border-radius: 10px;
  514. padding: 2px 6px;
  515. background-color: #000;
  516. }
  517. .level3 {
  518. color: gold !important;
  519. border-radius: 10px;
  520. padding: 2px 6px;
  521. background-color: #000;
  522. }
  523. .level4 {
  524. color: #00a733 !important;
  525. border-radius: 10px;
  526. padding: 2px 6px;
  527. background-color: #000;
  528. }
  529. .level5 {
  530. // font-weight: bold;
  531. color: rgb(132, 43, 248) !important;
  532. border-radius: 10px;
  533. padding: 2px 6px;
  534. background-color: #000;
  535. // position: relative;
  536. // overflow: hidden;
  537. // display: inline-block;
  538. }
  539. // .level5::after {
  540. // content: '';
  541. // position: absolute;
  542. // top: 0;
  543. // left: -100%;
  544. // width: 100%;
  545. // height: 100%;
  546. // background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  547. // transform: skewX(-30deg);
  548. // animation: mirrorSlide 2s infinite linear;
  549. // }
  550. // @keyframes mirrorSlide {
  551. // 0% {
  552. // left: -100%;
  553. // }
  554. // 100% {
  555. // left: 100%;
  556. // }
  557. // }
  558. .text-wrapper_1 {
  559. font-size: 11px;
  560. line-height: 100%;
  561. padding: 5px 10px;
  562. background-color: rgba(246, 162, 15, 1);
  563. border-radius: 6px;
  564. margin: 6px;
  565. }
  566. .text-wrapper_2 {
  567. font-size: 11px;
  568. line-height: 100%;
  569. padding: 5px 10px;
  570. background-color: #7938cf;
  571. border-radius: 6px;
  572. margin: 6px;
  573. }
  574. }
  575. .flex-col {
  576. display: flex;
  577. flex-direction: column;
  578. }
  579. .flex-ac {
  580. align-items: center;
  581. justify-content: center;
  582. }
  583. .flex-row {
  584. display: flex;
  585. align-items: center;
  586. }
  587. .jsb {
  588. justify-content: space-between;
  589. }
  590. .content {
  591. padding: 16px;
  592. color: #000;
  593. margin: 8px 0;
  594. background-color: #fff;
  595. .navbox {
  596. // border-radius: 12px;
  597. align-items: flex-start;
  598. &_item {
  599. width: 25%;
  600. color: #000;
  601. font-size: 13px;
  602. font-weight: 550;
  603. text-align: center;
  604. flex-direction: column;
  605. img {
  606. width: 30px;
  607. height: 30px;
  608. margin-bottom: 6px;
  609. }
  610. }
  611. }
  612. .balance_box {
  613. display: flex;
  614. align-items: center;
  615. justify-content: space-between;
  616. .balance_li {
  617. color: #fff;
  618. display: flex;
  619. flex-direction: column;
  620. width: 48%;
  621. font-size: 14px;
  622. padding: 14px;
  623. box-shadow: 4px 4px 15px 0px rgba(180, 212, 212, 0.29);
  624. border-radius: 6px;
  625. background: linear-gradient(to bottom right, #29b286, #30d5a0);
  626. .left {
  627. display: flex;
  628. flex-direction: column;
  629. }
  630. .icon1 {
  631. width: 16px;
  632. height: 16px;
  633. margin-right: 4px;
  634. }
  635. .icon2 {
  636. width: 16px;
  637. height: 14px;
  638. margin-right: 4px;
  639. }
  640. .right {
  641. display: flex;
  642. align-items: center;
  643. color: rgba(#fff, 0.6);
  644. font-size: 13px;
  645. margin-top: 6px;
  646. }
  647. .btn {
  648. color: #7938cf;
  649. font-size: 12px;
  650. padding: 4px 8px;
  651. border-radius: 3px;
  652. margin-left: 8px;
  653. background-color: rgba(48, 70, 212, 0.1);
  654. }
  655. .amount {
  656. font-size: 16px;
  657. }
  658. }
  659. .balance_li:last-child {
  660. background: linear-gradient(to bottom right, #14bcc6, #28d3de);
  661. }
  662. }
  663. .order {
  664. font-size: 13px;
  665. color: rgba(153, 153, 153, 1);
  666. border-radius: 16px;
  667. padding: 16px;
  668. box-shadow: 4px 4px 15px 0px rgba(180, 212, 212, 0.59);
  669. margin-top: 16px;
  670. background-color: rgba(255, 255, 255, 1);
  671. .top {
  672. display: flex;
  673. align-items: center;
  674. justify-content: space-between;
  675. padding-bottom: 16px;
  676. border-bottom: 1px solid rgba(232, 240, 247, 1);
  677. .order_text1 {
  678. font-size: 16px;
  679. color: rgba(0, 0, 0, 1);
  680. font-weight: 600;
  681. }
  682. .order_text2 {
  683. font-size: 12px;
  684. }
  685. }
  686. .bottom {
  687. padding-top: 16px;
  688. justify-content: space-between;
  689. .item {
  690. align-items: center;
  691. text-align: center;
  692. .num {
  693. color: rgba(#000, 0.75);
  694. font-size: 16px;
  695. font-weight: 650;
  696. padding-bottom: 4px;
  697. }
  698. }
  699. }
  700. }
  701. .list {
  702. margin-top: 16px;
  703. padding: 0 20px;
  704. border-radius: 10px;
  705. background-color: rgba(255, 255, 255, 1);
  706. .li {
  707. display: flex;
  708. align-items: center;
  709. justify-content: space-between;
  710. font-size: 14px;
  711. color: rgb(36, 36, 36);
  712. padding: 24px 0;
  713. // margin-bottom: 10px;
  714. border-top: 1px solid rgba(232, 240, 247, 1);
  715. // box-shadow: 4px 4px 15px 0px rgba(180, 212, 212, 0.29);
  716. .li_left {
  717. display: flex;
  718. align-items: center;
  719. .imgbox {
  720. width: 20px;
  721. height: 20px;
  722. margin-right: 12px;
  723. }
  724. .li_img {
  725. width: 20px;
  726. height: 20px;
  727. }
  728. }
  729. .right {
  730. width: 7px;
  731. height: 12px;
  732. }
  733. }
  734. }
  735. }
  736. .list_box {
  737. padding: 14px;
  738. background-color: #fff;
  739. .small_nav {
  740. font-size: 13px;
  741. padding: 2px;
  742. border-radius: 20px;
  743. background-color: #f5f5f5;
  744. &_item {
  745. color: #8b8b8b;
  746. display: block;
  747. text-align: center;
  748. min-width: 70px;
  749. padding: 2px 6px;
  750. margin: 1px;
  751. border-radius: 20px;
  752. overflow: hidden; //超出的文本隐藏
  753. text-overflow: ellipsis; //溢出用省略号显示
  754. white-space: nowrap; //溢出不换行
  755. }
  756. }
  757. .nav_active {
  758. color: #29b286;
  759. background-color: #fff !important;
  760. }
  761. .record {
  762. color: #000;
  763. padding: 0 16px 100px;
  764. flex-wrap: wrap;
  765. &_item {
  766. width: 46%;
  767. padding: 16px 0 0;
  768. img {
  769. width: 140px;
  770. height: 140px;
  771. border-radius: 10px;
  772. }
  773. &_name {
  774. font-size: 15px;
  775. font-weight: 600;
  776. padding: 8px 0 4px;
  777. height: 32px;
  778. overflow: hidden; //超出的文本隐藏
  779. text-overflow: ellipsis; //溢出用省略号显示
  780. white-space: nowrap; //溢出不换行
  781. }
  782. &_count {
  783. color: #999999;
  784. font-size: 12px;
  785. }
  786. }
  787. }
  788. .bare {
  789. text-align: center;
  790. font-size: 14px;
  791. padding: 60px 14px 60px;
  792. color: #aaa;
  793. background-color: #fff;
  794. }
  795. }
  796. .withdrawPopup {
  797. padding: 20px 30px;
  798. color: #666666;
  799. font-size: 14px;
  800. .title {
  801. display: flex;
  802. justify-content: center;
  803. padding-bottom: 20px;
  804. font-weight: bold;
  805. font-size: 16px;
  806. color: #000000;
  807. }
  808. .tip {
  809. font-size: 12px;
  810. display: flex;
  811. flex-direction: column;
  812. }
  813. .btn {
  814. color: #fff;
  815. padding: 16px 0;
  816. text-align: center;
  817. line-height: 50%;
  818. border-radius: 20px;
  819. margin-top: 18px;
  820. background-color: #7938cf;
  821. }
  822. .close—icon {
  823. position: absolute;
  824. bottom: -40px;
  825. left: 45%;
  826. }
  827. }
  828. }
  829. /deep/ .van-popup {
  830. overflow-y: visible;
  831. }
  832. /deep/ .van-field {
  833. background-color: #f2f9f9;
  834. border-radius: 8px;
  835. margin: 6px 0;
  836. }
  837. /deep/ .van-field__body {
  838. padding: 10px 10px;
  839. }
  840. /deep/ .van-radio__label {
  841. font-size: 13px;
  842. padding-right: 10px;
  843. }
  844. </style>