xiaoe_mp_npm 1.0.21 → 1.0.22-store1
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/.prettierrc.js +32 -6
- package/miniprogram_dist/Task/TaskBubble/index.js +2 -1
- package/miniprogram_dist/Task/TaskBubble/index.json +3 -3
- package/miniprogram_dist/Task/TaskBubble/index.scss +125 -125
- package/miniprogram_dist/Task/TaskBubble/index.wxml +22 -22
- package/miniprogram_dist/Task/TaskIcon/index.js +29 -29
- package/miniprogram_dist/Task/TaskIcon/index.json +4 -4
- package/miniprogram_dist/Task/TaskIcon/index.scss +70 -70
- package/miniprogram_dist/Task/TaskIcon/index.wxml +5 -5
- package/miniprogram_dist/Task/TaskPopup/component/RewardList/index.js +39 -39
- package/miniprogram_dist/Task/TaskPopup/component/RewardList/index.json +6 -6
- package/miniprogram_dist/Task/TaskPopup/component/RewardList/index.scss +39 -39
- package/miniprogram_dist/Task/TaskPopup/component/RewardList/index.wxml +19 -19
- package/miniprogram_dist/Task/TaskPopup/component/TaskItem/index.js +266 -168
- package/miniprogram_dist/Task/TaskPopup/component/TaskItem/index.json +5 -5
- package/miniprogram_dist/Task/TaskPopup/component/TaskItem/index.scss +26 -0
- package/miniprogram_dist/Task/TaskPopup/component/TaskItem/index.wxml +32 -13
- package/miniprogram_dist/Task/TaskPopup/component/TaskItem/index.wxs +7 -7
- package/miniprogram_dist/Task/TaskPopup/component/TaskItem/index.wxss +96 -0
- package/miniprogram_dist/Task/TaskPopup/component/TaskList/index.js +8 -0
- package/miniprogram_dist/Task/TaskPopup/component/TaskList/index.json +7 -7
- package/miniprogram_dist/Task/TaskPopup/component/TaskList/index.scss +66 -66
- package/miniprogram_dist/Task/TaskPopup/component/TaskList/index.wxml +1 -0
- package/miniprogram_dist/Task/TaskPopup/component/TaskType/index.js +4 -0
- package/miniprogram_dist/Task/TaskPopup/component/TaskType/index.json +9 -9
- package/miniprogram_dist/Task/TaskPopup/component/TaskType/index.scss +62 -62
- package/miniprogram_dist/Task/TaskPopup/component/TaskType/index.wxml +1 -0
- package/miniprogram_dist/Task/TaskPopup/index.js +76 -70
- package/miniprogram_dist/Task/TaskPopup/index.json +2 -2
- package/miniprogram_dist/Task/TaskPopup/index.scss +140 -140
- package/miniprogram_dist/Task/TaskPopup/index.wxml +1 -0
- package/miniprogram_dist/Task/TaskQuizPopup/components/quizContent/index.js +132 -0
- package/miniprogram_dist/Task/TaskQuizPopup/components/quizContent/index.json +6 -0
- package/miniprogram_dist/Task/TaskQuizPopup/components/quizContent/index.scss +192 -0
- package/miniprogram_dist/Task/TaskQuizPopup/components/quizContent/index.wxml +65 -0
- package/miniprogram_dist/Task/TaskQuizPopup/components/quizContent/index.wxs +79 -0
- package/miniprogram_dist/Task/TaskQuizPopup/components/quizContent/index.wxss +521 -0
- package/miniprogram_dist/Task/TaskQuizPopup/components/quizRichText/index.js +40 -0
- package/miniprogram_dist/Task/TaskQuizPopup/components/quizRichText/index.json +6 -0
- package/miniprogram_dist/Task/TaskQuizPopup/components/quizRichText/index.scss +7 -0
- package/miniprogram_dist/Task/TaskQuizPopup/components/quizRichText/index.wxml +2 -0
- package/miniprogram_dist/Task/TaskQuizPopup/components/quizRichText/index.wxss +298 -0
- package/miniprogram_dist/Task/TaskQuizPopup/components/wxParse/base.wxml +50 -0
- package/miniprogram_dist/Task/TaskQuizPopup/components/wxParse/html2json.js +623 -0
- package/miniprogram_dist/Task/TaskQuizPopup/components/wxParse/htmlparser.js +183 -0
- package/miniprogram_dist/Task/TaskQuizPopup/components/wxParse/iframeParse.js +216 -0
- package/miniprogram_dist/Task/TaskQuizPopup/components/wxParse/loop.wxml +3563 -0
- package/miniprogram_dist/Task/TaskQuizPopup/components/wxParse/showdown.js +2364 -0
- package/miniprogram_dist/Task/TaskQuizPopup/components/wxParse/wxDiscode.js +209 -0
- package/miniprogram_dist/Task/TaskQuizPopup/components/wxParse/wxParse.js +269 -0
- package/miniprogram_dist/Task/TaskQuizPopup/components/wxParse/wxParse.wxml +1276 -0
- package/miniprogram_dist/Task/TaskQuizPopup/components/wxParse/wxParse.wxss +316 -0
- package/miniprogram_dist/Task/TaskQuizPopup/index.js +225 -0
- package/miniprogram_dist/Task/TaskQuizPopup/index.json +8 -0
- package/miniprogram_dist/Task/TaskQuizPopup/index.scss +159 -0
- package/miniprogram_dist/Task/TaskQuizPopup/index.wxml +97 -0
- package/miniprogram_dist/Task/TaskQuizPopup/index.wxss +478 -0
- package/miniprogram_dist/Task/taskQuizRemindPopup/index.js +74 -0
- package/miniprogram_dist/Task/taskQuizRemindPopup/index.json +6 -0
- package/miniprogram_dist/Task/taskQuizRemindPopup/index.scss +108 -0
- package/miniprogram_dist/Task/taskQuizRemindPopup/index.wxml +27 -0
- package/miniprogram_dist/Task/taskQuizRemindPopup/index.wxss +286 -0
- package/miniprogram_dist/Task/taskReceivePopup/coupon/index.json +6 -6
- package/miniprogram_dist/Task/taskReceivePopup/coupon/index.wxs +48 -48
- 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 +106 -106
- package/miniprogram_dist/Task/taskReceivePopup/customPrizes/index.wxml +38 -38
- package/miniprogram_dist/Task/taskReceivePopup/customPrizes/index.wxs +48 -48
- 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.json +6 -6
- package/miniprogram_dist/Task/taskReceivePopup/integral/index.scss +60 -60
- package/miniprogram_dist/Task/taskReceivePopup/integral/index.wxml +12 -12
- package/miniprogram_dist/common/utils/tool.js +54 -48
- package/package.json +1 -1
- package/src/CustomPopup/index.wxss +22 -22
- package/src/Task/TaskBubble/index.js +2 -1
- package/src/Task/TaskBubble/index.json +3 -3
- package/src/Task/TaskBubble/index.scss +125 -125
- package/src/Task/TaskBubble/index.wxml +22 -22
- package/src/Task/TaskBubble/index.wxss +289 -289
- package/src/Task/TaskIcon/index.js +29 -29
- package/src/Task/TaskIcon/index.json +4 -4
- package/src/Task/TaskIcon/index.scss +70 -70
- package/src/Task/TaskIcon/index.wxml +5 -5
- package/src/Task/TaskIcon/index.wxss +130 -130
- package/src/Task/TaskPopup/component/RewardList/index.js +39 -39
- package/src/Task/TaskPopup/component/RewardList/index.json +6 -6
- package/src/Task/TaskPopup/component/RewardList/index.scss +39 -39
- package/src/Task/TaskPopup/component/RewardList/index.wxml +19 -19
- package/src/Task/TaskPopup/component/RewardList/index.wxss +18 -18
- package/src/Task/TaskPopup/component/TaskItem/index.js +266 -168
- package/src/Task/TaskPopup/component/TaskItem/index.json +5 -5
- package/src/Task/TaskPopup/component/TaskItem/index.scss +26 -0
- package/src/Task/TaskPopup/component/TaskItem/index.wxml +32 -13
- package/src/Task/TaskPopup/component/TaskItem/index.wxs +7 -7
- package/src/Task/TaskPopup/component/TaskItem/index.wxss +1 -394
- package/src/Task/TaskPopup/component/TaskList/index.js +8 -0
- package/src/Task/TaskPopup/component/TaskList/index.json +7 -7
- package/src/Task/TaskPopup/component/TaskList/index.scss +66 -66
- package/src/Task/TaskPopup/component/TaskList/index.wxml +1 -0
- package/src/Task/TaskPopup/component/TaskList/index.wxss +118 -118
- package/src/Task/TaskPopup/component/TaskType/index.js +4 -0
- package/src/Task/TaskPopup/component/TaskType/index.json +9 -9
- package/src/Task/TaskPopup/component/TaskType/index.scss +62 -62
- package/src/Task/TaskPopup/component/TaskType/index.wxml +1 -0
- package/src/Task/TaskPopup/component/TaskType/index.wxss +110 -110
- package/src/Task/TaskPopup/index.js +76 -70
- package/src/Task/TaskPopup/index.json +2 -2
- package/src/Task/TaskPopup/index.scss +140 -140
- package/src/Task/TaskPopup/index.wxml +1 -0
- package/src/Task/TaskQuizPopup/components/quizContent/index.js +132 -0
- package/src/Task/TaskQuizPopup/components/quizContent/index.json +6 -0
- package/src/Task/TaskQuizPopup/components/quizContent/index.scss +192 -0
- package/src/Task/TaskQuizPopup/components/quizContent/index.wxml +65 -0
- package/src/Task/TaskQuizPopup/components/quizContent/index.wxs +79 -0
- package/src/Task/TaskQuizPopup/components/quizContent/index.wxss +1 -0
- package/src/Task/TaskQuizPopup/components/quizRichText/index.js +40 -0
- package/src/Task/TaskQuizPopup/components/quizRichText/index.json +6 -0
- package/src/Task/TaskQuizPopup/components/quizRichText/index.scss +7 -0
- package/src/Task/TaskQuizPopup/components/quizRichText/index.wxml +2 -0
- package/src/Task/TaskQuizPopup/components/quizRichText/index.wxss +1 -0
- package/src/Task/TaskQuizPopup/components/wxParse/base.wxml +50 -0
- package/src/Task/TaskQuizPopup/components/wxParse/html2json.js +623 -0
- package/src/Task/TaskQuizPopup/components/wxParse/htmlparser.js +183 -0
- package/src/Task/TaskQuizPopup/components/wxParse/iframeParse.js +216 -0
- package/src/Task/TaskQuizPopup/components/wxParse/loop.wxml +3563 -0
- package/src/Task/TaskQuizPopup/components/wxParse/showdown.js +2364 -0
- package/src/Task/TaskQuizPopup/components/wxParse/wxDiscode.js +209 -0
- package/src/Task/TaskQuizPopup/components/wxParse/wxParse.js +269 -0
- package/src/Task/TaskQuizPopup/components/wxParse/wxParse.wxml +1276 -0
- package/src/Task/TaskQuizPopup/components/wxParse/wxParse.wxss +283 -0
- package/src/Task/TaskQuizPopup/index.js +225 -0
- package/src/Task/TaskQuizPopup/index.json +8 -0
- package/src/Task/TaskQuizPopup/index.scss +159 -0
- package/src/Task/TaskQuizPopup/index.wxml +97 -0
- package/src/Task/TaskQuizPopup/index.wxss +1 -0
- package/src/Task/taskQuizRemindPopup/index.js +74 -0
- package/src/Task/taskQuizRemindPopup/index.json +6 -0
- package/src/Task/taskQuizRemindPopup/index.scss +108 -0
- package/src/Task/taskQuizRemindPopup/index.wxml +27 -0
- package/src/Task/taskQuizRemindPopup/index.wxss +1 -0
- package/src/Task/taskReceivePopup/coupon/index.json +6 -6
- package/src/Task/taskReceivePopup/coupon/index.wxs +48 -48
- 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 +106 -106
- package/src/Task/taskReceivePopup/customPrizes/index.wxml +38 -38
- package/src/Task/taskReceivePopup/customPrizes/index.wxs +48 -48
- 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/index.wxss +1 -1
- package/src/Task/taskReceivePopup/integral/index.js +61 -61
- package/src/Task/taskReceivePopup/integral/index.json +6 -6
- package/src/Task/taskReceivePopup/integral/index.scss +60 -60
- package/src/Task/taskReceivePopup/integral/index.wxml +12 -12
- package/src/Task/taskReceivePopup/integral/index.wxss +94 -94
- package/src/common/utils/tool.js +54 -48
|
@@ -1,70 +1,70 @@
|
|
|
1
|
-
@function vmin($rpx) {
|
|
2
|
-
@return #{$rpx * 100 / $deviceWidth}vmin;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
$deviceWidth: 750;
|
|
6
|
-
|
|
7
|
-
@mixin taskIcon {
|
|
8
|
-
z-index: 9;
|
|
9
|
-
box-sizing: border-box;
|
|
10
|
-
width: vmin(72);
|
|
11
|
-
height: vmin(72);
|
|
12
|
-
text-align: center;
|
|
13
|
-
padding: 0;
|
|
14
|
-
position: relative;
|
|
15
|
-
display: flex;
|
|
16
|
-
flex-direction: column;
|
|
17
|
-
align-items: center;
|
|
18
|
-
font-size: vmin(16);
|
|
19
|
-
height: 100%;
|
|
20
|
-
border-radius: vmin(16);
|
|
21
|
-
margin: 0 vmin(32) vmin(24) 0;
|
|
22
|
-
pointer-events: auto;
|
|
23
|
-
.task-icon {
|
|
24
|
-
flex-shrink: 0;
|
|
25
|
-
display: block;
|
|
26
|
-
width: vmin(64);
|
|
27
|
-
height: vmin(64);
|
|
28
|
-
background-image: url('https://commonresource-1252524126.cdn.xiaoeknow.com/image/lopok62p0l77.png');
|
|
29
|
-
background-size: 100% 100%;
|
|
30
|
-
}
|
|
31
|
-
.task-text {
|
|
32
|
-
width: vmin(64);
|
|
33
|
-
height: vmin(24);
|
|
34
|
-
line-height: vmin(24);
|
|
35
|
-
border-radius: vmin(12);
|
|
36
|
-
font-size: vmin(16);
|
|
37
|
-
background: rgba($color: #000000, $alpha: 0.4);
|
|
38
|
-
color: #fff;
|
|
39
|
-
}
|
|
40
|
-
&.verticalStyle{
|
|
41
|
-
margin: 0;
|
|
42
|
-
background: rgba($color: #000000, $alpha: 0.2);
|
|
43
|
-
.task-text{
|
|
44
|
-
position: absolute;
|
|
45
|
-
bottom: vmin(-2);
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.taskIcon {
|
|
51
|
-
@include taskIcon;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
// 竖屏pad
|
|
55
|
-
@media screen and (min-width: 768px) and (orientation: portrait) {
|
|
56
|
-
$deviceWidth: 1536 !global;
|
|
57
|
-
|
|
58
|
-
.taskIcon {
|
|
59
|
-
@include taskIcon;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
// 横屏pad
|
|
64
|
-
@media screen and (min-height: 768px) and (orientation: landscape) {
|
|
65
|
-
$deviceWidth: 1536 !global;
|
|
66
|
-
|
|
67
|
-
.taskIcon {
|
|
68
|
-
@include taskIcon;
|
|
69
|
-
}
|
|
70
|
-
}
|
|
1
|
+
@function vmin($rpx) {
|
|
2
|
+
@return #{$rpx * 100 / $deviceWidth}vmin;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
$deviceWidth: 750;
|
|
6
|
+
|
|
7
|
+
@mixin taskIcon {
|
|
8
|
+
z-index: 9;
|
|
9
|
+
box-sizing: border-box;
|
|
10
|
+
width: vmin(72);
|
|
11
|
+
height: vmin(72);
|
|
12
|
+
text-align: center;
|
|
13
|
+
padding: 0;
|
|
14
|
+
position: relative;
|
|
15
|
+
display: flex;
|
|
16
|
+
flex-direction: column;
|
|
17
|
+
align-items: center;
|
|
18
|
+
font-size: vmin(16);
|
|
19
|
+
height: 100%;
|
|
20
|
+
border-radius: vmin(16);
|
|
21
|
+
margin: 0 vmin(32) vmin(24) 0;
|
|
22
|
+
pointer-events: auto;
|
|
23
|
+
.task-icon {
|
|
24
|
+
flex-shrink: 0;
|
|
25
|
+
display: block;
|
|
26
|
+
width: vmin(64);
|
|
27
|
+
height: vmin(64);
|
|
28
|
+
background-image: url('https://commonresource-1252524126.cdn.xiaoeknow.com/image/lopok62p0l77.png');
|
|
29
|
+
background-size: 100% 100%;
|
|
30
|
+
}
|
|
31
|
+
.task-text {
|
|
32
|
+
width: vmin(64);
|
|
33
|
+
height: vmin(24);
|
|
34
|
+
line-height: vmin(24);
|
|
35
|
+
border-radius: vmin(12);
|
|
36
|
+
font-size: vmin(16);
|
|
37
|
+
background: rgba($color: #000000, $alpha: 0.4);
|
|
38
|
+
color: #fff;
|
|
39
|
+
}
|
|
40
|
+
&.verticalStyle{
|
|
41
|
+
margin: 0;
|
|
42
|
+
background: rgba($color: #000000, $alpha: 0.2);
|
|
43
|
+
.task-text{
|
|
44
|
+
position: absolute;
|
|
45
|
+
bottom: vmin(-2);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.taskIcon {
|
|
51
|
+
@include taskIcon;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
// 竖屏pad
|
|
55
|
+
@media screen and (min-width: 768px) and (orientation: portrait) {
|
|
56
|
+
$deviceWidth: 1536 !global;
|
|
57
|
+
|
|
58
|
+
.taskIcon {
|
|
59
|
+
@include taskIcon;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
// 横屏pad
|
|
64
|
+
@media screen and (min-height: 768px) and (orientation: landscape) {
|
|
65
|
+
$deviceWidth: 1536 !global;
|
|
66
|
+
|
|
67
|
+
.taskIcon {
|
|
68
|
+
@include taskIcon;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
<view class="taskIcon {{aliveMode === 1? 'verticalStyle' : ''}}" catch:tap="iconClick">
|
|
2
|
-
<view class="task-icon" />
|
|
3
|
-
<view class="task-text">{{iconText}}</view>
|
|
4
|
-
</view>
|
|
5
|
-
|
|
1
|
+
<view class="taskIcon {{aliveMode === 1? 'verticalStyle' : ''}}" catch:tap="iconClick">
|
|
2
|
+
<view class="task-icon" />
|
|
3
|
+
<view class="task-text">{{iconText}}</view>
|
|
4
|
+
</view>
|
|
5
|
+
|
|
@@ -1,130 +1,130 @@
|
|
|
1
|
-
.taskIcon {
|
|
2
|
-
z-index: 9;
|
|
3
|
-
box-sizing: border-box;
|
|
4
|
-
width: 9.6vmin;
|
|
5
|
-
height: 9.6vmin;
|
|
6
|
-
text-align: center;
|
|
7
|
-
padding: 0;
|
|
8
|
-
position: relative;
|
|
9
|
-
display: flex;
|
|
10
|
-
flex-direction: column;
|
|
11
|
-
align-items: center;
|
|
12
|
-
font-size: 2.13333vmin;
|
|
13
|
-
height: 100%;
|
|
14
|
-
border-radius: 2.13333vmin;
|
|
15
|
-
margin: 0 4.26667vmin 3.2vmin 0;
|
|
16
|
-
pointer-events: auto;
|
|
17
|
-
}
|
|
18
|
-
.taskIcon .task-icon {
|
|
19
|
-
flex-shrink: 0;
|
|
20
|
-
display: block;
|
|
21
|
-
width: 8.53333vmin;
|
|
22
|
-
height: 8.53333vmin;
|
|
23
|
-
background-image: url("https://commonresource-1252524126.cdn.xiaoeknow.com/image/lopok62p0l77.png");
|
|
24
|
-
background-size: 100% 100%;
|
|
25
|
-
}
|
|
26
|
-
.taskIcon .task-text {
|
|
27
|
-
width: 8.53333vmin;
|
|
28
|
-
height: 3.2vmin;
|
|
29
|
-
line-height: 3.2vmin;
|
|
30
|
-
border-radius: 1.6vmin;
|
|
31
|
-
font-size: 2.13333vmin;
|
|
32
|
-
background: rgba(0, 0, 0, 0.4);
|
|
33
|
-
color: #fff;
|
|
34
|
-
}
|
|
35
|
-
.taskIcon.verticalStyle {
|
|
36
|
-
margin: 0;
|
|
37
|
-
background: rgba(0, 0, 0, 0.2);
|
|
38
|
-
}
|
|
39
|
-
.taskIcon.verticalStyle .task-text {
|
|
40
|
-
position: absolute;
|
|
41
|
-
bottom: -0.26667vmin;
|
|
42
|
-
}
|
|
43
|
-
@media screen and (min-width: 768px) and (orientation: portrait) {
|
|
44
|
-
.taskIcon {
|
|
45
|
-
z-index: 9;
|
|
46
|
-
box-sizing: border-box;
|
|
47
|
-
width: 4.6875vmin;
|
|
48
|
-
height: 4.6875vmin;
|
|
49
|
-
text-align: center;
|
|
50
|
-
padding: 0;
|
|
51
|
-
position: relative;
|
|
52
|
-
display: flex;
|
|
53
|
-
flex-direction: column;
|
|
54
|
-
align-items: center;
|
|
55
|
-
font-size: 1.04167vmin;
|
|
56
|
-
height: 100%;
|
|
57
|
-
border-radius: 1.04167vmin;
|
|
58
|
-
margin: 0 2.08333vmin 1.5625vmin 0;
|
|
59
|
-
pointer-events: auto;
|
|
60
|
-
}
|
|
61
|
-
.taskIcon .task-icon {
|
|
62
|
-
flex-shrink: 0;
|
|
63
|
-
display: block;
|
|
64
|
-
width: 4.16667vmin;
|
|
65
|
-
height: 4.16667vmin;
|
|
66
|
-
background-image: url("https://commonresource-1252524126.cdn.xiaoeknow.com/image/lopok62p0l77.png");
|
|
67
|
-
background-size: 100% 100%;
|
|
68
|
-
}
|
|
69
|
-
.taskIcon .task-text {
|
|
70
|
-
width: 4.16667vmin;
|
|
71
|
-
height: 1.5625vmin;
|
|
72
|
-
line-height: 1.5625vmin;
|
|
73
|
-
border-radius: 0.78125vmin;
|
|
74
|
-
font-size: 1.04167vmin;
|
|
75
|
-
background: rgba(0, 0, 0, 0.4);
|
|
76
|
-
color: #fff;
|
|
77
|
-
}
|
|
78
|
-
.taskIcon.verticalStyle {
|
|
79
|
-
margin: 0;
|
|
80
|
-
background: rgba(0, 0, 0, 0.2);
|
|
81
|
-
}
|
|
82
|
-
.taskIcon.verticalStyle .task-text {
|
|
83
|
-
position: absolute;
|
|
84
|
-
bottom: -0.13021vmin;
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
@media screen and (min-height: 768px) and (orientation: landscape) {
|
|
88
|
-
.taskIcon {
|
|
89
|
-
z-index: 9;
|
|
90
|
-
box-sizing: border-box;
|
|
91
|
-
width: 4.6875vmin;
|
|
92
|
-
height: 4.6875vmin;
|
|
93
|
-
text-align: center;
|
|
94
|
-
padding: 0;
|
|
95
|
-
position: relative;
|
|
96
|
-
display: flex;
|
|
97
|
-
flex-direction: column;
|
|
98
|
-
align-items: center;
|
|
99
|
-
font-size: 1.04167vmin;
|
|
100
|
-
height: 100%;
|
|
101
|
-
border-radius: 1.04167vmin;
|
|
102
|
-
margin: 0 2.08333vmin 1.5625vmin 0;
|
|
103
|
-
pointer-events: auto;
|
|
104
|
-
}
|
|
105
|
-
.taskIcon .task-icon {
|
|
106
|
-
flex-shrink: 0;
|
|
107
|
-
display: block;
|
|
108
|
-
width: 4.16667vmin;
|
|
109
|
-
height: 4.16667vmin;
|
|
110
|
-
background-image: url("https://commonresource-1252524126.cdn.xiaoeknow.com/image/lopok62p0l77.png");
|
|
111
|
-
background-size: 100% 100%;
|
|
112
|
-
}
|
|
113
|
-
.taskIcon .task-text {
|
|
114
|
-
width: 4.16667vmin;
|
|
115
|
-
height: 1.5625vmin;
|
|
116
|
-
line-height: 1.5625vmin;
|
|
117
|
-
border-radius: 0.78125vmin;
|
|
118
|
-
font-size: 1.04167vmin;
|
|
119
|
-
background: rgba(0, 0, 0, 0.4);
|
|
120
|
-
color: #fff;
|
|
121
|
-
}
|
|
122
|
-
.taskIcon.verticalStyle {
|
|
123
|
-
margin: 0;
|
|
124
|
-
background: rgba(0, 0, 0, 0.2);
|
|
125
|
-
}
|
|
126
|
-
.taskIcon.verticalStyle .task-text {
|
|
127
|
-
position: absolute;
|
|
128
|
-
bottom: -0.13021vmin;
|
|
129
|
-
}
|
|
130
|
-
}
|
|
1
|
+
.taskIcon {
|
|
2
|
+
z-index: 9;
|
|
3
|
+
box-sizing: border-box;
|
|
4
|
+
width: 9.6vmin;
|
|
5
|
+
height: 9.6vmin;
|
|
6
|
+
text-align: center;
|
|
7
|
+
padding: 0;
|
|
8
|
+
position: relative;
|
|
9
|
+
display: flex;
|
|
10
|
+
flex-direction: column;
|
|
11
|
+
align-items: center;
|
|
12
|
+
font-size: 2.13333vmin;
|
|
13
|
+
height: 100%;
|
|
14
|
+
border-radius: 2.13333vmin;
|
|
15
|
+
margin: 0 4.26667vmin 3.2vmin 0;
|
|
16
|
+
pointer-events: auto;
|
|
17
|
+
}
|
|
18
|
+
.taskIcon .task-icon {
|
|
19
|
+
flex-shrink: 0;
|
|
20
|
+
display: block;
|
|
21
|
+
width: 8.53333vmin;
|
|
22
|
+
height: 8.53333vmin;
|
|
23
|
+
background-image: url("https://commonresource-1252524126.cdn.xiaoeknow.com/image/lopok62p0l77.png");
|
|
24
|
+
background-size: 100% 100%;
|
|
25
|
+
}
|
|
26
|
+
.taskIcon .task-text {
|
|
27
|
+
width: 8.53333vmin;
|
|
28
|
+
height: 3.2vmin;
|
|
29
|
+
line-height: 3.2vmin;
|
|
30
|
+
border-radius: 1.6vmin;
|
|
31
|
+
font-size: 2.13333vmin;
|
|
32
|
+
background: rgba(0, 0, 0, 0.4);
|
|
33
|
+
color: #fff;
|
|
34
|
+
}
|
|
35
|
+
.taskIcon.verticalStyle {
|
|
36
|
+
margin: 0;
|
|
37
|
+
background: rgba(0, 0, 0, 0.2);
|
|
38
|
+
}
|
|
39
|
+
.taskIcon.verticalStyle .task-text {
|
|
40
|
+
position: absolute;
|
|
41
|
+
bottom: -0.26667vmin;
|
|
42
|
+
}
|
|
43
|
+
@media screen and (min-width: 768px) and (orientation: portrait) {
|
|
44
|
+
.taskIcon {
|
|
45
|
+
z-index: 9;
|
|
46
|
+
box-sizing: border-box;
|
|
47
|
+
width: 4.6875vmin;
|
|
48
|
+
height: 4.6875vmin;
|
|
49
|
+
text-align: center;
|
|
50
|
+
padding: 0;
|
|
51
|
+
position: relative;
|
|
52
|
+
display: flex;
|
|
53
|
+
flex-direction: column;
|
|
54
|
+
align-items: center;
|
|
55
|
+
font-size: 1.04167vmin;
|
|
56
|
+
height: 100%;
|
|
57
|
+
border-radius: 1.04167vmin;
|
|
58
|
+
margin: 0 2.08333vmin 1.5625vmin 0;
|
|
59
|
+
pointer-events: auto;
|
|
60
|
+
}
|
|
61
|
+
.taskIcon .task-icon {
|
|
62
|
+
flex-shrink: 0;
|
|
63
|
+
display: block;
|
|
64
|
+
width: 4.16667vmin;
|
|
65
|
+
height: 4.16667vmin;
|
|
66
|
+
background-image: url("https://commonresource-1252524126.cdn.xiaoeknow.com/image/lopok62p0l77.png");
|
|
67
|
+
background-size: 100% 100%;
|
|
68
|
+
}
|
|
69
|
+
.taskIcon .task-text {
|
|
70
|
+
width: 4.16667vmin;
|
|
71
|
+
height: 1.5625vmin;
|
|
72
|
+
line-height: 1.5625vmin;
|
|
73
|
+
border-radius: 0.78125vmin;
|
|
74
|
+
font-size: 1.04167vmin;
|
|
75
|
+
background: rgba(0, 0, 0, 0.4);
|
|
76
|
+
color: #fff;
|
|
77
|
+
}
|
|
78
|
+
.taskIcon.verticalStyle {
|
|
79
|
+
margin: 0;
|
|
80
|
+
background: rgba(0, 0, 0, 0.2);
|
|
81
|
+
}
|
|
82
|
+
.taskIcon.verticalStyle .task-text {
|
|
83
|
+
position: absolute;
|
|
84
|
+
bottom: -0.13021vmin;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
@media screen and (min-height: 768px) and (orientation: landscape) {
|
|
88
|
+
.taskIcon {
|
|
89
|
+
z-index: 9;
|
|
90
|
+
box-sizing: border-box;
|
|
91
|
+
width: 4.6875vmin;
|
|
92
|
+
height: 4.6875vmin;
|
|
93
|
+
text-align: center;
|
|
94
|
+
padding: 0;
|
|
95
|
+
position: relative;
|
|
96
|
+
display: flex;
|
|
97
|
+
flex-direction: column;
|
|
98
|
+
align-items: center;
|
|
99
|
+
font-size: 1.04167vmin;
|
|
100
|
+
height: 100%;
|
|
101
|
+
border-radius: 1.04167vmin;
|
|
102
|
+
margin: 0 2.08333vmin 1.5625vmin 0;
|
|
103
|
+
pointer-events: auto;
|
|
104
|
+
}
|
|
105
|
+
.taskIcon .task-icon {
|
|
106
|
+
flex-shrink: 0;
|
|
107
|
+
display: block;
|
|
108
|
+
width: 4.16667vmin;
|
|
109
|
+
height: 4.16667vmin;
|
|
110
|
+
background-image: url("https://commonresource-1252524126.cdn.xiaoeknow.com/image/lopok62p0l77.png");
|
|
111
|
+
background-size: 100% 100%;
|
|
112
|
+
}
|
|
113
|
+
.taskIcon .task-text {
|
|
114
|
+
width: 4.16667vmin;
|
|
115
|
+
height: 1.5625vmin;
|
|
116
|
+
line-height: 1.5625vmin;
|
|
117
|
+
border-radius: 0.78125vmin;
|
|
118
|
+
font-size: 1.04167vmin;
|
|
119
|
+
background: rgba(0, 0, 0, 0.4);
|
|
120
|
+
color: #fff;
|
|
121
|
+
}
|
|
122
|
+
.taskIcon.verticalStyle {
|
|
123
|
+
margin: 0;
|
|
124
|
+
background: rgba(0, 0, 0, 0.2);
|
|
125
|
+
}
|
|
126
|
+
.taskIcon.verticalStyle .task-text {
|
|
127
|
+
position: absolute;
|
|
128
|
+
bottom: -0.13021vmin;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
const computedBehavior = require('miniprogram-computed').behavior
|
|
2
|
-
Component({
|
|
3
|
-
behaviors: [computedBehavior],
|
|
4
|
-
properties: {
|
|
5
|
-
rewardList:{
|
|
6
|
-
type:Array,
|
|
7
|
-
value:()=>{
|
|
8
|
-
return []
|
|
9
|
-
}
|
|
10
|
-
},
|
|
11
|
-
refreshStatus:{
|
|
12
|
-
type:Boolean,
|
|
13
|
-
value: false
|
|
14
|
-
}
|
|
15
|
-
},
|
|
16
|
-
data: {
|
|
17
|
-
activeNames:["1"],
|
|
18
|
-
},
|
|
19
|
-
lifetimes: {
|
|
20
|
-
// 生命周期函数,可以为函数,或一个在methods段中定义的方法名
|
|
21
|
-
attached: function () {
|
|
22
|
-
|
|
23
|
-
},
|
|
24
|
-
moved: function () { },
|
|
25
|
-
detached: function () { },
|
|
26
|
-
},
|
|
27
|
-
methods: {
|
|
28
|
-
btnClick(e){
|
|
29
|
-
this.triggerEvent("btnClick",e.detail)
|
|
30
|
-
},
|
|
31
|
-
onLoad(){
|
|
32
|
-
this.triggerEvent("onLoad","rewardList")
|
|
33
|
-
},
|
|
34
|
-
getMoreList(){
|
|
35
|
-
this.triggerEvent("getMoreList","rewardList")
|
|
36
|
-
}
|
|
37
|
-
},
|
|
38
|
-
observers: {},
|
|
39
|
-
})
|
|
1
|
+
const computedBehavior = require('miniprogram-computed').behavior
|
|
2
|
+
Component({
|
|
3
|
+
behaviors: [computedBehavior],
|
|
4
|
+
properties: {
|
|
5
|
+
rewardList:{
|
|
6
|
+
type:Array,
|
|
7
|
+
value:()=>{
|
|
8
|
+
return []
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
refreshStatus:{
|
|
12
|
+
type:Boolean,
|
|
13
|
+
value: false
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
data: {
|
|
17
|
+
activeNames:["1"],
|
|
18
|
+
},
|
|
19
|
+
lifetimes: {
|
|
20
|
+
// 生命周期函数,可以为函数,或一个在methods段中定义的方法名
|
|
21
|
+
attached: function () {
|
|
22
|
+
|
|
23
|
+
},
|
|
24
|
+
moved: function () { },
|
|
25
|
+
detached: function () { },
|
|
26
|
+
},
|
|
27
|
+
methods: {
|
|
28
|
+
btnClick(e){
|
|
29
|
+
this.triggerEvent("btnClick",e.detail)
|
|
30
|
+
},
|
|
31
|
+
onLoad(){
|
|
32
|
+
this.triggerEvent("onLoad","rewardList")
|
|
33
|
+
},
|
|
34
|
+
getMoreList(){
|
|
35
|
+
this.triggerEvent("getMoreList","rewardList")
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
observers: {},
|
|
39
|
+
})
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
{
|
|
2
|
-
"component": true,
|
|
3
|
-
"usingComponents": {
|
|
4
|
-
"task-item":"../TaskItem"
|
|
5
|
-
}
|
|
6
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"component": true,
|
|
3
|
+
"usingComponents": {
|
|
4
|
+
"task-item":"../TaskItem"
|
|
5
|
+
}
|
|
6
|
+
}
|
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
$deviceWidth: 750;
|
|
2
|
-
|
|
3
|
-
@function vmin($rpx) {
|
|
4
|
-
@return #{$rpx * 100 / $deviceWidth}vmin;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
@mixin reward-list{
|
|
8
|
-
height: 100%;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.reward-list {
|
|
12
|
-
@include reward-list;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
// 竖屏pad
|
|
16
|
-
@media screen and (min-width: 768px) and (orientation: portrait) {
|
|
17
|
-
$deviceWidth: 1536 !global;
|
|
18
|
-
|
|
19
|
-
.reward-list {
|
|
20
|
-
@include reward-list;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
// PC 放大适配
|
|
25
|
-
@media screen and (min-height: 630px) and (orientation: landscape) {
|
|
26
|
-
$deviceWidth: 1260 !global;
|
|
27
|
-
|
|
28
|
-
.reward-list {
|
|
29
|
-
@include reward-list;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
// 横屏pad
|
|
34
|
-
@media screen and (min-height: 768px) and (orientation: landscape) {
|
|
35
|
-
$deviceWidth: 1536 !global;
|
|
36
|
-
|
|
37
|
-
.reward-list {
|
|
38
|
-
@include reward-list;
|
|
39
|
-
}
|
|
1
|
+
$deviceWidth: 750;
|
|
2
|
+
|
|
3
|
+
@function vmin($rpx) {
|
|
4
|
+
@return #{$rpx * 100 / $deviceWidth}vmin;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
@mixin reward-list{
|
|
8
|
+
height: 100%;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.reward-list {
|
|
12
|
+
@include reward-list;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
// 竖屏pad
|
|
16
|
+
@media screen and (min-width: 768px) and (orientation: portrait) {
|
|
17
|
+
$deviceWidth: 1536 !global;
|
|
18
|
+
|
|
19
|
+
.reward-list {
|
|
20
|
+
@include reward-list;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
// PC 放大适配
|
|
25
|
+
@media screen and (min-height: 630px) and (orientation: landscape) {
|
|
26
|
+
$deviceWidth: 1260 !global;
|
|
27
|
+
|
|
28
|
+
.reward-list {
|
|
29
|
+
@include reward-list;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
// 横屏pad
|
|
34
|
+
@media screen and (min-height: 768px) and (orientation: landscape) {
|
|
35
|
+
$deviceWidth: 1536 !global;
|
|
36
|
+
|
|
37
|
+
.reward-list {
|
|
38
|
+
@include reward-list;
|
|
39
|
+
}
|
|
40
40
|
}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
<scroll-view
|
|
2
|
-
class="reward-list"
|
|
3
|
-
scroll-y="true"
|
|
4
|
-
bindrefresherrefresh="onLoad"
|
|
5
|
-
refresher-enabled="{{true}}"
|
|
6
|
-
refresher-triggered="{{ refreshStatus }}"
|
|
7
|
-
bindscrolltolower="getMoreList"
|
|
8
|
-
>
|
|
9
|
-
<task-item
|
|
10
|
-
wx:for="{{rewardList}}"
|
|
11
|
-
wx:for-item="item"
|
|
12
|
-
wx:for-index="index"
|
|
13
|
-
listType="reward"
|
|
14
|
-
isRadius="{{true}}"
|
|
15
|
-
taskItem="{{item}}"
|
|
16
|
-
bind:btnClick="btnClick"
|
|
17
|
-
isMb="{{true}}"
|
|
18
|
-
/>
|
|
19
|
-
</scroll-view>
|
|
1
|
+
<scroll-view
|
|
2
|
+
class="reward-list"
|
|
3
|
+
scroll-y="true"
|
|
4
|
+
bindrefresherrefresh="onLoad"
|
|
5
|
+
refresher-enabled="{{true}}"
|
|
6
|
+
refresher-triggered="{{ refreshStatus }}"
|
|
7
|
+
bindscrolltolower="getMoreList"
|
|
8
|
+
>
|
|
9
|
+
<task-item
|
|
10
|
+
wx:for="{{rewardList}}"
|
|
11
|
+
wx:for-item="item"
|
|
12
|
+
wx:for-index="index"
|
|
13
|
+
listType="reward"
|
|
14
|
+
isRadius="{{true}}"
|
|
15
|
+
taskItem="{{item}}"
|
|
16
|
+
bind:btnClick="btnClick"
|
|
17
|
+
isMb="{{true}}"
|
|
18
|
+
/>
|
|
19
|
+
</scroll-view>
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
.reward-list {
|
|
2
|
-
height: 100%;
|
|
3
|
-
}
|
|
4
|
-
@media screen and (min-width: 768px) and (orientation: portrait) {
|
|
5
|
-
.reward-list {
|
|
6
|
-
height: 100%;
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
@media screen and (min-height: 630px) and (orientation: landscape) {
|
|
10
|
-
.reward-list {
|
|
11
|
-
height: 100%;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
@media screen and (min-height: 768px) and (orientation: landscape) {
|
|
15
|
-
.reward-list {
|
|
16
|
-
height: 100%;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
1
|
+
.reward-list {
|
|
2
|
+
height: 100%;
|
|
3
|
+
}
|
|
4
|
+
@media screen and (min-width: 768px) and (orientation: portrait) {
|
|
5
|
+
.reward-list {
|
|
6
|
+
height: 100%;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
@media screen and (min-height: 630px) and (orientation: landscape) {
|
|
10
|
+
.reward-list {
|
|
11
|
+
height: 100%;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
@media screen and (min-height: 768px) and (orientation: landscape) {
|
|
15
|
+
.reward-list {
|
|
16
|
+
height: 100%;
|
|
17
|
+
}
|
|
18
|
+
}
|