teaRights.vue 27 KB

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