detail.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827
  1. <template>
  2. <div class="product-detail-page">
  3. <!-- 顶部返回按钮 -->
  4. <!-- <van-nav-bar title="NFTCHA-全球首个NFT茶交易平台" left-arrow @click-left="goBack" /> -->
  5. <div class="back" @click="goBack">
  6. <van-icon name="arrow-left" size="22" />
  7. </div>
  8. <!-- 商品图片轮播 -->
  9. <van-swipe class="product-swiper" autoplay="3000" indicator-color="#fff">
  10. <van-swipe-item class="swipe-item" v-for="(image, index) in product.info.img_url" :key="index">
  11. <!-- <img :src="image" alt="商品图片" /> -->
  12. <van-image class="product-image" style="width: 100%; height: 100%" radius="0" :src="image" />
  13. </van-swipe-item>
  14. </van-swipe>
  15. <!-- 商品信息 -->
  16. <div class="product-info">
  17. <div class="product-price-stock">
  18. <div class="left">
  19. <div class="price">
  20. <span>{{ product.info.price }}</span>
  21. <!-- <span class="small">{{ $t('lang174') }}</span> -->
  22. <svg width="12" height="22" viewBox="35 -20 50 96" xmlns="http://www.w3.org/2000/svg">
  23. <path
  24. d="M70,35
  25. C56,28 38,40 40,54
  26. C40,64 50,74 70,66"
  27. fill="none"
  28. stroke="#e7e7e7"
  29. stroke-width="6"
  30. stroke-linecap="round"
  31. />
  32. <line x1="52" y1="29" x2="52" y2="73" stroke="#e7e7e7" stroke-width="5.2" stroke-linecap="round" />
  33. <line x1="63" y1="29" x2="63" y2="73" stroke="#e7e7e7" stroke-width="5.2" stroke-linecap="round" />
  34. </svg>
  35. <span class="small">
  36. <span style="margin-right: -5px">{{ product.info.cost_price }}</span>
  37. <svg width="16" height="19" viewBox="40 -22 50 96" xmlns="http://www.w3.org/2000/svg">
  38. <path
  39. d="M70,35
  40. C56,28 38,40 40,54
  41. C40,64 50,74 70,66"
  42. fill="none"
  43. stroke="#e7e7e7"
  44. stroke-width="6"
  45. stroke-linecap="round"
  46. />
  47. <line x1="52" y1="29" x2="52" y2="73" stroke="#e7e7e7" stroke-width="5.2" stroke-linecap="round" />
  48. <line x1="63" y1="29" x2="63" y2="73" stroke="#e7e7e7" stroke-width="5.2" stroke-linecap="round" />
  49. </svg>
  50. </span>
  51. </div>
  52. <div class="tags">
  53. <van-tag class="tag" type="info">{{ $t('lang53') }}</van-tag>
  54. <span>{{ product.info.num }}{{ $t('lang52') }}</span>
  55. </div>
  56. </div>
  57. <div class="countdown" v-if="product.info.start_time * 1000 - new Date().getTime() <= 0 && product.info.end_time * 1000 - new Date().getTime() > 0">
  58. <div class="flex">
  59. <img src="@/assets/images/trade/clock.png" alt="" class="clock" />
  60. <span style="white-space: nowrap">{{ $t('lang54') }}</span>
  61. </div>
  62. <van-count-down class="count" :time="product.info.end_time * 1000 - new Date().getTime()">
  63. <template #default="timeData">
  64. <span class="block">{{ timeData.days }}</span>
  65. <span class="colon">{{ $t('lang9') }}</span>
  66. <span class="block">{{ timeData.hours }}</span>
  67. <span class="colon">{{ $t('lang10') }}</span>
  68. <span class="block">{{ timeData.seconds }}</span>
  69. <span class="colon">{{ $t('lang12') }}</span>
  70. </template>
  71. </van-count-down>
  72. </div>
  73. <div class="countdown end" v-else-if="product.info.start_time * 1000 - new Date().getTime() > 0">{{ $t('lang72') }}</div>
  74. <div class="countdown end" v-else-if="product.info.end_time * 1000 - new Date().getTime() <= 0">{{ $t('lang173') }}</div>
  75. </div>
  76. <div class="goods_info">
  77. <div class="flex jsb">
  78. <span class="title">{{ product.info.name }}</span>
  79. <span class="red">{{ $t('lang55') }}{{ (product.info.stock - product.info.num < 0 ? 0 : product.info.stock - product.info.num) || 0 }}{{ $t('lang7') }}</span>
  80. </div>
  81. <div class="tag">{{ $t('lang56') }}</div>
  82. </div>
  83. </div>
  84. <!-- 期数 -->
  85. <div class="issue">
  86. <div v-for="(item, index) in product.times" :key="index" :class="[item.status == 1 ? 'item current' : 'item']">
  87. <div class="flex jsb">
  88. <span>{{ item.title }}</span>
  89. <span> {{ item.start_time_text.split(' ')[0] }}~{{ item.end_time_text.split(' ')[0] }} </span>
  90. <span class="red flex">
  91. <svg width="12" height="22" viewBox="35 2 50 96" xmlns="http://www.w3.org/2000/svg">
  92. <path
  93. d="M70,35
  94. C56,28 38,40 40,54
  95. C40,64 50,74 70,66"
  96. fill="none"
  97. stroke="red"
  98. stroke-width="6"
  99. stroke-linecap="round"
  100. />
  101. <line x1="52" y1="29" x2="52" y2="73" stroke="red" stroke-width="5.2" stroke-linecap="round" />
  102. <line x1="63" y1="29" x2="63" y2="73" stroke="red" stroke-width="5.2" stroke-linecap="round" />
  103. </svg>
  104. {{ item.price }}
  105. </span>
  106. <span class="tag">{{ statusFn(item.status) }}</span>
  107. </div>
  108. <van-icon name="ellipsis" size="15" color="#aaaaaa" class="ellipsis-icon" />
  109. </div>
  110. </div>
  111. <!-- tag -->
  112. <div class="zp flex jsb">
  113. <div class="flex">
  114. <img src="@/assets/images/trade/safe.png" alt="" class="safe" />
  115. <span class="t"> {{ $t('lang57') }} </span>
  116. </div>
  117. <div>
  118. <span> {{ $t('lang58') }} </span>
  119. <van-icon name="arrow" />
  120. </div>
  121. </div>
  122. <!-- 购买记录 -->
  123. <div class="purchase-record">
  124. <div class="section-title">{{ $t('lang59') }}</div>
  125. <!-- <van-cell-group>
  126. <van-cell v-for="(record, index) in purchaseRecords" :key="index" :title="maskAddress(record.address)" :label="record.timeAgo" icon="user-o" />
  127. </van-cell-group> -->
  128. <div class="list">
  129. <div class="item flex jsb" v-for="(item, index) in product.order" :key="index">
  130. <div class="flex">
  131. <!-- <img :src="item.avatar" alt="" class="avatar" /> -->
  132. <div class="avatar"></div>
  133. <span>{{ item.address.slice(0, 6) + '****' + item.address.slice(item.address.length - 6, item.address.length) }}</span>
  134. </div>
  135. <div>
  136. <span>{{ formatTimeDifference(item.create_time * 1000) }}</span>
  137. </div>
  138. </div>
  139. <div class="more" v-if="product.order.length == 0">{{ $t('lang60') }}</div>
  140. <!-- <div class="more" v-else>{{ $t('lang61') }}</div> -->
  141. </div>
  142. </div>
  143. <!-- 商品详情 -->
  144. <div class="product-details">
  145. <div class="section-title">{{ $t('lang62') }}</div>
  146. </div>
  147. <!-- 宣传图片 -->
  148. <div v-html="product.info.details" class="promo-image"></div>
  149. <!-- 底部导航栏 -->
  150. <div class="bottom">
  151. <div class="flex">
  152. <div class="flex flex-c" @click="toPage('kf')">
  153. <img src="@/assets/images/trade/custom.png" alt="" class="icon" />
  154. <span>{{ $t('lang67') }}</span>
  155. </div>
  156. <div class="flex flex-c" @click="toPage('invite')">
  157. <img src="@/assets/images/trade/share.png" alt="" class="icon" />
  158. <span>{{ $t('lang68') }}</span>
  159. </div>
  160. </div>
  161. <div class="buy" v-if="product.info.is_area == 1" @click="cascaderShow = true">
  162. <van-button class="buy_btn" type="primary">{{ $t('lang27') }}</van-button>
  163. </div>
  164. <div class="buy" v-if="product.info.is_area == 0" @click="stepperShow = true">
  165. <van-button class="buy_btn" type="primary">{{ $t('lang27') }}</van-button>
  166. </div>
  167. </div>
  168. <!-- 选择数量 -->
  169. <van-popup v-model="stepperShow" round position="bottom">
  170. <div class="area">
  171. <div class="title">{{ $t('lang242') }}</div>
  172. <div class="stepper">
  173. <span>{{ $t('lang242') }}</span>
  174. <van-stepper v-model="number" min="1" />
  175. </div>
  176. <div class="submit">
  177. <van-button class="submit_btn" type="primary" @click="submitNoarea">{{ $t('lang71') }}</van-button>
  178. </div>
  179. </div>
  180. </van-popup>
  181. <!-- 地区选择 -->
  182. <van-popup v-model="cascaderShow" round position="bottom">
  183. <div class="area">
  184. <div class="title">{{ $t('lang69') }}</div>
  185. <van-field v-model="search" :placeholder="$t('lang70')" class="input" right-icon="search" @click-right-icon="handleSearch" />
  186. <van-checkbox-group v-model="areaIds" @change="handleChoose" v-if="arealist.length > 0">
  187. <van-cell-group class="vanlist" @scroll="handleScroll">
  188. <van-cell class="item" v-for="item in arealist" :key="item.id" :title="item.address" clickable>
  189. <template #right-icon>
  190. <van-checkbox :name="item.id" icon-size="16px" checked-color="#29b286" ref="checkboxes" />
  191. </template>
  192. </van-cell>
  193. </van-cell-group>
  194. </van-checkbox-group>
  195. <div class="nomore" v-else>
  196. <span>{{ $t('lang60') }}</span>
  197. </div>
  198. <div class="submit">
  199. <van-button class="submit_btn" type="primary" @click="submit">{{ $t('lang71') }}</van-button>
  200. </div>
  201. </div>
  202. </van-popup>
  203. <van-popup v-model="loading" round class="loading-popup">
  204. <div class="loading">
  205. <van-loading type="spinner" />
  206. </div>
  207. </van-popup>
  208. </div>
  209. </template>
  210. <script>
  211. import { homeApi } from '@/api/index';
  212. import { Dialog, Notify, Toast } from 'vant';
  213. export default {
  214. data() {
  215. return {
  216. product: {
  217. info: {},
  218. order: [],
  219. times: [],
  220. },
  221. time: 30 * 60 * 60 * 1000,
  222. cascaderShow: false,
  223. cascaderValue: '',
  224. currentIssue: 0,
  225. // 选项列表,children 代表子选项,支持多级嵌套
  226. options: [],
  227. arealist: [],
  228. search: '',
  229. areaIds: [],
  230. loading: false,
  231. page: 1,
  232. stepperShow: false,
  233. number: 1,
  234. };
  235. },
  236. mounted() {
  237. this.getPopularInfo(this.$route.query.id);
  238. },
  239. methods: {
  240. statusFn(status) {
  241. let result = '';
  242. switch (status) {
  243. case 0:
  244. result = this.$t('lang72');
  245. break;
  246. case 1:
  247. result = this.$t('lang73');
  248. break;
  249. case 2:
  250. result = this.$t('lang74');
  251. break;
  252. default:
  253. break;
  254. }
  255. return result;
  256. },
  257. formatTimeDifference(time) {
  258. const now = new Date();
  259. const past = new Date(time);
  260. const diff = now - past; // 时间差,单位为毫秒
  261. const seconds = Math.floor(diff / 1000);
  262. const minutes = Math.floor(seconds / 60);
  263. const hours = Math.floor(minutes / 60);
  264. const days = Math.floor(hours / 24);
  265. if (seconds < 60) {
  266. return `${seconds}${this.$t('lang75')}`;
  267. } else if (minutes < 60) {
  268. return `${minutes}${this.$t('lang76')}`;
  269. } else if (hours < 24) {
  270. return `${hours}${this.$t('lang77')}`;
  271. } else {
  272. return `${days}${this.$t('lang78')}`;
  273. }
  274. },
  275. goBack() {
  276. this.$router.back();
  277. },
  278. toPage(name) {
  279. this.$router.push({ name });
  280. },
  281. getPopularInfo(id) {
  282. homeApi.getPopularInfo({ ids: id, product_id: this.$route.query.product_id }).then(res => {
  283. if (res.code == 200) {
  284. this.product = res.data;
  285. this.product.info.img_url = res.data.info.img_url.split(',');
  286. this.getProductAddres();
  287. } else {
  288. }
  289. });
  290. },
  291. maskAddress(address) {
  292. return address.replace(/(\w{4})\w*(\w{4})/, '$1****$2');
  293. },
  294. onFinish({ selectedOptions }) {
  295. this.cascaderShow = false;
  296. },
  297. onClose(e) {},
  298. onChange(e) {},
  299. handleScroll(event) {
  300. const container = event.target;
  301. const scrollTop = container.scrollTop; // 滚动距离
  302. const scrollHeight = container.scrollHeight; // 内容总高度
  303. const clientHeight = container.clientHeight; // 可视区域高度
  304. // 判断是否滑动到底部
  305. if (scrollTop + clientHeight >= scrollHeight - 10) {
  306. // console.log('到底了');
  307. if (this.page != -1) {
  308. this.page++; // 页数加 1
  309. this.getProductAddres(); // 触发加载更多
  310. }
  311. }
  312. },
  313. handleSearch() {
  314. this.page = 1; // 重置为 1,表示重新查询
  315. this.arealist = []; // 重置列表
  316. this.getProductAddres();
  317. },
  318. getProductAddres() {
  319. homeApi.getProductAddres({ product_id: this.product.info.product_id, search: this.search, page: this.page }).then(res => {
  320. if (res.code == 200) {
  321. if (this.arealist.length >= res.data.total) {
  322. this.page = -1; // 重置为 -1,表示没有更多数据
  323. } else {
  324. this.arealist = [...this.arealist, ...res.data.data];
  325. console.log(this.arealist.length);
  326. if (this.arealist.length >= res.data.total) {
  327. this.page = -1; // 重置为 -1,表示没有更多数据
  328. }
  329. }
  330. } else {
  331. }
  332. });
  333. },
  334. handleChoose(e) {
  335. console.log(e);
  336. this.areaIds = e;
  337. },
  338. // 无关联地区的
  339. submitNoarea() {
  340. if (this.number <= 0) {
  341. return Notify({ type: 'warning', message: this.$t('lang69') });
  342. }
  343. let _this = this;
  344. Dialog.confirm({
  345. title: this.$t('lang136'),
  346. message: this.$t('lang137'),
  347. confirmButtonText: _this.$t('lang111'),
  348. cancelButtonText: _this.$t('lang135'),
  349. })
  350. .then(() => {
  351. _this.loading = true;
  352. homeApi.create({ type: 2, order_id: _this.product.info.id, product_id: _this.product.info.product_id, num: _this.number }).then(res => {
  353. if (res.code == 200) {
  354. _this.loading = false;
  355. _this.cascaderShow = false;
  356. _this.areaIds = [];
  357. Toast({ message: res.msg });
  358. _this.$router.push('mine');
  359. } else if (res.code == 15001) {
  360. _this.loading = false;
  361. setTimeout(() => {
  362. _this.$router.push('recharge');
  363. }, 300);
  364. } else {
  365. _this.loading = false;
  366. }
  367. });
  368. })
  369. .catch(() => {
  370. // on cancel
  371. });
  372. },
  373. // 有关联地区的
  374. submit() {
  375. if (this.areaIds.length <= 0) {
  376. return Notify({ type: 'warning', message: this.$t('lang69') });
  377. }
  378. let _this = this;
  379. Dialog.confirm({
  380. title: this.$t('lang136'),
  381. message: this.$t('lang137'),
  382. confirmButtonText: _this.$t('lang111'),
  383. cancelButtonText: _this.$t('lang135'),
  384. })
  385. .then(() => {
  386. this.loading = true;
  387. homeApi.create({ type: 1, order_id: _this.product.info.id, product_id: _this.product.info.product_id, area_id: _this.areaIds.join(',') }).then(res => {
  388. if (res.code == 200) {
  389. _this.loading = false;
  390. _this.cascaderShow = false;
  391. _this.areaIds = [];
  392. Toast({ message: res.msg });
  393. _this.$router.push('mine');
  394. } else if (res.code == 15001) {
  395. _this.loading = false;
  396. setTimeout(() => {
  397. _this.$router.push('recharge');
  398. }, 300);
  399. } else {
  400. _this.loading = false;
  401. }
  402. });
  403. })
  404. .catch(() => {
  405. // on cancel
  406. });
  407. },
  408. },
  409. };
  410. </script>
  411. <style lang="less" scoped>
  412. .product-detail-page {
  413. // background-color: #fff;
  414. padding-bottom: 100px;
  415. }
  416. .product-swiper {
  417. height: 250px;
  418. width: 100vw;
  419. }
  420. .product-image {
  421. width: 100%;
  422. height: 100%;
  423. }
  424. .product-info {
  425. .product-price-stock {
  426. display: flex;
  427. justify-content: space-between;
  428. align-items: center;
  429. padding: 6px 14px;
  430. background: linear-gradient(to right, #1ab986, #25d7bb);
  431. .left {
  432. flex: 1;
  433. padding-right: 10px;
  434. .price {
  435. font-size: 22px;
  436. color: #fff;
  437. .small {
  438. color: #e7e7e7;
  439. font-size: 12px;
  440. padding-right: 6px;
  441. }
  442. .small:last-child {
  443. text-decoration: line-through;
  444. }
  445. }
  446. .tags {
  447. display: flex;
  448. align-items: center;
  449. justify-content: space-between;
  450. font-size: 11px;
  451. color: #f8f8f8;
  452. text-align: right;
  453. margin-top: 6px;
  454. .tag {
  455. white-space: nowrap;
  456. color: #1ab986;
  457. font-size: 11px;
  458. border-radius: 4px;
  459. background-color: #fff;
  460. }
  461. }
  462. }
  463. .end {
  464. text-align: center;
  465. line-height: 40px;
  466. }
  467. .countdown {
  468. min-width: 100px;
  469. height: 40px;
  470. font-size: 13px;
  471. border-left: 1px solid #f1f1f1;
  472. padding-left: 10px;
  473. .clock {
  474. width: 20px;
  475. height: 20px;
  476. margin-right: 4px;
  477. }
  478. .count {
  479. margin-top: 6px;
  480. }
  481. .colon {
  482. display: inline-block;
  483. margin: 0 4px;
  484. color: #fff;
  485. font-size: 11px;
  486. }
  487. .block {
  488. display: inline-block;
  489. width: 21px;
  490. color: #1ab986;
  491. font-size: 12px;
  492. text-align: center;
  493. border-radius: 4px;
  494. background-color: #fff;
  495. }
  496. }
  497. }
  498. .goods_info {
  499. padding: 8px 14px;
  500. background-color: #fff;
  501. .title {
  502. font-size: 16px;
  503. font-weight: 550;
  504. color: #3d3d3d;
  505. }
  506. .red {
  507. color: rgb(255, 48, 48);
  508. font-size: 11px;
  509. }
  510. .tag {
  511. color: #0db39a;
  512. font-size: 11px;
  513. padding-top: 8px;
  514. }
  515. }
  516. }
  517. .issue {
  518. color: #aaaaaa;
  519. font-size: 13px;
  520. padding: 16px 14px;
  521. margin: 8px 0;
  522. background-color: #ffffff;
  523. .item {
  524. .ellipsis-icon {
  525. transform: rotate(90deg);
  526. margin-left: 0.8em;
  527. }
  528. }
  529. .ssm {
  530. content: 'USDT';
  531. font-size: 8px;
  532. }
  533. .item:last-child {
  534. .ellipsis-icon {
  535. display: none;
  536. }
  537. }
  538. .tag {
  539. font-size: 12px;
  540. padding: 2px 6px;
  541. border-radius: 4px;
  542. background-color: #fff;
  543. }
  544. .current {
  545. color: #000;
  546. .red {
  547. color: rgb(255, 48, 48);
  548. }
  549. .tag {
  550. color: #29b286;
  551. background-color: #d4f0e7;
  552. }
  553. }
  554. }
  555. .zp {
  556. color: #3d3d3d;
  557. font-size: 12px;
  558. padding: 16px 14px;
  559. margin: 8px 0;
  560. background-color: #ffffff;
  561. white-space: nowrap;
  562. .safe {
  563. width: 22px;
  564. height: 22px;
  565. margin-right: 4px;
  566. }
  567. .t {
  568. font-size: 13px;
  569. white-space: wrap;
  570. }
  571. }
  572. .jsb {
  573. justify-content: space-between;
  574. }
  575. .flex {
  576. display: flex;
  577. align-items: center;
  578. }
  579. .section-title {
  580. font-size: 15px;
  581. font-weight: bold;
  582. margin-bottom: 8px;
  583. }
  584. .purchase-record {
  585. color: #3d3d3d;
  586. padding: 14px;
  587. background-color: #fff;
  588. .list {
  589. max-height: 200px;
  590. overflow: scroll;
  591. .item {
  592. font-size: 12px;
  593. padding-top: 14px;
  594. .avatar {
  595. width: 28px;
  596. height: 28px;
  597. border-radius: 50%;
  598. margin-right: 4px;
  599. background: linear-gradient(to bottom right, #29b286, #30d5a0);
  600. }
  601. }
  602. }
  603. .more {
  604. text-align: center;
  605. font-size: 12px;
  606. color: #aaaaaa;
  607. padding-top: 20px;
  608. }
  609. }
  610. .product-details {
  611. color: #3d3d3d;
  612. font-size: 12px;
  613. padding: 16px 14px;
  614. margin: 8px 0 0;
  615. background-color: #ffffff;
  616. .box {
  617. color: #aaaaaa;
  618. flex-wrap: wrap;
  619. padding: 7px 14px;
  620. border-radius: 10px;
  621. background-color: #ededed;
  622. .item {
  623. display: flex;
  624. align-items: center;
  625. width: 50%;
  626. padding: 7px 0px;
  627. .val {
  628. color: #000;
  629. width: 50%;
  630. // display: block;
  631. }
  632. }
  633. }
  634. }
  635. .ellipsis {
  636. overflow: hidden; /* 确保超出容器的文本被裁剪 */
  637. white-space: nowrap; /* 确保文本在一行内显示 */
  638. text-overflow: ellipsis; /* 使用省略号表示文本超出 */
  639. }
  640. .promo-image {
  641. width: 100%;
  642. img {
  643. width: 100% !important;
  644. }
  645. // margin-top: 14px;
  646. }
  647. .stepper {
  648. color: #000;
  649. font-size: 14px;
  650. display: flex;
  651. align-items: center;
  652. justify-content: space-between;
  653. padding: 36px 0 50px;
  654. }
  655. .van-tabbar-item {
  656. font-size: 14px;
  657. }
  658. .bottom {
  659. position: fixed;
  660. bottom: 0;
  661. left: 0;
  662. width: 100%;
  663. height: 50px;
  664. background-color: #fff;
  665. display: flex;
  666. justify-content: space-between;
  667. align-items: center;
  668. padding: 0 14px;
  669. box-sizing: border-box;
  670. .flex-c {
  671. color: #3d3d3d;
  672. font-size: 10px;
  673. flex-direction: column;
  674. margin-right: 16px;
  675. .icon {
  676. width: 22px;
  677. height: 22px;
  678. margin-bottom: 3px;
  679. }
  680. }
  681. .buy {
  682. &_btn {
  683. height: 30px;
  684. line-height: 30px;
  685. font-size: 13px;
  686. background-color: #29b286;
  687. border: none;
  688. padding: 0 16px;
  689. white-space: nowrap;
  690. border-radius: 30px;
  691. }
  692. }
  693. }
  694. .back {
  695. position: fixed;
  696. z-index: 99;
  697. top: 14px;
  698. left: 14px;
  699. box-sizing: border-box;
  700. width: 40px;
  701. height: 40px;
  702. margin: auto auto;
  703. display: flex;
  704. align-items: center;
  705. justify-content: center;
  706. border-radius: 50%;
  707. background-color: #7a777b;
  708. }
  709. .area {
  710. padding: 20px 30px;
  711. width: 100%;
  712. box-sizing: border-box;
  713. position: relative;
  714. .title {
  715. color: #000;
  716. font-size: 15px;
  717. text-align: center;
  718. font-weight: bold;
  719. padding: 0 0 14px;
  720. }
  721. .vanlist {
  722. max-height: 350px;
  723. min-height: 350px;
  724. overflow: auto;
  725. box-sizing: border-box;
  726. margin: 20px 0;
  727. border: none !important;
  728. .item {
  729. padding: 12px 0 !important;
  730. border-bottom: 0.5px solid rgba(190, 190, 190, 0.15);
  731. }
  732. }
  733. .nomore {
  734. color: #aaa;
  735. text-align: center;
  736. font-size: 12px;
  737. height: 350px;
  738. padding: 40px 0;
  739. }
  740. .submit {
  741. width: 100%;
  742. // position: fixed;
  743. bottom: 30px;
  744. box-sizing: border-box;
  745. &_btn {
  746. width: 100%;
  747. height: 40px;
  748. line-height: 40px;
  749. font-size: 14px;
  750. background-color: #29b286;
  751. border: none;
  752. white-space: nowrap;
  753. border-radius: 30px;
  754. }
  755. }
  756. .input {
  757. width: 100%;
  758. border: 1px solid #29b286;
  759. border-radius: 20px;
  760. }
  761. ::v-deep .van-field__control {
  762. padding: 6px 12px;
  763. }
  764. ::v-deep .van-icon-search {
  765. font-size: 20px;
  766. color: #29b286;
  767. font-weight: bold;
  768. margin-right: 10px;
  769. }
  770. ::v-deep .van-hairline--top-bottom::after,
  771. ::v-deep.van-hairline-unset--top-bottom::after {
  772. border: none;
  773. }
  774. }
  775. ::v-deep .van-hairline--left::after {
  776. border-left-width: 0.005px !important;
  777. }
  778. ::v-deep .van-cascader__option,
  779. ::v-deep .van-cascader__title {
  780. color: #000;
  781. }
  782. .loading {
  783. padding: 50px 60px;
  784. border: none;
  785. background-color: rgba(#353535, 1);
  786. }
  787. .loading-popup {
  788. background-color: rgba(#353535, 0);
  789. }
  790. ::v-deep .van-stepper__plus::after {
  791. font-size: 12px !important;
  792. width: 1%;
  793. height: 12px;
  794. // transform: scale(0.5);
  795. }
  796. ::v-deep .van-stepper__plus::before {
  797. // font-size: 12px !important;
  798. width: 12px;
  799. height: 2%;
  800. // transform: scale(0.5);
  801. }
  802. ::v-deep .van-stepper__minus::before {
  803. width: 12px;
  804. height: 2%;
  805. }
  806. </style>