assets.vue 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921
  1. <template>
  2. <div class="assets">
  3. <div class="head">
  4. <img @click="back" src="@/assets/images/back.png" class="arrow_img" />
  5. <span>{{ $t('lang36') }}</span>
  6. </div>
  7. <div class="navbar">
  8. <span v-for="(item, index) in navList" :key="index" @click="changeNav(item, index)" :style="{ color: navIndex == index ? '#000' : '' }">{{ item.key }}</span>
  9. </div>
  10. <div class="pd" v-show="navIndex == 0">
  11. <div class="">
  12. <div class="total_box">
  13. <div>
  14. <span class="text">{{ $t('lang80') }}({{ $t('lang174') }})</span>
  15. </div>
  16. <div class="total">
  17. <span>{{ Math.floor(assets * 100) / 100 || 0 }}</span>
  18. </div>
  19. <div class="buy" @click="navigation('recharge')">
  20. <van-button class="buy_btn" type="primary">{{ $t('lang81') }}</van-button>
  21. </div>
  22. </div>
  23. <div class="bare" v-if="coinList.length <= 0">
  24. <span>{{ $t('lang82') }}</span>
  25. </div>
  26. <div v-else>
  27. <div class="list">
  28. <div v-for="(item, index) in coinList" :key="index" class="li" @click="navigatorToPage('assetDetails', { coin_type: item.coin_key, coin_name: item.coin_name } )">
  29. <div class="li_left">
  30. <!-- <div class="imgbox">
  31. <img :src="require('@/assets/images/wallet/' + item.coin_key + '.png')" class="li_img" />
  32. </div> -->
  33. <span class="title">{{ item.coin_name }}</span>
  34. </div>
  35. <div class="box">
  36. <div class="box_item">
  37. <span class="key">{{ $t('lang83') }}</span>
  38. <span class="num">{{ item.amount || 0 }}</span>
  39. </div>
  40. <div class="box_item">
  41. <span class="key">{{ $t('lang84') }}</span>
  42. <span class="num">{{ item.frozen_amount || 0 }}</span>
  43. </div>
  44. <!-- <div class="box_item">
  45. <span class="key">{{ $t('lang85') }}(CNY)</span>
  46. <span class="num">{{ Math.floor(item.amount * Number(item.convert_rate) * 100) / 100 || 0 }}</span>
  47. </div> -->
  48. </div>
  49. </div>
  50. </div>
  51. </div>
  52. </div>
  53. </div>
  54. <div class="" v-show="navIndex == 1">
  55. <div class="pd1 goods_box" @scroll="handleScroll" v-if="nft_list.length > 0">
  56. <div class="goods_list jsb" v-for="(item, index) in nft_list" :key="index">
  57. <div class="tags1 tags2" v-if="item.type_id == 2 && item.status != 2 && item.status != 3">{{ $t('lang194') }}</div>
  58. <div class="tags" v-if="item.status == 2">{{ $t('lang141') }}</div>
  59. <div class="tags1" v-if="item.status == 3">{{ $t('lang142') }}</div>
  60. <van-image class="goods_list_img" radius="10" :src="item.img_url.split(',')[0]" />
  61. <div class="right" style="flex: 2">
  62. <span class="title">{{ item.name }}</span>
  63. <div class="green">{{ item.title }}</div>
  64. <div class="cen">
  65. <span class="money"
  66. >{{ item.price }}<span class="ssm">{{ $t('lang174') }}</span></span
  67. >
  68. </div>
  69. <div class="f-sa" v-if="item.status <= 1">
  70. <div class="buy" @click="pickup(item)">
  71. <van-button class="buy_btn btn1" type="primary">{{ $t('lang86') }}</van-button>
  72. </div>
  73. <div class="buy" @click="transfer(item)">
  74. <van-button class="buy_btn" type="primary">{{ $t('lang49') }}</van-button>
  75. </div>
  76. <div class="buy" @click="give(item)">
  77. <van-button class="buy_btn btn1" type="primary">{{ $t('lang186') }}</van-button>
  78. </div>
  79. </div>
  80. <div class="f-sa buy1" v-if="item.status == 3">
  81. <div class="buy buy1">
  82. <van-button class="buy_btn btn1 btn4" type="primary" @click="viewlogi(item)">{{ $t('lang143') }}</van-button>
  83. </div>
  84. </div>
  85. <div class="f-sa buy1" v-else>
  86. <div class="buy">
  87. <van-button class="buy_btn btn3" type="primary" v-if="item.status == 2" @click="cancel(item)">{{ $t('lang144') }}</van-button>
  88. <van-button class="buy_btn btn3" type="primary" v-if="item.status == 4">{{ $t('lang145') }}</van-button>
  89. <van-button class="buy_btn btn3" type="primary" v-if="item.status == 5">{{ $t('lang192') }}</van-button>
  90. </div>
  91. </div>
  92. </div>
  93. </div>
  94. </div>
  95. <div class="bare" v-if="nft_list.length <= 0">
  96. <span>{{ $t('lang82') }}</span>
  97. </div>
  98. </div>
  99. <!-- 转让 -->
  100. <van-popup v-model="transferPopop" round position="bottom">
  101. <!-- <van-cascader v-model="cascaderValue" title="请选择所在地区" :options="options" @close="cascaderShow = false" @finish="onFinish" /> -->
  102. <div class="area">
  103. <div class="title">{{ $t('lang88') }}</div>
  104. <!-- <van-list v-model="loading" :finished="finished" finished-text="没有更多了" @load="onLoad" class="vanlist">
  105. <van-cell class="item" v-for="item in arealist" :key="item.id" :title="item.address" />
  106. </van-list> -->
  107. <div class="box">
  108. <div class="f-r">
  109. <span> {{ $t('lang89') }} </span>
  110. <div class="d">
  111. <van-field v-model="price" :placeholder="$t('lang93')" class="input" />
  112. <span class="s">{{ $t('lang174') }}</span>
  113. </div>
  114. </div>
  115. <div class="f-r">
  116. <span> {{ $t('lang90') }} </span>
  117. <span class="s">{{ Math.floor(price * Number(transfes_fee) * 100) / 100 }} {{ $t('lang174') }}</span>
  118. </div>
  119. <div class="f-s">
  120. <span> {{ $t('lang91') }} </span>
  121. <span class="s">{{ transfes_txt }}</span>
  122. </div>
  123. </div>
  124. <div class="submit">
  125. <van-button class="submit_btn" type="primary" @click="submit">{{ $t('lang71') }}</van-button>
  126. </div>
  127. </div>
  128. </van-popup>
  129. <!-- 提货 -->
  130. <van-popup v-model="addresPopop" round position="bottom">
  131. <div class="area">
  132. <div class="title">{{ $t('lang157') }}</div>
  133. <van-address-edit :area-list="areaList" show-search-result :save-button-text="$t('lang111')" :area-columns-placeholder="[]" @save="onSave" />
  134. </div>
  135. </van-popup>
  136. <!-- 赠送 -->
  137. <van-popup v-model="givePopop" round position="bottom">
  138. <div class="area">
  139. <div class="title">{{ $t('lang187') }}</div>
  140. <div class="box">
  141. <div class="f-s">
  142. <span class="k"> {{ $t('lang191') }} </span>
  143. <div class="d" style="flex: 1">
  144. <van-field v-model="giveAddress" type="textarea" autosize rows="1" :placeholder="$t('lang188')" class="input1" />
  145. </div>
  146. </div>
  147. <div class="f-r">
  148. <span> {{ $t('lang190') }} </span>
  149. <span class="s">{{ Math.floor(item.price * Number(giveaway) * 100) / 100 }} {{ $t('lang174') }}</span>
  150. </div>
  151. <div class="f-s">
  152. <span> {{ $t('lang91') }} </span>
  153. <span class="s">{{ giveaway_txt }}</span>
  154. </div>
  155. </div>
  156. <div class="submit">
  157. <van-button class="submit_btn" type="primary" @click="giveSubmit">{{ $t('lang71') }}</van-button>
  158. </div>
  159. </div>
  160. </van-popup>
  161. </div>
  162. </template>
  163. <script>
  164. import { homeApi } from '@/api/index';
  165. import { dateFormat } from '@/utils/formatTool.js';
  166. import { areaList } from '@vant/area-data';
  167. import { Dialog, Notify, Toast } from 'vant';
  168. export default {
  169. data() {
  170. return {
  171. loading: false,
  172. finished: false,
  173. total: 1,
  174. assets: 0,
  175. coinList: [],
  176. showPopover: false,
  177. actionType: -1, //-1:全部 0:未知 1:租赁 2:直推奖励 3:团队的算力奖励 4:团队的平级算力奖励
  178. navIndex: 0,
  179. navList: [
  180. {
  181. key: this.$t('lang134'),
  182. value: 0,
  183. },
  184. {
  185. key: this.$t('lang185'),
  186. value: 1,
  187. },
  188. ],
  189. nft_list: [],
  190. transferPopop: false,
  191. givePopop: false,
  192. price: '', // 转让金额
  193. areaList: areaList,
  194. searchResult: [],
  195. addresPopop: false,
  196. page: 1,
  197. item: {},
  198. transfes_fee: 0, //转让费率
  199. transfes_txt: '', //转让手续费说明
  200. giveAddress: '', //赠送接收人钱包地址
  201. giveaway: 0, //赠送手续费率
  202. giveaway_txt: '', //赠送手续费说明
  203. };
  204. },
  205. mounted() {
  206. this.actionGet();
  207. this.getNftList();
  208. },
  209. methods: {
  210. statusFn(status) {
  211. let result = '';
  212. switch (status) {
  213. case 0:
  214. result = this.$t('lang154');
  215. break;
  216. case 1:
  217. result = this.$t('lang155');
  218. break;
  219. case 2:
  220. result = this.$t('lang141');
  221. break;
  222. case 3:
  223. result = this.$t('lang156');
  224. break;
  225. case 4:
  226. result = this.$t('lang145');
  227. break;
  228. case 5:
  229. result = this.$t('lang192');
  230. break;
  231. default:
  232. break;
  233. }
  234. return result;
  235. },
  236. //返回上一页
  237. back() {
  238. this.$router.back();
  239. },
  240. navigatorToPage(name, query) {
  241. this.$router.push({ name, query });
  242. },
  243. navigation(name) {
  244. this.$router.push({ name });
  245. },
  246. changeNav(item, index) {
  247. this.navIndex = index;
  248. },
  249. dateFormatFn(date) {
  250. return dateFormat(new Date(date * 1000), 'yyyy-MM-dd hh:mm:ss');
  251. },
  252. getNftList() {
  253. homeApi.getNftList({ page: this.page }).then(res => {
  254. if (res.code == 200) {
  255. this.total = res.data.total;
  256. if (this.nft_list.length >= res.data.total) {
  257. this.page = -1; // 重置为 -1,表示没有更多数据
  258. } else {
  259. this.nft_list = [...this.nft_list, ...res.data.data];
  260. console.log(this.nft_list.length);
  261. if (this.nft_list.length >= res.data.total) {
  262. this.page = -1; // 重置为 -1,表示没有更多数据
  263. }
  264. }
  265. } else {
  266. }
  267. });
  268. },
  269. actionGet() {
  270. homeApi.assets().then(res => {
  271. if (res.code == 200) {
  272. this.assets = res.data.assets;
  273. this.transfes_txt = res.data.transfes_txt;
  274. this.transfes_fee = res.data.transfes_fee;
  275. this.giveaway = res.data.giveaway;
  276. this.giveaway_txt = res.data.giveaway_txt;
  277. this.coinList = res.data.coin_list;
  278. }
  279. });
  280. },
  281. // 提货
  282. pickup(item) {
  283. this.item = item;
  284. this.addresPopop = true;
  285. },
  286. onSave(e) {
  287. // this.$toast('save');
  288. homeApi.pickupOrder({ order_id: this.item.order_id, name: e.name, phone: e.tel, address: e.province + ' ' + e.city + ' ' + e.county + ' ' + e.addressDetail }).then(res => {
  289. if (res.code == 200) {
  290. this.addresPopop = false;
  291. this.page = 1;
  292. this.nft_list = [];
  293. this.getNftList();
  294. Notify({ type: 'success', message: this.$t('lang152') });
  295. } else {
  296. this.$toast(res.msg);
  297. }
  298. });
  299. },
  300. // 转让
  301. transfer(item) {
  302. this.transferPopop = true;
  303. this.item = item;
  304. },
  305. submit() {
  306. if (!this.price) {
  307. return this.$toast(this.$t('lang153'));
  308. }
  309. homeApi.transfer({ order_id: this.item.order_id, price: this.price }).then(res => {
  310. if (res.code == 200) {
  311. this.transferPopop = false;
  312. this.page = 1;
  313. this.nft_list = [];
  314. this.getNftList();
  315. Notify({ type: 'success', message: this.$t('lang152') });
  316. } else if (res.code == 15000) {
  317. setTimeout(() => {
  318. this.$router.push('recharge');
  319. }, 300);
  320. } else {
  321. this.$toast(res.msg);
  322. }
  323. });
  324. },
  325. // 赠送
  326. give(item) {
  327. this.givePopop = true;
  328. this.item = item;
  329. },
  330. giveSubmit() {
  331. if (!this.giveAddress) {
  332. return this.$toast(this.$t('lang188'));
  333. }
  334. homeApi.giveaway({ order_id: this.item.order_id, address: this.giveAddress }).then(res => {
  335. if (res.code == 200) {
  336. this.givePopop = false;
  337. this.page = 1;
  338. this.nft_list = [];
  339. this.getNftList();
  340. Notify({ type: 'success', message: this.$t('lang152') });
  341. } else if (res.code == 15000) {
  342. setTimeout(() => {
  343. this.$router.push('recharge');
  344. }, 300);
  345. } else {
  346. this.$toast(res.msg);
  347. }
  348. });
  349. },
  350. // 取消转让
  351. cancel(item) {
  352. let _this = this;
  353. Dialog.confirm({
  354. title: _this.$t('lang136'),
  355. message: _this.$t('lang151'),
  356. confirmButtonText: _this.$t('lang111'),
  357. cancelButtonText: _this.$t('lang135'),
  358. })
  359. .then(() => {
  360. // this.loading = true;
  361. console.log(1111111, item.order_id);
  362. homeApi.cancel({ order_id: item.order_id }).then(res => {
  363. if (res.code == 200) {
  364. _this.page = 1;
  365. _this.nft_list = [];
  366. _this.getNftList();
  367. Notify({ type: 'success', message: _this.$t('lang150') });
  368. } else {
  369. _this.$toast(res.msg);
  370. }
  371. });
  372. })
  373. .catch(() => {
  374. // on cancel
  375. });
  376. },
  377. // getProductAddres() {
  378. // homeApi.getProductAddres({ product_id: id, search: this.search }).then(res => {
  379. // if (res.code == 200) {
  380. // this.arealist = res.data;
  381. // } else {
  382. // }
  383. // });
  384. // },
  385. handleScroll(event) {
  386. const container = event.target;
  387. const scrollTop = container.scrollTop; // 滚动距离
  388. const scrollHeight = container.scrollHeight; // 内容总高度
  389. const clientHeight = container.clientHeight; // 可视区域高度
  390. // 判断是否滑动到底部
  391. if (scrollTop + clientHeight >= scrollHeight - 10) {
  392. console.log(this.page);
  393. if (this.page != -1) {
  394. this.page++; // 页数加 1
  395. this.getNftList(); // 触发加载更多
  396. }
  397. }
  398. },
  399. viewlogi(item) {
  400. homeApi.getTracking({ order_id: item.order_id }).then(res => {
  401. if (res.code == 200) {
  402. console.log();
  403. window.open('https://www.kuaidi100.com/chaxun?nu=' + res.data, '_blank');
  404. } else {
  405. this.$toast(res.msg);
  406. }
  407. });
  408. },
  409. },
  410. };
  411. </script>
  412. <style lang="less" scoped>
  413. .head {
  414. position: fixed;
  415. top: 0;
  416. left: 0;
  417. width: 100%;
  418. display: flex;
  419. align-items: center;
  420. justify-content: center;
  421. color: rgba(#000, 0.8);
  422. letter-spacing: 1.2px;
  423. font-weight: 550;
  424. background: #fff;
  425. padding: 14px 0;
  426. z-index: 999;
  427. .arrow_img {
  428. position: absolute;
  429. left: 20px;
  430. width: 10px;
  431. height: 16px;
  432. // transform: translate(0, -50%);
  433. }
  434. }
  435. .f-sb {
  436. display: flex;
  437. align-items: center;
  438. justify-content: space-between;
  439. }
  440. .f-sa {
  441. display: flex;
  442. align-items: center;
  443. justify-content: space-around;
  444. }
  445. .f-sb-n {
  446. display: flex;
  447. align-items: flex-end;
  448. justify-content: space-between;
  449. }
  450. .f-col {
  451. display: flex;
  452. flex-direction: column;
  453. }
  454. .f-r {
  455. display: flex;
  456. align-items: center;
  457. }
  458. .f-s {
  459. display: flex;
  460. align-items: flex-start;
  461. }
  462. .assets {
  463. min-height: 100vh;
  464. padding: 50px 0 0;
  465. // background-color: #fafbfc;
  466. .top {
  467. color: #000;
  468. padding-bottom: 16px;
  469. margin: 0 6px;
  470. }
  471. .navbar {
  472. color: #000;
  473. height: 50px;
  474. display: flex;
  475. align-items: center;
  476. justify-content: space-between;
  477. background-color: #fff;
  478. span {
  479. color: #aaaaaa;
  480. width: 50%;
  481. font-size: 14px;
  482. text-align: center;
  483. line-height: 50px;
  484. }
  485. }
  486. .pd {
  487. min-height: 100vh;
  488. padding: 4px;
  489. margin-top: 4px;
  490. background-color: #fff;
  491. }
  492. .total_box {
  493. position: relative;
  494. display: flex;
  495. align-items: center;
  496. flex-direction: column;
  497. justify-content: center;
  498. // position: relative;
  499. font-size: 12px;
  500. color: #fff;
  501. height: 140px;
  502. // border-radius: 16px;
  503. padding: 20px 20px 40px;
  504. box-sizing: border-box;
  505. border-radius: 10px;
  506. margin: 10px;
  507. background: linear-gradient(to right, #1ab986, #25d7bb);
  508. .total {
  509. font-size: 28px;
  510. text-align: center;
  511. padding-top: 10px;
  512. }
  513. .text {
  514. color: rgba(#fff, 0.8);
  515. }
  516. .buy {
  517. position: absolute;
  518. right: 14px;
  519. bottom: 14px;
  520. &_btn {
  521. color: #29b286;
  522. height: 30px;
  523. line-height: 30px;
  524. font-size: 14px;
  525. background-color: #ffffff;
  526. border: none;
  527. padding: 0 16px;
  528. white-space: nowrap;
  529. border-radius: 30px;
  530. }
  531. }
  532. }
  533. .balance_box {
  534. display: flex;
  535. align-items: center;
  536. justify-content: space-between;
  537. padding-top: 16px;
  538. margin: 0 6px;
  539. border-radius: 20px;
  540. background-color: #ffffff;
  541. box-shadow: 4px 4px 15px 0px rgba(180, 212, 212, 0.29);
  542. .balance_li {
  543. color: #510fa8;
  544. display: flex;
  545. align-items: center;
  546. flex-direction: column;
  547. width: 48%;
  548. font-size: 13px;
  549. border-radius: 16px;
  550. padding: 16px 0;
  551. // box-shadow: 4px 4px 15px 0px rgba(180, 212, 212, 0.59);
  552. // background-color: rgba(255, 255, 255, 0.3);
  553. .icon {
  554. width: 20px;
  555. height: 20px;
  556. margin-bottom: 10px;
  557. }
  558. }
  559. }
  560. .bare {
  561. text-align: center;
  562. font-size: 14px;
  563. padding: 60px 14px;
  564. color: #aaa;
  565. }
  566. .list {
  567. border-radius: 20px;
  568. padding: 0 8px;
  569. margin-top: 16px;
  570. background-color: #fff;
  571. margin: 16px 6px;
  572. .li {
  573. // display: flex;
  574. // align-items: center;
  575. // justify-content: space-between;
  576. font-size: 14px;
  577. color: rgba(51, 51, 51, 1);
  578. padding: 14px 0;
  579. .li_left {
  580. // display: flex;
  581. // align-items: center;
  582. .imgbox {
  583. width: 40px;
  584. height: 40px;
  585. border-radius: 15px;
  586. background-color: #f1f1f1;
  587. display: flex;
  588. align-items: center;
  589. justify-content: center;
  590. margin-right: 6px;
  591. }
  592. .li_img {
  593. display: block;
  594. width: 32px;
  595. height: 32px;
  596. border-radius: 50%;
  597. }
  598. .title {
  599. color: #29b286;
  600. font-size: 14px;
  601. font-weight: bold;
  602. }
  603. }
  604. .box {
  605. padding-top: 10px;
  606. display: flex;
  607. align-items: center;
  608. justify-content: space-between;
  609. &_item {
  610. width: 33%;
  611. display: flex;
  612. flex-direction: column;
  613. .key {
  614. color: #aaa;
  615. font-size: 12px;
  616. }
  617. .num {
  618. font-size: 14px;
  619. color: #000;
  620. padding-top: 2px;
  621. }
  622. }
  623. .box_item:last-child {
  624. text-align: right;
  625. }
  626. }
  627. }
  628. }
  629. .goods_box {
  630. // margin: 14px;
  631. height: 100vh;
  632. overflow: auto;
  633. border-radius: 14px;
  634. .good_icon {
  635. width: 16px;
  636. height: 16px;
  637. margin-right: 5px;
  638. }
  639. }
  640. .pd1 {
  641. padding: 14px;
  642. }
  643. .goods_list {
  644. position: relative;
  645. display: flex;
  646. // align-items: center;
  647. // justify-content: space-between;
  648. color: #000;
  649. padding: 14px;
  650. border-radius: 6px;
  651. // box-shadow: 0 4px 16px 0 rgba(53, 73, 93, 0.15);
  652. margin-bottom: 16px;
  653. // box-shadow: 4px 4px 15px 0px rgba(180, 212, 212, 0.29);
  654. background-color: #fff;
  655. // background-image: linear-gradient(90deg, rgba(217, 239, 239, 0.3) 0, rgba(217, 239, 239, 0.3) 0, rgba(225, 240, 242, 0.3) 100%, rgba(225, 240, 242, 0.3) 100%);
  656. .tags {
  657. position: absolute;
  658. left: 0;
  659. top: 0;
  660. font-size: 10px;
  661. color: #fff;
  662. padding: 4px 14px;
  663. z-index: 99;
  664. background-color: #29b2b0;
  665. border-radius: 6px 0 6px 0;
  666. }
  667. .tags1 {
  668. position: absolute;
  669. left: 0;
  670. top: 0;
  671. font-size: 10px;
  672. color: #fff;
  673. padding: 4px 14px;
  674. z-index: 99;
  675. background-color: #f4ab1e;
  676. border-radius: 6px 0 6px 0;
  677. }
  678. .tags2 {
  679. background-color: #1e8df4;
  680. }
  681. &_img {
  682. width: 105px;
  683. height: 105px;
  684. border-radius: 10px;
  685. margin-right: 10px;
  686. }
  687. .right {
  688. width: calc(100% - 115px);
  689. display: flex;
  690. flex-direction: column;
  691. justify-content: space-between;
  692. font-size: 13px;
  693. box-sizing: border-box;
  694. padding: 6px 0;
  695. .title {
  696. width: 100%;
  697. overflow: hidden; /* 确保超出容器的文本被裁剪 */
  698. white-space: nowrap; /* 确保文本在一行内显示 */
  699. text-overflow: ellipsis; /* 使用省略号表示文本超出 */
  700. }
  701. .time_text {
  702. color: #7f7f7f;
  703. font-weight: normal;
  704. font-size: 10px;
  705. text-decoration: line-through;
  706. }
  707. .cen {
  708. color: #000;
  709. font-size: 12px;
  710. }
  711. .money {
  712. font-size: 15px;
  713. }
  714. .ssm {
  715. font-size: 10px;
  716. font-weight: normal;
  717. }
  718. .mon_t {
  719. color: #3d3d3d;
  720. font-weight: normal;
  721. }
  722. .yel {
  723. background-color: #f9f6e5;
  724. font-weight: normal;
  725. margin-left: 8px;
  726. padding: 0px 8px;
  727. border-radius: 16px;
  728. white-space: nowrap;
  729. .count {
  730. color: #f7c35d;
  731. font-size: 9px;
  732. }
  733. }
  734. .green {
  735. width: fit-content;
  736. color: #29b286;
  737. background-color: #ddf2e7;
  738. font-size: 10px;
  739. font-weight: normal;
  740. padding: 2px 6px;
  741. border-radius: 6px;
  742. }
  743. .t2 {
  744. text-decoration: none;
  745. }
  746. }
  747. .buy {
  748. display: flex;
  749. align-items: flex-end;
  750. justify-content: flex-end;
  751. &_btn {
  752. height: 32px;
  753. width: 66px;
  754. text-align: center;
  755. line-height: 32px;
  756. font-size: 12px;
  757. border: none;
  758. // padding: 0 20px;
  759. white-space: nowrap;
  760. border-radius: 30px;
  761. box-sizing: border-box;
  762. // padding: 0 10px;
  763. // overflow: hidden; /* 确保超出容器的文本被裁剪 */
  764. // white-space: nowrap; /* 确保文本在一行内显示 */
  765. // text-overflow: ellipsis; /* 使用省略号表示文本超出 */
  766. border: 1px solid #29b286;
  767. background-color: #29b286;
  768. }
  769. .btn1 {
  770. color: #29b286;
  771. background-color: #fff;
  772. }
  773. .btn3 {
  774. width: 86px;
  775. color: #b9b9b9;
  776. padding: 0 20px;
  777. border: 1px solid #b9b9b9;
  778. background-color: #fff;
  779. }
  780. .btn4 {
  781. width: 96px;
  782. }
  783. }
  784. .buy1 {
  785. justify-content: flex-end;
  786. }
  787. }
  788. .area {
  789. color: #363636;
  790. font-size: 13px;
  791. padding: 20px 30px;
  792. width: 100%;
  793. box-sizing: border-box;
  794. position: relative;
  795. .title {
  796. color: #000;
  797. font-size: 15px;
  798. text-align: center;
  799. font-weight: bold;
  800. // padding: 0 0 14px;
  801. }
  802. .vanlist {
  803. max-height: 350px;
  804. overflow: auto;
  805. box-sizing: border-box;
  806. margin: 20px 0;
  807. border: none !important;
  808. .item {
  809. padding: 12px 0 !important;
  810. border-bottom: 0.5px solid rgba(190, 190, 190, 0.15);
  811. }
  812. }
  813. .box {
  814. margin: 20px 0;
  815. .f-r,
  816. .f-s {
  817. padding: 6px 0;
  818. }
  819. .f-r span:first-child,
  820. .f-s span:first-child {
  821. padding-right: 8px;
  822. }
  823. .d {
  824. display: flex;
  825. align-items: flex-end;
  826. }
  827. .input {
  828. // width: 100%;
  829. // border: 1px solid #29b286;
  830. // border-radius: 20px;
  831. width: 150px;
  832. border-bottom: 0.5px solid rgba(27, 27, 27, 0.15);
  833. }
  834. .k {
  835. padding-top: 6px;
  836. }
  837. .input1 {
  838. width: 100%;
  839. border-bottom: 0.5px solid rgba(27, 27, 27, 0.15);
  840. // ::v-deep .van-field__body,
  841. // ::v-deep .van-field__control {
  842. // height: 32px !important;
  843. // }
  844. }
  845. .van-cell {
  846. padding: 0 !important;
  847. }
  848. .s {
  849. font-size: 11px;
  850. color: #999999;
  851. width: 70%;
  852. }
  853. }
  854. .submit {
  855. width: 100%;
  856. // position: fixed;
  857. bottom: 30px;
  858. box-sizing: border-box;
  859. &_btn {
  860. width: 100%;
  861. height: 40px;
  862. line-height: 40px;
  863. font-size: 14px;
  864. background-color: #29b286;
  865. border: none;
  866. white-space: nowrap;
  867. border-radius: 30px;
  868. }
  869. }
  870. ::v-deep .van-field__control {
  871. padding: 0 12px 0;
  872. font-size: 12px;
  873. }
  874. ::v-deep .van-hairline--top-bottom::after,
  875. ::v-deep.van-hairline-unset--top-bottom::after {
  876. border: none;
  877. }
  878. }
  879. }
  880. ::v-deep .van-cell {
  881. padding: 10px 0 !important;
  882. }
  883. ::v-deep .van-button--danger {
  884. background-color: #29b286;
  885. border-color: #29b286;
  886. }
  887. ::v-deep .van-address-edit {
  888. padding: 10px 0;
  889. }
  890. ::v-deep .van-ellipsis {
  891. font-size: 10px !important;
  892. }
  893. ::v-deep .van-overlay {
  894. background-color: rgba(#000, 0.3);
  895. }
  896. ::v-deep van-hairline-unset--top-bottom,
  897. ::v-deep .van-picker__frame {
  898. border: 1px solid #fff !important;
  899. }
  900. </style>