xiaoe_mp_npm 0.5.39 → 0.5.40-alpha2
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 +37 -0
- package/miniprogram_dist/ConfirmOrder/components/ConfirmOrderContent/index.wxss +25 -1
- package/miniprogram_dist/ConfirmOrder/components/GoodsInfo/index.scss +215 -0
- package/miniprogram_dist/ConfirmOrder/components/GoodsInfo/index.wxss +360 -36
- package/miniprogram_dist/ConfirmOrder/components/IntegralSelect/index.scss +83 -0
- package/miniprogram_dist/ConfirmOrder/components/IntegralSelect/index.wxss +118 -14
- package/miniprogram_dist/ConfirmOrder/components/Invoice/index.scss +51 -0
- package/miniprogram_dist/ConfirmOrder/components/Invoice/index.wxss +46 -2
- package/miniprogram_dist/ConfirmOrder/components/LeaveWord/index.scss +32 -0
- package/miniprogram_dist/ConfirmOrder/components/LeaveWord/index.wxss +18 -2
- package/miniprogram_dist/ConfirmOrder/components/PayBar/index.scss +54 -0
- package/miniprogram_dist/ConfirmOrder/components/PayBar/index.wxss +55 -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.js +83 -91
- package/miniprogram_dist/CouponList/components/CouponItem/index.scss +130 -132
- package/miniprogram_dist/CouponList/components/CouponItem/index.wxss +624 -78
- package/miniprogram_dist/CouponList/couponColumn/index.scss +106 -0
- package/miniprogram_dist/CouponList/couponColumn/index.wxss +159 -33
- package/miniprogram_dist/GoodsItem/index.js +21 -3
- package/miniprogram_dist/GoodsItem/index.scss +323 -0
- package/miniprogram_dist/GoodsItem/index.wxml +1 -1
- package/miniprogram_dist/GoodsItem/index.wxss +630 -85
- package/miniprogram_dist/GoodsRecommend/index.scss +154 -0
- package/miniprogram_dist/GoodsRecommend/index.wxss +289 -33
- package/miniprogram_dist/LiveGoodsList/Header/index.scss +71 -0
- package/miniprogram_dist/LiveGoodsList/Header/index.wxss +102 -10
- package/miniprogram_dist/LiveGoodsList/index.js +8 -1
- package/miniprogram_dist/LiveGoodsList/index.scss +80 -0
- package/miniprogram_dist/LiveGoodsList/index.wxml +56 -33
- package/miniprogram_dist/LiveGoodsList/index.wxss +123 -19
- package/miniprogram_dist/PayModule/button/index.scss +37 -0
- package/miniprogram_dist/PayModule/button/index.wxss +32 -4
- package/miniprogram_dist/common/utils/index.js +9 -0
- package/miniprogram_dist/coupon/components/CouponItem/index.less +1 -0
- package/miniprogram_dist/coupon/components/CouponItem/index.scss +239 -0
- package/miniprogram_dist/coupon/components/CouponSelect/index.scss +319 -0
- package/miniprogram_dist/coupon/components/CouponSelect/index.wxss +594 -59
- package/miniprogram_dist/coupon/index.scss +75 -0
- package/miniprogram_dist/coupon/index.wxss +119 -15
- package/package.json +1 -1
- package/src/ConfirmOrder/components/ConfirmOrderContent/index.scss +37 -0
- package/src/ConfirmOrder/components/ConfirmOrderContent/index.wxss +29 -1
- package/src/ConfirmOrder/components/GoodsInfo/index.scss +215 -0
- package/src/ConfirmOrder/components/GoodsInfo/index.wxss +390 -39
- package/src/ConfirmOrder/components/IntegralSelect/index.scss +83 -0
- package/src/ConfirmOrder/components/IntegralSelect/index.wxss +129 -14
- package/src/ConfirmOrder/components/Invoice/index.scss +51 -0
- package/src/ConfirmOrder/components/Invoice/index.wxss +52 -2
- package/src/ConfirmOrder/components/LeaveWord/index.scss +32 -0
- package/src/ConfirmOrder/components/LeaveWord/index.wxss +21 -2
- package/src/ConfirmOrder/components/PayBar/index.scss +54 -0
- package/src/ConfirmOrder/components/PayBar/index.wxss +60 -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.js +83 -91
- package/src/CouponList/components/CouponItem/index.scss +130 -132
- package/src/CouponList/components/CouponItem/index.wxss +625 -84
- package/src/CouponList/couponColumn/index.scss +106 -0
- package/src/CouponList/couponColumn/index.wxss +173 -33
- package/src/GoodsItem/index.js +21 -3
- package/src/GoodsItem/index.scss +323 -0
- package/src/GoodsItem/index.wxml +1 -1
- package/src/GoodsItem/index.wxss +673 -85
- package/src/GoodsRecommend/index.scss +154 -0
- package/src/GoodsRecommend/index.wxss +311 -33
- package/src/LiveGoodsList/Header/index.scss +71 -0
- package/src/LiveGoodsList/Header/index.wxss +109 -10
- package/src/LiveGoodsList/index.js +8 -1
- package/src/LiveGoodsList/index.scss +80 -0
- package/src/LiveGoodsList/index.wxml +56 -33
- package/src/LiveGoodsList/index.wxss +133 -19
- package/src/PayModule/button/index.scss +37 -0
- package/src/PayModule/button/index.wxss +35 -4
- package/src/common/utils/index.js +9 -0
- package/src/coupon/components/CouponItem/index.less +1 -0
- package/src/coupon/components/CouponItem/index.scss +239 -0
- package/src/coupon/components/CouponSelect/index.scss +319 -0
- package/src/coupon/components/CouponSelect/index.wxss +642 -59
- package/src/coupon/index.scss +75 -0
- package/src/coupon/index.wxss +128 -15
|
@@ -1,44 +1,143 @@
|
|
|
1
1
|
.popup-header {
|
|
2
|
-
padding: 3.2vmin 4.
|
|
2
|
+
padding: 3.2vmin 4.26667vmin;
|
|
3
3
|
height: 6.4vmin;
|
|
4
4
|
top: auto;
|
|
5
5
|
display: flex;
|
|
6
6
|
justify-content: space-between;
|
|
7
7
|
align-items: center;
|
|
8
8
|
}
|
|
9
|
+
|
|
9
10
|
.popup-header .head-right-txt {
|
|
10
11
|
display: inline-block;
|
|
11
12
|
text-align: right;
|
|
12
|
-
min-width: 13.
|
|
13
|
-
font-size: 5.
|
|
13
|
+
min-width: 13.86667vmin;
|
|
14
|
+
font-size: 5.33333vmin;
|
|
14
15
|
}
|
|
16
|
+
|
|
15
17
|
.popup-header .popup-header-title {
|
|
16
18
|
color: #333333;
|
|
17
|
-
font-size: 4.
|
|
19
|
+
font-size: 4.26667vmin;
|
|
18
20
|
font-weight: 500;
|
|
19
21
|
font-family: "PingFang SC";
|
|
20
22
|
}
|
|
23
|
+
|
|
21
24
|
.popup-header .van-action-sheet__left {
|
|
22
25
|
color: #c8c9cc;
|
|
23
|
-
font-size: 2.
|
|
26
|
+
font-size: 2.93333vmin;
|
|
24
27
|
line-height: inherit;
|
|
25
28
|
display: flex;
|
|
26
29
|
align-items: center;
|
|
27
|
-
min-width: 13.
|
|
30
|
+
min-width: 13.86667vmin;
|
|
28
31
|
}
|
|
32
|
+
|
|
29
33
|
.popup-header .van-action-sheet__left .order-icon {
|
|
30
34
|
display: inline-block;
|
|
31
|
-
width: 5.
|
|
32
|
-
height: 5.
|
|
35
|
+
width: 5.33333vmin;
|
|
36
|
+
height: 5.33333vmin;
|
|
33
37
|
-moz-background-size: 100% 100%;
|
|
34
38
|
background-size: 100% 100%;
|
|
35
39
|
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAACXBIWXMAACxLAAAsSwGlPZapAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAANHSURBVHgB7ZzPcdpQEId/yAwXH0IJdBCoINCBXYHlYRAcSQekAnPk34yVCuxUYDowJagEc4ADM0D2xTplkvDEaldE3m+GEYeHkD6e3q7eWwQYhvEfU4ESg8GgcTweh/T2E2RZVyqV8WQySaCAisBer9ekzQudWB06vNGP1ZnP5ysIE0ABEveoKM9RD4LgAQqoCCSaUIZ6YBsKaAksLWePgRQU2vQr38AjKFC7EAVAw0bs0WxNx7eczWbPOIPMAl1AoAN7orcNlIuERN5mDTyZBLpedzgcXpATrodMp9N7MIiiKKbNHXKCgk+HUqCld3vfhi6PI3mPKDl0jk9hGHpnDN4C9/u9S4IbKD/1Wq029G1c9W1Il9sX5IxLNfr9PqtX0z5yPy68Dwkjn4beAiGTyzWKitAnaPg2zCLwj/gEAhrojygASk3+GSTzCECWSDNREUiX6Rv0SaCA1mTCN+jzHQqoCKSxaEwbJzGBPAm9vtJ3jqAAO4j4kp7QCCXDgggTE8jEBDIxgUxMIBMTyMQEMjGBTEwgE/E7kbQq4YHuh9vQZUXrG7fSJR6iPdCto+C9pKMNfZq0vvGaHoMYogLdOopyScfv1NO1HDFEBRYs7xd0GYtWg0kHEfHqqFO4qgMIIipwt9vFKFbiiqbRRCdWRaNwHMduKr9FkTikS0li+fGvUABZXV9fi89Kq0yozufzmDYxSogl0kxMIBMTyMQEMjGBTMSj8HA4rG82mztKY3IpTkrLcVUWzX0QF7jdbl/pls5VYSEnwiiKhpSkd9I8s1BEL2GXQEOmKLNZq9VCXADSkwltCEH7/owLQFSgZFUW3aqtcQGICry6uhpLSHT7dPvGBSAq0E2n04m26HJbIifS6amO1r8xTyEehdMT7aCkWCLNxAQyMYFMTCATE8jEBDIxgUxMIBMTyMQEMjGBTEwgExPIxAQyMYFMTCATE8jEBDIxgUzYayLuuS9RFIX4oGTpgQk+Dt513VkEXkxBjwI/fBt6C9ztduOCnv+iTRIEQezb2Fugq4RyDyhEiXEd5HA43GdZtM8UhReLxZK+pIVyjocJvTruHDN85vxnqHa73ZtqtdqG/IO1pVnv9/vnrOIMwygFPwHK0g4OEWNPBgAAAABJRU5ErkJggg==");
|
|
36
40
|
}
|
|
41
|
+
|
|
37
42
|
.popup-header .van-action-sheet__left .head-left-txt {
|
|
38
43
|
opacity: 1;
|
|
39
44
|
color: #666666;
|
|
40
|
-
font-size: 3.
|
|
45
|
+
font-size: 3.73333vmin;
|
|
41
46
|
font-weight: 500;
|
|
42
47
|
font-family: "PingFang SC";
|
|
43
|
-
margin-left: 1.
|
|
48
|
+
margin-left: 1.06667vmin;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
@media screen and (min-width: 768px) and (orientation: portrait) {
|
|
52
|
+
.popup-header {
|
|
53
|
+
padding: 1.5625vmin 2.08333vmin;
|
|
54
|
+
height: 3.125vmin;
|
|
55
|
+
top: auto;
|
|
56
|
+
display: flex;
|
|
57
|
+
justify-content: space-between;
|
|
58
|
+
align-items: center;
|
|
59
|
+
}
|
|
60
|
+
.popup-header .head-right-txt {
|
|
61
|
+
display: inline-block;
|
|
62
|
+
text-align: right;
|
|
63
|
+
min-width: 6.77083vmin;
|
|
64
|
+
font-size: 2.60417vmin;
|
|
65
|
+
}
|
|
66
|
+
.popup-header .popup-header-title {
|
|
67
|
+
color: #333333;
|
|
68
|
+
font-size: 2.08333vmin;
|
|
69
|
+
font-weight: 500;
|
|
70
|
+
font-family: "PingFang SC";
|
|
71
|
+
}
|
|
72
|
+
.popup-header .van-action-sheet__left {
|
|
73
|
+
color: #c8c9cc;
|
|
74
|
+
font-size: 1.43229vmin;
|
|
75
|
+
line-height: inherit;
|
|
76
|
+
display: flex;
|
|
77
|
+
align-items: center;
|
|
78
|
+
min-width: 6.77083vmin;
|
|
79
|
+
}
|
|
80
|
+
.popup-header .van-action-sheet__left .order-icon {
|
|
81
|
+
display: inline-block;
|
|
82
|
+
width: 2.60417vmin;
|
|
83
|
+
height: 2.60417vmin;
|
|
84
|
+
-moz-background-size: 100% 100%;
|
|
85
|
+
background-size: 100% 100%;
|
|
86
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAACXBIWXMAACxLAAAsSwGlPZapAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAANHSURBVHgB7ZzPcdpQEId/yAwXH0IJdBCoINCBXYHlYRAcSQekAnPk34yVCuxUYDowJagEc4ADM0D2xTplkvDEaldE3m+GEYeHkD6e3q7eWwQYhvEfU4ESg8GgcTweh/T2E2RZVyqV8WQySaCAisBer9ekzQudWB06vNGP1ZnP5ysIE0ABEveoKM9RD4LgAQqoCCSaUIZ6YBsKaAksLWePgRQU2vQr38AjKFC7EAVAw0bs0WxNx7eczWbPOIPMAl1AoAN7orcNlIuERN5mDTyZBLpedzgcXpATrodMp9N7MIiiKKbNHXKCgk+HUqCld3vfhi6PI3mPKDl0jk9hGHpnDN4C9/u9S4IbKD/1Wq029G1c9W1Il9sX5IxLNfr9PqtX0z5yPy68Dwkjn4beAiGTyzWKitAnaPg2zCLwj/gEAhrojygASk3+GSTzCECWSDNREUiX6Rv0SaCA1mTCN+jzHQqoCKSxaEwbJzGBPAm9vtJ3jqAAO4j4kp7QCCXDgggTE8jEBDIxgUxMIBMTyMQEMjGBTEwgE/E7kbQq4YHuh9vQZUXrG7fSJR6iPdCto+C9pKMNfZq0vvGaHoMYogLdOopyScfv1NO1HDFEBRYs7xd0GYtWg0kHEfHqqFO4qgMIIipwt9vFKFbiiqbRRCdWRaNwHMduKr9FkTikS0li+fGvUABZXV9fi89Kq0yozufzmDYxSogl0kxMIBMTyMQEMjGBTMSj8HA4rG82mztKY3IpTkrLcVUWzX0QF7jdbl/pls5VYSEnwiiKhpSkd9I8s1BEL2GXQEOmKLNZq9VCXADSkwltCEH7/owLQFSgZFUW3aqtcQGICry6uhpLSHT7dPvGBSAq0E2n04m26HJbIifS6amO1r8xTyEehdMT7aCkWCLNxAQyMYFMTCATE8jEBDIxgUxMIBMTyMQEMjGBTEwgExPIxAQyMYFMTCATE8jEBDIxgUzYayLuuS9RFIX4oGTpgQk+Dt513VkEXkxBjwI/fBt6C9ztduOCnv+iTRIEQezb2Fugq4RyDyhEiXEd5HA43GdZtM8UhReLxZK+pIVyjocJvTruHDN85vxnqHa73ZtqtdqG/IO1pVnv9/vnrOIMwygFPwHK0g4OEWNPBgAAAABJRU5ErkJggg==");
|
|
87
|
+
}
|
|
88
|
+
.popup-header .van-action-sheet__left .head-left-txt {
|
|
89
|
+
opacity: 1;
|
|
90
|
+
color: #666666;
|
|
91
|
+
font-size: 1.82292vmin;
|
|
92
|
+
font-weight: 500;
|
|
93
|
+
font-family: "PingFang SC";
|
|
94
|
+
margin-left: 0.52083vmin;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
@media screen and (min-height: 768px) and (orientation: landscape) {
|
|
99
|
+
.popup-header {
|
|
100
|
+
padding: 1.5625vmin 2.08333vmin;
|
|
101
|
+
height: 3.125vmin;
|
|
102
|
+
top: auto;
|
|
103
|
+
display: flex;
|
|
104
|
+
justify-content: space-between;
|
|
105
|
+
align-items: center;
|
|
106
|
+
}
|
|
107
|
+
.popup-header .head-right-txt {
|
|
108
|
+
display: inline-block;
|
|
109
|
+
text-align: right;
|
|
110
|
+
min-width: 6.77083vmin;
|
|
111
|
+
font-size: 2.60417vmin;
|
|
112
|
+
}
|
|
113
|
+
.popup-header .popup-header-title {
|
|
114
|
+
color: #333333;
|
|
115
|
+
font-size: 2.08333vmin;
|
|
116
|
+
font-weight: 500;
|
|
117
|
+
font-family: "PingFang SC";
|
|
118
|
+
}
|
|
119
|
+
.popup-header .van-action-sheet__left {
|
|
120
|
+
color: #c8c9cc;
|
|
121
|
+
font-size: 1.43229vmin;
|
|
122
|
+
line-height: inherit;
|
|
123
|
+
display: flex;
|
|
124
|
+
align-items: center;
|
|
125
|
+
min-width: 6.77083vmin;
|
|
126
|
+
}
|
|
127
|
+
.popup-header .van-action-sheet__left .order-icon {
|
|
128
|
+
display: inline-block;
|
|
129
|
+
width: 2.60417vmin;
|
|
130
|
+
height: 2.60417vmin;
|
|
131
|
+
-moz-background-size: 100% 100%;
|
|
132
|
+
background-size: 100% 100%;
|
|
133
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAACXBIWXMAACxLAAAsSwGlPZapAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAANHSURBVHgB7ZzPcdpQEId/yAwXH0IJdBCoINCBXYHlYRAcSQekAnPk34yVCuxUYDowJagEc4ADM0D2xTplkvDEaldE3m+GEYeHkD6e3q7eWwQYhvEfU4ESg8GgcTweh/T2E2RZVyqV8WQySaCAisBer9ekzQudWB06vNGP1ZnP5ysIE0ABEveoKM9RD4LgAQqoCCSaUIZ6YBsKaAksLWePgRQU2vQr38AjKFC7EAVAw0bs0WxNx7eczWbPOIPMAl1AoAN7orcNlIuERN5mDTyZBLpedzgcXpATrodMp9N7MIiiKKbNHXKCgk+HUqCld3vfhi6PI3mPKDl0jk9hGHpnDN4C9/u9S4IbKD/1Wq029G1c9W1Il9sX5IxLNfr9PqtX0z5yPy68Dwkjn4beAiGTyzWKitAnaPg2zCLwj/gEAhrojygASk3+GSTzCECWSDNREUiX6Rv0SaCA1mTCN+jzHQqoCKSxaEwbJzGBPAm9vtJ3jqAAO4j4kp7QCCXDgggTE8jEBDIxgUxMIBMTyMQEMjGBTEwgE/E7kbQq4YHuh9vQZUXrG7fSJR6iPdCto+C9pKMNfZq0vvGaHoMYogLdOopyScfv1NO1HDFEBRYs7xd0GYtWg0kHEfHqqFO4qgMIIipwt9vFKFbiiqbRRCdWRaNwHMduKr9FkTikS0li+fGvUABZXV9fi89Kq0yozufzmDYxSogl0kxMIBMTyMQEMjGBTMSj8HA4rG82mztKY3IpTkrLcVUWzX0QF7jdbl/pls5VYSEnwiiKhpSkd9I8s1BEL2GXQEOmKLNZq9VCXADSkwltCEH7/owLQFSgZFUW3aqtcQGICry6uhpLSHT7dPvGBSAq0E2n04m26HJbIifS6amO1r8xTyEehdMT7aCkWCLNxAQyMYFMTCATE8jEBDIxgUxMIBMTyMQEMjGBTEwgExPIxAQyMYFMTCATE8jEBDIxgUzYayLuuS9RFIX4oGTpgQk+Dt513VkEXkxBjwI/fBt6C9ztduOCnv+iTRIEQezb2Fugq4RyDyhEiXEd5HA43GdZtM8UhReLxZK+pIVyjocJvTruHDN85vxnqHa73ZtqtdqG/IO1pVnv9/vnrOIMwygFPwHK0g4OEWNPBgAAAABJRU5ErkJggg==");
|
|
134
|
+
}
|
|
135
|
+
.popup-header .van-action-sheet__left .head-left-txt {
|
|
136
|
+
opacity: 1;
|
|
137
|
+
color: #666666;
|
|
138
|
+
font-size: 1.82292vmin;
|
|
139
|
+
font-weight: 500;
|
|
140
|
+
font-family: "PingFang SC";
|
|
141
|
+
margin-left: 0.52083vmin;
|
|
142
|
+
}
|
|
44
143
|
}
|
|
@@ -13,6 +13,7 @@ import {
|
|
|
13
13
|
ASSOCIATION,
|
|
14
14
|
PUNCH_CARD
|
|
15
15
|
} from "../common/utils/constants.js";
|
|
16
|
+
import { rpxToVmin } from '../common/utils/index.js'
|
|
16
17
|
const computedBehavior = require('miniprogram-computed').behavior
|
|
17
18
|
|
|
18
19
|
const MARKET_ACTIVITY_MAP = {
|
|
@@ -109,6 +110,10 @@ Component({
|
|
|
109
110
|
isGrayMarketing: {
|
|
110
111
|
type: Boolean,
|
|
111
112
|
value: false
|
|
113
|
+
},
|
|
114
|
+
orientation: {
|
|
115
|
+
type: String,
|
|
116
|
+
value: 'hor'
|
|
112
117
|
}
|
|
113
118
|
},
|
|
114
119
|
data: {
|
|
@@ -139,7 +144,9 @@ Component({
|
|
|
139
144
|
return data.formExplainingGoods.resource_id && data.explainingGoodsIndex > 2
|
|
140
145
|
},
|
|
141
146
|
customStyle(properties) {
|
|
142
|
-
|
|
147
|
+
const { popPosition, orientation } = properties
|
|
148
|
+
const position = `position: ${orientation === 'ver' ? 'fixed' : 'absolute'}; left: 0; bottom: 0`
|
|
149
|
+
return popPosition === "bottom" ? `${position}; width: ${orientation === 'ver' ? '100%' : rpxToVmin(750)}; height: calc(100% - ${rpxToVmin(422)});` : "height: 100%;width: 100vmin;"
|
|
143
150
|
},
|
|
144
151
|
},
|
|
145
152
|
methods: {
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
$deviceWidth: 750;
|
|
2
|
+
@function vmin($rpx) {
|
|
3
|
+
@return #{$rpx * 100 / $deviceWidth}vmin;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
@mixin goods-list-box {
|
|
7
|
+
.box {
|
|
8
|
+
margin: 0 vmin(12);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.title {
|
|
12
|
+
margin: 0;
|
|
13
|
+
padding: vmin(32) vmin(16) vmin(16);
|
|
14
|
+
color: rgba(69, 90, 100, 0.6);
|
|
15
|
+
font-weight: normal;
|
|
16
|
+
font-size: vmin(18);
|
|
17
|
+
line-height: vmin(20);
|
|
18
|
+
text-align: center;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.btn {
|
|
22
|
+
display: block;
|
|
23
|
+
width: 100%;
|
|
24
|
+
margin: vmin(10) 0;
|
|
25
|
+
background-color: #fff;
|
|
26
|
+
}
|
|
27
|
+
.page-main {
|
|
28
|
+
height: 100%;
|
|
29
|
+
}
|
|
30
|
+
.goods-list {
|
|
31
|
+
box-sizing: border-box;
|
|
32
|
+
min-height: 40vmin;
|
|
33
|
+
display: flex;
|
|
34
|
+
flex-direction: column;
|
|
35
|
+
height: 100%;
|
|
36
|
+
.finished-text {
|
|
37
|
+
display: flex;
|
|
38
|
+
justify-content: center;
|
|
39
|
+
color: #999;
|
|
40
|
+
font-size: vmin(28);
|
|
41
|
+
padding-bottom: vmin(20);
|
|
42
|
+
}
|
|
43
|
+
.no-data {
|
|
44
|
+
display: flex;
|
|
45
|
+
flex-direction: column;
|
|
46
|
+
align-items: center;
|
|
47
|
+
padding-top: vmin(80);
|
|
48
|
+
.no-data-png {
|
|
49
|
+
width: vmin(176);
|
|
50
|
+
height: vmin(176);
|
|
51
|
+
}
|
|
52
|
+
.no-data-text {
|
|
53
|
+
color: #999999;
|
|
54
|
+
font-size: vmin(28);
|
|
55
|
+
margin-top: vmin(32);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
.goods-list-box {
|
|
63
|
+
@include goods-list-box;
|
|
64
|
+
}
|
|
65
|
+
// 竖屏pad
|
|
66
|
+
@media screen and (min-width: 768px) and (orientation: portrait) {
|
|
67
|
+
$deviceWidth: 1536 !global;
|
|
68
|
+
|
|
69
|
+
.goods-list-box {
|
|
70
|
+
@include goods-list-box;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
// 横屏pad
|
|
74
|
+
@media screen and (min-height: 768px) and (orientation: landscape) {
|
|
75
|
+
$deviceWidth: 1536 !global;
|
|
76
|
+
|
|
77
|
+
.goods-list-box {
|
|
78
|
+
@include goods-list-box;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* @LastEditTime: 2021-11-18 19:51:34
|
|
9
9
|
*/
|
|
10
10
|
-->
|
|
11
|
-
<view>
|
|
11
|
+
<view class="goods-list-box">
|
|
12
12
|
<custom-popup
|
|
13
13
|
showPopup="{{ show }}"
|
|
14
14
|
popPosition="{{ popPosition }}"
|
|
@@ -18,57 +18,75 @@
|
|
|
18
18
|
overlay="{{popPosition === 'bottom' && !overlayStyle ? false : true}}"
|
|
19
19
|
overlay-style="{{ overlayStyle }}"
|
|
20
20
|
zIndex="{{zIndex}}"
|
|
21
|
-
bind:onOverlayClick="onOverlayClick"
|
|
21
|
+
bind:onOverlayClick="onOverlayClick"
|
|
22
|
+
>
|
|
22
23
|
<view slot="header">
|
|
23
24
|
<!-- 弹窗头部 start-->
|
|
24
|
-
<header
|
|
25
|
+
<header
|
|
26
|
+
bind:closePop="closePop"
|
|
27
|
+
bind:gotoPayRecords="gotoPayRecords"
|
|
28
|
+
showClose="{{showClose}}"
|
|
29
|
+
></header>
|
|
25
30
|
<!-- 弹窗头部 end-->
|
|
26
31
|
</view>
|
|
27
32
|
<view slot="content" class="page-main">
|
|
28
33
|
<!-- 商品列表 start-->
|
|
29
|
-
<scroll-view
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
+
<scroll-view
|
|
35
|
+
class="goods-list"
|
|
36
|
+
scroll-y="true"
|
|
37
|
+
bindscrolltolower="onScrolltolower"
|
|
38
|
+
refresher-triggered="{{refreshing}}"
|
|
39
|
+
bindrefresherrefresh="onLoad"
|
|
40
|
+
refresher-enabled="{{true}}"
|
|
41
|
+
>
|
|
42
|
+
<!-- 优惠券列表 start -->
|
|
43
|
+
<coupon-list
|
|
44
|
+
showList="{{ showList }}"
|
|
45
|
+
aliveInfo="{{ aliveInfo }}"
|
|
46
|
+
bind:showPopup="showInfoCollection"
|
|
47
|
+
bind:receivedSuccess="receivedSuccess"
|
|
48
|
+
sensorReportParams="{{sensorReportParams}}"
|
|
49
|
+
></coupon-list>
|
|
50
|
+
<!-- 优惠券列表 end -->
|
|
51
|
+
<!-- 讲解中的商品 start -->
|
|
34
52
|
<block wx:if="{{showExplainingGoods}}">
|
|
35
53
|
<goods-item
|
|
36
|
-
|
|
37
|
-
allContactPay="{{allContactPay}}"
|
|
38
|
-
goodsInfo="{{formExplainingGoods}}"
|
|
39
|
-
coupon_switch="{{coupon_switch}}"
|
|
40
|
-
bind:sendNewMsg="sendNewMsg"
|
|
41
|
-
bind:showConfirmOrder="showConfirmOrder"
|
|
42
|
-
bind:showSku="showSku"
|
|
43
|
-
explainingGoods="{{explainingGoods}}"
|
|
44
|
-
bind:showDialog="showDialog"
|
|
45
|
-
class="goods-item"
|
|
46
|
-
envName="{{ENV_NAME}}"
|
|
47
|
-
sensorReportParams="{{sensorReportParams}}"
|
|
48
|
-
isFullScreen="{{ popPosition === 'right'}}"
|
|
49
|
-
isGrayMarketing="{{ isGrayMarketing}}"
|
|
50
|
-
></goods-item>
|
|
51
|
-
</block>
|
|
52
|
-
<!-- 讲解中的商品 end -->
|
|
53
|
-
<goods-item
|
|
54
|
-
wx:for="{{goodsInfo}}"
|
|
55
|
-
wx:for-item="goodsItem"
|
|
56
|
-
wx:key="index"
|
|
57
|
-
goodsInfo="{{goodsItem}}"
|
|
54
|
+
aliveInfo="{{aliveInfo}}"
|
|
58
55
|
allContactPay="{{allContactPay}}"
|
|
56
|
+
goodsInfo="{{formExplainingGoods}}"
|
|
59
57
|
coupon_switch="{{coupon_switch}}"
|
|
60
58
|
bind:sendNewMsg="sendNewMsg"
|
|
61
59
|
bind:showConfirmOrder="showConfirmOrder"
|
|
62
60
|
bind:showSku="showSku"
|
|
63
|
-
aliveInfo="{{aliveInfo}}"
|
|
64
61
|
explainingGoods="{{explainingGoods}}"
|
|
65
62
|
bind:showDialog="showDialog"
|
|
66
|
-
bind:toDetails="toDetails"
|
|
67
63
|
class="goods-item"
|
|
68
64
|
envName="{{ENV_NAME}}"
|
|
69
65
|
sensorReportParams="{{sensorReportParams}}"
|
|
70
66
|
isFullScreen="{{ popPosition === 'right'}}"
|
|
71
67
|
isGrayMarketing="{{ isGrayMarketing}}"
|
|
68
|
+
></goods-item>
|
|
69
|
+
</block>
|
|
70
|
+
<!-- 讲解中的商品 end -->
|
|
71
|
+
<goods-item
|
|
72
|
+
wx:for="{{goodsInfo}}"
|
|
73
|
+
wx:for-item="goodsItem"
|
|
74
|
+
wx:key="index"
|
|
75
|
+
goodsInfo="{{goodsItem}}"
|
|
76
|
+
allContactPay="{{allContactPay}}"
|
|
77
|
+
coupon_switch="{{coupon_switch}}"
|
|
78
|
+
bind:sendNewMsg="sendNewMsg"
|
|
79
|
+
bind:showConfirmOrder="showConfirmOrder"
|
|
80
|
+
bind:showSku="showSku"
|
|
81
|
+
aliveInfo="{{aliveInfo}}"
|
|
82
|
+
explainingGoods="{{explainingGoods}}"
|
|
83
|
+
bind:showDialog="showDialog"
|
|
84
|
+
bind:toDetails="toDetails"
|
|
85
|
+
class="goods-item"
|
|
86
|
+
envName="{{ENV_NAME}}"
|
|
87
|
+
sensorReportParams="{{sensorReportParams}}"
|
|
88
|
+
isFullScreen="{{ popPosition === 'right'}}"
|
|
89
|
+
isGrayMarketing="{{ isGrayMarketing}}"
|
|
72
90
|
></goods-item>
|
|
73
91
|
<view class="finished-text" wx:if="{{!refreshing && finishedTxt !== 'no-data'}}">{{finishedTxt}}</view>
|
|
74
92
|
<view class="no-data" wx:if="{{!refreshing && finishedTxt === 'no-data'}}">
|
|
@@ -80,4 +98,9 @@
|
|
|
80
98
|
</view>
|
|
81
99
|
</custom-popup>
|
|
82
100
|
</view>
|
|
83
|
-
<van-dialog
|
|
101
|
+
<van-dialog
|
|
102
|
+
id="van-dialog"
|
|
103
|
+
confirm-button-color="#105cfb"
|
|
104
|
+
catchtap="stopEvent"
|
|
105
|
+
/>
|
|
106
|
+
|
|
@@ -1,50 +1,164 @@
|
|
|
1
|
-
.box {
|
|
1
|
+
.goods-list-box .box {
|
|
2
2
|
margin: 0 1.6vmin;
|
|
3
3
|
}
|
|
4
|
-
|
|
4
|
+
|
|
5
|
+
.goods-list-box .title {
|
|
5
6
|
margin: 0;
|
|
6
|
-
padding: 4.
|
|
7
|
+
padding: 4.26667vmin 2.13333vmin 2.13333vmin;
|
|
7
8
|
color: rgba(69, 90, 100, 0.6);
|
|
8
9
|
font-weight: normal;
|
|
9
10
|
font-size: 2.4vmin;
|
|
10
|
-
line-height: 2.
|
|
11
|
+
line-height: 2.66667vmin;
|
|
11
12
|
text-align: center;
|
|
12
13
|
}
|
|
13
|
-
|
|
14
|
+
|
|
15
|
+
.goods-list-box .btn {
|
|
14
16
|
display: block;
|
|
15
17
|
width: 100%;
|
|
16
|
-
margin: 1.
|
|
18
|
+
margin: 1.33333vmin 0;
|
|
17
19
|
background-color: #fff;
|
|
18
20
|
}
|
|
19
|
-
|
|
21
|
+
|
|
22
|
+
.goods-list-box .page-main {
|
|
20
23
|
height: 100%;
|
|
21
24
|
}
|
|
22
|
-
|
|
25
|
+
|
|
26
|
+
.goods-list-box .goods-list {
|
|
23
27
|
box-sizing: border-box;
|
|
24
28
|
min-height: 40vmin;
|
|
25
29
|
display: flex;
|
|
26
30
|
flex-direction: column;
|
|
27
31
|
height: 100%;
|
|
28
32
|
}
|
|
29
|
-
|
|
33
|
+
|
|
34
|
+
.goods-list-box .goods-list .finished-text {
|
|
30
35
|
display: flex;
|
|
31
36
|
justify-content: center;
|
|
32
37
|
color: #999;
|
|
33
|
-
font-size: 3.
|
|
34
|
-
padding-bottom: 2.
|
|
38
|
+
font-size: 3.73333vmin;
|
|
39
|
+
padding-bottom: 2.66667vmin;
|
|
35
40
|
}
|
|
36
|
-
|
|
41
|
+
|
|
42
|
+
.goods-list-box .goods-list .no-data {
|
|
37
43
|
display: flex;
|
|
38
44
|
flex-direction: column;
|
|
39
45
|
align-items: center;
|
|
40
|
-
padding-top: 10.
|
|
46
|
+
padding-top: 10.66667vmin;
|
|
41
47
|
}
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
48
|
+
|
|
49
|
+
.goods-list-box .goods-list .no-data .no-data-png {
|
|
50
|
+
width: 23.46667vmin;
|
|
51
|
+
height: 23.46667vmin;
|
|
45
52
|
}
|
|
46
|
-
|
|
53
|
+
|
|
54
|
+
.goods-list-box .goods-list .no-data .no-data-text {
|
|
47
55
|
color: #999999;
|
|
48
|
-
font-size: 3.
|
|
49
|
-
margin-top: 4.
|
|
56
|
+
font-size: 3.73333vmin;
|
|
57
|
+
margin-top: 4.26667vmin;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
@media screen and (min-width: 768px) and (orientation: portrait) {
|
|
61
|
+
.goods-list-box .box {
|
|
62
|
+
margin: 0 0.78125vmin;
|
|
63
|
+
}
|
|
64
|
+
.goods-list-box .title {
|
|
65
|
+
margin: 0;
|
|
66
|
+
padding: 2.08333vmin 1.04167vmin 1.04167vmin;
|
|
67
|
+
color: rgba(69, 90, 100, 0.6);
|
|
68
|
+
font-weight: normal;
|
|
69
|
+
font-size: 1.17188vmin;
|
|
70
|
+
line-height: 1.30208vmin;
|
|
71
|
+
text-align: center;
|
|
72
|
+
}
|
|
73
|
+
.goods-list-box .btn {
|
|
74
|
+
display: block;
|
|
75
|
+
width: 100%;
|
|
76
|
+
margin: 0.65104vmin 0;
|
|
77
|
+
background-color: #fff;
|
|
78
|
+
}
|
|
79
|
+
.goods-list-box .page-main {
|
|
80
|
+
height: 100%;
|
|
81
|
+
}
|
|
82
|
+
.goods-list-box .goods-list {
|
|
83
|
+
box-sizing: border-box;
|
|
84
|
+
min-height: 40vmin;
|
|
85
|
+
display: flex;
|
|
86
|
+
flex-direction: column;
|
|
87
|
+
height: 100%;
|
|
88
|
+
}
|
|
89
|
+
.goods-list-box .goods-list .finished-text {
|
|
90
|
+
display: flex;
|
|
91
|
+
justify-content: center;
|
|
92
|
+
color: #999;
|
|
93
|
+
font-size: 1.82292vmin;
|
|
94
|
+
padding-bottom: 1.30208vmin;
|
|
95
|
+
}
|
|
96
|
+
.goods-list-box .goods-list .no-data {
|
|
97
|
+
display: flex;
|
|
98
|
+
flex-direction: column;
|
|
99
|
+
align-items: center;
|
|
100
|
+
padding-top: 5.20833vmin;
|
|
101
|
+
}
|
|
102
|
+
.goods-list-box .goods-list .no-data .no-data-png {
|
|
103
|
+
width: 11.45833vmin;
|
|
104
|
+
height: 11.45833vmin;
|
|
105
|
+
}
|
|
106
|
+
.goods-list-box .goods-list .no-data .no-data-text {
|
|
107
|
+
color: #999999;
|
|
108
|
+
font-size: 1.82292vmin;
|
|
109
|
+
margin-top: 2.08333vmin;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
@media screen and (min-height: 768px) and (orientation: landscape) {
|
|
114
|
+
.goods-list-box .box {
|
|
115
|
+
margin: 0 0.78125vmin;
|
|
116
|
+
}
|
|
117
|
+
.goods-list-box .title {
|
|
118
|
+
margin: 0;
|
|
119
|
+
padding: 2.08333vmin 1.04167vmin 1.04167vmin;
|
|
120
|
+
color: rgba(69, 90, 100, 0.6);
|
|
121
|
+
font-weight: normal;
|
|
122
|
+
font-size: 1.17188vmin;
|
|
123
|
+
line-height: 1.30208vmin;
|
|
124
|
+
text-align: center;
|
|
125
|
+
}
|
|
126
|
+
.goods-list-box .btn {
|
|
127
|
+
display: block;
|
|
128
|
+
width: 100%;
|
|
129
|
+
margin: 0.65104vmin 0;
|
|
130
|
+
background-color: #fff;
|
|
131
|
+
}
|
|
132
|
+
.goods-list-box .page-main {
|
|
133
|
+
height: 100%;
|
|
134
|
+
}
|
|
135
|
+
.goods-list-box .goods-list {
|
|
136
|
+
box-sizing: border-box;
|
|
137
|
+
min-height: 40vmin;
|
|
138
|
+
display: flex;
|
|
139
|
+
flex-direction: column;
|
|
140
|
+
height: 100%;
|
|
141
|
+
}
|
|
142
|
+
.goods-list-box .goods-list .finished-text {
|
|
143
|
+
display: flex;
|
|
144
|
+
justify-content: center;
|
|
145
|
+
color: #999;
|
|
146
|
+
font-size: 1.82292vmin;
|
|
147
|
+
padding-bottom: 1.30208vmin;
|
|
148
|
+
}
|
|
149
|
+
.goods-list-box .goods-list .no-data {
|
|
150
|
+
display: flex;
|
|
151
|
+
flex-direction: column;
|
|
152
|
+
align-items: center;
|
|
153
|
+
padding-top: 5.20833vmin;
|
|
154
|
+
}
|
|
155
|
+
.goods-list-box .goods-list .no-data .no-data-png {
|
|
156
|
+
width: 11.45833vmin;
|
|
157
|
+
height: 11.45833vmin;
|
|
158
|
+
}
|
|
159
|
+
.goods-list-box .goods-list .no-data .no-data-text {
|
|
160
|
+
color: #999999;
|
|
161
|
+
font-size: 1.82292vmin;
|
|
162
|
+
margin-top: 2.08333vmin;
|
|
163
|
+
}
|
|
50
164
|
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
$deviceWidth: 750;
|
|
2
|
+
@function vmin($rpx) {
|
|
3
|
+
@return #{$rpx * 100 / $deviceWidth}vmin;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
@mixin pay-btn{
|
|
7
|
+
.btn-default{
|
|
8
|
+
width: vmin(240);
|
|
9
|
+
height: vmin(80);
|
|
10
|
+
line-height: vmin(80);
|
|
11
|
+
font-size: vmin(32);
|
|
12
|
+
border-radius: vmin(40);
|
|
13
|
+
background: rgba(255,84,41,1);
|
|
14
|
+
color: #ffffff;
|
|
15
|
+
}
|
|
16
|
+
.invalidBtn{
|
|
17
|
+
opacity: 0.2;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.pay-btn {
|
|
22
|
+
@include pay-btn;
|
|
23
|
+
}
|
|
24
|
+
// 竖屏pad
|
|
25
|
+
@media screen and (min-width: 768px) and (orientation: portrait) {
|
|
26
|
+
$deviceWidth: 1536 !global;
|
|
27
|
+
.pay-btn {
|
|
28
|
+
@include pay-btn;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
// 横屏pad
|
|
32
|
+
@media screen and (min-height: 768px) and (orientation: landscape) {
|
|
33
|
+
$deviceWidth: 1536 !global;
|
|
34
|
+
.pay-btn {
|
|
35
|
+
@include pay-btn;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -1,12 +1,43 @@
|
|
|
1
1
|
.pay-btn .btn-default {
|
|
2
2
|
width: 32vmin;
|
|
3
|
-
height: 10.
|
|
4
|
-
line-height: 10.
|
|
5
|
-
font-size: 4.
|
|
6
|
-
border-radius: 5.
|
|
3
|
+
height: 10.66667vmin;
|
|
4
|
+
line-height: 10.66667vmin;
|
|
5
|
+
font-size: 4.26667vmin;
|
|
6
|
+
border-radius: 5.33333vmin;
|
|
7
7
|
background: #ff5429;
|
|
8
8
|
color: #ffffff;
|
|
9
9
|
}
|
|
10
|
+
|
|
10
11
|
.pay-btn .invalidBtn {
|
|
11
12
|
opacity: 0.2;
|
|
12
13
|
}
|
|
14
|
+
|
|
15
|
+
@media screen and (min-width: 768px) and (orientation: portrait) {
|
|
16
|
+
.pay-btn .btn-default {
|
|
17
|
+
width: 15.625vmin;
|
|
18
|
+
height: 5.20833vmin;
|
|
19
|
+
line-height: 5.20833vmin;
|
|
20
|
+
font-size: 2.08333vmin;
|
|
21
|
+
border-radius: 2.60417vmin;
|
|
22
|
+
background: #ff5429;
|
|
23
|
+
color: #ffffff;
|
|
24
|
+
}
|
|
25
|
+
.pay-btn .invalidBtn {
|
|
26
|
+
opacity: 0.2;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
@media screen and (min-height: 768px) and (orientation: landscape) {
|
|
31
|
+
.pay-btn .btn-default {
|
|
32
|
+
width: 15.625vmin;
|
|
33
|
+
height: 5.20833vmin;
|
|
34
|
+
line-height: 5.20833vmin;
|
|
35
|
+
font-size: 2.08333vmin;
|
|
36
|
+
border-radius: 2.60417vmin;
|
|
37
|
+
background: #ff5429;
|
|
38
|
+
color: #ffffff;
|
|
39
|
+
}
|
|
40
|
+
.pay-btn .invalidBtn {
|
|
41
|
+
opacity: 0.2;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -54,3 +54,12 @@ 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 isPad = (screenWidth > 768 && deviceOrientation === 'portrait') || (screenHeight > 768 && deviceOrientation === 'landscape')
|
|
62
|
+
const isPc = platform === 'windows' || platform === 'mac' || platform === 'devtools'
|
|
63
|
+
const deviceWidth = isPad || isPc ? 1536 : 750
|
|
64
|
+
return `${rpx * 100 / deviceWidth}vmin`
|
|
65
|
+
}
|