xiaoe_mp_npm 0.5.42-test2 → 0.5.42-test21
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/miniprogram_dist/ConfirmOrder/components/ConfirmOrderContent/index.scss +45 -0
- package/miniprogram_dist/ConfirmOrder/components/ConfirmOrderContent/index.wxss +37 -1
- package/miniprogram_dist/ConfirmOrder/components/GoodsInfo/index.scss +223 -0
- package/miniprogram_dist/ConfirmOrder/components/GoodsInfo/index.wxss +522 -36
- package/miniprogram_dist/ConfirmOrder/components/IntegralSelect/index.scss +91 -0
- package/miniprogram_dist/ConfirmOrder/components/IntegralSelect/index.wxss +170 -14
- package/miniprogram_dist/ConfirmOrder/components/Invoice/index.scss +61 -0
- package/miniprogram_dist/ConfirmOrder/components/Invoice/index.wxss +68 -2
- package/miniprogram_dist/ConfirmOrder/components/LeaveWord/index.scss +40 -0
- package/miniprogram_dist/ConfirmOrder/components/LeaveWord/index.wxss +26 -2
- package/miniprogram_dist/ConfirmOrder/components/PayBar/index.scss +62 -0
- package/miniprogram_dist/ConfirmOrder/components/PayBar/index.wxss +81 -3
- package/miniprogram_dist/ConfirmOrder/components/PayDetail/index.scss +41 -0
- package/miniprogram_dist/ConfirmOrder/components/PayDetail/index.wxss +35 -3
- package/miniprogram_dist/CouponList/components/CouponItem/index.css +1715 -1715
- package/miniprogram_dist/CouponList/components/CouponItem/index.js +31 -22
- package/miniprogram_dist/CouponList/components/CouponItem/index.min.css +1 -1
- package/miniprogram_dist/CouponList/components/CouponItem/index.wxml +6 -2
- package/miniprogram_dist/CouponList/components/CouponItem/index.wxss +1037 -79
- package/miniprogram_dist/CouponList/couponColumn/index.js +5 -1
- package/miniprogram_dist/CouponList/couponColumn/index.scss +118 -0
- package/miniprogram_dist/CouponList/couponColumn/index.wxml +1 -0
- package/miniprogram_dist/CouponList/couponColumn/index.wxss +221 -32
- package/miniprogram_dist/CouponReceivePopup/index.js +75 -0
- package/miniprogram_dist/CouponReceivePopup/index.json +6 -0
- package/miniprogram_dist/CouponReceivePopup/index.scss +99 -0
- package/miniprogram_dist/CouponReceivePopup/index.wxml +85 -0
- package/miniprogram_dist/CouponReceivePopup/index.wxss +75 -0
- package/miniprogram_dist/GoodsItem/index.js +7 -5
- package/miniprogram_dist/GoodsItem/index.scss +45 -22
- package/miniprogram_dist/GoodsItem/index.wxml +11 -11
- package/miniprogram_dist/GoodsItem/index.wxs +18 -18
- package/miniprogram_dist/GoodsItem/index.wxss +1273 -116
- package/miniprogram_dist/GoodsRecommend/index.scss +162 -0
- package/miniprogram_dist/GoodsRecommend/index.wxss +418 -33
- package/miniprogram_dist/LiveGoodsList/Header/index.scss +79 -0
- package/miniprogram_dist/LiveGoodsList/Header/index.wxss +148 -10
- package/miniprogram_dist/LiveGoodsList/index.js +167 -25
- package/miniprogram_dist/LiveGoodsList/index.scss +93 -0
- package/miniprogram_dist/LiveGoodsList/index.wxml +41 -19
- package/miniprogram_dist/LiveGoodsList/index.wxss +187 -19
- package/miniprogram_dist/PayModule/button/index.scss +45 -0
- package/miniprogram_dist/PayModule/button/index.wxss +46 -4
- package/miniprogram_dist/TeacherGoodsList/index.js +778 -585
- package/miniprogram_dist/TeacherGoodsList/index.scss +5 -2
- package/miniprogram_dist/TeacherGoodsList/index.wxml +42 -24
- package/miniprogram_dist/TeacherGoodsList/index.wxss +132 -14
- package/miniprogram_dist/common/api/liveGoodsList.js +10 -2
- package/miniprogram_dist/common/utils/index.js +14 -0
- package/miniprogram_dist/coupon/components/CouponItem/index.less +1 -0
- package/miniprogram_dist/coupon/components/CouponItem/index.scss +247 -0
- package/miniprogram_dist/coupon/components/CouponItem/index.wxss +677 -86
- package/miniprogram_dist/coupon/components/CouponSelect/index.scss +331 -0
- package/miniprogram_dist/coupon/components/CouponSelect/index.wxss +861 -59
- package/miniprogram_dist/coupon/index.scss +83 -0
- package/miniprogram_dist/coupon/index.wxss +171 -15
- package/package.json +2 -2
- package/src/ConfirmOrder/components/ConfirmOrderContent/index.scss +45 -0
- package/src/ConfirmOrder/components/ConfirmOrderContent/index.wxss +42 -1
- package/src/ConfirmOrder/components/GoodsInfo/index.scss +223 -0
- package/src/ConfirmOrder/components/GoodsInfo/index.wxss +552 -39
- package/src/ConfirmOrder/components/IntegralSelect/index.scss +91 -0
- package/src/ConfirmOrder/components/IntegralSelect/index.wxss +182 -14
- package/src/ConfirmOrder/components/Invoice/index.scss +61 -0
- package/src/ConfirmOrder/components/Invoice/index.wxss +75 -2
- package/src/ConfirmOrder/components/LeaveWord/index.scss +40 -0
- package/src/ConfirmOrder/components/LeaveWord/index.wxss +30 -2
- package/src/ConfirmOrder/components/PayBar/index.scss +62 -0
- package/src/ConfirmOrder/components/PayBar/index.wxss +87 -3
- package/src/ConfirmOrder/components/PayDetail/index.scss +41 -0
- package/src/ConfirmOrder/components/PayDetail/index.wxss +39 -3
- package/src/CouponList/components/CouponItem/index.css +1715 -1715
- package/src/CouponList/components/CouponItem/index.js +31 -22
- package/src/CouponList/components/CouponItem/index.min.css +1 -1
- package/src/CouponList/components/CouponItem/index.wxml +6 -2
- package/src/CouponList/components/CouponItem/index.wxss +1039 -85
- package/src/CouponList/couponColumn/index.js +5 -1
- package/src/CouponList/couponColumn/index.scss +118 -0
- package/src/CouponList/couponColumn/index.wxml +1 -0
- package/src/CouponList/couponColumn/index.wxss +236 -32
- package/src/CouponReceivePopup/index.js +75 -0
- package/src/CouponReceivePopup/index.json +6 -0
- package/src/CouponReceivePopup/index.scss +99 -0
- package/src/CouponReceivePopup/index.wxml +85 -0
- package/src/CouponReceivePopup/index.wxss +1 -0
- package/src/GoodsItem/index.js +7 -5
- package/src/GoodsItem/index.scss +45 -22
- package/src/GoodsItem/index.wxml +11 -11
- package/src/GoodsItem/index.wxs +18 -18
- package/src/GoodsItem/index.wxss +1331 -116
- package/src/GoodsRecommend/index.scss +162 -0
- package/src/GoodsRecommend/index.wxss +441 -33
- package/src/LiveGoodsList/Header/index.scss +79 -0
- package/src/LiveGoodsList/Header/index.wxss +156 -10
- package/src/LiveGoodsList/index.js +167 -25
- package/src/LiveGoodsList/index.scss +93 -0
- package/src/LiveGoodsList/index.wxml +41 -19
- package/src/LiveGoodsList/index.wxss +230 -50
- package/src/PayModule/button/index.scss +45 -0
- package/src/PayModule/button/index.wxss +50 -4
- package/src/TeacherGoodsList/index.js +778 -585
- package/src/TeacherGoodsList/index.scss +5 -2
- package/src/TeacherGoodsList/index.wxml +42 -24
- package/src/TeacherGoodsList/index.wxss +151 -14
- package/src/common/api/liveGoodsList.js +10 -2
- package/src/common/utils/index.js +14 -0
- package/src/coupon/components/CouponItem/index.less +1 -0
- package/src/coupon/components/CouponItem/index.scss +247 -0
- package/src/coupon/components/CouponItem/index.wxss +712 -86
- package/src/coupon/components/CouponSelect/index.scss +331 -0
- package/src/coupon/components/CouponSelect/index.wxss +910 -59
- package/src/coupon/index.scss +83 -0
- package/src/coupon/index.wxss +181 -15
- package/miniprogram_dist/GoodsItem/index.css +0 -1364
- package/miniprogram_dist/GoodsItem/index.less +0 -299
- package/miniprogram_dist/GoodsItem/index.min.css +0 -1
- package/miniprogram_dist/TeacherGoodsList/index.css +0 -187
- package/miniprogram_dist/TeacherGoodsList/index.min.css +0 -1
- package/src/GoodsItem/index.css +0 -1364
- package/src/GoodsItem/index.less +0 -299
- package/src/GoodsItem/index.min.css +0 -1
- package/src/TeacherGoodsList/index.css +0 -187
- package/src/TeacherGoodsList/index.min.css +0 -1
|
@@ -29,7 +29,6 @@ $deviceWidth: 750;
|
|
|
29
29
|
display: flex;
|
|
30
30
|
flex-direction: column;
|
|
31
31
|
height: 100%;
|
|
32
|
-
padding: 0 vmin(32);
|
|
33
32
|
.finished-text{
|
|
34
33
|
display: flex;
|
|
35
34
|
justify-content: center;
|
|
@@ -38,9 +37,13 @@ $deviceWidth: 750;
|
|
|
38
37
|
padding: 2.67vmin 0;
|
|
39
38
|
}
|
|
40
39
|
.check-box{
|
|
41
|
-
padding-left:
|
|
40
|
+
padding-left: 0 !important;
|
|
41
|
+
}
|
|
42
|
+
.full-item{
|
|
43
|
+
margin-left: vmin(32);
|
|
42
44
|
}
|
|
43
45
|
}
|
|
46
|
+
|
|
44
47
|
.no-data{
|
|
45
48
|
display: flex;
|
|
46
49
|
flex-direction: column;
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
-->
|
|
11
11
|
<!-- 商品列表 start-->
|
|
12
12
|
<scroll-view
|
|
13
|
-
class="goods-list"
|
|
13
|
+
class="goods-list {{isFullScreen?'full-list':''}}"
|
|
14
14
|
scroll-y="true"
|
|
15
15
|
bindscrolltolower="onScrolltolower"
|
|
16
16
|
refresher-triggered="{{refreshing}}"
|
|
@@ -19,28 +19,30 @@
|
|
|
19
19
|
wx:if="{{aliveConf.is_takegoods && finishedTxt !== 'no-data'}}"
|
|
20
20
|
>
|
|
21
21
|
<block wx:if="{{isManage}}">
|
|
22
|
-
<van-checkbox-group value="{{
|
|
23
|
-
<
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
22
|
+
<van-checkbox-group value="{{ selectGoodsIndexArr }}" bind:change="onChange">
|
|
23
|
+
<view wx:for="{{goodsInfo}}" class="full-item" wx:for-item="goodsItem" wx:key="index">
|
|
24
|
+
<van-checkbox
|
|
25
|
+
name="{{goodsItem.id}}"
|
|
26
|
+
label-class="check-box"
|
|
27
|
+
catchtap="selectToast"
|
|
28
|
+
data-item="{{index}}"
|
|
29
|
+
disabled="{{selectGoodsIndexArr.length >= 10 && selectGoodsModule.checkBoxDisable(selectGoodsIndexArr,goodsItem.id)}}"
|
|
30
|
+
>
|
|
31
|
+
<goods-item
|
|
32
|
+
goodsInfo="{{goodsItem}}"
|
|
33
|
+
aliveInfo="{{aliveInfo}}"
|
|
34
|
+
bind:sendGoodsCard="sendGoodsCard"
|
|
35
|
+
class="goods-item"
|
|
36
|
+
envName="{{ENV_NAME}}"
|
|
37
|
+
sensorReportParams="{{sensorReportParams}}"
|
|
38
|
+
current_role="teacher"
|
|
39
|
+
index="{{index}}"
|
|
40
|
+
sending="{{sending && index === sendingIndex}}"
|
|
41
|
+
isFullScreen="{{isFullScreen}}"
|
|
42
|
+
isManage="{{true}}"
|
|
43
|
+
></goods-item>
|
|
44
|
+
</van-checkbox>
|
|
45
|
+
</view>
|
|
44
46
|
</van-checkbox-group>
|
|
45
47
|
</block>
|
|
46
48
|
<block wx:else>
|
|
@@ -81,8 +83,24 @@
|
|
|
81
83
|
<view class="goods-select" catchtouchmove wx:if="{{isManage}}">
|
|
82
84
|
<view class="selected">
|
|
83
85
|
<text>已选</text>
|
|
84
|
-
<text class="selected-num">{{
|
|
86
|
+
<text class="selected-num">{{selectGoods.length}}</text>
|
|
85
87
|
</view>
|
|
86
88
|
<view class="select-btn show" data-type="show" bindtap="changeShowType">显示</view>
|
|
87
89
|
<view class="select-btn hide" data-type="hide" bindtap="changeShowType">隐藏</view>
|
|
88
90
|
</view>
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
<wxs module="selectGoodsModule">
|
|
95
|
+
var checkBoxDisable = function(arr, id) {
|
|
96
|
+
if(arr.indexOf(id) === -1) {
|
|
97
|
+
return true
|
|
98
|
+
}else {
|
|
99
|
+
return false
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
module.exports = {
|
|
104
|
+
checkBoxDisable: checkBoxDisable
|
|
105
|
+
}
|
|
106
|
+
</wxs>
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
.box {
|
|
2
2
|
margin: 0 3.2vmin;
|
|
3
3
|
}
|
|
4
|
+
|
|
4
5
|
.title {
|
|
5
6
|
margin: 0;
|
|
6
7
|
padding: 8.53vmin 4.27vmin 4.27vmin;
|
|
@@ -10,36 +11,26 @@
|
|
|
10
11
|
line-height: 5.33vmin;
|
|
11
12
|
text-align: center;
|
|
12
13
|
}
|
|
14
|
+
|
|
13
15
|
.btn {
|
|
14
16
|
display: block;
|
|
15
17
|
width: 100%;
|
|
16
18
|
margin: 2.67vmin 0;
|
|
17
19
|
background-color: #fff;
|
|
18
20
|
}
|
|
19
|
-
|
|
20
|
-
box-sizing: border-box;
|
|
21
|
-
min-height: 80vmin;
|
|
22
|
-
display: flex;
|
|
23
|
-
flex-direction: column;
|
|
24
|
-
height: 100%;
|
|
25
|
-
}
|
|
26
|
-
.goods-list .finished-text {
|
|
27
|
-
display: flex;
|
|
28
|
-
justify-content: center;
|
|
29
|
-
color: #999;
|
|
30
|
-
font-size: 3.73vmin;
|
|
31
|
-
padding: 2.67vmin 0;
|
|
32
|
-
}
|
|
21
|
+
|
|
33
22
|
.no-data {
|
|
34
23
|
display: flex;
|
|
35
24
|
flex-direction: column;
|
|
36
25
|
align-items: center;
|
|
37
26
|
padding-top: 21.87vmin;
|
|
38
27
|
}
|
|
28
|
+
|
|
39
29
|
.no-data .no-data-png {
|
|
40
30
|
width: 23.47vmin;
|
|
41
31
|
height: 23.47vmin;
|
|
42
32
|
}
|
|
33
|
+
|
|
43
34
|
.no-data .no-data-text {
|
|
44
35
|
color: #333333;
|
|
45
36
|
font-size: 3.73vmin;
|
|
@@ -48,6 +39,7 @@
|
|
|
48
39
|
margin-top: 4.27vmin;
|
|
49
40
|
margin-bottom: 2.13vmin;
|
|
50
41
|
}
|
|
42
|
+
|
|
51
43
|
.no-data .chat-text {
|
|
52
44
|
opacity: 1;
|
|
53
45
|
color: #999999;
|
|
@@ -57,3 +49,148 @@
|
|
|
57
49
|
padding: 0 12vmin 0 11.73vmin;
|
|
58
50
|
text-align: center;
|
|
59
51
|
}
|
|
52
|
+
|
|
53
|
+
.goods-select {
|
|
54
|
+
right: 0;
|
|
55
|
+
position: fixed;
|
|
56
|
+
bottom: 0;
|
|
57
|
+
background: #FFFFFF;
|
|
58
|
+
height: 13.86667vmin;
|
|
59
|
+
border-top: 0.13333vmin solid #ebebeb;
|
|
60
|
+
backdrop-filter: blur(10.66667vmin);
|
|
61
|
+
padding: 3.2vmin 4.26667vmin;
|
|
62
|
+
display: flex;
|
|
63
|
+
align-items: center;
|
|
64
|
+
width: 100%;
|
|
65
|
+
justify-content: flex-end;
|
|
66
|
+
box-sizing: border-box;
|
|
67
|
+
z-index: 99;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.goods-select .selected {
|
|
71
|
+
margin-right: 3.2vmin;
|
|
72
|
+
font-size: 3.73333vmin;
|
|
73
|
+
color: #999999;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.goods-select .selected .selected-num {
|
|
77
|
+
color: #333333;
|
|
78
|
+
margin-left: 1.33333vmin;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.goods-select .select-btn {
|
|
82
|
+
width: 17.06667vmin;
|
|
83
|
+
height: 7.46667vmin;
|
|
84
|
+
border-radius: 1.06667vmin;
|
|
85
|
+
opacity: 1;
|
|
86
|
+
display: flex;
|
|
87
|
+
justify-content: center;
|
|
88
|
+
align-items: center;
|
|
89
|
+
font-size: 3.2vmin;
|
|
90
|
+
font-weight: 500;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.goods-select .show {
|
|
94
|
+
background: #1472ff;
|
|
95
|
+
color: #ffffff;
|
|
96
|
+
margin-right: 3.2vmin;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.goods-select .hide {
|
|
100
|
+
background: #ffffff;
|
|
101
|
+
color: #333333;
|
|
102
|
+
border: 1rpx solid #cccccc;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.goods-list {
|
|
106
|
+
box-sizing: border-box;
|
|
107
|
+
min-height: 80vmin;
|
|
108
|
+
display: flex;
|
|
109
|
+
flex-direction: column;
|
|
110
|
+
height: 100%;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.goods-list .finished-text {
|
|
114
|
+
display: flex;
|
|
115
|
+
justify-content: center;
|
|
116
|
+
color: #999;
|
|
117
|
+
font-size: 3.73vmin;
|
|
118
|
+
padding: 2.67vmin 0;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.goods-list .check-box {
|
|
122
|
+
padding-left: 0 !important;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.goods-list .full-item {
|
|
126
|
+
margin-left: 4.26667vmin;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
@media screen and (min-width: 768px) and (orientation: portrait) {
|
|
130
|
+
.goods-list {
|
|
131
|
+
box-sizing: border-box;
|
|
132
|
+
min-height: 80vmin;
|
|
133
|
+
display: flex;
|
|
134
|
+
flex-direction: column;
|
|
135
|
+
height: 100%;
|
|
136
|
+
}
|
|
137
|
+
.goods-list .finished-text {
|
|
138
|
+
display: flex;
|
|
139
|
+
justify-content: center;
|
|
140
|
+
color: #999;
|
|
141
|
+
font-size: 3.73vmin;
|
|
142
|
+
padding: 2.67vmin 0;
|
|
143
|
+
}
|
|
144
|
+
.goods-list .check-box {
|
|
145
|
+
padding-left: 0 !important;
|
|
146
|
+
}
|
|
147
|
+
.goods-list .full-item {
|
|
148
|
+
margin-left: 2.08333vmin;
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
@media screen and (min-height: 630px) and (orientation: landscape) {
|
|
153
|
+
.goods-list {
|
|
154
|
+
box-sizing: border-box;
|
|
155
|
+
min-height: 80vmin;
|
|
156
|
+
display: flex;
|
|
157
|
+
flex-direction: column;
|
|
158
|
+
height: 100%;
|
|
159
|
+
}
|
|
160
|
+
.goods-list .finished-text {
|
|
161
|
+
display: flex;
|
|
162
|
+
justify-content: center;
|
|
163
|
+
color: #999;
|
|
164
|
+
font-size: 3.73vmin;
|
|
165
|
+
padding: 2.67vmin 0;
|
|
166
|
+
}
|
|
167
|
+
.goods-list .check-box {
|
|
168
|
+
padding-left: 0 !important;
|
|
169
|
+
}
|
|
170
|
+
.goods-list .full-item {
|
|
171
|
+
margin-left: 2.53968vmin;
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
@media screen and (min-height: 768px) and (orientation: landscape) {
|
|
176
|
+
.goods-list {
|
|
177
|
+
box-sizing: border-box;
|
|
178
|
+
min-height: 80vmin;
|
|
179
|
+
display: flex;
|
|
180
|
+
flex-direction: column;
|
|
181
|
+
height: 100%;
|
|
182
|
+
}
|
|
183
|
+
.goods-list .finished-text {
|
|
184
|
+
display: flex;
|
|
185
|
+
justify-content: center;
|
|
186
|
+
color: #999;
|
|
187
|
+
font-size: 3.73vmin;
|
|
188
|
+
padding: 2.67vmin 0;
|
|
189
|
+
}
|
|
190
|
+
.goods-list .check-box {
|
|
191
|
+
padding-left: 0 !important;
|
|
192
|
+
}
|
|
193
|
+
.goods-list .full-item {
|
|
194
|
+
margin-left: 2.08333vmin;
|
|
195
|
+
}
|
|
196
|
+
}
|
|
@@ -27,7 +27,9 @@ const GOODS_LIST = {
|
|
|
27
27
|
SNAP_CHECK: `${gateway()}xe.ecommerce.alive_goods_system.check.snap_up/1.0.0`,
|
|
28
28
|
SNAP_CHECK_NEW: `${gateway()}xe.ecommerce.check.snap_up/3.0.0`,
|
|
29
29
|
|
|
30
|
-
SHOW_GOODS: `${gateway()}xe.user.display_package.edit
|
|
30
|
+
SHOW_GOODS: `${gateway()}xe.user.display_package.edit`,
|
|
31
|
+
|
|
32
|
+
REQUEST_CHANGE_SHOW: `${gateway()}elive/goods/xe.alive_goods.batch_edit_display/1.0.0`
|
|
31
33
|
};
|
|
32
34
|
|
|
33
35
|
// 获取商品列表
|
|
@@ -70,6 +72,11 @@ const showGoods = (params, isNeedBiz = true, config = {}) => {
|
|
|
70
72
|
return http.player.post(GOODS_LIST.SHOW_GOODS, params, isNeedBiz, config);
|
|
71
73
|
}
|
|
72
74
|
|
|
75
|
+
// 批量操作显示隐藏
|
|
76
|
+
const requestChangeShow = (params, isNeedBiz = false, config = {}) => {
|
|
77
|
+
return http.player.post(GOODS_LIST.REQUEST_CHANGE_SHOW, params, isNeedBiz, config)
|
|
78
|
+
}
|
|
79
|
+
|
|
73
80
|
module.exports = {
|
|
74
81
|
getGoodsList,
|
|
75
82
|
getGoodsListNew,
|
|
@@ -78,5 +85,6 @@ module.exports = {
|
|
|
78
85
|
getUserPermissionNew,
|
|
79
86
|
snapCheck,
|
|
80
87
|
snapCheckNew,
|
|
81
|
-
showGoods
|
|
88
|
+
showGoods,
|
|
89
|
+
requestChangeShow
|
|
82
90
|
}
|
|
@@ -54,3 +54,17 @@ export const isEmptyObject = (object) => {
|
|
|
54
54
|
export const isPhone = (val) => {
|
|
55
55
|
return /^1(3|4|5|6|7|8)\d{9}$/.test(val);
|
|
56
56
|
}
|
|
57
|
+
|
|
58
|
+
// 大屏适配 rpx 转 vmin
|
|
59
|
+
export const rpxToVmin = (rpx) => {
|
|
60
|
+
const { screenWidth, screenHeight, deviceOrientation, platform } = wx.getSystemInfoSync()
|
|
61
|
+
const isPadSize = (screenWidth >= 768 && deviceOrientation === 'portrait') || (screenHeight >= 768 && deviceOrientation === 'landscape')
|
|
62
|
+
const isPcEquipment = platform === 'windows' || platform === 'mac' || platform === 'devtools'
|
|
63
|
+
const pcHighResolution = screenHeight >= 768
|
|
64
|
+
let deviceWidth = 750
|
|
65
|
+
// ipad平板
|
|
66
|
+
if (isPadSize) deviceWidth = 1536
|
|
67
|
+
// PC高分辨率或PC放大项目
|
|
68
|
+
if (isPcEquipment) deviceWidth = pcHighResolution ? 1536 : 1260
|
|
69
|
+
return `${rpx * 100 / deviceWidth}vmin`
|
|
70
|
+
}
|
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
$deviceWidth: 750;
|
|
2
|
+
@function vmin($rpx) {
|
|
3
|
+
@return #{$rpx * 100 / $deviceWidth}vmin;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
@mixin couponNewWrap{
|
|
7
|
+
width: 100%;
|
|
8
|
+
margin-bottom: vmin(26.4);
|
|
9
|
+
margin-left: auto;
|
|
10
|
+
margin-right: auto;
|
|
11
|
+
|
|
12
|
+
.couponNewV2 {
|
|
13
|
+
position: relative;
|
|
14
|
+
display: flex;
|
|
15
|
+
width: 100%;
|
|
16
|
+
height: vmin(224.4);
|
|
17
|
+
margin-left: auto;
|
|
18
|
+
margin-right: auto;
|
|
19
|
+
overflow: hidden;
|
|
20
|
+
border-radius: vmin(8);
|
|
21
|
+
background-color: #fff;
|
|
22
|
+
|
|
23
|
+
// 优惠券不可用样式
|
|
24
|
+
.disabledState{
|
|
25
|
+
background-color: #EEEEEE!important;
|
|
26
|
+
.couponValue{
|
|
27
|
+
background: #CDCDCD!important;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.couponValue {
|
|
32
|
+
width: vmin(228);
|
|
33
|
+
height: vmin(224.4);
|
|
34
|
+
background: #FF821F !important;
|
|
35
|
+
box-sizing: border-box;
|
|
36
|
+
border-radius: vmin(8) 0 0 vmin(8);
|
|
37
|
+
.couponPrice {
|
|
38
|
+
position: relative;
|
|
39
|
+
width: 100%;
|
|
40
|
+
height: vmin(99);
|
|
41
|
+
margin: vmin(31) auto vmin(8);
|
|
42
|
+
text-align: center;
|
|
43
|
+
line-height: vmin(99);
|
|
44
|
+
font-size: vmin(97);
|
|
45
|
+
font-weight: 500;
|
|
46
|
+
color: #fff;
|
|
47
|
+
.fontSmall {
|
|
48
|
+
font-size: vmin(53) !important;
|
|
49
|
+
}
|
|
50
|
+
.fontLastSmall{
|
|
51
|
+
font-size: vmin(35) !important;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.fixedfont{
|
|
55
|
+
font-size: vmin(26.4) !important;
|
|
56
|
+
|
|
57
|
+
}
|
|
58
|
+
.fixedPercent{
|
|
59
|
+
font-size: vmin(35) !important;
|
|
60
|
+
}
|
|
61
|
+
span {
|
|
62
|
+
position: relative;
|
|
63
|
+
display: inline-block;
|
|
64
|
+
}
|
|
65
|
+
.discountFont,.coupon-symbol{
|
|
66
|
+
font-size: vmin(35);
|
|
67
|
+
margin-left: vmin(2);
|
|
68
|
+
margin-left: -vmin(1);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.couponUseCondition {
|
|
74
|
+
width: 100%;
|
|
75
|
+
overflow: hidden;
|
|
76
|
+
max-height: vmin(88);
|
|
77
|
+
line-height: vmin(40);
|
|
78
|
+
color:#fff;
|
|
79
|
+
text-align: center;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.couponMaxDiscountNum {
|
|
83
|
+
width: 100%;
|
|
84
|
+
text-align: center;
|
|
85
|
+
color: #fff;
|
|
86
|
+
margin-bottom: vmin(55);
|
|
87
|
+
font-size: vmin(10);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.couponInfo {
|
|
92
|
+
position: relative;
|
|
93
|
+
display: flex;
|
|
94
|
+
flex-direction: column;
|
|
95
|
+
justify-content: space-between;
|
|
96
|
+
width: vmin(374);
|
|
97
|
+
height: 100%;
|
|
98
|
+
overflow: hidden;
|
|
99
|
+
box-sizing: border-box;
|
|
100
|
+
padding: vmin(18) 0 vmin(18) vmin(26.4);
|
|
101
|
+
border-bottom-right-radius: vmin(8);
|
|
102
|
+
border-top-right-radius: vmin(8);
|
|
103
|
+
color:#888888;
|
|
104
|
+
font-size: vmin(22);
|
|
105
|
+
text-align: left;
|
|
106
|
+
span{
|
|
107
|
+
display: inline-block;
|
|
108
|
+
}
|
|
109
|
+
.couponName {
|
|
110
|
+
width: 100%;
|
|
111
|
+
line-height: vmin(33);
|
|
112
|
+
white-space: nowrap;
|
|
113
|
+
overflow: hidden;
|
|
114
|
+
text-overflow: ellipsis;
|
|
115
|
+
margin-bottom: vmin(18);
|
|
116
|
+
color:#505050;
|
|
117
|
+
font-size: vmin(26.4);
|
|
118
|
+
font-weight:500;
|
|
119
|
+
}
|
|
120
|
+
.couponUseTime {
|
|
121
|
+
width: 100%;
|
|
122
|
+
height: vmin(31);
|
|
123
|
+
line-height: vmin(31);
|
|
124
|
+
font-size: vmin(22);
|
|
125
|
+
}
|
|
126
|
+
.noSuperposition{
|
|
127
|
+
color: #FF821F;
|
|
128
|
+
}
|
|
129
|
+
.moreInfo{
|
|
130
|
+
display: flex;
|
|
131
|
+
align-items: center;
|
|
132
|
+
padding: vmin(2) 0;
|
|
133
|
+
}
|
|
134
|
+
.operateBtn{
|
|
135
|
+
width: vmin(26.4);
|
|
136
|
+
height: vmin(26.4);
|
|
137
|
+
cursor: pointer;
|
|
138
|
+
margin-left: vmin(6.6);
|
|
139
|
+
background-size: 100% 100%;
|
|
140
|
+
}
|
|
141
|
+
.retract{
|
|
142
|
+
background: url('../../../common/assets/images/coupon/up.svg') center no-repeat;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.couponState {
|
|
147
|
+
position: absolute;
|
|
148
|
+
right: 0;
|
|
149
|
+
width: vmin(132);
|
|
150
|
+
height: 100%;
|
|
151
|
+
.superImg{
|
|
152
|
+
width: vmin(88);
|
|
153
|
+
height: vmin(88);
|
|
154
|
+
background-size: 100% 100%;
|
|
155
|
+
position: absolute;
|
|
156
|
+
right: 0;
|
|
157
|
+
}
|
|
158
|
+
.coupon-choose-box {
|
|
159
|
+
display: flex;
|
|
160
|
+
align-items: center;
|
|
161
|
+
justify-content: center;
|
|
162
|
+
width: 100%;
|
|
163
|
+
height: 100%;
|
|
164
|
+
border-radius: 0 vmin(8) vmin(8) 0;
|
|
165
|
+
|
|
166
|
+
.coupon-choose {
|
|
167
|
+
width: vmin(44);
|
|
168
|
+
height: vmin(44);
|
|
169
|
+
background-size: 100% 100%;
|
|
170
|
+
border-radius: 50%;
|
|
171
|
+
box-sizing: border-box;
|
|
172
|
+
// background: url('../../assets/images/couponSelect/coupon_select.png');
|
|
173
|
+
background-size: 100% 100%;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.coupon-unchoosed {
|
|
177
|
+
border: vmin(4) solid #CCC;
|
|
178
|
+
background: none;
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
&:last-child {
|
|
185
|
+
margin-bottom: 0;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.detailInfo{
|
|
189
|
+
display: flex;
|
|
190
|
+
align-items: center;
|
|
191
|
+
padding: vmin(35);
|
|
192
|
+
background-color: #FFFAF4;
|
|
193
|
+
box-sizing: border-box;
|
|
194
|
+
border-radius: 0 0 0.53vmin 0.53vmin;
|
|
195
|
+
color: #505050;
|
|
196
|
+
font-size: vmin(22);
|
|
197
|
+
background: #FFFAF4;
|
|
198
|
+
text-align: left;
|
|
199
|
+
|
|
200
|
+
// 详细信息不可用优惠券时的字段
|
|
201
|
+
&.whiteBg{
|
|
202
|
+
background-color: #fff!important;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
.disabledHint{
|
|
206
|
+
width: vmin(30);
|
|
207
|
+
height: vmin(30);
|
|
208
|
+
margin-right: vmin(8);
|
|
209
|
+
transform: translateY(vmin(6));
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
.instructions {
|
|
213
|
+
font-size: vmin(14);
|
|
214
|
+
color: #505050;
|
|
215
|
+
text {
|
|
216
|
+
white-space: pre-wrap;
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
.couponNewWrap {
|
|
224
|
+
@include couponNewWrap;
|
|
225
|
+
}
|
|
226
|
+
// 竖屏pad
|
|
227
|
+
@media screen and (min-width: 768px) and (orientation: portrait) {
|
|
228
|
+
$deviceWidth: 1536 !global;
|
|
229
|
+
.couponNewWrap {
|
|
230
|
+
@include couponNewWrap;
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
// PC 放大适配
|
|
234
|
+
@media screen and (min-height: 630px) and (orientation: landscape) {
|
|
235
|
+
$deviceWidth: 1260 !global;
|
|
236
|
+
|
|
237
|
+
.couponNewWrap {
|
|
238
|
+
@include couponNewWrap;
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
// 横屏pad
|
|
242
|
+
@media screen and (min-height: 768px) and (orientation: landscape) {
|
|
243
|
+
$deviceWidth: 1536 !global;
|
|
244
|
+
.couponNewWrap {
|
|
245
|
+
@include couponNewWrap;
|
|
246
|
+
}
|
|
247
|
+
}
|