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
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
$deviceWidth: 750;
|
|
2
|
+
@function vmin($rpx) {
|
|
3
|
+
@return #{$rpx * 100 / $deviceWidth}vmin;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
@mixin popup-header{
|
|
7
|
+
padding: vmin(24) vmin(32);
|
|
8
|
+
height: vmin(48);
|
|
9
|
+
top: auto;
|
|
10
|
+
display: flex;
|
|
11
|
+
justify-content: space-between;
|
|
12
|
+
align-items: center;
|
|
13
|
+
.head-right-txt {
|
|
14
|
+
display: inline-block;
|
|
15
|
+
text-align: right;
|
|
16
|
+
min-width: vmin(104);
|
|
17
|
+
font-size: vmin(40);
|
|
18
|
+
}
|
|
19
|
+
.popup-header-title{
|
|
20
|
+
color: rgba(51,51,51,1);
|
|
21
|
+
font-size: vmin(32);
|
|
22
|
+
font-weight: 500;
|
|
23
|
+
font-family: "PingFang SC";
|
|
24
|
+
}
|
|
25
|
+
.van-action-sheet__left {
|
|
26
|
+
color: #c8c9cc;
|
|
27
|
+
font-size: vmin(22);
|
|
28
|
+
line-height: inherit;
|
|
29
|
+
display: flex;
|
|
30
|
+
align-items: center;
|
|
31
|
+
min-width: vmin(104);
|
|
32
|
+
|
|
33
|
+
.order-icon {
|
|
34
|
+
display: inline-block;
|
|
35
|
+
width: vmin(40);
|
|
36
|
+
height: vmin(40);
|
|
37
|
+
-moz-background-size: 100% 100%;
|
|
38
|
+
background-size: 100% 100%;
|
|
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==");
|
|
40
|
+
}
|
|
41
|
+
.head-left-txt {
|
|
42
|
+
opacity: 1;
|
|
43
|
+
color: #666666;
|
|
44
|
+
font-size: vmin(28);
|
|
45
|
+
font-weight: 500;
|
|
46
|
+
font-family: "PingFang SC";
|
|
47
|
+
margin-left: vmin(8);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
.popup-header {
|
|
54
|
+
@include popup-header;
|
|
55
|
+
}
|
|
56
|
+
// 竖屏pad
|
|
57
|
+
@media screen and (min-width: 768px) and (orientation: portrait) {
|
|
58
|
+
$deviceWidth: 1536 !global;
|
|
59
|
+
|
|
60
|
+
.popup-header {
|
|
61
|
+
@include popup-header;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
// PC 放大适配
|
|
65
|
+
@media screen and (min-height: 630px) and (orientation: landscape) {
|
|
66
|
+
$deviceWidth: 1260 !global;
|
|
67
|
+
|
|
68
|
+
.popup-header {
|
|
69
|
+
@include popup-header;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
// 横屏pad
|
|
73
|
+
@media screen and (min-height: 768px) and (orientation: landscape) {
|
|
74
|
+
$deviceWidth: 1536 !global;
|
|
75
|
+
|
|
76
|
+
.popup-header {
|
|
77
|
+
@include popup-header;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
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;
|
|
@@ -9,27 +9,27 @@
|
|
|
9
9
|
.popup-header .head-right-txt {
|
|
10
10
|
display: inline-block;
|
|
11
11
|
text-align: right;
|
|
12
|
-
min-width: 13.
|
|
13
|
-
font-size: 5.
|
|
12
|
+
min-width: 13.86667vmin;
|
|
13
|
+
font-size: 5.33333vmin;
|
|
14
14
|
}
|
|
15
15
|
.popup-header .popup-header-title {
|
|
16
16
|
color: #333333;
|
|
17
|
-
font-size: 4.
|
|
17
|
+
font-size: 4.26667vmin;
|
|
18
18
|
font-weight: 500;
|
|
19
19
|
font-family: "PingFang SC";
|
|
20
20
|
}
|
|
21
21
|
.popup-header .van-action-sheet__left {
|
|
22
22
|
color: #c8c9cc;
|
|
23
|
-
font-size: 2.
|
|
23
|
+
font-size: 2.93333vmin;
|
|
24
24
|
line-height: inherit;
|
|
25
25
|
display: flex;
|
|
26
26
|
align-items: center;
|
|
27
|
-
min-width: 13.
|
|
27
|
+
min-width: 13.86667vmin;
|
|
28
28
|
}
|
|
29
29
|
.popup-header .van-action-sheet__left .order-icon {
|
|
30
30
|
display: inline-block;
|
|
31
|
-
width: 5.
|
|
32
|
-
height: 5.
|
|
31
|
+
width: 5.33333vmin;
|
|
32
|
+
height: 5.33333vmin;
|
|
33
33
|
-moz-background-size: 100% 100%;
|
|
34
34
|
background-size: 100% 100%;
|
|
35
35
|
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==");
|
|
@@ -37,8 +37,146 @@
|
|
|
37
37
|
.popup-header .van-action-sheet__left .head-left-txt {
|
|
38
38
|
opacity: 1;
|
|
39
39
|
color: #666666;
|
|
40
|
-
font-size: 3.
|
|
40
|
+
font-size: 3.73333vmin;
|
|
41
41
|
font-weight: 500;
|
|
42
42
|
font-family: "PingFang SC";
|
|
43
|
-
margin-left: 1.
|
|
43
|
+
margin-left: 1.06667vmin;
|
|
44
|
+
}
|
|
45
|
+
@media screen and (min-width: 768px) and (orientation: portrait) {
|
|
46
|
+
.popup-header {
|
|
47
|
+
padding: 1.5625vmin 2.08333vmin;
|
|
48
|
+
height: 3.125vmin;
|
|
49
|
+
top: auto;
|
|
50
|
+
display: flex;
|
|
51
|
+
justify-content: space-between;
|
|
52
|
+
align-items: center;
|
|
53
|
+
}
|
|
54
|
+
.popup-header .head-right-txt {
|
|
55
|
+
display: inline-block;
|
|
56
|
+
text-align: right;
|
|
57
|
+
min-width: 6.77083vmin;
|
|
58
|
+
font-size: 2.60417vmin;
|
|
59
|
+
}
|
|
60
|
+
.popup-header .popup-header-title {
|
|
61
|
+
color: #333333;
|
|
62
|
+
font-size: 2.08333vmin;
|
|
63
|
+
font-weight: 500;
|
|
64
|
+
font-family: "PingFang SC";
|
|
65
|
+
}
|
|
66
|
+
.popup-header .van-action-sheet__left {
|
|
67
|
+
color: #c8c9cc;
|
|
68
|
+
font-size: 1.43229vmin;
|
|
69
|
+
line-height: inherit;
|
|
70
|
+
display: flex;
|
|
71
|
+
align-items: center;
|
|
72
|
+
min-width: 6.77083vmin;
|
|
73
|
+
}
|
|
74
|
+
.popup-header .van-action-sheet__left .order-icon {
|
|
75
|
+
display: inline-block;
|
|
76
|
+
width: 2.60417vmin;
|
|
77
|
+
height: 2.60417vmin;
|
|
78
|
+
-moz-background-size: 100% 100%;
|
|
79
|
+
background-size: 100% 100%;
|
|
80
|
+
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==");
|
|
81
|
+
}
|
|
82
|
+
.popup-header .van-action-sheet__left .head-left-txt {
|
|
83
|
+
opacity: 1;
|
|
84
|
+
color: #666666;
|
|
85
|
+
font-size: 1.82292vmin;
|
|
86
|
+
font-weight: 500;
|
|
87
|
+
font-family: "PingFang SC";
|
|
88
|
+
margin-left: 0.52083vmin;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
@media screen and (min-height: 630px) and (orientation: landscape) {
|
|
92
|
+
.popup-header {
|
|
93
|
+
padding: 1.90476vmin 2.53968vmin;
|
|
94
|
+
height: 3.80952vmin;
|
|
95
|
+
top: auto;
|
|
96
|
+
display: flex;
|
|
97
|
+
justify-content: space-between;
|
|
98
|
+
align-items: center;
|
|
99
|
+
}
|
|
100
|
+
.popup-header .head-right-txt {
|
|
101
|
+
display: inline-block;
|
|
102
|
+
text-align: right;
|
|
103
|
+
min-width: 8.25397vmin;
|
|
104
|
+
font-size: 3.1746vmin;
|
|
105
|
+
}
|
|
106
|
+
.popup-header .popup-header-title {
|
|
107
|
+
color: #333333;
|
|
108
|
+
font-size: 2.53968vmin;
|
|
109
|
+
font-weight: 500;
|
|
110
|
+
font-family: "PingFang SC";
|
|
111
|
+
}
|
|
112
|
+
.popup-header .van-action-sheet__left {
|
|
113
|
+
color: #c8c9cc;
|
|
114
|
+
font-size: 1.74603vmin;
|
|
115
|
+
line-height: inherit;
|
|
116
|
+
display: flex;
|
|
117
|
+
align-items: center;
|
|
118
|
+
min-width: 8.25397vmin;
|
|
119
|
+
}
|
|
120
|
+
.popup-header .van-action-sheet__left .order-icon {
|
|
121
|
+
display: inline-block;
|
|
122
|
+
width: 3.1746vmin;
|
|
123
|
+
height: 3.1746vmin;
|
|
124
|
+
-moz-background-size: 100% 100%;
|
|
125
|
+
background-size: 100% 100%;
|
|
126
|
+
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==");
|
|
127
|
+
}
|
|
128
|
+
.popup-header .van-action-sheet__left .head-left-txt {
|
|
129
|
+
opacity: 1;
|
|
130
|
+
color: #666666;
|
|
131
|
+
font-size: 2.22222vmin;
|
|
132
|
+
font-weight: 500;
|
|
133
|
+
font-family: "PingFang SC";
|
|
134
|
+
margin-left: 0.63492vmin;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
@media screen and (min-height: 768px) and (orientation: landscape) {
|
|
138
|
+
.popup-header {
|
|
139
|
+
padding: 1.5625vmin 2.08333vmin;
|
|
140
|
+
height: 3.125vmin;
|
|
141
|
+
top: auto;
|
|
142
|
+
display: flex;
|
|
143
|
+
justify-content: space-between;
|
|
144
|
+
align-items: center;
|
|
145
|
+
}
|
|
146
|
+
.popup-header .head-right-txt {
|
|
147
|
+
display: inline-block;
|
|
148
|
+
text-align: right;
|
|
149
|
+
min-width: 6.77083vmin;
|
|
150
|
+
font-size: 2.60417vmin;
|
|
151
|
+
}
|
|
152
|
+
.popup-header .popup-header-title {
|
|
153
|
+
color: #333333;
|
|
154
|
+
font-size: 2.08333vmin;
|
|
155
|
+
font-weight: 500;
|
|
156
|
+
font-family: "PingFang SC";
|
|
157
|
+
}
|
|
158
|
+
.popup-header .van-action-sheet__left {
|
|
159
|
+
color: #c8c9cc;
|
|
160
|
+
font-size: 1.43229vmin;
|
|
161
|
+
line-height: inherit;
|
|
162
|
+
display: flex;
|
|
163
|
+
align-items: center;
|
|
164
|
+
min-width: 6.77083vmin;
|
|
165
|
+
}
|
|
166
|
+
.popup-header .van-action-sheet__left .order-icon {
|
|
167
|
+
display: inline-block;
|
|
168
|
+
width: 2.60417vmin;
|
|
169
|
+
height: 2.60417vmin;
|
|
170
|
+
-moz-background-size: 100% 100%;
|
|
171
|
+
background-size: 100% 100%;
|
|
172
|
+
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==");
|
|
173
|
+
}
|
|
174
|
+
.popup-header .van-action-sheet__left .head-left-txt {
|
|
175
|
+
opacity: 1;
|
|
176
|
+
color: #666666;
|
|
177
|
+
font-size: 1.82292vmin;
|
|
178
|
+
font-weight: 500;
|
|
179
|
+
font-family: "PingFang SC";
|
|
180
|
+
margin-left: 0.52083vmin;
|
|
181
|
+
}
|
|
44
182
|
}
|
|
@@ -13,8 +13,21 @@ 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
|
|
|
19
|
+
let activityCountdownTimer = null // 活动倒计时计时器
|
|
20
|
+
let hadActivity = false
|
|
21
|
+
let activityList = [] // 参与活动的商品
|
|
22
|
+
|
|
23
|
+
// 预热模块
|
|
24
|
+
let preheatTimer = null // 预热倒计时计时器
|
|
25
|
+
let hadPreheat = false
|
|
26
|
+
let preheatList = [] // 参与活动的商品
|
|
27
|
+
|
|
28
|
+
let hasActivity = false // 是否有参与活动的商品
|
|
29
|
+
let hasPreheat = false // 是否有参与预热的商品
|
|
30
|
+
|
|
18
31
|
const MARKET_ACTIVITY_MAP = {
|
|
19
32
|
3: "限时折扣",
|
|
20
33
|
4: "好友助力",
|
|
@@ -59,6 +72,12 @@ Component({
|
|
|
59
72
|
newVal && this.data.explainingGoods.length && this.getExplainingGoodsInfo()
|
|
60
73
|
newVal && this.getPreferentialPriceSetting()
|
|
61
74
|
newVal && this.onLoad()
|
|
75
|
+
if(!newVal){
|
|
76
|
+
clearInterval(activityCountdownTimer)
|
|
77
|
+
activityCountdownTimer = null
|
|
78
|
+
clearInterval(preheatTimer)
|
|
79
|
+
preheatTimer = null
|
|
80
|
+
}
|
|
62
81
|
}
|
|
63
82
|
},
|
|
64
83
|
// 讲解中商品
|
|
@@ -120,8 +139,12 @@ Component({
|
|
|
120
139
|
type: Object,
|
|
121
140
|
value: {},
|
|
122
141
|
observer(newVal) {
|
|
123
|
-
|
|
142
|
+
this.handlerListInfo(newVal)
|
|
124
143
|
}
|
|
144
|
+
},
|
|
145
|
+
orientation: {
|
|
146
|
+
type: String,
|
|
147
|
+
value: 'hor'
|
|
125
148
|
}
|
|
126
149
|
},
|
|
127
150
|
data: {
|
|
@@ -152,10 +175,62 @@ Component({
|
|
|
152
175
|
return data.formExplainingGoods.resource_id && data.explainingGoodsIndex > 2
|
|
153
176
|
},
|
|
154
177
|
customStyle(properties) {
|
|
155
|
-
|
|
178
|
+
const { popPosition, orientation } = properties
|
|
179
|
+
const position = `position: ${orientation === 'ver' ? 'fixed' : 'absolute'}; left: 0; bottom: 0`
|
|
180
|
+
return popPosition === "bottom" ? `${position}; width: ${orientation === 'ver' ? '100%' : ''}; height: calc(100% - ${rpxToVmin(422)});` : "height: 100%;width: 100vmin;"
|
|
156
181
|
},
|
|
157
182
|
},
|
|
158
183
|
methods: {
|
|
184
|
+
// 商品总活动倒计时
|
|
185
|
+
startActivityCountdown(list) {
|
|
186
|
+
clearInterval(activityCountdownTimer)
|
|
187
|
+
activityCountdownTimer = setInterval(() => {
|
|
188
|
+
hadActivity = false
|
|
189
|
+
list.forEach((i) => {
|
|
190
|
+
let targetDate = new Date(i.time.replace(/-/g, '/')).getTime() - new Date().getTime()
|
|
191
|
+
if (targetDate <= 0) return
|
|
192
|
+
hadActivity = true
|
|
193
|
+
let temp = `goodsInfo[${i.index}].activityCountdown`
|
|
194
|
+
this.setData({
|
|
195
|
+
[temp]: targetDate,
|
|
196
|
+
})
|
|
197
|
+
})
|
|
198
|
+
if (!hadActivity) {
|
|
199
|
+
clearInterval(activityCountdownTimer)
|
|
200
|
+
activityCountdownTimer = null
|
|
201
|
+
}
|
|
202
|
+
}, 1000)
|
|
203
|
+
},
|
|
204
|
+
// 预热倒计时
|
|
205
|
+
startPreheatCountdown(list) {
|
|
206
|
+
clearInterval(preheatTimer)
|
|
207
|
+
preheatTimer = setInterval(() => {
|
|
208
|
+
hadPreheat = false
|
|
209
|
+
list.forEach((i) => {
|
|
210
|
+
let targetDate = new Date(i.time.replace(/-/g, '/')).getTime() - new Date().getTime()
|
|
211
|
+
if (targetDate <= 0) {
|
|
212
|
+
activityList.push({
|
|
213
|
+
time: this.data.goodsInfo[i.index].end_at,
|
|
214
|
+
index: i.index,
|
|
215
|
+
})
|
|
216
|
+
this.setData({
|
|
217
|
+
[`goodsInfo[${i.index}].preheatTime`]: 0,
|
|
218
|
+
})
|
|
219
|
+
return
|
|
220
|
+
}
|
|
221
|
+
hadPreheat = true
|
|
222
|
+
let temp = `goodsInfo[${i.index}].preheatTime`
|
|
223
|
+
this.setData({
|
|
224
|
+
[temp]: targetDate,
|
|
225
|
+
})
|
|
226
|
+
})
|
|
227
|
+
if (!hadPreheat) {
|
|
228
|
+
clearInterval(preheatTimer)
|
|
229
|
+
preheatTimer = null
|
|
230
|
+
}
|
|
231
|
+
}, 1000)
|
|
232
|
+
},
|
|
233
|
+
|
|
159
234
|
/**
|
|
160
235
|
* 带货/优惠券实时同步
|
|
161
236
|
* @param {object} msgData im消息体
|
|
@@ -164,10 +239,14 @@ Component({
|
|
|
164
239
|
handlerListInfo(msgData) {
|
|
165
240
|
let type = '', marketInfo = []
|
|
166
241
|
|
|
167
|
-
// jer todo 还有im接受的相关逻辑需要补充
|
|
168
242
|
// 遍历获取操作类型
|
|
169
243
|
for (let key in msgData) {
|
|
170
244
|
switch (key) {
|
|
245
|
+
// 带货开关操作
|
|
246
|
+
case "switch":
|
|
247
|
+
type = "goodsSwitch";
|
|
248
|
+
marketInfo = Number(msgData[key]);
|
|
249
|
+
break;
|
|
171
250
|
// 新增操作
|
|
172
251
|
case "conf_list":
|
|
173
252
|
type = "goodsConfList";
|
|
@@ -191,8 +270,7 @@ Component({
|
|
|
191
270
|
default:
|
|
192
271
|
break
|
|
193
272
|
}
|
|
194
|
-
|
|
195
|
-
if (marketInfo?.length > 0) {
|
|
273
|
+
if (marketInfo?.length > 0 || ['goodsSwitch', 'couponSwitch'].includes(type)) {
|
|
196
274
|
this.changGoodsList({type, marketInfo})
|
|
197
275
|
type = ''
|
|
198
276
|
marketInfo = []
|
|
@@ -207,6 +285,27 @@ Component({
|
|
|
207
285
|
let goodsInfo = this.data.goodsInfo,
|
|
208
286
|
formExplainingGoods = this.data.formExplainingGoods
|
|
209
287
|
switch (type) {
|
|
288
|
+
// 带货和优惠券开关操作
|
|
289
|
+
case "goodsSwitch":
|
|
290
|
+
if (!marketInfo) {
|
|
291
|
+
// 清空数据
|
|
292
|
+
this.setData({
|
|
293
|
+
goodsInfo: [],
|
|
294
|
+
page_index: 1,
|
|
295
|
+
total: 0,
|
|
296
|
+
refreshing: false,
|
|
297
|
+
finishedTxt: '加载中',
|
|
298
|
+
finished: false,
|
|
299
|
+
formExplainingGoods: {},
|
|
300
|
+
explainingGoodsIndex: 1,
|
|
301
|
+
currentGoodsItem: {},
|
|
302
|
+
componentsState: 1
|
|
303
|
+
})
|
|
304
|
+
} else if (this.data.goodsInfo.length === 0 && marketInfo === 1) {
|
|
305
|
+
// 重新打开按钮后,请求一次列表
|
|
306
|
+
this.properties.isGrayMarketing ? getGoodsListNew : getGoodsList
|
|
307
|
+
}
|
|
308
|
+
break;
|
|
210
309
|
case "goodsConfList":
|
|
211
310
|
// 如果已经加载完了,可以拼接数据
|
|
212
311
|
if (this.data.finished) this.formatData(marketInfo, true);
|
|
@@ -215,7 +314,6 @@ Component({
|
|
|
215
314
|
case "goodsBatchSwitchList":
|
|
216
315
|
marketInfo.map((item) => {
|
|
217
316
|
for (let index = 0; index < goodsInfo.length; index++) {
|
|
218
|
-
// jer todo 可能需要更改一下这个超级会员的字段
|
|
219
317
|
if (item.id === goodsInfo[index].id) {
|
|
220
318
|
// 遍历插入相应的修改值
|
|
221
319
|
for (let key in item) {
|
|
@@ -229,16 +327,19 @@ Component({
|
|
|
229
327
|
}
|
|
230
328
|
}
|
|
231
329
|
break;
|
|
232
|
-
} else if (type === "goodsBatchSwitchList" && item.is_display_package === 1 && item.order_weight < goodsInfo[index].order_weight) {
|
|
330
|
+
} else if (type === "goodsBatchSwitchList" && item.is_display_package === 1 && ((item.order_weight < goodsInfo[index].order_weight) || (this.data.finished && index === (goodsInfo.length - 1) && item.order_weight > goodsInfo[index].order_weight))) {
|
|
233
331
|
// 由于兼容显示商品时,接口并没有此商品的话,需要做一个插入商品到对应位置的操作,获取需要插入状态值(只有学员才需要操作)
|
|
234
|
-
|
|
332
|
+
this.formatItem(item)
|
|
333
|
+
if (item.order_weight < goodsInfo[index].order_weight) {
|
|
334
|
+
goodsInfo.splice(index, 0, item);
|
|
335
|
+
} else if (this.data.finished && index === (goodsInfo.length - 1) && item.order_weight > goodsInfo[index].order_weight) {
|
|
336
|
+
goodsInfo.splice(index+1, 0, item);
|
|
337
|
+
}
|
|
235
338
|
break;
|
|
236
339
|
}
|
|
237
340
|
};
|
|
238
341
|
});
|
|
239
|
-
this.
|
|
240
|
-
goodsInfo,
|
|
241
|
-
})
|
|
342
|
+
this.formatData(goodsInfo, false, true)
|
|
242
343
|
break;
|
|
243
344
|
case "goodsDelList":
|
|
244
345
|
let delIndex = -1; // 删除数据的当前下标
|
|
@@ -258,9 +359,7 @@ Component({
|
|
|
258
359
|
// 重置删除下标
|
|
259
360
|
delIndex = -1;
|
|
260
361
|
});
|
|
261
|
-
this.
|
|
262
|
-
goodsInfo,
|
|
263
|
-
})
|
|
362
|
+
this.formatData(goodsInfo, false, true)
|
|
264
363
|
break;
|
|
265
364
|
default:
|
|
266
365
|
break;
|
|
@@ -400,20 +499,58 @@ Component({
|
|
|
400
499
|
}
|
|
401
500
|
})
|
|
402
501
|
},
|
|
403
|
-
formatData(data,onScrolltolower){
|
|
502
|
+
formatData(data,onScrolltolower,isReplace = false){
|
|
404
503
|
//onScrolltolower代表是上拉加载的标识,网卡的时候有上拉加载与下拉刷新同时请求,上拉加载的数据也push进去的情况。
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
504
|
+
let goodsInfo = this.data.goodsInfo
|
|
505
|
+
data.forEach((item,index) => {
|
|
506
|
+
this.formatItem(item)
|
|
507
|
+
if (!this._freshing && onScrolltolower) {
|
|
508
|
+
goodsInfo.push(item)
|
|
509
|
+
}
|
|
510
|
+
})
|
|
511
|
+
if (this._freshing && !onScrolltolower || isReplace) {
|
|
512
|
+
//下拉刷新的时候直接赋值
|
|
513
|
+
goodsInfo = JSON.parse(JSON.stringify(data))
|
|
514
|
+
}
|
|
515
|
+
this.setData({goodsInfo},()=>{
|
|
516
|
+
this.getActivityStatus(this.data.goodsInfo)
|
|
517
|
+
})
|
|
518
|
+
},
|
|
519
|
+
getActivityStatus(data){
|
|
520
|
+
activityList = []
|
|
521
|
+
preheatList = []
|
|
522
|
+
data.forEach((item, index) => {
|
|
523
|
+
if (item.is_activity && item.end_at) {
|
|
524
|
+
hasActivity = true
|
|
525
|
+
item.activityCountdown = 0
|
|
526
|
+
activityList.push({
|
|
527
|
+
time: item.end_at,
|
|
528
|
+
index,
|
|
411
529
|
})
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
530
|
+
}
|
|
531
|
+
// this.data.isSeckill && this.data.preheating
|
|
532
|
+
if (item.activity_type === 8 && item.sec_kill_is_preheat === 1) {
|
|
533
|
+
//预热开始时间
|
|
534
|
+
let startTime = (item.start_at && new Date(item.start_at.replace(/-/g, '/'))) || new Date()
|
|
535
|
+
let times = startTime.getTime() - item.sec_kill_preheat_time * 1000
|
|
536
|
+
let preHeatTime = new Date(times) || new Date()
|
|
537
|
+
|
|
538
|
+
let startTime2 = (item.start_at && new Date(item.start_at.replace(/-/g, '/'))) || new Date()
|
|
539
|
+
let nowTime = new Date().getTime()
|
|
540
|
+
let preheating = nowTime > preHeatTime.getTime() && startTime2.getTime() > nowTime
|
|
541
|
+
|
|
542
|
+
if (preheating) {
|
|
543
|
+
hasPreheat = true
|
|
544
|
+
item.preheatTime = 0
|
|
545
|
+
preheatList.push({
|
|
546
|
+
time: item.start_at,
|
|
547
|
+
index,
|
|
548
|
+
})
|
|
415
549
|
}
|
|
416
|
-
|
|
550
|
+
}
|
|
551
|
+
})
|
|
552
|
+
if (hasActivity) this.startActivityCountdown(activityList) //活动倒计时
|
|
553
|
+
if (hasPreheat) this.startPreheatCountdown(preheatList) // 预热倒计时
|
|
417
554
|
},
|
|
418
555
|
formatItem(e) {
|
|
419
556
|
e.resourceTypeName = e.resource_type_name // 商品类型
|
|
@@ -594,6 +731,11 @@ Component({
|
|
|
594
731
|
goodsInfo: [],
|
|
595
732
|
finishedTxt: "no-data"
|
|
596
733
|
})
|
|
734
|
+
},
|
|
735
|
+
showReceivePopup(e) {
|
|
736
|
+
console.log("sage---走进来了吗");
|
|
737
|
+
console.log("sage----列表 dataset",e.currentTarget.dataset.item,e.detail);
|
|
738
|
+
this.triggerEvent('showReceivePopup', e.detail)
|
|
597
739
|
}
|
|
598
740
|
}
|
|
599
741
|
})
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
$deviceWidth: 750;
|
|
2
|
+
@function vmin($rpx) {
|
|
3
|
+
@return #{$rpx * 100 / $deviceWidth}vmin;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
@mixin goods-list-box {
|
|
7
|
+
|
|
8
|
+
.goods-list-box-popup {
|
|
9
|
+
width: vmin(750);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.box {
|
|
13
|
+
margin: 0 vmin(12);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.title {
|
|
17
|
+
margin: 0;
|
|
18
|
+
padding: vmin(32) vmin(16) vmin(16);
|
|
19
|
+
color: rgba(69, 90, 100, 0.6);
|
|
20
|
+
font-weight: normal;
|
|
21
|
+
font-size: vmin(18);
|
|
22
|
+
line-height: vmin(20);
|
|
23
|
+
text-align: center;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.btn {
|
|
27
|
+
display: block;
|
|
28
|
+
width: 100%;
|
|
29
|
+
margin: vmin(10) 0;
|
|
30
|
+
background-color: #fff;
|
|
31
|
+
}
|
|
32
|
+
.page-main {
|
|
33
|
+
height: 100%;
|
|
34
|
+
}
|
|
35
|
+
.goods-list {
|
|
36
|
+
box-sizing: border-box;
|
|
37
|
+
min-height: 40vmin;
|
|
38
|
+
display: flex;
|
|
39
|
+
flex-direction: column;
|
|
40
|
+
height: 100%;
|
|
41
|
+
.finished-text {
|
|
42
|
+
display: flex;
|
|
43
|
+
justify-content: center;
|
|
44
|
+
color: #999;
|
|
45
|
+
font-size: vmin(28);
|
|
46
|
+
padding-bottom: vmin(20);
|
|
47
|
+
}
|
|
48
|
+
.no-data {
|
|
49
|
+
display: flex;
|
|
50
|
+
flex-direction: column;
|
|
51
|
+
align-items: center;
|
|
52
|
+
padding-top: vmin(80);
|
|
53
|
+
.no-data-png {
|
|
54
|
+
width: vmin(176);
|
|
55
|
+
height: vmin(176);
|
|
56
|
+
}
|
|
57
|
+
.no-data-text {
|
|
58
|
+
color: #999999;
|
|
59
|
+
font-size: vmin(28);
|
|
60
|
+
margin-top: vmin(32);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
.goods-list-box {
|
|
68
|
+
@include goods-list-box;
|
|
69
|
+
}
|
|
70
|
+
// 竖屏pad
|
|
71
|
+
@media screen and (min-width: 768px) and (orientation: portrait) {
|
|
72
|
+
$deviceWidth: 1536 !global;
|
|
73
|
+
|
|
74
|
+
.goods-list-box {
|
|
75
|
+
@include goods-list-box;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
// PC 放大适配
|
|
79
|
+
@media screen and (min-height: 630px) and (orientation: landscape) {
|
|
80
|
+
$deviceWidth: 1260 !global;
|
|
81
|
+
|
|
82
|
+
.goods-list-box {
|
|
83
|
+
@include goods-list-box;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
// 横屏pad
|
|
87
|
+
@media screen and (min-height: 768px) and (orientation: landscape) {
|
|
88
|
+
$deviceWidth: 1536 !global;
|
|
89
|
+
|
|
90
|
+
.goods-list-box {
|
|
91
|
+
@include goods-list-box;
|
|
92
|
+
}
|
|
93
|
+
}
|