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
|
@@ -35,7 +35,7 @@ Component({
|
|
|
35
35
|
type: Object,
|
|
36
36
|
value: {},
|
|
37
37
|
observer(newVal) {
|
|
38
|
-
|
|
38
|
+
this.handlerListInfo(newVal)
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
},
|
|
@@ -171,6 +171,10 @@ Component({
|
|
|
171
171
|
this.triggerEvent("sendCoupon", {
|
|
172
172
|
couponItem: detail.couponItem
|
|
173
173
|
})
|
|
174
|
+
},
|
|
175
|
+
showReceivePopup(e) {
|
|
176
|
+
console.log("sage----ee列表的领取",e.detail.couponInfo);
|
|
177
|
+
this.triggerEvent('showReceivePopup',e.detail.couponInfo)
|
|
174
178
|
}
|
|
175
179
|
}
|
|
176
180
|
})
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
$deviceWidth: 750;
|
|
2
|
+
@function vmin($rpx) {
|
|
3
|
+
@return #{$rpx * 100 / $deviceWidth}vmin;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
@mixin coupon-list {
|
|
7
|
+
&.vertical-screen {
|
|
8
|
+
background: #fff;
|
|
9
|
+
padding-top: vmin(8);
|
|
10
|
+
.coupon-title {
|
|
11
|
+
margin-left: vmin(32);
|
|
12
|
+
color: #333333;
|
|
13
|
+
font-size: vmin(28);
|
|
14
|
+
margin-bottom: vmin(16);
|
|
15
|
+
.coupon {
|
|
16
|
+
font-weight: 700;
|
|
17
|
+
margin-right: vmin(16);
|
|
18
|
+
}
|
|
19
|
+
.coupon-num {
|
|
20
|
+
font-weight: 400;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
.goods-coupon-wrapper {
|
|
24
|
+
display: flex;
|
|
25
|
+
flex-direction: row;
|
|
26
|
+
overflow-y: scroll;
|
|
27
|
+
.coupon-item:first-child {
|
|
28
|
+
margin-left: vmin(32);
|
|
29
|
+
}
|
|
30
|
+
.coupon-item:last-child {
|
|
31
|
+
padding-right: vmin(16) !important;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
}
|
|
35
|
+
.goods-coupon-wrapper::-webkit-scrollbar {
|
|
36
|
+
display: none;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
&.full-screen {
|
|
40
|
+
.goods-coupon-wrapper {
|
|
41
|
+
margin-bottom: vmin(32);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
@mixin no-data{
|
|
48
|
+
display: flex;
|
|
49
|
+
flex-direction: column;
|
|
50
|
+
align-items: center;
|
|
51
|
+
margin-top: vmin(164);
|
|
52
|
+
.no-data-png{
|
|
53
|
+
width: vmin(176);
|
|
54
|
+
height: vmin(176);
|
|
55
|
+
}
|
|
56
|
+
.no-data-text{
|
|
57
|
+
color: rgba(51,51,51,1);
|
|
58
|
+
font-size: vmin(28);
|
|
59
|
+
font-weight: 400;
|
|
60
|
+
font-family: "PingFang SC";
|
|
61
|
+
margin-top: vmin(32);
|
|
62
|
+
margin-bottom: vmin(16);
|
|
63
|
+
}
|
|
64
|
+
.chat-text{
|
|
65
|
+
opacity: 1;
|
|
66
|
+
color: rgba(153,153,153,1);
|
|
67
|
+
font-size: vmin(24);
|
|
68
|
+
font-weight: 400;
|
|
69
|
+
font-family: "PingFang SC";
|
|
70
|
+
padding: 0 vmin(90) 0 vmin(88);
|
|
71
|
+
text-align: center;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
.no-data {
|
|
77
|
+
@include no-data;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.coupon-list {
|
|
81
|
+
@include coupon-list;
|
|
82
|
+
}
|
|
83
|
+
// 竖屏pad
|
|
84
|
+
@media screen and (min-width: 768px) and (orientation: portrait) {
|
|
85
|
+
$deviceWidth: 1536 !global;
|
|
86
|
+
|
|
87
|
+
.no-data {
|
|
88
|
+
@include no-data;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.coupon-list {
|
|
92
|
+
@include coupon-list;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
// PC 放大适配
|
|
96
|
+
@media screen and (min-height: 630px) and (orientation: landscape) {
|
|
97
|
+
$deviceWidth: 1260 !global;
|
|
98
|
+
|
|
99
|
+
.no-data {
|
|
100
|
+
@include no-data;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.coupon-list {
|
|
104
|
+
@include coupon-list;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
// 横屏pad
|
|
108
|
+
@media screen and (min-height: 768px) and (orientation: landscape) {
|
|
109
|
+
$deviceWidth: 1536 !global;
|
|
110
|
+
|
|
111
|
+
.no-data {
|
|
112
|
+
@include no-data;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.coupon-list {
|
|
116
|
+
@include coupon-list;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
bindreceivedSuccess="receivedSuccess"
|
|
21
21
|
bind:sendCoupon="sendCoupon"
|
|
22
22
|
isFullscreenList="{{isFullscreenList}}"
|
|
23
|
+
bind:showReceivePopup="showReceivePopup"
|
|
23
24
|
/>
|
|
24
25
|
</view>
|
|
25
26
|
<view class="no-data" wx:elif="{{ isFullScreen && (!aliveConf.is_coupon_on || !isInitePage && couponsList.length === 0) }}">
|
|
@@ -1,16 +1,43 @@
|
|
|
1
|
+
.no-data {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
align-items: center;
|
|
5
|
+
margin-top: 21.86667vmin;
|
|
6
|
+
}
|
|
7
|
+
.no-data .no-data-png {
|
|
8
|
+
width: 23.46667vmin;
|
|
9
|
+
height: 23.46667vmin;
|
|
10
|
+
}
|
|
11
|
+
.no-data .no-data-text {
|
|
12
|
+
color: #333333;
|
|
13
|
+
font-size: 3.73333vmin;
|
|
14
|
+
font-weight: 400;
|
|
15
|
+
font-family: "PingFang SC";
|
|
16
|
+
margin-top: 4.26667vmin;
|
|
17
|
+
margin-bottom: 2.13333vmin;
|
|
18
|
+
}
|
|
19
|
+
.no-data .chat-text {
|
|
20
|
+
opacity: 1;
|
|
21
|
+
color: #999999;
|
|
22
|
+
font-size: 3.2vmin;
|
|
23
|
+
font-weight: 400;
|
|
24
|
+
font-family: "PingFang SC";
|
|
25
|
+
padding: 0 12vmin 0 11.73333vmin;
|
|
26
|
+
text-align: center;
|
|
27
|
+
}
|
|
1
28
|
.coupon-list.vertical-screen {
|
|
2
29
|
background: #fff;
|
|
3
|
-
padding-top: 1.
|
|
30
|
+
padding-top: 1.06667vmin;
|
|
4
31
|
}
|
|
5
32
|
.coupon-list.vertical-screen .coupon-title {
|
|
6
|
-
margin-left: 4.
|
|
33
|
+
margin-left: 4.26667vmin;
|
|
7
34
|
color: #333333;
|
|
8
|
-
font-size: 3.
|
|
9
|
-
margin-bottom: 2.
|
|
35
|
+
font-size: 3.73333vmin;
|
|
36
|
+
margin-bottom: 2.13333vmin;
|
|
10
37
|
}
|
|
11
38
|
.coupon-list.vertical-screen .coupon-title .coupon {
|
|
12
39
|
font-weight: 700;
|
|
13
|
-
margin-right: 2.
|
|
40
|
+
margin-right: 2.13333vmin;
|
|
14
41
|
}
|
|
15
42
|
.coupon-list.vertical-screen .coupon-title .coupon-num {
|
|
16
43
|
font-weight: 400;
|
|
@@ -21,41 +48,203 @@
|
|
|
21
48
|
overflow-y: scroll;
|
|
22
49
|
}
|
|
23
50
|
.coupon-list.vertical-screen .goods-coupon-wrapper .coupon-item:first-child {
|
|
24
|
-
margin-left: 4.
|
|
51
|
+
margin-left: 4.26667vmin;
|
|
25
52
|
}
|
|
26
53
|
.coupon-list.vertical-screen .goods-coupon-wrapper .coupon-item:last-child {
|
|
27
|
-
padding-right: 2.
|
|
54
|
+
padding-right: 2.13333vmin !important;
|
|
28
55
|
}
|
|
29
56
|
.coupon-list.vertical-screen .goods-coupon-wrapper::-webkit-scrollbar {
|
|
30
57
|
display: none;
|
|
31
58
|
}
|
|
32
59
|
.coupon-list.full-screen .goods-coupon-wrapper {
|
|
33
|
-
margin-bottom: 4.
|
|
60
|
+
margin-bottom: 4.26667vmin;
|
|
34
61
|
}
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
62
|
+
@media screen and (min-width: 768px) and (orientation: portrait) {
|
|
63
|
+
.no-data {
|
|
64
|
+
display: flex;
|
|
65
|
+
flex-direction: column;
|
|
66
|
+
align-items: center;
|
|
67
|
+
margin-top: 10.67708vmin;
|
|
68
|
+
}
|
|
69
|
+
.no-data .no-data-png {
|
|
70
|
+
width: 11.45833vmin;
|
|
71
|
+
height: 11.45833vmin;
|
|
72
|
+
}
|
|
73
|
+
.no-data .no-data-text {
|
|
74
|
+
color: #333333;
|
|
75
|
+
font-size: 1.82292vmin;
|
|
76
|
+
font-weight: 400;
|
|
77
|
+
font-family: "PingFang SC";
|
|
78
|
+
margin-top: 2.08333vmin;
|
|
79
|
+
margin-bottom: 1.04167vmin;
|
|
80
|
+
}
|
|
81
|
+
.no-data .chat-text {
|
|
82
|
+
opacity: 1;
|
|
83
|
+
color: #999999;
|
|
84
|
+
font-size: 1.5625vmin;
|
|
85
|
+
font-weight: 400;
|
|
86
|
+
font-family: "PingFang SC";
|
|
87
|
+
padding: 0 5.85938vmin 0 5.72917vmin;
|
|
88
|
+
text-align: center;
|
|
89
|
+
}
|
|
90
|
+
.coupon-list.vertical-screen {
|
|
91
|
+
background: #fff;
|
|
92
|
+
padding-top: 0.52083vmin;
|
|
93
|
+
}
|
|
94
|
+
.coupon-list.vertical-screen .coupon-title {
|
|
95
|
+
margin-left: 2.08333vmin;
|
|
96
|
+
color: #333333;
|
|
97
|
+
font-size: 1.82292vmin;
|
|
98
|
+
margin-bottom: 1.04167vmin;
|
|
99
|
+
}
|
|
100
|
+
.coupon-list.vertical-screen .coupon-title .coupon {
|
|
101
|
+
font-weight: 700;
|
|
102
|
+
margin-right: 1.04167vmin;
|
|
103
|
+
}
|
|
104
|
+
.coupon-list.vertical-screen .coupon-title .coupon-num {
|
|
105
|
+
font-weight: 400;
|
|
106
|
+
}
|
|
107
|
+
.coupon-list.vertical-screen .goods-coupon-wrapper {
|
|
108
|
+
display: flex;
|
|
109
|
+
flex-direction: row;
|
|
110
|
+
overflow-y: scroll;
|
|
111
|
+
}
|
|
112
|
+
.coupon-list.vertical-screen .goods-coupon-wrapper .coupon-item:first-child {
|
|
113
|
+
margin-left: 2.08333vmin;
|
|
114
|
+
}
|
|
115
|
+
.coupon-list.vertical-screen .goods-coupon-wrapper .coupon-item:last-child {
|
|
116
|
+
padding-right: 1.04167vmin !important;
|
|
117
|
+
}
|
|
118
|
+
.coupon-list.vertical-screen .goods-coupon-wrapper::-webkit-scrollbar {
|
|
119
|
+
display: none;
|
|
120
|
+
}
|
|
121
|
+
.coupon-list.full-screen .goods-coupon-wrapper {
|
|
122
|
+
margin-bottom: 2.08333vmin;
|
|
123
|
+
}
|
|
40
124
|
}
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
125
|
+
@media screen and (min-height: 630px) and (orientation: landscape) {
|
|
126
|
+
.no-data {
|
|
127
|
+
display: flex;
|
|
128
|
+
flex-direction: column;
|
|
129
|
+
align-items: center;
|
|
130
|
+
margin-top: 13.01587vmin;
|
|
131
|
+
}
|
|
132
|
+
.no-data .no-data-png {
|
|
133
|
+
width: 13.96825vmin;
|
|
134
|
+
height: 13.96825vmin;
|
|
135
|
+
}
|
|
136
|
+
.no-data .no-data-text {
|
|
137
|
+
color: #333333;
|
|
138
|
+
font-size: 2.22222vmin;
|
|
139
|
+
font-weight: 400;
|
|
140
|
+
font-family: "PingFang SC";
|
|
141
|
+
margin-top: 2.53968vmin;
|
|
142
|
+
margin-bottom: 1.26984vmin;
|
|
143
|
+
}
|
|
144
|
+
.no-data .chat-text {
|
|
145
|
+
opacity: 1;
|
|
146
|
+
color: #999999;
|
|
147
|
+
font-size: 1.90476vmin;
|
|
148
|
+
font-weight: 400;
|
|
149
|
+
font-family: "PingFang SC";
|
|
150
|
+
padding: 0 7.14286vmin 0 6.98413vmin;
|
|
151
|
+
text-align: center;
|
|
152
|
+
}
|
|
153
|
+
.coupon-list.vertical-screen {
|
|
154
|
+
background: #fff;
|
|
155
|
+
padding-top: 0.63492vmin;
|
|
156
|
+
}
|
|
157
|
+
.coupon-list.vertical-screen .coupon-title {
|
|
158
|
+
margin-left: 2.53968vmin;
|
|
159
|
+
color: #333333;
|
|
160
|
+
font-size: 2.22222vmin;
|
|
161
|
+
margin-bottom: 1.26984vmin;
|
|
162
|
+
}
|
|
163
|
+
.coupon-list.vertical-screen .coupon-title .coupon {
|
|
164
|
+
font-weight: 700;
|
|
165
|
+
margin-right: 1.26984vmin;
|
|
166
|
+
}
|
|
167
|
+
.coupon-list.vertical-screen .coupon-title .coupon-num {
|
|
168
|
+
font-weight: 400;
|
|
169
|
+
}
|
|
170
|
+
.coupon-list.vertical-screen .goods-coupon-wrapper {
|
|
171
|
+
display: flex;
|
|
172
|
+
flex-direction: row;
|
|
173
|
+
overflow-y: scroll;
|
|
174
|
+
}
|
|
175
|
+
.coupon-list.vertical-screen .goods-coupon-wrapper .coupon-item:first-child {
|
|
176
|
+
margin-left: 2.53968vmin;
|
|
177
|
+
}
|
|
178
|
+
.coupon-list.vertical-screen .goods-coupon-wrapper .coupon-item:last-child {
|
|
179
|
+
padding-right: 1.26984vmin !important;
|
|
180
|
+
}
|
|
181
|
+
.coupon-list.vertical-screen .goods-coupon-wrapper::-webkit-scrollbar {
|
|
182
|
+
display: none;
|
|
183
|
+
}
|
|
184
|
+
.coupon-list.full-screen .goods-coupon-wrapper {
|
|
185
|
+
margin-bottom: 2.53968vmin;
|
|
186
|
+
}
|
|
52
187
|
}
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
188
|
+
@media screen and (min-height: 768px) and (orientation: landscape) {
|
|
189
|
+
.no-data {
|
|
190
|
+
display: flex;
|
|
191
|
+
flex-direction: column;
|
|
192
|
+
align-items: center;
|
|
193
|
+
margin-top: 10.67708vmin;
|
|
194
|
+
}
|
|
195
|
+
.no-data .no-data-png {
|
|
196
|
+
width: 11.45833vmin;
|
|
197
|
+
height: 11.45833vmin;
|
|
198
|
+
}
|
|
199
|
+
.no-data .no-data-text {
|
|
200
|
+
color: #333333;
|
|
201
|
+
font-size: 1.82292vmin;
|
|
202
|
+
font-weight: 400;
|
|
203
|
+
font-family: "PingFang SC";
|
|
204
|
+
margin-top: 2.08333vmin;
|
|
205
|
+
margin-bottom: 1.04167vmin;
|
|
206
|
+
}
|
|
207
|
+
.no-data .chat-text {
|
|
208
|
+
opacity: 1;
|
|
209
|
+
color: #999999;
|
|
210
|
+
font-size: 1.5625vmin;
|
|
211
|
+
font-weight: 400;
|
|
212
|
+
font-family: "PingFang SC";
|
|
213
|
+
padding: 0 5.85938vmin 0 5.72917vmin;
|
|
214
|
+
text-align: center;
|
|
215
|
+
}
|
|
216
|
+
.coupon-list.vertical-screen {
|
|
217
|
+
background: #fff;
|
|
218
|
+
padding-top: 0.52083vmin;
|
|
219
|
+
}
|
|
220
|
+
.coupon-list.vertical-screen .coupon-title {
|
|
221
|
+
margin-left: 2.08333vmin;
|
|
222
|
+
color: #333333;
|
|
223
|
+
font-size: 1.82292vmin;
|
|
224
|
+
margin-bottom: 1.04167vmin;
|
|
225
|
+
}
|
|
226
|
+
.coupon-list.vertical-screen .coupon-title .coupon {
|
|
227
|
+
font-weight: 700;
|
|
228
|
+
margin-right: 1.04167vmin;
|
|
229
|
+
}
|
|
230
|
+
.coupon-list.vertical-screen .coupon-title .coupon-num {
|
|
231
|
+
font-weight: 400;
|
|
232
|
+
}
|
|
233
|
+
.coupon-list.vertical-screen .goods-coupon-wrapper {
|
|
234
|
+
display: flex;
|
|
235
|
+
flex-direction: row;
|
|
236
|
+
overflow-y: scroll;
|
|
237
|
+
}
|
|
238
|
+
.coupon-list.vertical-screen .goods-coupon-wrapper .coupon-item:first-child {
|
|
239
|
+
margin-left: 2.08333vmin;
|
|
240
|
+
}
|
|
241
|
+
.coupon-list.vertical-screen .goods-coupon-wrapper .coupon-item:last-child {
|
|
242
|
+
padding-right: 1.04167vmin !important;
|
|
243
|
+
}
|
|
244
|
+
.coupon-list.vertical-screen .goods-coupon-wrapper::-webkit-scrollbar {
|
|
245
|
+
display: none;
|
|
246
|
+
}
|
|
247
|
+
.coupon-list.full-screen .goods-coupon-wrapper {
|
|
248
|
+
margin-bottom: 2.08333vmin;
|
|
249
|
+
}
|
|
61
250
|
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
// subpkg/npm-compoent/miniprogram_npm/xiaoe_mp_npm/CouponReceivePopup/index.ts
|
|
2
|
+
import { replaceCDN } from './../common/utils/image-cdn-slim/utils'
|
|
3
|
+
const computedBehavior = require('miniprogram-computed').behavior
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
Component({
|
|
7
|
+
behaviors: [computedBehavior],
|
|
8
|
+
/**
|
|
9
|
+
* 组件的属性列表
|
|
10
|
+
*/
|
|
11
|
+
properties: {
|
|
12
|
+
showPopup: {
|
|
13
|
+
type: Boolean,
|
|
14
|
+
value: false,
|
|
15
|
+
},
|
|
16
|
+
couponInfo: {
|
|
17
|
+
type: Object,
|
|
18
|
+
value: {}
|
|
19
|
+
},
|
|
20
|
+
isFullScreen: {
|
|
21
|
+
type: Boolean,
|
|
22
|
+
value: false
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* 组件的初始数据
|
|
28
|
+
*/
|
|
29
|
+
data: {
|
|
30
|
+
bgZh: "https://commonresource-1252524126.cdn.xiaoeknow.com/image/lmimm9mb0lnc.png",
|
|
31
|
+
closeBtn: "https://commonresource-1252524126.cdn.xiaoeknow.com/image/lmimm9mb0q88.png"
|
|
32
|
+
},
|
|
33
|
+
|
|
34
|
+
lifetimes: {
|
|
35
|
+
attached : function() {
|
|
36
|
+
console.log("sage------add",this.data);
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
|
|
40
|
+
computed: {
|
|
41
|
+
backgroundImageUrl(data) {
|
|
42
|
+
console.log("sage-----data",data);
|
|
43
|
+
const url = data.bgZh;
|
|
44
|
+
console.log("sage-----url",url,replaceCDN(url, "?imageView2/2/w/400/q/100"));
|
|
45
|
+
return replaceCDN(url, "?imageView2/2/w/400/q/100");
|
|
46
|
+
// return url
|
|
47
|
+
},
|
|
48
|
+
closeBtnUrl(data) {
|
|
49
|
+
return replaceCDN(data.closeBtn, "?imageView2/2/w/400/q/100");
|
|
50
|
+
},
|
|
51
|
+
isShowPoint(data) {
|
|
52
|
+
let tempPrice = data.couponInfo.price;
|
|
53
|
+
if (tempPrice % 100 == 0) {
|
|
54
|
+
return false;
|
|
55
|
+
} else {
|
|
56
|
+
return true;
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* 组件的方法列表
|
|
63
|
+
*/
|
|
64
|
+
methods: {
|
|
65
|
+
closePopup() {
|
|
66
|
+
this.triggerEvent('closePopup')
|
|
67
|
+
|
|
68
|
+
},
|
|
69
|
+
goGoods() {
|
|
70
|
+
this.closePopup()
|
|
71
|
+
// todo 拉起带货
|
|
72
|
+
this.triggerEvent('goGoods')
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
})
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
$deviceWidth: 750;
|
|
2
|
+
@function vmin($rpx) {
|
|
3
|
+
@return #{$rpx * 100 / $deviceWidth}vmin;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
@mixin coupon-receive {
|
|
7
|
+
.receive-box{
|
|
8
|
+
display: flex;
|
|
9
|
+
flex-direction: column;
|
|
10
|
+
}
|
|
11
|
+
.receive-box-scale{
|
|
12
|
+
transform: scale(80%);
|
|
13
|
+
transform-origin: 50% 10%;
|
|
14
|
+
}
|
|
15
|
+
.receive-popup{
|
|
16
|
+
background-color: transparent;
|
|
17
|
+
display: flex;
|
|
18
|
+
flex-direction: column;
|
|
19
|
+
.receive-container{
|
|
20
|
+
width: vmin(512);
|
|
21
|
+
height: vmin(760);
|
|
22
|
+
background-size: 100% 100%;
|
|
23
|
+
&__content {
|
|
24
|
+
display: flex;
|
|
25
|
+
flex-direction: column;
|
|
26
|
+
margin: vmin(280) vmin(32) vmin(32);
|
|
27
|
+
padding: vmin(32) vmin(24) vmin(24);
|
|
28
|
+
}
|
|
29
|
+
&__content-price {
|
|
30
|
+
font-weight: 500;
|
|
31
|
+
font-family: "PingFang SC";
|
|
32
|
+
text-align: left;
|
|
33
|
+
display: flex;
|
|
34
|
+
align-items: baseline;
|
|
35
|
+
.smallIcon {
|
|
36
|
+
color: #fd2b54;
|
|
37
|
+
font-size: vmin(40);
|
|
38
|
+
line-height: vmin(40);
|
|
39
|
+
}
|
|
40
|
+
.boldIcon {
|
|
41
|
+
color: #fd2b54;
|
|
42
|
+
font-size: vmin(80);
|
|
43
|
+
line-height: vmin(80);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
&__content-describe {
|
|
47
|
+
margin-top: vmin(28);
|
|
48
|
+
color: #333333;
|
|
49
|
+
font-size: vmin(28);
|
|
50
|
+
font-weight: 400;
|
|
51
|
+
font-family: "PingFang SC";
|
|
52
|
+
text-align: left;
|
|
53
|
+
line-height: vmin(40);
|
|
54
|
+
span {
|
|
55
|
+
display: block;
|
|
56
|
+
margin-bottom: vmin(8);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
&__btn {
|
|
60
|
+
width: vmin(400);
|
|
61
|
+
height: vmin(80);
|
|
62
|
+
border-radius: vmin(8);
|
|
63
|
+
opacity: 1;
|
|
64
|
+
background: linear-gradient(270deg, #ff5820 0%, #ff4067 100%);
|
|
65
|
+
color: #ffffff;
|
|
66
|
+
font-size: vmin(32);
|
|
67
|
+
font-weight: 500;
|
|
68
|
+
font-family: "PingFang SC";
|
|
69
|
+
text-align: left;
|
|
70
|
+
margin: vmin(40) vmin(56) vmin(56);
|
|
71
|
+
display: flex;
|
|
72
|
+
align-items: center;
|
|
73
|
+
justify-content: center;
|
|
74
|
+
}
|
|
75
|
+
&__close {
|
|
76
|
+
width: vmin(64);
|
|
77
|
+
height: vmin(64);
|
|
78
|
+
margin: vmin(32) auto 0;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.coupon-receive {
|
|
87
|
+
@include coupon-receive;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
// 竖屏pad
|
|
91
|
+
@media screen and (min-width: 768px) and (orientation: portrait) {
|
|
92
|
+
$deviceWidth: 1536 !global;
|
|
93
|
+
|
|
94
|
+
}
|
|
95
|
+
// 横屏pad
|
|
96
|
+
@media screen and (min-height: 768px) and (orientation: landscape) {
|
|
97
|
+
$deviceWidth: 1536 !global;
|
|
98
|
+
|
|
99
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
<!--subpkg/npm-compoent/miniprogram_npm/xiaoe_mp_npm/CouponReceivePopup/index.wxml-->
|
|
2
|
+
<view class="coupon-receive">
|
|
3
|
+
<van-popup
|
|
4
|
+
show="{{ showPopup }}"
|
|
5
|
+
round
|
|
6
|
+
bind:click-overlay="closePopup"
|
|
7
|
+
bind:close="closePopup"
|
|
8
|
+
custom-class="receive-popup"
|
|
9
|
+
z-index="500"
|
|
10
|
+
>
|
|
11
|
+
<view class="receive-box {{isFullScreen?'receive-box-scale':''}}">
|
|
12
|
+
<view class="receive-container" style="background-image: url({{backgroundImageUrl}});">
|
|
13
|
+
<view class="receive-container__content">
|
|
14
|
+
<view class="receive-container__content-price">
|
|
15
|
+
<span class="smallIcon">¥</span>
|
|
16
|
+
<span class="boldIcon">{{ price.ToFilter(couponInfo.price) }}</span>
|
|
17
|
+
<span class="smallIcon" wx:if="{{isShowPoint}}">.{{ price.fixedFont(couponInfo.price) }}</span>
|
|
18
|
+
</view>
|
|
19
|
+
<view class="receive-container__content-describe">
|
|
20
|
+
<!-- 无门槛 -->
|
|
21
|
+
<span wx:if="{{couponInfo.require_price == 0}}">无门槛</span>
|
|
22
|
+
<!-- 满xx元可用 -->
|
|
23
|
+
<span wx:else>满{{ couponInfo.require_price / 100 }}元可用</span>
|
|
24
|
+
<!-- 全部商品可用 -->
|
|
25
|
+
<span wx:if="{{couponInfo.type == 1}}">全部商品可用</span>
|
|
26
|
+
<!-- 部分商品可用 -->
|
|
27
|
+
<span wx:else>部分商品可用</span>
|
|
28
|
+
<!-- 领取次日x天内有效 / 自领取起x天内有效-->
|
|
29
|
+
<span
|
|
30
|
+
wx:if="{{couponInfo.valid_day}}"
|
|
31
|
+
>{{ couponInfo.valid_after == 1 ? '领取次日' : '自领取起'}}{{couponInfo.valid_day}}天内有效</span>
|
|
32
|
+
<!-- 有效期至 -->
|
|
33
|
+
<span
|
|
34
|
+
wx:if="{{!couponInfo.valid_day && couponInfo.valid_at && couponInfo.invalid_at}}"
|
|
35
|
+
>有效期至:{{price.formatDateToMinte(couponInfo.invalid_at) }}</span>
|
|
36
|
+
<!-- <span
|
|
37
|
+
wx:if="{{!couponInfo.valid_day && couponInfo.valid_at && couponInfo.invalid_at}}"
|
|
38
|
+
>有效期至:{{couponInfo.invalid_at}}</span>-->
|
|
39
|
+
</view>
|
|
40
|
+
</view>
|
|
41
|
+
<view class="receive-container__btn" catchtap="goGoods">立即用券</view>
|
|
42
|
+
</view>
|
|
43
|
+
<image src="{{closeBtnUrl}}" alt class="receive-container__close" catchtap="closePopup" />
|
|
44
|
+
</view>
|
|
45
|
+
</van-popup>
|
|
46
|
+
</view>
|
|
47
|
+
|
|
48
|
+
<wxs module="price">
|
|
49
|
+
// 做数值过滤,value-要处理的数字 ToFix2-默认保留两位,默认转分转元,除以100。其他除以10(如折扣)
|
|
50
|
+
var ToFilter = function(data, ToFix2 = true) {
|
|
51
|
+
var result = (data / 100).toString();
|
|
52
|
+
if (!ToFix2) {
|
|
53
|
+
result = (data / 10).toString();
|
|
54
|
+
}
|
|
55
|
+
if (result.indexOf('.') > 0) {
|
|
56
|
+
return result.split('.')[0];
|
|
57
|
+
} else {
|
|
58
|
+
return result;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
// 小数点后的样式补充 ToFix2-默认保留2位,其他保留1位
|
|
62
|
+
var fixedFont = function(data, ToFix2 = true) {
|
|
63
|
+
if (data) {
|
|
64
|
+
var result = (data / 100).toString();
|
|
65
|
+
if (!ToFix2) {
|
|
66
|
+
result = (data / 10).toString();
|
|
67
|
+
}
|
|
68
|
+
if (result.toString().indexOf('.') > -1) {
|
|
69
|
+
return result.split('.')[1];
|
|
70
|
+
} else {
|
|
71
|
+
return '';
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
// 时间精确到分
|
|
76
|
+
var formatDateToMinte = function(date) {
|
|
77
|
+
var lastIndex = date.lastIndexOf(":");
|
|
78
|
+
return date.substring(0, lastIndex).replace(getRegExp('-','g'), '.');
|
|
79
|
+
};
|
|
80
|
+
module.exports={
|
|
81
|
+
ToFilter:ToFilter,
|
|
82
|
+
fixedFont:fixedFont,
|
|
83
|
+
formatDateToMinte: formatDateToMinte
|
|
84
|
+
}
|
|
85
|
+
</wxs>
|