list.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900
  1. <template>
  2. <view class="time-limit">
  3. <view class="top">
  4. <view class="box">
  5. <scroll-view scroll-x="true">
  6. <view
  7. class="time"
  8. v-for="(item, index) in times"
  9. :key="index"
  10. @click="switeTime(item)"
  11. >
  12. <view class="number">
  13. <!-- {{ item.st + ":00" }} -->
  14. {{ item.startHour }}
  15. </view>
  16. <view
  17. :class="item.active ? 'font' : 'font-soon'"
  18. v-if="item.value == 0"
  19. >
  20. 即将开始
  21. </view>
  22. <view
  23. :class="item.active ? 'font' : 'font-soon'"
  24. v-if="item.value == 1"
  25. >
  26. 已开抢
  27. </view>
  28. <view
  29. :class="item.active ? 'font' : 'font-soon'"
  30. v-if="item.value == 2"
  31. >
  32. 正在抢购
  33. </view>
  34. </view>
  35. </scroll-view>
  36. </view>
  37. <view class="surplus">
  38. <view class="transverse"> </view>
  39. <view class="surplus-content" v-if="activeState == 1">
  40. <view class="lable"> 本场剩余 </view>
  41. <uv-count-down :time="remainingTime" format="HH:mm:ss"></uv-count-down>
  42. </view>
  43. <view class="surplus-content" v-if="activeState == 0">
  44. <view class="lable">即将开始</view>
  45. </view>
  46. <view class="surplus-content" v-if="activeState == 2">
  47. <view class="lable">已开抢</view>
  48. </view>
  49. <view class="transverse"> </view>
  50. </view>
  51. </view>
  52. <swiper
  53. class="commodity"
  54. :current="currentItem"
  55. v-if="goodList && goodList.length > 0"
  56. :indicator-dots="false"
  57. :autoplay="false"
  58. @change="imgActiveFun"
  59. >
  60. <swiper-item
  61. class="commodity-item"
  62. v-for="(item, key) in goodList"
  63. :key="item.id"
  64. @click="
  65. goProductDetails('/pages/seckill/seckillGoods?id=' + item.id)
  66. "
  67. >
  68. <view
  69. :class="[activeBannerIndex == key ? 'active-back' : 'swiper-back']"
  70. >
  71. <!-- ?x-oss-process=style/w_350 -->
  72. <image
  73. :class="[
  74. activeBannerIndex == key ? 'current-item' : 'default-image',
  75. ]"
  76. :src="`${item.coverImage}`"
  77. mode=""
  78. >
  79. </image>
  80. <view class="bottom-back">
  81. <view
  82. :class="[
  83. activeBannerIndex == key ? 'active-name' : 'name',
  84. 'u-text2',
  85. ]"
  86. >
  87. {{ item.title }}
  88. </view>
  89. <view class="content-number">
  90. <view class="large">
  91. <rich-text
  92. :nodes="$mUtil.priceBigSmall(item.minPrice)"
  93. ></rich-text>
  94. </view>
  95. <view class="small">
  96. <rich-text
  97. :nodes="$mUtil.priceBigSmall(item.minSalePrice)"
  98. ></rich-text>
  99. </view>
  100. </view>
  101. <view class="soon">
  102. <view class="soon-item">
  103. <view
  104. class="orange"
  105. :style="{ width: (15.3 * item.rate) / 10 + 'rpx' }"
  106. >
  107. </view>
  108. </view>
  109. <view class="complete"> 已抢{{ item.rate }}% </view>
  110. </view>
  111. </view>
  112. </view>
  113. </swiper-item>
  114. </swiper>
  115. <view class="option" v-if="goodList && goodList.length > 0">
  116. <!-- <view class="option-item active">
  117. </view> -->
  118. <view
  119. class="option-item"
  120. :class="{ active: activeBannerIndex == index }"
  121. v-for="(item, index) in goodList"
  122. :key="index"
  123. >
  124. </view>
  125. </view>
  126. <view class="list">
  127. <view v-if="goodList.length > 0">
  128. <view
  129. class="item"
  130. v-for="(item, index) in goodList"
  131. :key="index"
  132. @click="
  133. goProductDetails('/pages/seckill/seckillGoods?id=' + item.id)
  134. "
  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. page.value++;
  320. getList();
  321. });
  322. </script>
  323. <style>
  324. page {
  325. background-color: #f5f5f5;
  326. }
  327. </style>
  328. <style lang="scss" scoped>
  329. .no-button {
  330. color: #1e402e;
  331. font-size: 28rpx;
  332. font-weight: 500;
  333. padding: 12rpx 34rpx;
  334. border: 2rpx solid #1e402e;
  335. background-color: #ffffff;
  336. border-radius: 32rpx;
  337. }
  338. .bottom-back {
  339. background-color: #ffffff;
  340. border-bottom-left-radius: 18rpx;
  341. border-bottom-right-radius: 18rpx;
  342. display: flex;
  343. flex-direction: column;
  344. position: absolute;
  345. z-index: -1;
  346. bottom: 30rpx;
  347. padding-top: 20rpx;
  348. .soon {
  349. padding: 0 20rpx;
  350. display: flex;
  351. margin-bottom: 6rpx;
  352. align-items: center;
  353. .soon-item {
  354. width: 153rpx;
  355. height: 10rpx;
  356. border-radius: 6rpx;
  357. border: 2rpx solid #00bf5a;
  358. margin-right: 10rpx;
  359. .orange {
  360. width: 50rpx;
  361. height: 10rpx;
  362. border-radius: 5rpx;
  363. background-color: #00bf5a;
  364. }
  365. }
  366. .complete {
  367. font-size: 20rpx;
  368. color: #00bf5a;
  369. line-height: 24rpx;
  370. font-weight: 500;
  371. }
  372. }
  373. .name {
  374. padding: 0 20rpx 0 10rpx;
  375. // margin: 20rpx 0 0 10rpx;
  376. width: 380rpx;
  377. box-sizing: border-box;
  378. line-height: 36rpx;
  379. height: 72rpx;
  380. color: #181818;
  381. font-weight: 400;
  382. overflow: hidden;
  383. // text-overflow: ellipsis;
  384. }
  385. .active-name {
  386. padding: 0 20rpx 0 10rpx;
  387. // margin: 20rpx 0 0 10rpx;
  388. width: 420rpx;
  389. box-sizing: border-box;
  390. line-height: 36rpx;
  391. height: 72rpx;
  392. color: #181818;
  393. font-weight: 400;
  394. overflow: hidden;
  395. transition: all 0.5s;
  396. }
  397. .content-number {
  398. padding: 0 20rpx;
  399. display: flex;
  400. align-items: center;
  401. margin: 15rpx 0;
  402. .large {
  403. font-size: 36rpx;
  404. color: #00bf5a;
  405. font-weight: bold;
  406. text {
  407. font-size: 36rpx;
  408. }
  409. }
  410. .small {
  411. font-size: 22rpx;
  412. color: #cccccc;
  413. font-weight: 500;
  414. margin-left: 16rpx;
  415. text-decoration: line-through;
  416. }
  417. }
  418. }
  419. .commodity {
  420. margin-top: -139rpx;
  421. width: 720rpx;
  422. // padding: 0 30rpx;
  423. // margin-left: 30rpx;
  424. // margin-right: 30rpx;
  425. height: 650rpx;
  426. margin-left: 30rpx;
  427. overflow: hidden;
  428. ::v-deep swiper-item {
  429. width: 450rpx !important;
  430. }
  431. ::v-deep .uni-swiper-slide-frame {
  432. width: 420rpx !important;
  433. }
  434. .commodity-item {
  435. //background-color: #FFFFFF;
  436. // margin-right: 30rpx;
  437. border-radius: 16rpx;
  438. // padding: 18rpx;
  439. padding-top: 0;
  440. // text-align: center;
  441. display: flex;
  442. flex-direction: column;
  443. align-items: center;
  444. .swiper-back {
  445. border-radius: 16rpx;
  446. overflow: hidden;
  447. // background-color: #FFFFFF;
  448. width: 380rpx;
  449. // padding-top: 40rpx;
  450. height: 610rpx;
  451. margin-top: 40rpx;
  452. }
  453. .active-back {
  454. // padding-top: 0;
  455. // background-color: #FFFFFF;
  456. width: 420rpx;
  457. height: 650rpx;
  458. border-radius: 16rpx;
  459. position: relative;
  460. transition: all 0.5s;
  461. }
  462. .default-image {
  463. width: 380rpx;
  464. height: 380rpx;
  465. border-radius: 16rpx;
  466. position: relative;
  467. }
  468. .current-item {
  469. width: 420rpx;
  470. height: 420rpx;
  471. border-radius: 16rpx;
  472. transition: all 0.5s;
  473. }
  474. .completed {
  475. font-size: 22rpx;
  476. margin-top: 2rpx;
  477. font-weight: 400;
  478. color: #333333;
  479. text {
  480. color: #00bf5a;
  481. }
  482. }
  483. .number {
  484. margin-top: 20rpx;
  485. font-size: 22rpx;
  486. color: #333333;
  487. font-weight: 500;
  488. display: flex;
  489. align-items: center;
  490. .zero {
  491. margin-left: 20rpx;
  492. font-size: 22rpx;
  493. color: #00bf5a;
  494. font-weight: 500;
  495. }
  496. .one {
  497. color: #00bf5a;
  498. font-size: 34rpx;
  499. font-weight: 700;
  500. }
  501. .two {
  502. color: #00bf5a;
  503. font-size: 18rpx;
  504. font-weight: 700;
  505. }
  506. }
  507. }
  508. }
  509. .option {
  510. margin: 30rpx 0;
  511. display: flex;
  512. justify-content: center;
  513. .option-item {
  514. background-color: #d9d9d9;
  515. margin: 0 8rpx;
  516. width: 14rpx;
  517. height: 14rpx;
  518. border-radius: 7rpx;
  519. }
  520. .active {
  521. background-color: #00bf5a;
  522. width: 35rpx;
  523. height: 14rpx;
  524. border-radius: 7rpx;
  525. }
  526. }
  527. .list {
  528. margin: 0 30rpx 26rpx 30rpx;
  529. .item {
  530. padding: 20rpx;
  531. background-color: #ffffff;
  532. border-radius: 18rpx;
  533. display: flex;
  534. margin-bottom: 25rpx;
  535. .item-left {
  536. image {
  537. width: 187rpx;
  538. height: 187rpx;
  539. border-radius: 18rpx;
  540. }
  541. }
  542. .item-right {
  543. margin-left: 30rpx;
  544. flex: 1;
  545. display: flex;
  546. flex-direction: column;
  547. justify-content: space-between;
  548. .title {
  549. font-size: 28rpx;
  550. font-weight: 400;
  551. color: #181818;
  552. overflow: hidden;
  553. text-overflow: ellipsis;
  554. display: -webkit-box;
  555. -webkit-line-clamp: 2;
  556. -webkit-box-orient: vertical;
  557. word-wrap: break-word;
  558. word-break: break-all;
  559. white-space: normal !important;
  560. }
  561. .list-bottom {
  562. display: flex;
  563. align-items: center;
  564. justify-content: space-between;
  565. .number {
  566. display: flex;
  567. align-items: center;
  568. .large {
  569. font-size: 36rpx;
  570. color: #00bf5a;
  571. font-weight: Bold;
  572. margin-right: 17rpx;
  573. text {
  574. font-size: 36rpx;
  575. }
  576. }
  577. .small {
  578. font-size: 22rpx;
  579. color: #cccccc;
  580. font-weight: 500;
  581. text-decoration: line-through;
  582. }
  583. }
  584. .button {
  585. color: #ffffff;
  586. font-size: 28rpx;
  587. font-weight: 500;
  588. padding: 12rpx 34rpx;
  589. background-color: #00bf5a;
  590. border-radius: 32rpx;
  591. }
  592. }
  593. .list-soon {
  594. display: flex;
  595. align-items: center;
  596. margin-top: 12rpx;
  597. .soon-item {
  598. width: 153rpx;
  599. height: 10rpx;
  600. border: 2rpx solid #00bf5a;
  601. border-radius: 6rpx;
  602. margin-right: 10rpx;
  603. .orange {
  604. width: 50rpx;
  605. height: 10rpx;
  606. background-color: #00bf5a;
  607. border-radius: 5rpx;
  608. }
  609. }
  610. .complete {
  611. font-size: 20rpx;
  612. color: #00bf5a;
  613. font-weight: 500;
  614. }
  615. }
  616. }
  617. }
  618. }
  619. .spot {
  620. display: flex;
  621. justify-content: center;
  622. margin: 27rpx 0 40rpx 0;
  623. .spot-item {
  624. width: 35rpx;
  625. height: 14rpx;
  626. background-color: #00bf5a;
  627. margin-right: 16rpx;
  628. }
  629. .radius {
  630. width: 14rpx;
  631. height: 14rpx;
  632. background-color: #d9d9d9;
  633. border-radius: 7rpx;
  634. margin-right: 16rpx;
  635. }
  636. }
  637. .two-comtent-item {
  638. margin: 0 30rpx;
  639. background-color: #ffffff;
  640. border-radius: 18rpx;
  641. .two-image {
  642. overflow: hidden;
  643. image {
  644. width: 380rpx;
  645. height: 380rpx;
  646. border-radius: 18rpx;
  647. }
  648. }
  649. .two-content-number {
  650. padding: 0 30rpx;
  651. display: flex;
  652. align-items: baseline;
  653. .two-large {
  654. font-size: 20rpx;
  655. color: #00bf5a;
  656. font-weight: bold;
  657. text {
  658. font-size: 36rpx;
  659. }
  660. }
  661. .two-small {
  662. font-size: 22rpx;
  663. color: #cccccc;
  664. font-weight: 500;
  665. margin-left: 16rpx;
  666. text-decoration: line-through;
  667. }
  668. }
  669. .two-name {
  670. padding: 0 20rpx;
  671. width: 368rpx;
  672. overflow: hidden;
  673. text-overflow: ellipsis;
  674. display: -webkit-box;
  675. -webkit-line-clamp: 2;
  676. -webkit-box-orient: vertical;
  677. word-wrap: break-word;
  678. word-break: break-all;
  679. white-space: normal !important;
  680. }
  681. }
  682. .two-soon {
  683. padding: 0 30rpx;
  684. display: flex;
  685. align-items: center;
  686. .two-soon-item {
  687. width: 153rpx;
  688. height: 10rpx;
  689. border-radius: 6rpx;
  690. border: 1rpx solid #00bf5a;
  691. margin-right: 10rpx;
  692. .two-orange {
  693. width: 50rpx;
  694. height: 10rpx;
  695. border-radius: 5rpx;
  696. background-color: #00bf5a;
  697. }
  698. }
  699. .two-complete {
  700. font-size: 20rpx;
  701. color: #00bf5a;
  702. line-height: 24rpx;
  703. font-weight: 500;
  704. }
  705. }
  706. .content {
  707. // align-items: center;
  708. // overflow: scroll;
  709. // white-space: nowrap;
  710. // height: 300rpx;
  711. // background-color: red;
  712. margin-top: -139rpx;
  713. // display: flex;
  714. margin-left: 30rpx;
  715. height: 607rpx;
  716. ::v-deep .uni-swiper-slide-frame {
  717. width: 402rpx !important;
  718. padding-right: 30rpx;
  719. }
  720. .comtent-item {
  721. margin-right: 30rpx;
  722. // padding: 0 30rpx;
  723. background-color: #ffffff;
  724. border-radius: 18rpx;
  725. // width: 420rpx;
  726. image {
  727. width: 420rpx;
  728. height: 420rpx;
  729. border-radius: 18rpx;
  730. }
  731. }
  732. }
  733. .surplus {
  734. margin-top: 43rpx;
  735. display: flex;
  736. justify-content: space-around;
  737. align-items: center;
  738. padding-bottom: 168rpx;
  739. .surplus-content {
  740. color: #ffffff;
  741. font-size: 20rpx;
  742. font-weight: 500;
  743. display: flex;
  744. align-items: center;
  745. text,
  746. &:deep(.uv-count-down__text) {
  747. color: #00bf5a;
  748. padding: 1rpx 4rpx;
  749. background-color: #dccda4;
  750. border-radius: 4rpx;
  751. margin: 0 6rpx 0 14rpx;
  752. }
  753. }
  754. .lable {
  755. margin-right: 8rpx;
  756. }
  757. ::v-deep .uni-countdown__number {
  758. padding: 2rpx 8rpx;
  759. border-radius: 8rpx;
  760. }
  761. .transverse {
  762. width: 210rpx;
  763. height: 1rpx;
  764. opacity: 0.2;
  765. background-color: #ffffff;
  766. }
  767. }
  768. .top {
  769. background-color: #00bf5a;
  770. .box {
  771. padding: 0 30rpx;
  772. white-space: nowrap;
  773. // display: flex;
  774. // justify-content: space-around;
  775. .time {
  776. display: inline-block;
  777. margin-right: 30rpx;
  778. text-align: center;
  779. .number {
  780. font-size: 42rpx;
  781. font-weight: 700;
  782. color: #ffffff;
  783. }
  784. .font {
  785. font-size: 22rpx;
  786. font-weight: 500;
  787. color: #053420;
  788. padding: 2rpx 12rpx;
  789. border-radius: 20rpx;
  790. background-color: #dccda4;
  791. }
  792. .font-soon {
  793. font-size: 22rpx;
  794. font-weight: 500;
  795. color: #f5f5f5;
  796. }
  797. }
  798. }
  799. }
  800. .time-limit {
  801. background-color: #f6f6f6;
  802. }
  803. </style>