index.vue 22 KB

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