teaRights.vue 28 KB

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