coupon.vue 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736
  1. <template>
  2. <!-- 优惠券 -->
  3. <view :style="[couponWrapStyle]" v-show="!isSortType">
  4. <view class="coupon-wrap" :style="[couponWrapBgColor]" v-if="couponList.length">
  5. <view v-if="dataConfig.styleConfig.tabVal == 0" class="coupon1">
  6. <scroll-view scroll-x="true">
  7. <view class="list acea-row">
  8. <view v-for="item in couponList" :key="item.id" class="item" :style="[couponItemFirstStyle]">
  9. <view class="text">
  10. <view class="money" :style="[couponMoneyColor]">
  11. <template v-if="item.coupon_type == 1">
  12. ¥<text class="number">{{ item.coupon_price }}</text>
  13. </template>
  14. <template v-else-if="item.coupon_type == 2">
  15. <text class="number">{{ item.coupon_price / 10 }}</text>折
  16. </template>
  17. </view>
  18. <view class="info">
  19. <text v-if="item.use_min_price">满{{ item.use_min_price }}可用</text>
  20. <text v-else>无门槛券</text>
  21. </view>
  22. </view>
  23. <view v-if="item.is_use == true" class="button" :style="[bntBgColor]">已领取</view>
  24. <view v-else-if="item.is_use == false" class="button" :style="[bntBgColor]" @click="receiveCoupon(item)">去领取</view>
  25. <view v-else-if="item.is_use == 2" class="button" :style="[bntBgColor]">已过期</view>
  26. </view>
  27. </view>
  28. </scroll-view>
  29. </view>
  30. <view v-else-if="dataConfig.styleConfig.tabVal == 1" class="coupon2">
  31. <scroll-view scroll-x="true">
  32. <view class="list acea-row">
  33. <view v-for="item in couponList" :key="item.id" class="item">
  34. <view class="name">{{ item.type | typeFilter}}</view>
  35. <view class="text" :style="[couponMoneyColor]">
  36. <view class="money">
  37. <template v-if="item.coupon_type == 1">
  38. ¥<text class="number">{{ item.coupon_price }}</text>
  39. </template>
  40. <template v-else-if="item.coupon_type == 2">
  41. <text class="number">{{ item.coupon_price / 10 }}</text>折
  42. </template>
  43. </view>
  44. <view class="info">
  45. <text v-if="item.use_min_price">满{{ item.use_min_price }}可用</text>
  46. <text v-else>无门槛券</text>
  47. </view>
  48. </view>
  49. <view v-if="item.is_use == true" class="button" :style="[bntBgColor]">已领取</view>
  50. <view v-else-if="item.is_use == false" class="button" :style="[bntBgColor]" @click="receiveCoupon(item)">去领取</view>
  51. <view v-else-if="item.is_use == 2" class="button" :style="[bntBgColor]">已过期</view>
  52. </view>
  53. </view>
  54. </scroll-view>
  55. </view>
  56. <view v-else-if="dataConfig.styleConfig.tabVal == 2" class="coupon3" :style="[coupon3Color]">
  57. <scroll-view scroll-x="true">
  58. <view class="list acea-row">
  59. <view v-for="item in couponList" :key="item.id" class="item">
  60. <view class="inner acea-row">
  61. <view class="text acea-row row-column row-middle row-center">
  62. <view class="money">
  63. <template v-if="item.coupon_type == 1">
  64. ¥<text class="number">{{ item.coupon_price }}</text>
  65. </template>
  66. <template v-else-if="item.coupon_type == 2">
  67. <text class="number">{{ item.coupon_price / 10 }}</text>折
  68. </template>
  69. </view>
  70. <view class="info">
  71. <text v-if="item.use_min_price">满{{ item.use_min_price }}可用</text>
  72. <text v-else>无门槛券</text>
  73. </view>
  74. </view>
  75. <view v-if="item.is_use == true" class="button acea-row row-middle">已领取</view>
  76. <view v-else-if="item.is_use == false" class="button acea-row row-middle" @click="receiveCoupon(item)">立即领取</view>
  77. <view v-else-if="item.is_use == 2" class="button acea-row row-middle">已过期</view>
  78. </view>
  79. </view>
  80. </view>
  81. </scroll-view>
  82. </view>
  83. <view v-else-if="dataConfig.styleConfig.tabVal == 3" class="coupon4" :style="[coupon4Color]">
  84. <view class="content">
  85. <scroll-view scroll-x="true">
  86. <view class="list acea-row">
  87. <view v-for="item in couponList" :key="item.id" :style="[couponItemStyle]" class="item">
  88. <view class="name" :style="typeStyle">
  89. <view class="inner">{{ item.type | typeFilter }}</view>
  90. </view>
  91. <view class="text">
  92. <view class="money" :style="[couponMoneyColor]">
  93. <template v-if="item.coupon_type == 1">
  94. ¥<text class="number">{{ item.coupon_price }}</text>
  95. </template>
  96. <template v-else-if="item.coupon_type == 2">
  97. <text class="number">{{ item.coupon_price / 10 }}</text>折
  98. </template>
  99. </view>
  100. <view class="info">
  101. <text v-if="item.use_min_price">满{{ item.use_min_price }}可用</text>
  102. <text v-else>无门槛券</text>
  103. </view>
  104. </view>
  105. </view>
  106. </view>
  107. </scroll-view>
  108. <view class="station acea-row row-column row-middle row-center" :style="[bntBgColor]">
  109. <view class="station-name">先领券 再购物</view>
  110. <view class="station-info">领券下单·享购物优惠</view>
  111. <view class="button" @click="goCoupon">立即领取</view>
  112. </view>
  113. </view>
  114. </view>
  115. <view v-else-if="dataConfig.styleConfig.tabVal == 4" class="coupon5">
  116. <scroll-view scroll-x="true">
  117. <view class="list acea-row">
  118. <view v-for="item in couponList" :key="item.id" class="item acea-row" :style="[bntBgColor]">
  119. <view class="text acea-row row-column row-middle row-center">
  120. <view class="money" :style="[couponMoneyColor]">
  121. <template v-if="item.coupon_type == 1">
  122. ¥<text class="number">{{ item.coupon_price }}</text>
  123. </template>
  124. <template v-else-if="item.coupon_type == 2">
  125. <text class="number">{{ item.coupon_price / 10 }}</text>折
  126. </template>
  127. </view>
  128. <view class="info" :style="[couponMoneyColor]">
  129. <text v-if="item.use_min_price">满{{ item.use_min_price }}可用</text>
  130. <text v-else>无门槛券</text>
  131. </view>
  132. </view>
  133. <view v-if="item.is_use == true" class="button acea-row row-middle">已领取</view>
  134. <view v-else-if="item.is_use == false" class="button acea-row row-middle" @click="receiveCoupon(item)">领取</view>
  135. <view v-else-if="item.is_use == 2" class="button acea-row row-middle">已过期</view>
  136. </view>
  137. </view>
  138. </scroll-view>
  139. </view>
  140. </view>
  141. </view>
  142. </template>
  143. <script>
  144. import {
  145. getCoupons,
  146. setCouponReceive
  147. } from '@/api/api.js';
  148. import {
  149. mapGetters
  150. } from "vuex";
  151. export default {
  152. props: {
  153. dataConfig: {
  154. type: Object,
  155. default: () => {}
  156. },
  157. isSortType: {
  158. type: String | Number,
  159. default: 0
  160. }
  161. },
  162. watch: {
  163. isLogin: {
  164. handler: function(newV, oldV) {
  165. if (newV) {
  166. this.getCoupon();
  167. }
  168. },
  169. deep: true
  170. }
  171. },
  172. filters:{
  173. typeFilter(val){
  174. let obj = {
  175. 0: '通用券',
  176. 1: '品类券',
  177. 2: '商品券',
  178. 3: '品牌券',
  179. };
  180. return obj[val]
  181. }
  182. },
  183. data() {
  184. return {
  185. isAuto: false, //没有授权的不会自动授权
  186. isShowAuth: false, //是否隐藏授权
  187. couponList: [],
  188. };
  189. },
  190. computed: {
  191. ...mapGetters(['isLogin']),
  192. couponMoneyColor() {
  193. let styleObject = {};
  194. if (this.dataConfig.toneConfig.tabVal) {
  195. styleObject['color'] = this.dataConfig.couponMoneyColor.color[0].item;
  196. }
  197. return styleObject;
  198. },
  199. couponItemFirstStyle(){
  200. if (this.dataConfig.toneConfig.tabVal) {
  201. return {
  202. background: this.dataConfig.couponBgColor.color[0].item
  203. }
  204. }else{
  205. return {
  206. background: 'var(--view-theme)'
  207. }
  208. }
  209. },
  210. couponItemStyle() {
  211. // let styleObject = {
  212. // 'margin-right': `${this.dataConfig.spacingConfig.val * 2}rpx`,
  213. // };
  214. // if (this.dataConfig.toneConfig.tabVal) {
  215. // styleObject['background'] = this.dataConfig.couponBgColor.color[0].item;
  216. // if (this.dataConfig.styleConfig.tabVal == 3) {
  217. // styleObject['background'] = this.dataConfig.couponBgColor.color[0].item;
  218. // }
  219. // }
  220. return {
  221. 'margin-right': `${this.dataConfig.spacingConfig.val * 2}rpx`,
  222. }
  223. },
  224. typeStyle(){
  225. if (!this.dataConfig.toneConfig.tabVal) {
  226. return {
  227. background: 'var(--view-theme)',
  228. color: 'var(--view-theme)'
  229. }
  230. }else{
  231. return {
  232. background: this.dataConfig.couponMoneyColor.color[0].item,
  233. color: this.dataConfig.couponMoneyColor.color[0].item
  234. }
  235. }
  236. },
  237. bntBgColor() {
  238. let styleObject = {};
  239. if (this.dataConfig.toneConfig.tabVal) {
  240. styleObject['background'] = `linear-gradient(180deg, ${this.dataConfig.bntBgColor.color[0].item} 0%, ${this.dataConfig.bntBgColor.color[1].item} 100%)`;
  241. }
  242. return styleObject;
  243. },
  244. coupon3Color() {
  245. let styleObject = {
  246. '--coupon3-color': 'var(--view-theme)',
  247. };
  248. if (this.dataConfig.toneConfig.tabVal) {
  249. styleObject['--coupon3-color'] = this.dataConfig.couponMoneyColor.color[0].item;
  250. }
  251. return styleObject;
  252. },
  253. coupon4Color() {
  254. let styleObject = {
  255. '--coupon4-color': 'var(--view-theme)',
  256. };
  257. if (this.dataConfig.toneConfig.tabVal) {
  258. styleObject['--coupon4-color'] = this.dataConfig.couponBgColor.color[0].item;
  259. }
  260. return styleObject;
  261. },
  262. couponWrapBgColor() {
  263. let styleObject = {
  264. '--module-color': this.dataConfig.moduleColor2.color[0].item,
  265. };
  266. if (this.dataConfig.styleConfig.tabVal == 1) {
  267. styleObject['--module-color'] = `linear-gradient(90deg,${this.dataConfig.moduleColor.color[0].item} 0%,${this.dataConfig.moduleColor.color[1].item} 100%)`;
  268. }
  269. // if (this.dataConfig.styleConfig.tabVal == 3) {
  270. let borderRadius = `${this.dataConfig.fillet.val * 2}rpx`;
  271. if (this.dataConfig.fillet.type) {
  272. borderRadius =
  273. `${this.dataConfig.fillet.valList[0].val * 2}rpx ${this.dataConfig.fillet.valList[1].val * 2}rpx ${this.dataConfig.fillet.valList[2].val * 2}rpx ${this.dataConfig.fillet.valList[3].val * 2}rpx`;
  274. }
  275. styleObject['border-radius'] = borderRadius;
  276. // }
  277. return styleObject;
  278. },
  279. couponWrapStyle() {
  280. return {
  281. 'padding': `${this.dataConfig.topConfig.val * 2}rpx ${this.dataConfig.prConfig.val * 2}rpx ${this.dataConfig.bottomConfig.val * 2}rpx`,
  282. 'margin-top': `${this.dataConfig.mbConfig.val * 2}rpx`,
  283. 'background': this.dataConfig.bottomBgColor.color[0].item,
  284. };
  285. },
  286. },
  287. mounted() {
  288. this.getCoupon();
  289. },
  290. methods: {
  291. getCoupon: function() {
  292. let that = this;
  293. let limit = that.$config.LIMIT;
  294. getCoupons({
  295. page: 1,
  296. limit: this.dataConfig.numberConfig.val >= limit ? limit : this.dataConfig.numberConfig.val,
  297. }).then(res => {
  298. that.$set(that, 'couponList', res.data.list);
  299. }).catch(err => {
  300. return that.$util.Tips({
  301. title: err
  302. });
  303. });
  304. },
  305. receiveCoupon: function(item) {
  306. let that = this;
  307. if (!that.isLogin) {
  308. this.$emit('changeLogin');
  309. } else {
  310. setCouponReceive(item.id)
  311. .then(function() {
  312. item.is_use = true;
  313. that.$set(that, 'couponList', that.couponList);
  314. that.$util.Tips({
  315. title: "领取成功"
  316. });
  317. })
  318. .catch(function(err) {
  319. that.$util.Tips({
  320. title: err
  321. });
  322. });
  323. }
  324. },
  325. goCoupon() {
  326. uni.navigateTo({
  327. url: '/pages/activity/coupon/index'
  328. })
  329. },
  330. }
  331. }
  332. </script>
  333. <style lang="scss">
  334. .coupon-wrap {
  335. background: var(--module-color);
  336. }
  337. .coupon1 {
  338. padding: 24rpx 0 24rpx 24rpx;
  339. .list {
  340. flex-wrap: nowrap;
  341. }
  342. .item {
  343. flex-shrink: 0;
  344. position: relative;
  345. width: 156rpx;
  346. height: 156rpx;
  347. border-radius: 32rpx;
  348. margin-top: 20rpx;
  349. margin-right: 12rpx;
  350. background: var(--view-theme);
  351. .text {
  352. width: 144rpx;
  353. height: 156rpx;
  354. padding-top: 22rpx;
  355. border: 2rpx solid #FCEAE9;
  356. border-radius: 16rpx;
  357. margin: -20rpx auto 0;
  358. background: #FFFFFF;
  359. }
  360. .money {
  361. height: 40rpx;
  362. text-align: center;
  363. font-weight: 500;
  364. font-size: 28rpx;
  365. color: var(--view-theme);
  366. }
  367. .number {
  368. font-family: SemiBold;
  369. font-size: 40rpx;
  370. line-height: 40rpx;
  371. }
  372. .info {
  373. margin-top: 10rpx;
  374. text-align: center;
  375. font-size: 18rpx;
  376. line-height: 26rpx;
  377. color: #999999;
  378. }
  379. .button {
  380. position: absolute;
  381. right: 0;
  382. bottom: 0;
  383. left: 0;
  384. height: 76rpx;
  385. padding-top: 28rpx;
  386. border-radius: 0 0 32rpx 32rpx;
  387. background: linear-gradient(90deg, var(--view-theme) 0%, var(--view-gradient) 100%);
  388. text-align: center;
  389. font-weight: 500;
  390. font-size: 24rpx;
  391. color: #FFFFFF;
  392. &::before {
  393. content: "";
  394. position: absolute;
  395. top: 0;
  396. left: 0;
  397. width: 156rpx;
  398. height: 20rpx;
  399. border: 8rpx solid #FCEAE9;
  400. border-top-color: #FFFFFF;
  401. border-bottom-right-radius: 78rpx 20rpx;
  402. border-bottom-left-radius: 78rpx 20rpx;
  403. box-sizing: border-box;
  404. background: #FFFFFF;
  405. }
  406. }
  407. }
  408. }
  409. .coupon2 {
  410. padding: 24rpx 0 24rpx 24rpx;
  411. .list {
  412. flex-wrap: nowrap;
  413. }
  414. .item {
  415. flex-shrink: 0;
  416. width: 204rpx;
  417. height: 232rpx;
  418. padding-top: 28rpx;
  419. border-radius: 16rpx;
  420. margin-top: 0;
  421. margin-right: 12rpx;
  422. background: #FFFFFF;
  423. }
  424. .name {
  425. text-align: center;
  426. font-weight: 500;
  427. font-size: 24rpx;
  428. line-height: 34rpx;
  429. color: #333333;
  430. }
  431. .text {
  432. margin-top: 8rpx;
  433. text-align: center;
  434. color: var(--view-theme);
  435. }
  436. .money {
  437. height: 48rpx;
  438. font-weight: 500;
  439. font-size: 28rpx;
  440. }
  441. .number {
  442. font-family: SemiBold;
  443. font-size: 44rpx;
  444. }
  445. .info {
  446. font-size: 18rpx;
  447. line-height: 26rpx;
  448. }
  449. .button {
  450. width: 136rpx;
  451. height: 48rpx;
  452. border-radius: 24rpx;
  453. margin: 12rpx auto 0;
  454. background: linear-gradient(90deg, var(--view-theme) 0%, var(--view-gradient) 100%);
  455. text-align: center;
  456. font-weight: 500;
  457. font-size: 24rpx;
  458. line-height: 48rpx;
  459. color: #FFFFFF;
  460. }
  461. }
  462. .coupon3 {
  463. padding: 24rpx 0 24rpx 24rpx;
  464. border-radius: 16rpx;
  465. .list {
  466. flex-wrap: nowrap;
  467. }
  468. .item {
  469. flex-shrink: 0;
  470. width: 274rpx;
  471. height: 150rpx;
  472. border: 1rpx solid var(--coupon3-color);
  473. border-radius: 16rpx;
  474. margin-top: 0;
  475. margin-right: 12rpx;
  476. background: var(--coupon3-color);
  477. }
  478. .inner {
  479. height: 100%;
  480. border-radius: 15rpx;
  481. background: rgba(255, 255, 255, 0.9);
  482. }
  483. .text {
  484. flex: 1;
  485. position: relative;
  486. &::before {
  487. content: "";
  488. position: absolute;
  489. top: 0;
  490. right: 0;
  491. z-index: 2;
  492. width: 16rpx;
  493. height: 16rpx;
  494. border: 1rpx solid var(--coupon3-color);
  495. border-radius: 50%;
  496. background: var(--module-color);
  497. transform: translate(50%, -50%);
  498. }
  499. &::after {
  500. content: "";
  501. position: absolute;
  502. bottom: 0;
  503. right: 0;
  504. z-index: 2;
  505. width: 16rpx;
  506. height: 16rpx;
  507. border: 1rpx solid var(--coupon3-color);
  508. border-radius: 50%;
  509. background: var(--module-color);
  510. transform: translate(50%, 50%);
  511. }
  512. }
  513. .money {
  514. height: 48rpx;
  515. text-align: center;
  516. font-weight: 500;
  517. font-size: 28rpx;
  518. color: var(--coupon3-color);
  519. }
  520. .number {
  521. font-family: SemiBold;
  522. font-size: 44rpx;
  523. }
  524. .info {
  525. margin-top: 8rpx;
  526. text-align: center;
  527. font-size: 24rpx;
  528. line-height: 34rpx;
  529. color: var(--coupon3-color);
  530. }
  531. .button {
  532. position: relative;
  533. width: 74rpx;
  534. padding: 0 24rpx;
  535. font-size: 26rpx;
  536. line-height: 28rpx;
  537. color: var(--coupon3-color);
  538. &::before {
  539. content: "";
  540. position: absolute;
  541. top: 12rpx;
  542. bottom: 12rpx;
  543. left: 0;
  544. border-left: 1rpx dashed var(--coupon3-color);
  545. }
  546. }
  547. }
  548. .coupon5 {
  549. padding: 24rpx 0 24rpx 20rpx;
  550. border-radius: 16rpx;
  551. .list {
  552. flex-wrap: nowrap;
  553. }
  554. .item {
  555. flex-shrink: 0;
  556. width: 228rpx;
  557. height: 108rpx;
  558. border-radius: 12rpx;
  559. margin-right: 12rpx;
  560. background: linear-gradient(0deg, var(--view-theme) 0%, var(--view-gradient) 100%);
  561. }
  562. .text {
  563. flex: 1;
  564. border-radius: 12rpx;
  565. background: radial-gradient(circle at left 54rpx, var(--module-color) 11rpx, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.8) 100%) top;
  566. }
  567. .money {
  568. height: 48rpx;
  569. font-weight: 500;
  570. font-size: 28rpx;
  571. color: var(--view-theme);
  572. }
  573. .number {
  574. font-family: SemiBold;
  575. font-size: 44rpx;
  576. }
  577. .info {
  578. font-size: 22rpx;
  579. line-height: 30rpx;
  580. color: var(--view-theme);
  581. }
  582. .button {
  583. width: 56rpx;
  584. padding: 0 16rpx;
  585. font-size: 24rpx;
  586. line-height: 28rpx;
  587. color: #FFFFFF;
  588. }
  589. }
  590. .coupon4 {
  591. padding: 24rpx 20rpx;
  592. border-radius: 16rpx;
  593. .content {
  594. position: relative;
  595. padding: 20rpx 296rpx 20rpx 20rpx;
  596. border-radius: 24rpx;
  597. background: var(--coupon4-color);
  598. }
  599. .list {
  600. flex-wrap: nowrap;
  601. }
  602. .item {
  603. flex-shrink: 0;
  604. width: 140rpx;
  605. height: 132rpx;
  606. border-radius: 12rpx;
  607. margin-right: 12rpx;
  608. background: #FFFFFF;
  609. }
  610. .name {
  611. width: 108rpx;
  612. height: 38rpx;
  613. line-height: 38rpx;
  614. border-radius: 0 0 19rpx 19rpx;
  615. margin: 0 auto;
  616. background: var(--coupon4-color);
  617. text-align: center;
  618. font-size: 22rpx;
  619. color: var(--coupon4-color);
  620. }
  621. .inner {
  622. width: 100%;
  623. height: 100%;
  624. border-radius: 0 0 19rpx 19rpx;
  625. background: rgba(255, 255, 255, 0.9);
  626. }
  627. .money {
  628. height: 46rpx;
  629. margin-top: 10rpx;
  630. text-align: center;
  631. font-weight: 500;
  632. font-size: 28rpx;
  633. color: var(--coupon4-color);
  634. }
  635. .number {
  636. font-family: SemiBold;
  637. font-size: 40rpx;
  638. }
  639. .info {
  640. margin-top: 4rpx;
  641. text-align: center;
  642. font-size: 18rpx;
  643. line-height: 26rpx;
  644. color: #333333;
  645. }
  646. .station {
  647. position: absolute;
  648. top: 0;
  649. right: 0;
  650. bottom: 0;
  651. width: 296rpx;
  652. // padding-left: 12rpx;
  653. border-radius: 0 24rpx 24rpx 0;
  654. // background: radial-gradient(circle at -180rpx 86rpx, transparent 200rpx, var(--coupon4-color) 0%, var(--coupon4-color) 100%);
  655. background: linear-gradient(0deg, var(--view-theme) 0%, var(--view-gradient) 100%);
  656. // filter: drop-shadow(-16rpx 0rpx 10rpx rgba(0, 0, 0, 0.10));
  657. }
  658. .station-name {
  659. font-weight: 500;
  660. font-size: 32rpx;
  661. line-height: 44rpx;
  662. color: #FFFFFF;
  663. }
  664. .station-info {
  665. margin-top: 4rpx;
  666. font-size: 20rpx;
  667. line-height: 28rpx;
  668. color: #F5F5F5;
  669. }
  670. .button {
  671. width: 160rpx;
  672. height: 48rpx;
  673. border-radius: 24rpx;
  674. margin-top: 8rpx;
  675. background: rgba(255, 255, 255, 0.9);
  676. text-align: center;
  677. font-weight: 500;
  678. font-size: 24rpx;
  679. line-height: 48rpx;
  680. color: var(--coupon4-color);
  681. }
  682. }
  683. </style>