list.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902
  1. <template>
  2. <view class="time-limit">
  3. <uv-navbar title="限时秒杀" autoBack bgColor="#fa6138" placeholder leftIconColor="#ffffff" titleStyle="color: #ffffff"></uv-navbar>
  4. <view class="top">
  5. <view class="box">
  6. <scroll-view scroll-x="true">
  7. <view
  8. class="time"
  9. v-for="(item, index) in times"
  10. :key="index"
  11. @click="switeTime(item)"
  12. >
  13. <view class="number">
  14. <!-- {{ item.st + ":00" }} -->
  15. {{ item.startHour }}
  16. </view>
  17. <view
  18. :class="item.active ? 'font' : 'font-soon'"
  19. v-if="item.value == 0"
  20. >
  21. 即将开始
  22. </view>
  23. <view
  24. :class="item.active ? 'font' : 'font-soon'"
  25. v-if="item.value == 1"
  26. >
  27. 已开抢
  28. </view>
  29. <view
  30. :class="item.active ? 'font' : 'font-soon'"
  31. v-if="item.value == 2"
  32. >
  33. 正在抢购
  34. </view>
  35. </view>
  36. </scroll-view>
  37. </view>
  38. <view class="surplus">
  39. <view class="transverse"> </view>
  40. <view class="surplus-content" v-if="activeState == 1">
  41. <view class="lable"> 本场剩余 </view>
  42. <uv-count-down
  43. :time="remainingTime"
  44. format="HH:mm:ss"
  45. ></uv-count-down>
  46. </view>
  47. <view class="surplus-content" v-if="activeState == 0">
  48. <view class="lable">即将开始</view>
  49. </view>
  50. <view class="surplus-content" v-if="activeState == 2">
  51. <view class="lable">已开抢</view>
  52. </view>
  53. <view class="transverse"> </view>
  54. </view>
  55. </view>
  56. <swiper
  57. class="commodity"
  58. :current="currentItem"
  59. v-if="goodList && goodList.length > 0"
  60. :indicator-dots="false"
  61. :autoplay="false"
  62. @change="imgActiveFun"
  63. >
  64. <swiper-item
  65. class="commodity-item"
  66. v-for="(item, key) in goodList"
  67. :key="item.id"
  68. @click="goProductDetails('/pages/seckill/seckillGoods?id=' + item.id)"
  69. >
  70. <view
  71. :class="[activeBannerIndex == key ? 'active-back' : 'swiper-back']"
  72. >
  73. <!-- ?x-oss-process=style/w_350 -->
  74. <image
  75. :class="[
  76. activeBannerIndex == key ? 'current-item' : 'default-image',
  77. ]"
  78. :src="`${item.coverImage}`"
  79. mode=""
  80. >
  81. </image>
  82. <view class="bottom-back">
  83. <view
  84. :class="[
  85. activeBannerIndex == key ? 'active-name' : 'name',
  86. 'u-text2',
  87. ]"
  88. >
  89. {{ item.title }}
  90. </view>
  91. <view class="content-number">
  92. <view class="large">
  93. <rich-text
  94. :nodes="$mUtil.priceBigSmall(item.minPrice)"
  95. ></rich-text>
  96. </view>
  97. <view class="small">
  98. <rich-text
  99. :nodes="$mUtil.priceBigSmall(item.minSalePrice)"
  100. ></rich-text>
  101. </view>
  102. </view>
  103. <view class="soon">
  104. <view class="soon-item">
  105. <view
  106. class="orange"
  107. :style="{ width: (15.3 * item.rate) / 10 + 'rpx' }"
  108. >
  109. </view>
  110. </view>
  111. <view class="complete"> 已抢{{ item.rate }}% </view>
  112. </view>
  113. </view>
  114. </view>
  115. </swiper-item>
  116. </swiper>
  117. <view class="option" v-if="goodList && goodList.length > 0">
  118. <!-- <view class="option-item active">
  119. </view> -->
  120. <view
  121. class="option-item"
  122. :class="{ active: activeBannerIndex == index }"
  123. v-for="(item, index) in goodList"
  124. :key="index"
  125. >
  126. </view>
  127. </view>
  128. <view class="list">
  129. <view v-if="goodList.length > 0">
  130. <view
  131. class="item"
  132. v-for="(item, index) in goodList"
  133. :key="index"
  134. @click="goProductDetails('/pages/seckill/seckillGoods?id=' + item.id)"
  135. >
  136. <view class="item-left">
  137. <!-- ?x-oss-process=style/w_350 -->
  138. <image :src="`${item.coverImage}`" mode=""></image>
  139. </view>
  140. <view class="item-right">
  141. <view class="title">
  142. {{ item.title }}
  143. </view>
  144. <view class="list-soon">
  145. <view class="soon-item">
  146. <view
  147. class="orange"
  148. :style="{ width: (15.3 * item.rate) / 10 + 'rpx' }"
  149. >
  150. </view>
  151. </view>
  152. <view class="complete"> 已抢{{ item.rate }}% </view>
  153. </view>
  154. <view class="list-bottom">
  155. <view class="number">
  156. <view class="large">
  157. <rich-text
  158. :nodes="$mUtil.priceBigSmall(item.minPrice)"
  159. ></rich-text>
  160. </view>
  161. <view class="small">
  162. <rich-text
  163. :nodes="$mUtil.priceBigSmall(item.minSalePrice)"
  164. ></rich-text>
  165. </view>
  166. </view>
  167. <view class="no-button" v-if="activeState == 0">即将开始</view>
  168. <view class="no-button" v-if="activeState == 2">已结束 </view>
  169. <view class="button" v-if="activeState == 1 && ispay"
  170. >立即抢购
  171. </view>
  172. </view>
  173. </view>
  174. </view>
  175. <loadMore v-if="goodList.length > 0" :status="status"></loadMore>
  176. </view>
  177. <noData v-else :config="{ top: 20, content: '暂无商品~' }"></noData>
  178. </view>
  179. </view>
  180. </template>
  181. <script setup>
  182. import { ref, onMounted } from "vue";
  183. import {
  184. onShow,
  185. onPullDownRefresh,
  186. onReachBottom,
  187. onLoad,
  188. } from "@dcloudio/uni-app";
  189. import {
  190. seckillTimeConfigList_Api,
  191. seckillActivityProductStartFlashSale_Api,
  192. } from "@/api/seckill.js";
  193. const loading = ref(true);
  194. const page = ref(1);
  195. const limit = ref(10);
  196. const activeState = ref(null);
  197. const times = ref([]);
  198. const curTime = ref(null);
  199. const goodList = ref([]);
  200. const httpCurTime = ref(null);
  201. const status = ref("more");
  202. const activeBannerIndex = ref(0);
  203. const params = ref({});
  204. const endTime = ref(null);
  205. const ispay = ref(getApp().globalData.openPay);
  206. const currentItem = ref(0);
  207. const remainingTime = ref(0);
  208. // 切换时间
  209. const switeTime = (item) => {
  210. let stHour = item.startHour.split(":")[0];
  211. let etHour = item.endHour.split(":")[0];
  212. httpCurTime.value = item.startHour;
  213. if (etHour == "23") {
  214. endTime.value = "23:59";
  215. } else {
  216. endTime.value = item.endHour;
  217. }
  218. times.value.forEach((val) => {
  219. val.active = false;
  220. });
  221. item.active = true;
  222. goodList.value = [];
  223. page.value = 1;
  224. getList();
  225. };
  226. const goProductDetails = (url) => {
  227. if (activeState.value == 1) {
  228. uni.navigateTo({
  229. url: url,
  230. });
  231. } else if (activeState.value == 0) {
  232. uni.$uv.toast("该活动还未开始");
  233. } else {
  234. uni.$uv.toast("该活动已结束");
  235. }
  236. };
  237. const imgActiveFun = (e) => {
  238. activeBannerIndex.value = e.detail.current;
  239. // console.log(currentItem.value);
  240. // console.log(e.detail.current);
  241. };
  242. const getTime = async () => {
  243. curTime.value = new Date().getHours();
  244. await seckillTimeConfigList_Api().then((res) => {
  245. if (res.code == 200) {
  246. // times.value = res.data || [];
  247. if (res.data && res.data.length > 0) {
  248. times.value = res.data.map((val, index) => {
  249. let stHour = val.startHour.split(":")[0];
  250. let etHour = val.endHour.split(":")[0];
  251. // 活动正在进行中
  252. if (stHour <= curTime.value && curTime.value < etHour) {
  253. val.value = 2;
  254. httpCurTime.value = val.startHour;
  255. endTime.value = val.endHour;
  256. val.active = true;
  257. } else if (curTime.value < etHour) {
  258. // 活动即将开始
  259. val.value = 0;
  260. if (httpCurTime.value == null) {
  261. httpCurTime.value = val.startHour;
  262. endTime.value = val.endHour;
  263. val.active = true;
  264. }
  265. } else {
  266. val.value = 1;
  267. }
  268. return val;
  269. });
  270. }
  271. }
  272. });
  273. getList();
  274. };
  275. const getList = () => {
  276. loading.value = false;
  277. let objs = {
  278. startHour: httpCurTime.value,
  279. endHour: endTime.value,
  280. limit: limit.value,
  281. ...params.value,
  282. };
  283. seckillActivityProductStartFlashSale_Api(objs).then((res) => {
  284. if (res && res.code == 200) {
  285. activeState.value = res.data.activeState;
  286. remainingTime.value = res.data.finishTime - res.data.nowTime;
  287. goodList.value = goodList.value.concat(res.data.pageList?.rows || []);
  288. if (res.data.pageList?.total <= goodList.value.length) {
  289. status.value = "noMore";
  290. } else {
  291. status.value = "more";
  292. }
  293. }
  294. });
  295. };
  296. // 生命周期
  297. onLoad((options) => {
  298. if (options.businessId) {
  299. params.value.businessId = options.businessId;
  300. }
  301. getTime();
  302. });
  303. onShow(() => {
  304. // this.goodList=[];
  305. // this.getTime();
  306. });
  307. // 下拉刷新
  308. onPullDownRefresh(() => {
  309. page.value = 1;
  310. goodList.value = [];
  311. times.value.forEach((item) => {
  312. item.active = false;
  313. });
  314. getTime();
  315. uni.stopPullDownRefresh();
  316. });
  317. // 上拉加载
  318. onReachBottom(() => {
  319. if (status.value != "noMore") {
  320. page.value++;
  321. getList();
  322. }
  323. });
  324. </script>
  325. <style>
  326. page {
  327. background-color: #f5f5f5;
  328. }
  329. </style>
  330. <style lang="scss" scoped>
  331. .no-button {
  332. color: #1e402e;
  333. font-size: 28rpx;
  334. font-weight: 500;
  335. padding: 12rpx 34rpx;
  336. border: 2rpx solid #1e402e;
  337. background-color: #ffffff;
  338. border-radius: 32rpx;
  339. }
  340. .bottom-back {
  341. background-color: #ffffff;
  342. border-bottom-left-radius: 18rpx;
  343. border-bottom-right-radius: 18rpx;
  344. display: flex;
  345. flex-direction: column;
  346. position: absolute;
  347. z-index: -1;
  348. bottom: 30rpx;
  349. padding-top: 20rpx;
  350. .soon {
  351. padding: 0 20rpx;
  352. display: flex;
  353. margin-bottom: 6rpx;
  354. align-items: center;
  355. .soon-item {
  356. width: 153rpx;
  357. height: 10rpx;
  358. border-radius: 6rpx;
  359. border: 2rpx solid #fa6138;
  360. margin-right: 10rpx;
  361. .orange {
  362. width: 50rpx;
  363. height: 10rpx;
  364. border-radius: 5rpx;
  365. background-color: #fa6138;
  366. }
  367. }
  368. .complete {
  369. font-size: 20rpx;
  370. color: #fa6138;
  371. line-height: 24rpx;
  372. font-weight: 500;
  373. }
  374. }
  375. .name {
  376. padding: 0 20rpx 0 10rpx;
  377. // margin: 20rpx 0 0 10rpx;
  378. width: 380rpx;
  379. box-sizing: border-box;
  380. line-height: 36rpx;
  381. height: 72rpx;
  382. color: #181818;
  383. font-weight: 400;
  384. overflow: hidden;
  385. // text-overflow: ellipsis;
  386. }
  387. .active-name {
  388. padding: 0 20rpx 0 10rpx;
  389. // margin: 20rpx 0 0 10rpx;
  390. width: 420rpx;
  391. box-sizing: border-box;
  392. line-height: 36rpx;
  393. height: 72rpx;
  394. color: #181818;
  395. font-weight: 400;
  396. overflow: hidden;
  397. transition: all 0.5s;
  398. }
  399. .content-number {
  400. padding: 0 20rpx;
  401. display: flex;
  402. align-items: center;
  403. margin: 15rpx 0;
  404. .large {
  405. font-size: 36rpx;
  406. color: #fa6138;
  407. font-weight: bold;
  408. text {
  409. font-size: 36rpx;
  410. }
  411. }
  412. .small {
  413. font-size: 22rpx;
  414. color: #cccccc;
  415. font-weight: 500;
  416. margin-left: 16rpx;
  417. text-decoration: line-through;
  418. }
  419. }
  420. }
  421. .commodity {
  422. margin-top: -139rpx;
  423. width: 720rpx;
  424. // padding: 0 30rpx;
  425. // margin-left: 30rpx;
  426. // margin-right: 30rpx;
  427. height: 650rpx;
  428. margin-left: 30rpx;
  429. overflow: hidden;
  430. ::v-deep swiper-item {
  431. width: 450rpx !important;
  432. }
  433. ::v-deep .uni-swiper-slide-frame {
  434. width: 420rpx !important;
  435. }
  436. .commodity-item {
  437. //background-color: #FFFFFF;
  438. // margin-right: 30rpx;
  439. border-radius: 16rpx;
  440. // padding: 18rpx;
  441. padding-top: 0;
  442. // text-align: center;
  443. display: flex;
  444. flex-direction: column;
  445. align-items: center;
  446. .swiper-back {
  447. border-radius: 16rpx;
  448. overflow: hidden;
  449. // background-color: #FFFFFF;
  450. width: 380rpx;
  451. // padding-top: 40rpx;
  452. height: 610rpx;
  453. margin-top: 40rpx;
  454. }
  455. .active-back {
  456. // padding-top: 0;
  457. // background-color: #FFFFFF;
  458. width: 420rpx;
  459. height: 650rpx;
  460. border-radius: 16rpx;
  461. position: relative;
  462. transition: all 0.5s;
  463. }
  464. .default-image {
  465. width: 380rpx;
  466. height: 380rpx;
  467. border-radius: 16rpx;
  468. position: relative;
  469. }
  470. .current-item {
  471. width: 420rpx;
  472. height: 420rpx;
  473. border-radius: 16rpx;
  474. transition: all 0.5s;
  475. }
  476. .completed {
  477. font-size: 22rpx;
  478. margin-top: 2rpx;
  479. font-weight: 400;
  480. color: #333333;
  481. text {
  482. color: #fa6138;
  483. }
  484. }
  485. .number {
  486. margin-top: 20rpx;
  487. font-size: 22rpx;
  488. color: #333333;
  489. font-weight: 500;
  490. display: flex;
  491. align-items: center;
  492. .zero {
  493. margin-left: 20rpx;
  494. font-size: 22rpx;
  495. color: #fa6138;
  496. font-weight: 500;
  497. }
  498. .one {
  499. color: #fa6138;
  500. font-size: 34rpx;
  501. font-weight: 700;
  502. }
  503. .two {
  504. color: #fa6138;
  505. font-size: 18rpx;
  506. font-weight: 700;
  507. }
  508. }
  509. }
  510. }
  511. .option {
  512. margin: 30rpx 0;
  513. display: flex;
  514. justify-content: center;
  515. .option-item {
  516. background-color: #d9d9d9;
  517. margin: 0 8rpx;
  518. width: 14rpx;
  519. height: 14rpx;
  520. border-radius: 7rpx;
  521. }
  522. .active {
  523. background-color: #fa6138;
  524. width: 35rpx;
  525. height: 14rpx;
  526. border-radius: 7rpx;
  527. }
  528. }
  529. .list {
  530. margin: 0 30rpx 26rpx 30rpx;
  531. .item {
  532. padding: 20rpx;
  533. background-color: #ffffff;
  534. border-radius: 18rpx;
  535. display: flex;
  536. margin-bottom: 25rpx;
  537. .item-left {
  538. image {
  539. width: 187rpx;
  540. height: 187rpx;
  541. border-radius: 18rpx;
  542. }
  543. }
  544. .item-right {
  545. margin-left: 30rpx;
  546. flex: 1;
  547. display: flex;
  548. flex-direction: column;
  549. justify-content: space-between;
  550. .title {
  551. font-size: 28rpx;
  552. font-weight: 400;
  553. color: #181818;
  554. overflow: hidden;
  555. text-overflow: ellipsis;
  556. display: -webkit-box;
  557. -webkit-line-clamp: 2;
  558. -webkit-box-orient: vertical;
  559. word-wrap: break-word;
  560. word-break: break-all;
  561. white-space: normal !important;
  562. }
  563. .list-bottom {
  564. display: flex;
  565. align-items: center;
  566. justify-content: space-between;
  567. .number {
  568. display: flex;
  569. align-items: center;
  570. .large {
  571. font-size: 36rpx;
  572. color: #fa6138;
  573. font-weight: Bold;
  574. margin-right: 17rpx;
  575. text {
  576. font-size: 36rpx;
  577. }
  578. }
  579. .small {
  580. font-size: 22rpx;
  581. color: #cccccc;
  582. font-weight: 500;
  583. text-decoration: line-through;
  584. }
  585. }
  586. .button {
  587. color: #ffffff;
  588. font-size: 28rpx;
  589. font-weight: 500;
  590. padding: 12rpx 34rpx;
  591. background-color: #fa6138;
  592. border-radius: 32rpx;
  593. }
  594. }
  595. .list-soon {
  596. display: flex;
  597. align-items: center;
  598. margin-top: 12rpx;
  599. .soon-item {
  600. width: 153rpx;
  601. height: 10rpx;
  602. border: 2rpx solid #fa6138;
  603. border-radius: 6rpx;
  604. margin-right: 10rpx;
  605. .orange {
  606. width: 50rpx;
  607. height: 10rpx;
  608. background-color: #fa6138;
  609. border-radius: 5rpx;
  610. }
  611. }
  612. .complete {
  613. font-size: 20rpx;
  614. color: #fa6138;
  615. font-weight: 500;
  616. }
  617. }
  618. }
  619. }
  620. }
  621. .spot {
  622. display: flex;
  623. justify-content: center;
  624. margin: 27rpx 0 40rpx 0;
  625. .spot-item {
  626. width: 35rpx;
  627. height: 14rpx;
  628. background-color: #fa6138;
  629. margin-right: 16rpx;
  630. }
  631. .radius {
  632. width: 14rpx;
  633. height: 14rpx;
  634. background-color: #d9d9d9;
  635. border-radius: 7rpx;
  636. margin-right: 16rpx;
  637. }
  638. }
  639. .two-comtent-item {
  640. margin: 0 30rpx;
  641. background-color: #ffffff;
  642. border-radius: 18rpx;
  643. .two-image {
  644. overflow: hidden;
  645. image {
  646. width: 380rpx;
  647. height: 380rpx;
  648. border-radius: 18rpx;
  649. }
  650. }
  651. .two-content-number {
  652. padding: 0 30rpx;
  653. display: flex;
  654. align-items: baseline;
  655. .two-large {
  656. font-size: 20rpx;
  657. color: #fa6138;
  658. font-weight: bold;
  659. text {
  660. font-size: 36rpx;
  661. }
  662. }
  663. .two-small {
  664. font-size: 22rpx;
  665. color: #cccccc;
  666. font-weight: 500;
  667. margin-left: 16rpx;
  668. text-decoration: line-through;
  669. }
  670. }
  671. .two-name {
  672. padding: 0 20rpx;
  673. width: 368rpx;
  674. overflow: hidden;
  675. text-overflow: ellipsis;
  676. display: -webkit-box;
  677. -webkit-line-clamp: 2;
  678. -webkit-box-orient: vertical;
  679. word-wrap: break-word;
  680. word-break: break-all;
  681. white-space: normal !important;
  682. }
  683. }
  684. .two-soon {
  685. padding: 0 30rpx;
  686. display: flex;
  687. align-items: center;
  688. .two-soon-item {
  689. width: 153rpx;
  690. height: 10rpx;
  691. border-radius: 6rpx;
  692. border: 1rpx solid #fa6138;
  693. margin-right: 10rpx;
  694. .two-orange {
  695. width: 50rpx;
  696. height: 10rpx;
  697. border-radius: 5rpx;
  698. background-color: #fa6138;
  699. }
  700. }
  701. .two-complete {
  702. font-size: 20rpx;
  703. color: #fa6138;
  704. line-height: 24rpx;
  705. font-weight: 500;
  706. }
  707. }
  708. .content {
  709. // align-items: center;
  710. // overflow: scroll;
  711. // white-space: nowrap;
  712. // height: 300rpx;
  713. // background-color: red;
  714. margin-top: -139rpx;
  715. // display: flex;
  716. margin-left: 30rpx;
  717. height: 607rpx;
  718. ::v-deep .uni-swiper-slide-frame {
  719. width: 402rpx !important;
  720. padding-right: 30rpx;
  721. }
  722. .comtent-item {
  723. margin-right: 30rpx;
  724. // padding: 0 30rpx;
  725. background-color: #ffffff;
  726. border-radius: 18rpx;
  727. // width: 420rpx;
  728. image {
  729. width: 420rpx;
  730. height: 420rpx;
  731. border-radius: 18rpx;
  732. }
  733. }
  734. }
  735. .surplus {
  736. margin-top: 43rpx;
  737. display: flex;
  738. justify-content: space-around;
  739. align-items: center;
  740. padding-bottom: 168rpx;
  741. .surplus-content {
  742. color: #ffffff;
  743. font-size: 20rpx;
  744. font-weight: 500;
  745. display: flex;
  746. align-items: center;
  747. text,
  748. &:deep(.uv-count-down__text) {
  749. color: #fa6138;
  750. padding: 1rpx 4rpx;
  751. background-color: #dccda4;
  752. border-radius: 4rpx;
  753. margin: 0 6rpx 0 14rpx;
  754. }
  755. }
  756. .lable {
  757. margin-right: 8rpx;
  758. }
  759. ::v-deep .uni-countdown__number {
  760. padding: 2rpx 8rpx;
  761. border-radius: 8rpx;
  762. }
  763. .transverse {
  764. width: 210rpx;
  765. height: 1rpx;
  766. opacity: 0.2;
  767. background-color: #ffffff;
  768. }
  769. }
  770. .top {
  771. background-color: #fa6138;
  772. .box {
  773. padding: 0 30rpx;
  774. white-space: nowrap;
  775. // display: flex;
  776. // justify-content: space-around;
  777. .time {
  778. display: inline-block;
  779. margin-right: 30rpx;
  780. text-align: center;
  781. .number {
  782. font-size: 42rpx;
  783. font-weight: 700;
  784. color: #ffffff;
  785. }
  786. .font {
  787. font-size: 22rpx;
  788. font-weight: 500;
  789. color: #053420;
  790. padding: 2rpx 12rpx;
  791. border-radius: 20rpx;
  792. background-color: #dccda4;
  793. }
  794. .font-soon {
  795. font-size: 22rpx;
  796. font-weight: 500;
  797. color: #f5f5f5;
  798. }
  799. }
  800. }
  801. }
  802. .time-limit {
  803. background-color: #f6f6f6;
  804. }
  805. </style>