xiaoe_mp_npm 1.0.9 → 1.0.10
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/CustomPopup/index.js +13 -1
- package/miniprogram_dist/CustomPopup/index.wxml +9 -3
- package/miniprogram_dist/Task/TaskBubble/index.js +1 -0
- package/miniprogram_dist/Task/TaskBubble/index.scss +125 -125
- package/miniprogram_dist/Task/TaskPopup/component/TaskItem/index.js +297 -297
- package/miniprogram_dist/Task/TaskPopup/component/TaskItem/index.scss +139 -139
- package/miniprogram_dist/Task/TaskPopup/component/TaskItem/index.wxml +47 -47
- package/miniprogram_dist/Task/TaskPopup/component/TaskList/index.js +184 -184
- package/miniprogram_dist/Task/TaskPopup/component/TaskType/index.js +78 -78
- package/miniprogram_dist/Task/TaskPopup/component/TaskType/index.scss +62 -62
- package/miniprogram_dist/Task/TaskPopup/component/TaskType/index.wxml +42 -42
- package/miniprogram_dist/Task/TaskPopup/index.js +126 -126
- package/miniprogram_dist/Task/TaskPopup/index.scss +140 -140
- package/miniprogram_dist/Task/TaskPopup/index.wxml +1 -0
- package/miniprogram_dist/Task/taskReceivePopup/coupon/index.wxml +58 -58
- package/miniprogram_dist/Task/taskReceivePopup/customPrizes/index.js +44 -44
- package/miniprogram_dist/Task/taskReceivePopup/customPrizes/index.json +6 -6
- package/miniprogram_dist/Task/taskReceivePopup/customPrizes/index.scss +12 -9
- package/miniprogram_dist/Task/taskReceivePopup/customPrizes/index.wxml +1 -0
- package/miniprogram_dist/Task/taskReceivePopup/customPrizes/index.wxs +48 -48
- package/miniprogram_dist/Task/taskReceivePopup/customPrizes/index.wxss +21 -24
- package/miniprogram_dist/Task/taskReceivePopup/index.js +34 -34
- package/miniprogram_dist/Task/taskReceivePopup/index.json +13 -13
- package/miniprogram_dist/Task/taskReceivePopup/index.wxml +25 -25
- package/miniprogram_dist/Task/taskReceivePopup/integral/index.js +61 -61
- package/miniprogram_dist/Task/taskReceivePopup/integral/index.wxml +12 -12
- package/package.json +1 -1
- package/src/CustomPopup/index.js +13 -1
- package/src/CustomPopup/index.wxml +9 -3
- package/src/CustomPopup/index.wxss +22 -22
- package/src/Task/TaskBubble/index.js +1 -0
- package/src/Task/TaskBubble/index.scss +125 -125
- package/src/Task/TaskBubble/index.wxss +289 -1
- package/src/Task/TaskPopup/component/TaskItem/index.js +297 -297
- package/src/Task/TaskPopup/component/TaskItem/index.scss +139 -139
- package/src/Task/TaskPopup/component/TaskItem/index.wxml +47 -47
- package/src/Task/TaskPopup/component/TaskItem/index.wxss +394 -1
- package/src/Task/TaskPopup/component/TaskList/index.js +184 -184
- package/src/Task/TaskPopup/component/TaskType/index.js +78 -78
- package/src/Task/TaskPopup/component/TaskType/index.scss +62 -62
- package/src/Task/TaskPopup/component/TaskType/index.wxml +42 -42
- package/src/Task/TaskPopup/component/TaskType/index.wxss +110 -1
- package/src/Task/TaskPopup/index.js +126 -126
- package/src/Task/TaskPopup/index.scss +140 -140
- package/src/Task/TaskPopup/index.wxml +1 -0
- package/src/Task/TaskPopup/index.wxss +1 -1
- package/src/Task/taskReceivePopup/coupon/index.wxml +58 -58
- package/src/Task/taskReceivePopup/customPrizes/index.js +44 -44
- package/src/Task/taskReceivePopup/customPrizes/index.json +6 -6
- package/src/Task/taskReceivePopup/customPrizes/index.scss +12 -9
- package/src/Task/taskReceivePopup/customPrizes/index.wxml +1 -0
- package/src/Task/taskReceivePopup/customPrizes/index.wxs +48 -48
- package/src/Task/taskReceivePopup/customPrizes/index.wxss +1 -1
- package/src/Task/taskReceivePopup/index.js +34 -34
- package/src/Task/taskReceivePopup/index.json +13 -13
- package/src/Task/taskReceivePopup/index.wxml +25 -25
- package/src/Task/taskReceivePopup/integral/index.js +61 -61
- package/src/Task/taskReceivePopup/integral/index.wxml +12 -12
|
@@ -47,7 +47,19 @@ Component({
|
|
|
47
47
|
overlayStyle: {
|
|
48
48
|
type: String,
|
|
49
49
|
value: ''
|
|
50
|
-
}
|
|
50
|
+
},
|
|
51
|
+
customBoxStyle: {
|
|
52
|
+
type: String,
|
|
53
|
+
value: ''
|
|
54
|
+
},
|
|
55
|
+
popupHeaderStyle: {
|
|
56
|
+
type: String,
|
|
57
|
+
value: ''
|
|
58
|
+
},
|
|
59
|
+
contentStyle: {
|
|
60
|
+
type: String,
|
|
61
|
+
value: ''
|
|
62
|
+
},
|
|
51
63
|
},
|
|
52
64
|
|
|
53
65
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<!--src/CustomPopup/index.wxml-->
|
|
2
2
|
<view class="popup-content">
|
|
3
|
-
<van-popup
|
|
3
|
+
<van-popup
|
|
4
4
|
show="{{ showPopup }}"
|
|
5
5
|
position="{{ popPosition }}"
|
|
6
6
|
round="{{ round }}"
|
|
@@ -12,14 +12,20 @@
|
|
|
12
12
|
z-index="{{zIndex}}"
|
|
13
13
|
catchtap="stopEvent"
|
|
14
14
|
>
|
|
15
|
-
<view class="popup-header" wx:if="{{ hasHeader }}" style="
|
|
15
|
+
<view class="popup-header" wx:if="{{ hasHeader }}" style="{{popupHeaderStyle}}">
|
|
16
16
|
<slot name="header"></slot>
|
|
17
17
|
</view>
|
|
18
|
-
<view
|
|
18
|
+
<view
|
|
19
|
+
class="popup-cont"
|
|
20
|
+
style="{{popPosition == 'right' ? '-webkit-overflow-scrolling:auto;overflow:auto;' : ''}} {{hasBottom ? 'height: calc(100% - 25.6vmin);' : '' }} {{contentStyle}}"
|
|
21
|
+
>
|
|
19
22
|
<slot name="content"></slot>
|
|
20
23
|
</view>
|
|
21
24
|
<view class="popup-bottom" wx:if="{{ hasBottom }}">
|
|
22
25
|
<slot name="bottom"></slot>
|
|
23
26
|
</view>
|
|
27
|
+
<view style="{{customBoxStyle}}">
|
|
28
|
+
<slot name="custom"></slot>
|
|
29
|
+
</view>
|
|
24
30
|
</van-popup>
|
|
25
31
|
</view>
|
|
@@ -62,6 +62,7 @@ Component({
|
|
|
62
62
|
if(task_condition === "4") return `成功消费 ${reward_frequency}笔订单数`
|
|
63
63
|
if(task_condition === "5") return `成功消费 ${(reward_frequency/100).toFixed(2)}元`
|
|
64
64
|
}else {
|
|
65
|
+
console.log("rewardValue",task_title)
|
|
65
66
|
return task_title[task_type][task_condition]
|
|
66
67
|
}
|
|
67
68
|
}
|
|
@@ -1,125 +1,125 @@
|
|
|
1
|
-
@function vmin($rpx) {
|
|
2
|
-
@return #{$rpx * 100 / $deviceWidth}vmin;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
$deviceWidth: 750;
|
|
6
|
-
|
|
7
|
-
@mixin barrage-container {
|
|
8
|
-
color: #fff;
|
|
9
|
-
font-size: vmin(20);
|
|
10
|
-
.barrage-wrap {
|
|
11
|
-
display: flex;
|
|
12
|
-
.barrage-item {
|
|
13
|
-
position: relative;
|
|
14
|
-
background: linear-gradient(270deg, #ff552b00 0%, #ff552bc7 21.42%, #ff8b25eb 46.71%, #FC0 100%);
|
|
15
|
-
height: vmin(64);
|
|
16
|
-
font-size: vmin(24);
|
|
17
|
-
line-height: vmin(64);
|
|
18
|
-
border-radius: vmin(92);
|
|
19
|
-
transition: 0.3s;
|
|
20
|
-
transform: translateX(vmin(-500));
|
|
21
|
-
|
|
22
|
-
.barrage-content {
|
|
23
|
-
display: flex;
|
|
24
|
-
align-items: center;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.task-completion-icon {
|
|
28
|
-
width: vmin(48);
|
|
29
|
-
height: vmin(48);
|
|
30
|
-
border-radius: 50%;
|
|
31
|
-
margin-left: vmin(10);
|
|
32
|
-
margin-right: vmin(8);
|
|
33
|
-
flex-shrink: 0;
|
|
34
|
-
}
|
|
35
|
-
.task-type {
|
|
36
|
-
display: flex;
|
|
37
|
-
flex-direction: column;
|
|
38
|
-
margin-right: vmin(8);
|
|
39
|
-
overflow: hidden;
|
|
40
|
-
text-overflow: ellipsis;
|
|
41
|
-
white-space: nowrap;
|
|
42
|
-
view {
|
|
43
|
-
width: 100%;
|
|
44
|
-
overflow: hidden;
|
|
45
|
-
text-overflow: ellipsis;
|
|
46
|
-
white-space: nowrap;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
.prize-icon {
|
|
50
|
-
width: vmin(56);
|
|
51
|
-
height: vmin(56);
|
|
52
|
-
display: flex;
|
|
53
|
-
justify-content: center;
|
|
54
|
-
align-items: center;
|
|
55
|
-
margin: 0 vmin(8);
|
|
56
|
-
}
|
|
57
|
-
.prize-num {
|
|
58
|
-
color: #FFF5CC;
|
|
59
|
-
font-weight: 500;
|
|
60
|
-
margin-right: vmin(8);
|
|
61
|
-
}
|
|
62
|
-
.right-arrow-icon{
|
|
63
|
-
height: vmin(40);
|
|
64
|
-
width: vmin(40);
|
|
65
|
-
margin-right: vmin(52);
|
|
66
|
-
}
|
|
67
|
-
&.barrage-item-show {
|
|
68
|
-
animation: taskFadeInLeft 1.5s both;
|
|
69
|
-
}
|
|
70
|
-
&.barrage-item-hide {
|
|
71
|
-
animation: taskFadeOut 1.5s both;
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
@keyframes taskFadeInLeft {
|
|
75
|
-
0% {
|
|
76
|
-
transform: translateX(vmin(-500));
|
|
77
|
-
opacity: 1;
|
|
78
|
-
}
|
|
79
|
-
100% {
|
|
80
|
-
transform: translateX(0);
|
|
81
|
-
opacity: 1;
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
@keyframes taskFadeOut {
|
|
85
|
-
0% {
|
|
86
|
-
transform: translateX(0);
|
|
87
|
-
opacity: 1;
|
|
88
|
-
}
|
|
89
|
-
100% {
|
|
90
|
-
transform: translateX(0);
|
|
91
|
-
opacity: 0;
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
@keyframes moveRight {
|
|
95
|
-
from {
|
|
96
|
-
transform: translateX(-100%);
|
|
97
|
-
}
|
|
98
|
-
to {
|
|
99
|
-
transform: translateX(0);
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
.barrage-container {
|
|
106
|
-
@include barrage-container;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
// 竖屏pad
|
|
110
|
-
@media screen and (min-width: 768px) and (orientation: portrait) {
|
|
111
|
-
$deviceWidth: 1536 !global;
|
|
112
|
-
|
|
113
|
-
.barrage-container {
|
|
114
|
-
@include barrage-container;
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
// 横屏pad
|
|
119
|
-
@media screen and (min-height: 768px) and (orientation: landscape) {
|
|
120
|
-
$deviceWidth: 1536 !global;
|
|
121
|
-
|
|
122
|
-
.barrage-container {
|
|
123
|
-
@include barrage-container;
|
|
124
|
-
}
|
|
125
|
-
}
|
|
1
|
+
@function vmin($rpx) {
|
|
2
|
+
@return #{$rpx * 100 / $deviceWidth}vmin;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
$deviceWidth: 750;
|
|
6
|
+
|
|
7
|
+
@mixin barrage-container {
|
|
8
|
+
color: #fff;
|
|
9
|
+
font-size: vmin(20);
|
|
10
|
+
.barrage-wrap {
|
|
11
|
+
display: flex;
|
|
12
|
+
.barrage-item {
|
|
13
|
+
position: relative;
|
|
14
|
+
background: linear-gradient(270deg, #ff552b00 0%, #ff552bc7 21.42%, #ff8b25eb 46.71%, #FC0 100%);
|
|
15
|
+
height: vmin(64);
|
|
16
|
+
font-size: vmin(24);
|
|
17
|
+
line-height: vmin(64);
|
|
18
|
+
border-radius: vmin(92);
|
|
19
|
+
transition: 0.3s;
|
|
20
|
+
transform: translateX(vmin(-500));
|
|
21
|
+
|
|
22
|
+
.barrage-content {
|
|
23
|
+
display: flex;
|
|
24
|
+
align-items: center;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.task-completion-icon {
|
|
28
|
+
width: vmin(48);
|
|
29
|
+
height: vmin(48);
|
|
30
|
+
border-radius: 50%;
|
|
31
|
+
margin-left: vmin(10);
|
|
32
|
+
margin-right: vmin(8);
|
|
33
|
+
flex-shrink: 0;
|
|
34
|
+
}
|
|
35
|
+
.task-type {
|
|
36
|
+
display: flex;
|
|
37
|
+
flex-direction: column;
|
|
38
|
+
margin-right: vmin(8);
|
|
39
|
+
overflow: hidden;
|
|
40
|
+
text-overflow: ellipsis;
|
|
41
|
+
white-space: nowrap;
|
|
42
|
+
view {
|
|
43
|
+
width: 100%;
|
|
44
|
+
overflow: hidden;
|
|
45
|
+
text-overflow: ellipsis;
|
|
46
|
+
white-space: nowrap;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
.prize-icon {
|
|
50
|
+
width: vmin(56);
|
|
51
|
+
height: vmin(56);
|
|
52
|
+
display: flex;
|
|
53
|
+
justify-content: center;
|
|
54
|
+
align-items: center;
|
|
55
|
+
margin: 0 vmin(8);
|
|
56
|
+
}
|
|
57
|
+
.prize-num {
|
|
58
|
+
color: #FFF5CC;
|
|
59
|
+
font-weight: 500;
|
|
60
|
+
margin-right: vmin(8);
|
|
61
|
+
}
|
|
62
|
+
.right-arrow-icon{
|
|
63
|
+
height: vmin(40);
|
|
64
|
+
width: vmin(40);
|
|
65
|
+
margin-right: vmin(52);
|
|
66
|
+
}
|
|
67
|
+
&.barrage-item-show {
|
|
68
|
+
animation: taskFadeInLeft 1.5s both;
|
|
69
|
+
}
|
|
70
|
+
&.barrage-item-hide {
|
|
71
|
+
animation: taskFadeOut 1.5s both;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
@keyframes taskFadeInLeft {
|
|
75
|
+
0% {
|
|
76
|
+
transform: translateX(vmin(-500));
|
|
77
|
+
opacity: 1;
|
|
78
|
+
}
|
|
79
|
+
100% {
|
|
80
|
+
transform: translateX(0);
|
|
81
|
+
opacity: 1;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
@keyframes taskFadeOut {
|
|
85
|
+
0% {
|
|
86
|
+
transform: translateX(0);
|
|
87
|
+
opacity: 1;
|
|
88
|
+
}
|
|
89
|
+
100% {
|
|
90
|
+
transform: translateX(0);
|
|
91
|
+
opacity: 0;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
@keyframes moveRight {
|
|
95
|
+
from {
|
|
96
|
+
transform: translateX(-100%);
|
|
97
|
+
}
|
|
98
|
+
to {
|
|
99
|
+
transform: translateX(0);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.barrage-container {
|
|
106
|
+
@include barrage-container;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
// 竖屏pad
|
|
110
|
+
@media screen and (min-width: 768px) and (orientation: portrait) {
|
|
111
|
+
$deviceWidth: 1536 !global;
|
|
112
|
+
|
|
113
|
+
.barrage-container {
|
|
114
|
+
@include barrage-container;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
// 横屏pad
|
|
119
|
+
@media screen and (min-height: 768px) and (orientation: landscape) {
|
|
120
|
+
$deviceWidth: 1536 !global;
|
|
121
|
+
|
|
122
|
+
.barrage-container {
|
|
123
|
+
@include barrage-container;
|
|
124
|
+
}
|
|
125
|
+
}
|