detail.vue
19.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
<!-- 商品详情 -->
<template>
<view class="detail-wrap ">
<!-- 标题栏 -->
<view class="nav-box">
<view class="state-hack"></view>
<view :style="{ height: navbarHeight + 'px' }">
<view hover-class="back-hover" class="back-box u-m-x-30 u-flex u-row-center u-col-center" @tap="goBack">
<view class="u-iconfont uicon-arrow-left" style="color: #fff;font-size: 28rpx;"></view>
</view>
</view>
</view>
<!-- 缺省页 -->
<shopro-empty v-if="showEmpty" :image="$IMG_URL + '/imgs/empty/empty_goods_null.png'" :tipText="showEmptyText" btnText="返回上一页" @click="$Router.back()"></shopro-empty>
<view class="detail_box" v-else>
<view class="detail-content">
<!-- 轮播 -->
<u-swiper :height="750" borderRadius="0" :list="goodsInfo.images" indicator-pos="bottomRight" mode="number" :interval="3000" @click="onGoodsSwiper"></u-swiper>
<!-- 价格卡片组 -->
<sh-price-card v-if="goodsInfo.id" :detail="goodsInfo" :type="detailType" @change="getActivityRules"></sh-price-card>
<!-- 标题 -->
<view class="u-m-b-10 title-box u-p-20 u-skeleton-fillet">
<view class="goods-title u-m-b-10 u-ellipsis-2">{{ goodsInfo.title }}</view>
<view class="sub-title u-ellipsis-2">{{ goodsInfo.subtitle }}</view>
</view>
<!-- 参与的活动 -->
<sh-activity v-if="goodsInfo.activity_discounts_tags && goodsInfo.activity_discounts_tags.length" :detail="goodsInfo.activity_discounts"></sh-activity>
<!-- 规格选择 -->
<view class="sku-box" @tap="showSku = true" v-if="activityRules.status !== 'waiting' && checkActivity(goodsInfo.activity_type, 'groupon') && goodsInfo.is_sku">
<view class="u-flex u-row-between u-col-center">
<view class="u-flex">
<text class="title">规格</text>
<text class="tip">{{ currentSkuText || '请选择规格' }}</text>
</view>
<text class="u-iconfont uicon-arrow-right" style="color: #bfbfbf;"></text>
</view>
</view>
<!-- 服务 -->
<sh-serve v-if="goodsInfo.service && goodsInfo.service.length" v-model="showServe" :serveList="goodsInfo.service"></sh-serve>
<!-- 优惠券 -->
<sh-coupon
v-if="goodsInfo.coupons && goodsInfo.coupons.length && goodsInfo.activity_type !== 'seckill' && goodsInfo.activity_type !== 'groupon' && detailType !== 'score'"
:couponList="goodsInfo.coupons"
></sh-coupon>
<!-- 拼团人-->
<sh-groupon
v-if="goodsInfo.activity && goodsInfo.activity.type === 'groupon' && goodsInfo.activity.rules.team_card === '1' && detailType !== 'score'"
:grouponData="goodsInfo"
></sh-groupon>
<!-- 拼团玩法 -->
<view
v-if="goodsInfo.activity && Number(goodsInfo.activity.richtext_id) && goodsInfo.activity_type !== 'seckill'"
class="groupon-play u-flex u-row-between u-p-l-20 u-p-r-20"
@tap="jump('/pages/public/richtext', { id: goodsInfo.activity.richtext_id })"
>
<view class="u-flex">
<text class="title">玩法</text>
<view class="description u-ellipsis-1">{{ goodsInfo.activity.richtext_title || '开团/参团·邀请好友·人满发货(不满退款' }}</view>
</view>
<view class="u-iconfont uicon-arrow-right" style="color:#bfbfbf ;font-size: 28rpx;"></view>
</view>
<!-- 选项卡 -->
<view class="tab-box u-flex">
<view class="tab-item u-flex-col u-row-center u-col-center" @tap="onTab(tab.id)" v-for="tab in tabList" :key="tab.id">
<view class="tab-title">
{{ tab.title }}
<text v-if="tab.id == 'tab2'" class="comment-num">({{ commentNum }})</text>
</view>
<text class="tab-line" :class="{ 'line-active': tabCurrent === tab.id }"></text>
</view>
</view>
<view class="tab-detail u-p-20 u-m-b-10">
<!-- 详情富文本 -->
<view class="rich-box " v-if="tabCurrent === 'tab0'"><u-parse :html="goodsInfo.content"></u-parse></view>
<!-- 参数 -->
<view class="goods-size" v-if="tabCurrent === 'tab1'">
<view class="table-box" v-if="goodsInfo.params && goodsInfo.params.length">
<view class="t-tr u-flex" v-for="t in goodsInfo.params" :key="t.title">
<view class="t-head u-flex">{{ t.title }}</view>
<view class="t-detail">{{ t.content }}</view>
</view>
</view>
</view>
<!-- 评价 -->
<view class="goods-comment" v-if="tabCurrent === 'tab2'">
<block v-for="comment in commentList" :key="comment.id"><sh-comment :comment="comment"></sh-comment></block>
<shopro-empty v-show="!commentList.length" marginTop="20rpx" :image="$IMG_URL + '/imgs/empty/comment_empty.png'" tipText="暂无评价~"></shopro-empty>
<view class="more-box u-flex u-row-center u-col-center" v-show="commentNum > 3">
<button class="u-reset-button more-btn u-flex u-row-center u-col-center" @tap="jump('/pages/goods/comment/comment-list', { goodsId: goodsInfo.id })">
查看全部
<view class="u-iconfont uicon-arrow-right" style="color:#d5a65a ;font-size: 28rpx;"></view>
</button>
</view>
</view>
</view>
</view>
<!-- 商品foot -->
<view class="tabbar-foot safe-area-inset-bottom" v-if="goodsInfo.id">
<view class="detail-foot_box safe-area-inset-bottom u-flex u-col-ceter u-row-around">
<!-- foot左侧 -->
<view class="left u-flex">
<!-- 积分foot -->
<view class="tools-item u-flex-col u-row-center u-col-center" @tap="goHome">
<image class="tool-img shopro-selector-circular" src="/static/images/tabbar/tabbar_home1.png" mode=""></image>
<text class="tool-title shopro-selector-rect">首页</text>
</view>
<!-- 非积分foot -->
<block v-if="detailType !== 'score'">
<view class="tools-item u-flex-col u-row-center u-col-center" @tap="onFavorite(goodsInfo.id)">
<image
class="tool-img"
:src="Boolean(goodsInfo.favorite) ? $IMG_URL + '/imgs/detail/detail_favorite_end.png' : $IMG_URL + '/imgs/detail/detail_favorite.png'"
mode=""
></image>
<text class="tool-title">收藏</text>
</view>
<view class="tools-item u-flex-col u-row-center u-col-center" @tap="onShare">
<image class="tool-img" :src="$IMG_URL + '/imgs/share/share.png'" mode=""></image>
<text class="tool-title">分享</text>
</view>
</block>
</view>
<!-- foot右侧 -->
<view class="detail-right">
<!-- 积分按钮 -->
<view class="detail-btn-box" v-if="detailType === 'score'"><button class="u-reset-button score-btn" @tap="goPay">立即兑换</button></view>
<view v-if="detailType !== 'score'">
<!-- 正常按钮 -->
<view class="detail-btn-box u-flex u-row-around" v-if="!goodsInfo.activity_type">
<button class=" u-reset-button tool-btn add-btn" @tap="addCart">加入购物车</button>
<button class=" u-reset-button tool-btn pay-btn" @tap="goPay">立即购买</button>
</view>
<!-- 活动按钮 -->
<view class="detail-btn-box u-row-around" v-if="activityRules.status && goodsInfo.activity_type">
<button class=" u-reset-button seckilled-btn" v-if="activityRules.status !== 'ing'">
<text v-if="activityRules.status == 'waiting'">暂未开始</text>
<text v-if="activityRules.status == 'end'">已结束</text>
</button>
<block v-else>
<!-- 活动中,秒杀 -->
<button class=" u-reset-button seckill-btn" v-if="goodsInfo.activity && goodsInfo.activity.type === 'seckill'" @tap="goSeckill">
立即秒杀
</button>
<!-- 活动中,拼团 -->
<view class="u-flex groupon-btn-box" v-if="goodsInfo.activity && goodsInfo.activity.type === 'groupon'">
<button
class="tool-btn u-reset-button add-btn u-flex-col u-row-center u-col-center"
@tap="payGroupon"
v-if="goodsInfo.activity.rules.is_alone === '1'"
>
<text class="price font-OPPOSANS">¥{{ goodsInfo.price }}</text>
<text class="price-title">单独购买</text>
</button>
<button
class=" tool-btn u-reset-button groupon-btn u-flex-col u-row-center u-col-center"
:style="goodsInfo.activity.rules.is_alone === '0' ? 'width:400rpx' : ''"
@tap="payGroupon('groupon')"
>
<text class="price font-OPPOSANS">¥{{ goodsInfo.groupon_price }}</text>
<text class="price-title">我要开团</text>
</button>
</view>
</block>
</view>
</view>
</view>
</view>
</view>
<!-- 规格弹窗 -->
<shopro-sku
v-if="showSku && goodsInfo.id"
v-model="showSku"
:goodsInfo="goodsInfo"
:activityRules="activityRules"
:buyType="goodsInfo.activity_type == 'seckill' || detailType === 'score' ? 'buy' : buyType"
:grouponBuyType="grouponBuyType"
:goodsType="detailType === 'score' ? 'score' : 'goods'"
@changeType="changeType"
@getSkuText="getSkuText"
></shopro-sku>
<!-- 分享组件 -->
<shopro-share v-model="showShare" :posterInfo="goodsInfo" :posterType="'goods'"></shopro-share>
<!-- 登录 -->
<shopro-auth-modal v-if="authType"></shopro-auth-modal>
</view>
</view>
</template>
<script>
let systemInfo = uni.getSystemInfoSync();
import shActivity from './components/sh-activity.vue';
import shPriceCard from './components/sh-price-card.vue';
import shServe from './components/sh-serve.vue';
import shGroupon from './components/sh-groupon.vue';
import shCoupon from './components/sh-coupon.vue';
import shComment from './components/sh-comment.vue';
import share from '@/shopro/share';
import { mapMutations, mapActions, mapState, mapGetters } from 'vuex';
export default {
components: {
shServe,
shPriceCard,
shGroupon,
shCoupon,
shComment,
shActivity
},
data() {
return {
// navbar
backIconName: 'arrow-left',
showSku: false, //是否显示规格弹窗
currentSkuText: '', //选中规格
detailType: '',
showShare: false,
buyType: 'sku',
grouponBuyType: 'alone', //拼团购买方式。
showEmpty: false,
showEmptyText: '',
showServe: false,
goodsInfo: {},
commentList: [], //商品评价列表
commentNum: 0, //商品评价总数
favorite: false,
activityRules: {},
currentSkuList: [],
confirmGoodsInfo: {},
swiperCurrent: 0, //轮播下标
tabCurrent: 'tab0',
tabList: [
{
id: 'tab0',
title: '商品详情'
},
{
id: 'tab1',
title: '规格参数'
},
{
id: 'tab2',
title: '用户评价'
}
]
};
},
// 是否登录
computed: {
...mapGetters(['isLogin', 'authType']),
navbarHeight() {
// #ifdef APP-PLUS || H5
return 48;
// #endif
// #ifdef MP
let height = systemInfo.platform == 'ios' ? 44 : 48;
return height;
// #endif
}
},
async onLoad() {
let that = this;
this.backIconName = getCurrentPages().length > 1 ? 'arrow-left' : 'home-fill';
const type = this.$Route.query.type;
this.detailType = type;
switch (type) {
case 'score':
await this.getScoreDetail();
break;
default:
await this.getGoodsDetail();
}
},
onUnload() {
share.setShareInfo();
},
methods: {
// goBack
// 微信直播商品跳转详情,需要用小程序原生接口才能返回。
goBack() {
let pageList = getCurrentPages();
if (pageList.length > 1) {
// #ifdef MP-WEIXIN
wx.navigateBack();
// #endif
// #ifndef MP-WEIXIN
uni.navigateBack();
// #endif
} else {
this.$Router.replaceAll('/pages/index/index');
}
},
// 轮播图预览
onGoodsSwiper(e) {
this.$tools.previewImage(this.goodsInfo.images, e);
},
getActivityRules(e) {
if (e) {
this.activityRules = JSON.parse(e);
}
},
// 检测
checkActivity(data, type) {
if (data) {
return !data.includes(type);
}
return true;
},
// 路由跳转
jump(path, parmas) {
this.showShare = false;
this.$Router.push({
path: path,
query: parmas
});
},
// 回到首页
goHome() {
this.$Router.replaceAll('/pages/index/index');
},
// 选项卡
onTab(id) {
this.tabCurrent = id;
},
// 积分详情
getScoreDetail() {
let that = this;
return new Promise((resolve, reject) => {
that.$http('goods.scoreDetail', {
id: that.$Route.query.id
}).then(res => {
if (res.code === 1) {
that.goodsInfo = res.data;
resolve(res.data);
}
if (res.code == 0) {
resolve(false);
that.$u.toast(res.msg);
}
});
});
},
// 商品详情
getGoodsDetail() {
let that = this;
return new Promise((resolve, reject) => {
that.$http(
'goods.detail',
{
id: that.$Route.query.id
},
'',
false
).then(res => {
if (res.code === 1) {
that.showEmpty = false;
that.goodsInfo = res.data;
if (that.goodsInfo.activity_type) {
that.activityRules.status = that.goodsInfo.activity.status_code;
}
share.setShareInfo({
title: that.goodsInfo.title,
desc: that.goodsInfo.subtitle,
image: that.goodsInfo.image,
params: {
page: 2,
pageId: that.$Route.query.id
}
});
that.getCommentList();
resolve(res.data);
} else {
resolve(false);
// that.$u.toast(res.msg);
that.showEmpty = true;
that.showEmptyText = res.msg;
}
});
});
},
// 商品评论
getCommentList() {
let that = this;
that.$http('goods.commentList', {
goods_id: that.goodsInfo.id,
per_page: 3,
type: 'all'
}).then(res => {
if (res.code === 1) {
that.commentList = res.data.data;
that.commentNum = res.data.total;
}
});
},
// 组件返回的type;
changeType(e) {
this.buyType = e;
},
// 组件返回的规格;
getSkuText(e) {
this.currentSkuText = e;
},
// 分享
onShare() {
this.showShare = true;
},
// 加入购物车
addCart() {
if (this.isLogin) {
this.buyType = 'cart';
this.showSku = true;
} else {
this.$store.dispatch('showAuthModal');
}
},
// 立即购买
goPay() {
if (this.isLogin) {
this.buyType = 'buy';
this.showSku = true;
} else {
this.$store.dispatch('showAuthModal');
}
},
// 拼团购买
payGroupon(type) {
if (this.isLogin) {
if (type === 'groupon') {
this.grouponBuyType = 'groupon';
} else {
this.grouponBuyType = 'alone';
}
this.buyType = 'buy';
this.showSku = true;
} else {
this.$store.dispatch('showAuthModal');
}
},
// 立即秒杀
goSeckill() {
!this.isLogin ? this.$store.dispatch('showAuthModal') : (this.showSku = true);
this.buyType = 'buy';
},
// 收藏
onFavorite(goodsId) {
let that = this;
that.$http('goods.favorite', {
goods_id: goodsId
}).then(res => {
if (res.code === 1) {
that.goodsInfo.favorite = res.data;
that.$u.toast(res.msg);
}
});
}
}
};
</script>
<style lang="scss">
// 标题栏
.nav-box {
position: fixed;
width: 100%;
min-height: 140rpx;
z-index: 888;
top: 0;
.back-box {
background-color: rgba(#000, 0.18);
width: 60rpx;
height: 60rpx;
border-radius: 50%;
margin-top: 14rpx;
}
.back-hover {
background-color: rgba(#fff, 0.18);
}
.state-hack {
width: 100%;
height: var(--status-bar-height);
/* #ifdef H5 */
height: 20rpx;
/* #endif */
}
}
// 拼团玩法
.groupon-play {
background: #fff;
line-height: 94rpx;
.title {
font-size: 28rpx;
color: #999;
}
.description {
font-size: 28rpx;
width: 500rpx;
margin-left: 30rpx;
}
}
// 选项卡
.tab-box {
height: 102rpx;
background: #fff;
border-bottom: 1rpx solid rgba(#dfdfdf, 0.8);
margin-top: 10rpx;
.tab-item {
flex: 1;
height: 100%;
position: relative;
font-size: 30rpx;
font-weight: bold;
.tab-line {
width: 123rpx;
height: 4rpx;
left: 50%;
bottom: 0;
transform: translateX(-50%);
background: transparent;
position: absolute;
z-index: 2;
}
.line-active {
background: rgba(168, 112, 13, 1);
}
}
}
// 选项卡内容
.tab-detail {
min-height: 300rpx;
background: #fff;
// 规格参数
.goods-size {
.table-box {
width: 710rpx;
margin: auto;
background: rgba(255, 255, 255, 1);
border: 1rpx solid rgba(223, 223, 223, 1);
.t-tr {
border-bottom: 1rpx solid rgba(223, 223, 223, 1);
&:last-child {
border-bottom: none;
}
.t-head {
font-size: 26rpx;
color: #999;
flex: 1;
padding: 15rpx 20rpx;
height: 100%;
}
.t-detail {
font-size: 26rpx;
border-left: 1rpx solid rgba(223, 223, 223, 1);
flex: 4;
padding: 15rpx 20rpx;
height: 100%;
}
}
}
}
// 富文本
.rich-box {
/deep/ img {
display: block;
}
}
// 评论
.goods-comment {
.more-box {
height: 100rpx;
background: #fff;
.more-btn {
width: 200rpx;
line-height: 60rpx;
border: 1rpx solid rgba(213, 166, 90, 1);
border-radius: 30rpx;
font-size: 26rpx;
font-weight: 400;
color: rgba(168, 112, 13, 1);
padding: 0;
background: #fff;
}
}
}
}
// 规格卡片
.sku-box {
line-height: 82rpx;
background: #fff;
padding: 0 20rpx;
margin: 10rpx 0;
font-size: 28rpx;
.title {
color: #999;
margin-right: 20rpx;
}
}
// 标题卡片
.title-box {
background-color: #fff;
.goods-title {
font-size: 28rpx;
font-weight: 600;
line-height: 42rpx;
}
.sub-title {
color: #a8700d;
font-size: 24rpx;
font-weight: 500;
line-height: 42rpx;
}
}
// 底部工具栏
.tabbar-foot {
min-height: 100rpx;
width: 100%;
}
.detail-foot_box {
min-height: calc(100rpx + env(safe-area-inset-bottom)) ;
border-top: 1rpx solid rgba(238, 238, 238, 1);
background-color: #fff;
width: 100%;
position: fixed;
bottom: 0;
z-index: 999;
.left,
.detail-right {
flex: 1;
}
.tools-item {
flex: 1;
height: 100%;
.tool-img {
width: 46rpx;
height: 46rpx;
}
.tool-title {
font-size: 22rpx;
line-height: 22rpx;
padding-top: 8rpx;
}
}
.detail-btn-box {
flex: 1;
.tool-btn {
font-size: 28rpx;
font-weight: 500;
color: rgba(#fff, 0.9);
width: 210rpx;
min-height: 70rpx;
border-radius: 35rpx;
padding: 0;
margin-right: 20rpx;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
.price {
font-size: 24rpx;
line-height: 24rpx;
font-weight: bold;
color: rgba(#fff, 0.9);
}
.price-title {
font-size: 20rpx;
line-height: 20rpx;
font-weight: 500;
color: rgba(#fff, 0.9);
padding-top: 8rpx;
}
}
.add-btn {
box-shadow: 0px 2rpx 5rpx 0px rgba(102, 103, 104, 0.46);
background: linear-gradient(90deg, rgba(103, 104, 105, 1), rgba(82, 82, 82, 1));
}
.pay-btn {
box-shadow: 0px 7rpx 6rpx 0px rgba(229, 138, 0, 0.22);
background: linear-gradient(90deg, rgba(233, 180, 97, 1), rgba(238, 204, 137, 1));
}
.score-btn {
width: 600rpx;
line-height: 80rpx;
background: linear-gradient(90deg, rgba(49, 133, 243, 1), rgba(80, 205, 242, 1));
box-shadow: 0px 7px 6px 0px rgba(80, 205, 242, 0.2);
border-radius: 40rpx;
font-size: 30rpx;
font-weight: 500;
color: rgba(255, 255, 255, 1);
margin-right: 20rpx;
}
.seckill-btn {
width: 432rpx;
line-height: 70rpx;
background: linear-gradient(93deg, rgba(208, 19, 37, 1), rgba(237, 60, 48, 1));
box-shadow: 0px 7rpx 6rpx 0px rgba(#ed3c30, 0.22);
font-size: 28rpx;
font-weight: 500;
color: rgba(255, 255, 255, 1);
border-radius: 35rpx;
padding: 0;
margin-right: 20rpx;
}
.seckilled-btn {
width: 432rpx;
line-height: 70rpx;
background: rgba(221, 221, 221, 1);
font-size: 28rpx;
font-weight: 500;
color: #999999;
border-radius: 35rpx;
padding: 0;
margin-right: 20rpx;
}
.groupon-btn {
width: 210rpx;
height: 70rpx;
background: linear-gradient(90deg, rgba(254, 131, 42, 1), rgba(255, 102, 0, 1));
box-shadow: 0px 7rpx 6rpx 0px rgba(255, 104, 4, 0.22);
border-radius: 35rpx;
}
}
}
</style>