xiaoe_mp_npm 0.5.42-test5 → 0.5.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.gitlab-ci.yml +0 -1
- package/miniprogram_dist/CouponList/components/CouponItem/index.scss +1 -1
- package/miniprogram_dist/CouponList/couponColumn/index.js +0 -79
- package/miniprogram_dist/GoodsItem/index.js +6 -56
- package/miniprogram_dist/GoodsItem/index.less +299 -0
- package/miniprogram_dist/GoodsItem/index.scss +58 -113
- package/miniprogram_dist/GoodsItem/index.wxml +76 -149
- package/miniprogram_dist/GoodsItem/index.wxss +220 -404
- package/miniprogram_dist/LiveGoodsList/index.js +0 -126
- package/miniprogram_dist/TeacherGoodsList/index.js +4 -267
- package/miniprogram_dist/TeacherGoodsList/index.json +1 -3
- package/miniprogram_dist/TeacherGoodsList/index.less +62 -0
- package/miniprogram_dist/TeacherGoodsList/index.wxml +30 -77
- package/miniprogram_dist/TeacherGoodsList/index.wxss +14 -124
- package/package.json +1 -1
- package/src/CouponList/components/CouponItem/index.scss +1 -1
- package/src/CouponList/couponColumn/index.js +0 -79
- package/src/GoodsItem/index.js +6 -56
- package/src/GoodsItem/index.less +299 -0
- package/src/GoodsItem/index.scss +58 -113
- package/src/GoodsItem/index.wxml +76 -149
- package/src/GoodsItem/index.wxss +1172 -1364
- package/src/LiveGoodsList/index.js +0 -126
- package/src/TeacherGoodsList/index.js +4 -267
- package/src/TeacherGoodsList/index.json +1 -3
- package/src/TeacherGoodsList/index.less +62 -0
- package/src/TeacherGoodsList/index.wxml +30 -77
- package/src/TeacherGoodsList/index.wxss +59 -187
- package/miniprogram_dist/CouponList/components/CouponItem/index.css +0 -1715
- package/miniprogram_dist/CouponList/components/CouponItem/index.min.css +0 -1
- package/miniprogram_dist/GoodsItem/index.wxs +0 -19
- package/miniprogram_dist/TeacherGoodsList/index.scss +0 -143
- package/src/CouponList/components/CouponItem/index.css +0 -1715
- package/src/CouponList/components/CouponItem/index.min.css +0 -1
- package/src/GoodsItem/index.wxs +0 -19
- package/src/TeacherGoodsList/index.scss +0 -143
package/.gitlab-ci.yml
CHANGED
|
@@ -30,13 +30,6 @@ Component({
|
|
|
30
30
|
observer(newVal) {
|
|
31
31
|
newVal && this.initCouponList()
|
|
32
32
|
}
|
|
33
|
-
},
|
|
34
|
-
msgCouponData: {
|
|
35
|
-
type: Object,
|
|
36
|
-
value: {},
|
|
37
|
-
observer(newVal) {
|
|
38
|
-
newVal.switch && this.handlerListInfo(newVal)
|
|
39
|
-
}
|
|
40
33
|
}
|
|
41
34
|
},
|
|
42
35
|
|
|
@@ -68,78 +61,6 @@ Component({
|
|
|
68
61
|
* 组件的方法列表
|
|
69
62
|
*/
|
|
70
63
|
methods: {
|
|
71
|
-
/**
|
|
72
|
-
* 带货/优惠券实时同步
|
|
73
|
-
* @param {object} msgData im消息体
|
|
74
|
-
* @param {string} type 消息类型:带货goods、优惠券coupon
|
|
75
|
-
*/
|
|
76
|
-
handlerListInfo(msgData) {
|
|
77
|
-
let type = '', marketInfo = [], couponsList = this.data.couponsList
|
|
78
|
-
|
|
79
|
-
// jer todo 还有im接受的相关逻辑需要补充
|
|
80
|
-
// 遍历获取操作类型
|
|
81
|
-
for (let key in msgData) {
|
|
82
|
-
switch (key) {
|
|
83
|
-
// 新增操作
|
|
84
|
-
case "conf_list":
|
|
85
|
-
type = "couponConfList";
|
|
86
|
-
marketInfo = msgData[key];
|
|
87
|
-
break;
|
|
88
|
-
// 修改操作
|
|
89
|
-
case 'update_list':
|
|
90
|
-
type = 'couponUpdateList'
|
|
91
|
-
marketInfo = msgData[key]
|
|
92
|
-
break
|
|
93
|
-
// 删除操作
|
|
94
|
-
case 'batch_del':
|
|
95
|
-
type = 'couponDelList'
|
|
96
|
-
marketInfo = msgData[key]
|
|
97
|
-
break
|
|
98
|
-
default:
|
|
99
|
-
break
|
|
100
|
-
}
|
|
101
|
-
console.log('jer=========', type, marketInfo)
|
|
102
|
-
if (marketInfo?.length > 0) {
|
|
103
|
-
switch (type) {
|
|
104
|
-
case "couponConfList":
|
|
105
|
-
couponsList.push(...marketInfo);
|
|
106
|
-
break;
|
|
107
|
-
case "couponUpdateList":
|
|
108
|
-
marketInfo.map((item) => {
|
|
109
|
-
for (let index = 0; index < couponsList.length; index++) {
|
|
110
|
-
if (item.id === couponsList[index].id) {
|
|
111
|
-
// 遍历插入相应的修改值
|
|
112
|
-
for (let key in item) {
|
|
113
|
-
couponsList[index][key] = item[key];
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
});
|
|
118
|
-
break;
|
|
119
|
-
case "couponDelList":
|
|
120
|
-
console.log("jer===========1111????");
|
|
121
|
-
marketInfo.map((id) => {
|
|
122
|
-
console.log("jer===========1111????", couponsList);
|
|
123
|
-
for (let index = 0; index < couponsList.length; index++) {
|
|
124
|
-
if (id === couponsList[index].id) {
|
|
125
|
-
// 删除操作,获取下标
|
|
126
|
-
couponsList.splice(index, 1);
|
|
127
|
-
index--;
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
});
|
|
131
|
-
break;
|
|
132
|
-
default:
|
|
133
|
-
break;
|
|
134
|
-
}
|
|
135
|
-
type = ''
|
|
136
|
-
marketInfo = []
|
|
137
|
-
this.setData({
|
|
138
|
-
couponsList: couponsList
|
|
139
|
-
})
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
},
|
|
143
64
|
initCouponList() {
|
|
144
65
|
console.log('couponColumncouponColumncouponColumncouponColumncouponColumncouponColumncouponColumncouponColumncouponColumncouponColumncouponColumn')
|
|
145
66
|
const params = {
|
|
@@ -71,17 +71,7 @@ Component({
|
|
|
71
71
|
preheating,
|
|
72
72
|
isSeckill,
|
|
73
73
|
checked
|
|
74
|
-
}, () =>
|
|
75
|
-
if (
|
|
76
|
-
(newVal.is_activity && currentActive && newVal.activity_order_num === newVal.activity_stock) ||
|
|
77
|
-
newVal.stock === 0
|
|
78
|
-
) {
|
|
79
|
-
this.setData({
|
|
80
|
-
isOver: true,
|
|
81
|
-
})
|
|
82
|
-
}
|
|
83
|
-
this.countTime()
|
|
84
|
-
})
|
|
74
|
+
}, () => this.countTime())
|
|
85
75
|
}
|
|
86
76
|
},
|
|
87
77
|
sending: {
|
|
@@ -138,10 +128,6 @@ Component({
|
|
|
138
128
|
isGrayMarketing: {
|
|
139
129
|
type: Boolean,
|
|
140
130
|
value: false
|
|
141
|
-
},
|
|
142
|
-
isManage: {
|
|
143
|
-
type: Boolean,
|
|
144
|
-
value: false
|
|
145
131
|
}
|
|
146
132
|
},
|
|
147
133
|
|
|
@@ -168,8 +154,7 @@ Component({
|
|
|
168
154
|
isSeckill: false,
|
|
169
155
|
checked: false,
|
|
170
156
|
switchLoading: false,
|
|
171
|
-
imageRadius: rpxToVmin(16)
|
|
172
|
-
isOver: false, //是否已抢光
|
|
157
|
+
imageRadius: rpxToVmin(16)
|
|
173
158
|
},
|
|
174
159
|
computed: {
|
|
175
160
|
showPreferentialPrice(properties) {
|
|
@@ -216,7 +201,7 @@ Component({
|
|
|
216
201
|
},
|
|
217
202
|
//销量/订阅。只有 实物商品 21 、专栏 6、大专栏 8、会员 5 展示,受B端店铺设置(hide_sub_count):隐藏商品销量控制 0-显示 1-隐藏
|
|
218
203
|
hasSaleNum(data) {
|
|
219
|
-
return !data.goodsItem.hide_sub_count && data.goodsItem.order_num > 0
|
|
204
|
+
return [21, 6, 8, 5, 41, 68].indexOf(data.goodsItem.resource_type) > -1 && !data.goodsItem.hide_sub_count && data.goodsItem.order_num > 0
|
|
220
205
|
},
|
|
221
206
|
//销量/订阅。只有 实物商品 21 、专栏 6、大专栏 8、会员 5 展示
|
|
222
207
|
saleNum(data) {
|
|
@@ -235,7 +220,7 @@ Component({
|
|
|
235
220
|
let svipAllFree = data.goodsItem.resource_rights_type === 1
|
|
236
221
|
if (data.allContactPay || (data.isIOS && !data.IOSMiniProgramCanBuy)) {
|
|
237
222
|
// IOS小程序中不能买的展示去查看,跳转到小程序客服
|
|
238
|
-
return "
|
|
223
|
+
return "去查看"
|
|
239
224
|
} else if (data.goodsItem.hasStock && data.goodsItem.leftStock === 0) {
|
|
240
225
|
// 库存为0,已售罄
|
|
241
226
|
return "抢光了"
|
|
@@ -249,7 +234,7 @@ Component({
|
|
|
249
234
|
// 展示券后价
|
|
250
235
|
return "券后"
|
|
251
236
|
} else {
|
|
252
|
-
return "
|
|
237
|
+
return "去抢购"
|
|
253
238
|
}
|
|
254
239
|
},
|
|
255
240
|
//当前适用的活动或者超级会员,活动价低就是活动,会员价低就是超级会员,超级会员全免,肯定最低,适用超级会员
|
|
@@ -286,42 +271,7 @@ Component({
|
|
|
286
271
|
},
|
|
287
272
|
filterSrc(data) {
|
|
288
273
|
return utils.replaceCDN(data.goodsItem.img_url, '?imageMogr2/thumbnail/400x400>/ignore-error/1')
|
|
289
|
-
}
|
|
290
|
-
|
|
291
|
-
// 已售百分比
|
|
292
|
-
percentage(data) {
|
|
293
|
-
if (data.isOver) return 100
|
|
294
|
-
// 无库存 拼团、限时抢购
|
|
295
|
-
if (!data.goodsItem.activity_stock) return 28
|
|
296
|
-
let num = 0
|
|
297
|
-
num = (data.goodsItem.activity_order_num / data.goodsItem.activity_stock) * 100
|
|
298
|
-
// 有库存时,最低占40%
|
|
299
|
-
return num <= 40 ? 40 : num
|
|
300
|
-
},
|
|
301
|
-
// 商品剩余数量
|
|
302
|
-
residueQuantity(data) {
|
|
303
|
-
let formatNum = (num) => {
|
|
304
|
-
if (!num || isNaN(num)) return num
|
|
305
|
-
num = Number(num)
|
|
306
|
-
if (Math.abs(num) >= 100000000) {
|
|
307
|
-
num = num / 100000000
|
|
308
|
-
return this.isDecimals(Math.floor(num * 100) / 100) ? Math.floor(num * 100) / 100 + '亿' : num + '亿'
|
|
309
|
-
} else if (Math.abs(num) >= 10000) {
|
|
310
|
-
num = num / 10000
|
|
311
|
-
return this.isDecimals(Math.floor(num * 100) / 100) ? Math.floor(num * 100) / 100 + '万' : num + '万'
|
|
312
|
-
} else {
|
|
313
|
-
return num
|
|
314
|
-
}
|
|
315
|
-
}
|
|
316
|
-
|
|
317
|
-
// "已抢光"
|
|
318
|
-
if (data.isOver) return '已抢光'
|
|
319
|
-
|
|
320
|
-
// 没有库存 - 已开抢
|
|
321
|
-
if (!data.goodsItem.activity_stock) return '已开抢'
|
|
322
|
-
|
|
323
|
-
return `仅剩${formatNum(data.goodsItem.activity_stock - data.goodsItem.activity_order_num)}件`
|
|
324
|
-
},
|
|
274
|
+
}
|
|
325
275
|
},
|
|
326
276
|
/**
|
|
327
277
|
* 组件的方法列表
|
|
@@ -0,0 +1,299 @@
|
|
|
1
|
+
@import "../common/css/theme.wxss";
|
|
2
|
+
|
|
3
|
+
.goods-explaining {
|
|
4
|
+
position: absolute;
|
|
5
|
+
width: 32vmin;
|
|
6
|
+
height: 4.8vmin;
|
|
7
|
+
bottom: 0vmin;
|
|
8
|
+
left: 0vmin;
|
|
9
|
+
}
|
|
10
|
+
.goods-item {
|
|
11
|
+
display: flex;
|
|
12
|
+
min-height: 24vmin;
|
|
13
|
+
background: #ffffff;
|
|
14
|
+
margin: 0 4.27vmin 0 4.27vmin;
|
|
15
|
+
border-radius: 2.13vmin;
|
|
16
|
+
padding: 2.13vmin;
|
|
17
|
+
flex-direction: column;
|
|
18
|
+
|
|
19
|
+
.main-card{
|
|
20
|
+
display: flex;
|
|
21
|
+
flex-direction: row;
|
|
22
|
+
.left {
|
|
23
|
+
position: relative;
|
|
24
|
+
width: 32vmin;
|
|
25
|
+
height: 24vmin;
|
|
26
|
+
.index {
|
|
27
|
+
border-radius: 2.13vmin 0 2.13vmin 0;
|
|
28
|
+
position: absolute;
|
|
29
|
+
top: 0;
|
|
30
|
+
left: 0;
|
|
31
|
+
display: inline-flex;
|
|
32
|
+
align-items: center;
|
|
33
|
+
justify-content: center;
|
|
34
|
+
min-width: 4.8vmin;
|
|
35
|
+
height: 3.73vmin;
|
|
36
|
+
padding: 0.13vmin 0.8vmin;
|
|
37
|
+
font-size: 2.66vmin;
|
|
38
|
+
background: rgba(0,0,0,0.6);
|
|
39
|
+
color: #FFFFFF;
|
|
40
|
+
}
|
|
41
|
+
.ios-index {
|
|
42
|
+
background: rgba(0,0,0,0.25);
|
|
43
|
+
backdrop-filter: blur(3.2vmin);
|
|
44
|
+
}
|
|
45
|
+
.goods-type {
|
|
46
|
+
position: absolute;
|
|
47
|
+
right: calc(100% - 30.67vmin);
|
|
48
|
+
bottom: 1.07vmin;
|
|
49
|
+
padding: 1.07vmin 1.33vmin;
|
|
50
|
+
background: rgba(0,0,0,0.4);
|
|
51
|
+
border-radius: 1.07vmin;
|
|
52
|
+
color: #fff;
|
|
53
|
+
font-size: 2.67vmin;
|
|
54
|
+
width: fit-content;
|
|
55
|
+
display: flex;
|
|
56
|
+
justify-content: center;
|
|
57
|
+
align-items: center;
|
|
58
|
+
height: 2.67vmin;
|
|
59
|
+
font-weight: 500;
|
|
60
|
+
}
|
|
61
|
+
.ios-goods-type {
|
|
62
|
+
background: rgba(0,0,0,0.25) !important;
|
|
63
|
+
backdrop-filter: blur(3.2vmin);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
.right {
|
|
67
|
+
flex: 1;
|
|
68
|
+
display: flex;
|
|
69
|
+
flex-direction: column;
|
|
70
|
+
justify-content: space-between;
|
|
71
|
+
margin-left: 2.13vmin;
|
|
72
|
+
height: 24vmin;
|
|
73
|
+
width: calc(100% - 34.13vmin);
|
|
74
|
+
.line-one {
|
|
75
|
+
display: flex;
|
|
76
|
+
align-items: center;
|
|
77
|
+
height: 4.8vmin;
|
|
78
|
+
.activity-type {
|
|
79
|
+
background-color: #FFF3EB;
|
|
80
|
+
color: #FF781F;
|
|
81
|
+
padding: 0vmin 1.07vmin;
|
|
82
|
+
font-size: 2.67vmin;
|
|
83
|
+
height: 4.27vmin;
|
|
84
|
+
line-height: 4.8vmin;
|
|
85
|
+
flex-shrink: 0;
|
|
86
|
+
margin-right: 1.07vmin;
|
|
87
|
+
border-radius: 0.53vmin;
|
|
88
|
+
display: flex;
|
|
89
|
+
width: max-content;
|
|
90
|
+
align-items: center;
|
|
91
|
+
font-weight: 500;
|
|
92
|
+
}
|
|
93
|
+
.super-activity-type{
|
|
94
|
+
background: linear-gradient(180.25deg, rgba(51,51,51,1) 0%, rgba(81.6,81.6,81.6,1) 68%, rgba(51,51,51,1) 100%);
|
|
95
|
+
color: rgba(255,120,31,1);
|
|
96
|
+
padding: 0.53vmin 1.07vmin;
|
|
97
|
+
font-size: 2.67vmin;
|
|
98
|
+
height: 4.27vmin;
|
|
99
|
+
width: max-content;
|
|
100
|
+
line-height: 4.8vmin;
|
|
101
|
+
flex-shrink: 0;
|
|
102
|
+
margin-right: 1.07vmin;
|
|
103
|
+
border-radius: 0.53vmin;
|
|
104
|
+
display: flex;
|
|
105
|
+
font-weight: 500;
|
|
106
|
+
align-items: center;
|
|
107
|
+
.super-activity-txt{
|
|
108
|
+
background: linear-gradient(to right, #FFE4AD, #FFC266);
|
|
109
|
+
-webkit-background-clip: text;
|
|
110
|
+
color: transparent;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
.goods-title {
|
|
114
|
+
font-size: 3.73vmin;
|
|
115
|
+
color: #333333;
|
|
116
|
+
word-break: break-all;
|
|
117
|
+
display: inline-block;
|
|
118
|
+
overflow: hidden;
|
|
119
|
+
text-overflow: ellipsis;
|
|
120
|
+
white-space: nowrap;
|
|
121
|
+
display: inline-block;
|
|
122
|
+
vertical-align: middle;
|
|
123
|
+
line-height: 4.8vmin;
|
|
124
|
+
font-weight: 500;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
.sec-kill {
|
|
128
|
+
color: #FF781F;
|
|
129
|
+
font-size: 2.67vmin;
|
|
130
|
+
line-height: 4.27vmin;
|
|
131
|
+
margin: 1.07vmin 0;
|
|
132
|
+
}
|
|
133
|
+
.left-stock {
|
|
134
|
+
color: #999999;
|
|
135
|
+
font-size: 2.67vmin;
|
|
136
|
+
height: 3.2vmin;
|
|
137
|
+
display: flex;
|
|
138
|
+
align-items: center;
|
|
139
|
+
.split{
|
|
140
|
+
display: inline-block;
|
|
141
|
+
border-left: 0.13vmin solid #999999;
|
|
142
|
+
width: 0.27vmin;
|
|
143
|
+
height: 3.2vmin;
|
|
144
|
+
margin: 0 1.6vmin;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
.line-three {
|
|
148
|
+
display: flex;
|
|
149
|
+
justify-content: space-between;
|
|
150
|
+
align-items: flex-end;
|
|
151
|
+
.price {
|
|
152
|
+
position: relative;
|
|
153
|
+
min-height: 5.33vmin;
|
|
154
|
+
font-weight: 500;
|
|
155
|
+
.price-flow{
|
|
156
|
+
color: #FF5429;
|
|
157
|
+
font-size: 3.2vmin;
|
|
158
|
+
}
|
|
159
|
+
.price-show {
|
|
160
|
+
color: #FF5429;
|
|
161
|
+
font-size: 4.8vmin;
|
|
162
|
+
}
|
|
163
|
+
.price-line {
|
|
164
|
+
font-size: 2.67vmin;
|
|
165
|
+
text-decoration: line-through;
|
|
166
|
+
color: #999999;
|
|
167
|
+
margin-left: 1.07vmin;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
.buy-btn {
|
|
171
|
+
font-size: 3.2vmin;
|
|
172
|
+
border-radius: 5.33vmin;
|
|
173
|
+
width: 21.33vmin;
|
|
174
|
+
height: 7.47vmin;
|
|
175
|
+
display: flex;
|
|
176
|
+
justify-content: center;
|
|
177
|
+
align-items: center;
|
|
178
|
+
color: white;
|
|
179
|
+
line-height: 7.47vmin;
|
|
180
|
+
font-weight: 500;
|
|
181
|
+
background: linear-gradient(270deg, rgba(254,101,0,1) 0%, rgba(255,65,2,1) 100%);
|
|
182
|
+
}
|
|
183
|
+
.buy-btn-teacher{
|
|
184
|
+
font-size: 3.2vmin;
|
|
185
|
+
border-radius: 5.33vmin;
|
|
186
|
+
width: 21.33vmin;
|
|
187
|
+
height: 7.47vmin;
|
|
188
|
+
display: flex;
|
|
189
|
+
justify-content: center;
|
|
190
|
+
align-items: center;
|
|
191
|
+
color: white;
|
|
192
|
+
line-height: 7.47vmin;
|
|
193
|
+
font-weight: 500;
|
|
194
|
+
background: linear-gradient(270deg, rgba(254,101,0,1) 0%, rgba(255,65,2,1) 100%);
|
|
195
|
+
.load{
|
|
196
|
+
width: 3.2vmin;
|
|
197
|
+
height: 3.2vmin;
|
|
198
|
+
animation: turn 1s linear infinite;
|
|
199
|
+
margin-right: 1.06vmin;
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
.no-stock-btn{
|
|
203
|
+
font-size: 3.2vmin;
|
|
204
|
+
border-radius: 5.33vmin;
|
|
205
|
+
width: 21.33vmin;
|
|
206
|
+
height: 7.47vmin;
|
|
207
|
+
display: flex;
|
|
208
|
+
justify-content: center;
|
|
209
|
+
align-items: center;
|
|
210
|
+
color: white;
|
|
211
|
+
line-height: 7.47vmin;
|
|
212
|
+
font-weight: 500;
|
|
213
|
+
opacity: 40%;
|
|
214
|
+
background: linear-gradient(270deg, rgba(254,101,0,1) 0%, rgba(255,65,2,1) 100%);
|
|
215
|
+
}
|
|
216
|
+
.see-btn {
|
|
217
|
+
font-size: 3.2vmin;
|
|
218
|
+
border-radius: 5.33vmin;
|
|
219
|
+
width: 21.33vmin;
|
|
220
|
+
height: 7.47vmin;
|
|
221
|
+
display: flex;
|
|
222
|
+
justify-content: center;
|
|
223
|
+
align-items: center;
|
|
224
|
+
color: white;
|
|
225
|
+
line-height: 7.47vmin;
|
|
226
|
+
font-weight: 500;
|
|
227
|
+
margin-left: inherit;
|
|
228
|
+
margin-right: inherit;
|
|
229
|
+
background: linear-gradient(270deg, rgba(254,101,0,1) 0%, rgba(255,65,2,1) 100%);
|
|
230
|
+
}
|
|
231
|
+
.buy-btn-preferential{
|
|
232
|
+
font-size: 3.2vmin;
|
|
233
|
+
border-radius: 5.33vmin;
|
|
234
|
+
padding: 0 1.33vmin;
|
|
235
|
+
min-width: 21.33vmin;
|
|
236
|
+
height: 9.07vmin;
|
|
237
|
+
display: flex;
|
|
238
|
+
justify-content: center;
|
|
239
|
+
align-items: center;
|
|
240
|
+
color: white;
|
|
241
|
+
flex-flow: column;
|
|
242
|
+
line-height: 4.27vmin;
|
|
243
|
+
background: linear-gradient(270deg, rgba(254,101,0,1) 0%, rgba(255,65,2,1) 100%);
|
|
244
|
+
.go-buy{
|
|
245
|
+
font-size: 3.2vmin;
|
|
246
|
+
font-weight: 500;
|
|
247
|
+
}
|
|
248
|
+
.preferential-flow{
|
|
249
|
+
color: rgba(255,255,255,1);
|
|
250
|
+
font-size: 2.67vmin;
|
|
251
|
+
}
|
|
252
|
+
.preferential-show{
|
|
253
|
+
font-size: 3.73vmin;
|
|
254
|
+
color: rgba(255,255,255,1);
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
.teacher-switch{
|
|
262
|
+
height: 4.27vmin;
|
|
263
|
+
background: #fff;
|
|
264
|
+
display: flex;
|
|
265
|
+
margin-top: 2.13vmin;
|
|
266
|
+
.switch-txt{
|
|
267
|
+
opacity: 1;
|
|
268
|
+
color: rgba(51,51,51,1);
|
|
269
|
+
font-size: 3.2vmin;
|
|
270
|
+
font-weight: 400;
|
|
271
|
+
font-family: "PingFang SC";
|
|
272
|
+
margin-left: 2.13vmin;
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
@keyframes turn {
|
|
276
|
+
0% {
|
|
277
|
+
transform: rotate(0deg);
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
20% {
|
|
281
|
+
transform: rotate(72deg);
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
40% {
|
|
285
|
+
transform: rotate(144deg);
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
60% {
|
|
289
|
+
transform: rotate(216deg);
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
80% {
|
|
293
|
+
transform: rotate(288deg);
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
100% {
|
|
297
|
+
transform: rotate(360deg);
|
|
298
|
+
}
|
|
299
|
+
}
|