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,8 +1,6 @@
|
|
|
1
1
|
<wxs src="./index.wxs" module="filter" />
|
|
2
2
|
|
|
3
|
-
<view
|
|
4
|
-
class="item-box {{lineClass?'line-class':''}} {{listType === 'error' && itemIndex === 0?'bg-change':''}} {{isRadius?'radius':''}} {{isMb?'mb':''}}"
|
|
5
|
-
>
|
|
3
|
+
<view class="item-box {{lineClass?'line-class':''}} {{listType === 'error' && itemIndex === 0?'bg-change':''}} {{isRadius?'radius':''}} {{isMb?'mb':''}}">
|
|
6
4
|
<!-- 左侧任务详情 -->
|
|
7
5
|
<view class="left">
|
|
8
6
|
<!-- 任务标题 && 奖励 -->
|
|
@@ -12,17 +10,16 @@
|
|
|
12
10
|
<view class="title" wx:if="{{listType === 'reward'}}">{{ rewardText }}</view>
|
|
13
11
|
|
|
14
12
|
<!-- 奖励内容 -->
|
|
15
|
-
<view class="reward" wx:if="{{
|
|
13
|
+
<view class="reward" wx:if="{{isShowReward}}">
|
|
16
14
|
<image class="reward-img" src="{{rewardIcon}}" />
|
|
17
15
|
<view class="reward-text">{{ rewardText }}</view>
|
|
18
16
|
</view>
|
|
19
17
|
</view>
|
|
20
18
|
|
|
21
19
|
<!-- 任务时间 -->
|
|
22
|
-
<view
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
>任务时间:{{taskItem.show_start_at}} 至 {{taskItem.show_end_at}}</view>
|
|
20
|
+
<view class="time" wx:if="{{listType === 'task' || listType === 'error'}}">
|
|
21
|
+
任务时间:{{taskItem.show_start_at}} 至 {{taskItem.show_end_at}}
|
|
22
|
+
</view>
|
|
26
23
|
|
|
27
24
|
<view class="time" wx:if="{{listType === 'reward'}}">获得方式:{{ taskTitle }}</view>
|
|
28
25
|
|
|
@@ -36,12 +33,34 @@
|
|
|
36
33
|
|
|
37
34
|
<!-- 奖励发放异常提示 -->
|
|
38
35
|
<view class="task-tip" wx:if="{{taskItem.is_show_reward_info}}">奖励发放中,请稍后查看</view>
|
|
39
|
-
<view class="task-tip" wx:if="{{listType === 'task' && taskItem.reward_state === 3}}"
|
|
36
|
+
<view class="task-tip" wx:if="{{listType === 'task' && taskItem.reward_state === 3 && taskItem.task_condition !== '10'}}">
|
|
37
|
+
奖品异常,无法领取,请联系商家处理
|
|
38
|
+
</view>
|
|
39
|
+
|
|
40
|
+
<!-- 答题任务没完成的提示情况处理 -->
|
|
41
|
+
<view class="task-tip" wx:if="{{showAnswerTaskIntroduce}}">
|
|
42
|
+
<!-- 完成但不满足条件 -->
|
|
43
|
+
<text class="warning-text" wx:if="{{!taskItem.qs_is_pass}}">未达到获奖条件:答对 {{taskItem.reward_frequency}} 题</text>
|
|
44
|
+
<!-- 完成 -->
|
|
45
|
+
<text wx:else class="finish-text">已达到获奖条件:答对 {{taskItem.reward_frequency}} 题</text>
|
|
46
|
+
<!-- 查看解析按钮, 只有开启了解析查看才会显示 -->
|
|
47
|
+
<view
|
|
48
|
+
wx:if="{{taskItem.is_show_answer === 1}}"
|
|
49
|
+
class="show-answer"
|
|
50
|
+
catch:tap="handleAnswerAnalysis"
|
|
51
|
+
>
|
|
52
|
+
查看解析
|
|
53
|
+
<image class="analysis-icon" src="https://commonresource-1252524126.cdn.xiaoeknow.com/image/lyqwwwi10xtb.svg" />
|
|
54
|
+
</view>
|
|
55
|
+
</view>
|
|
56
|
+
|
|
57
|
+
<!-- 超时没完成 -->
|
|
58
|
+
<view class="task-tip" wx:if="{{taskItem.join_state === 0 && taskItem.state === 2}}">已超时,未获得奖励</view>
|
|
40
59
|
</view>
|
|
41
60
|
|
|
42
61
|
<!-- 右侧按钮 -->
|
|
43
|
-
<view
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
>{{btnText}}</view>
|
|
62
|
+
<view class="btn {{listType === 'reward' && 'reward-btn'}} {{(listType==='task' && (taskItem.join_state === 2 || taskItem.join_state === 3 || taskItem.join_state === 0 || taskItem.state === 2))&&'gray-btn'}} {{getFailStatus && 'orange-btn'}}" catch:tap="btnClick">
|
|
63
|
+
{{btnText}}
|
|
64
|
+
</view>
|
|
47
65
|
</view>
|
|
66
|
+
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
var secondsToMinutes = function(seconds){
|
|
2
|
-
minutes = Math.floor(seconds / 60);
|
|
3
|
-
return Math.floor(seconds / 60)
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
module.exports = {
|
|
7
|
-
secondsToMinutes: secondsToMinutes,
|
|
1
|
+
var secondsToMinutes = function(seconds){
|
|
2
|
+
minutes = Math.floor(seconds / 60);
|
|
3
|
+
return Math.floor(seconds / 60)
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
module.exports = {
|
|
7
|
+
secondsToMinutes: secondsToMinutes,
|
|
8
8
|
}
|
|
@@ -71,8 +71,27 @@
|
|
|
71
71
|
margin-top: 1.06667vmin;
|
|
72
72
|
font-size: 3.2vmin;
|
|
73
73
|
color: #FF5429;
|
|
74
|
+
font-family: "PingFang SC";
|
|
75
|
+
line-height: 4.26667vmin;
|
|
76
|
+
align-items: center;
|
|
77
|
+
}
|
|
78
|
+
.item-box .left .task-tip .finish-text {
|
|
79
|
+
display: inline-block;
|
|
80
|
+
color: #999999;
|
|
81
|
+
}
|
|
82
|
+
.item-box .left .task-tip .show-answer {
|
|
83
|
+
display: inline-flex;
|
|
84
|
+
align-items: center;
|
|
85
|
+
margin-left: 2.66667vmin;
|
|
86
|
+
font-style: normal;
|
|
87
|
+
font-weight: 400;
|
|
74
88
|
line-height: 4.26667vmin;
|
|
75
89
|
}
|
|
90
|
+
.item-box .left .task-tip .show-answer .analysis-icon {
|
|
91
|
+
width: 3.2vmin;
|
|
92
|
+
height: 3.2vmin;
|
|
93
|
+
margin-left: -vmin(4);
|
|
94
|
+
}
|
|
76
95
|
.item-box .btn {
|
|
77
96
|
width: 19.2vmin;
|
|
78
97
|
height: 7.46667vmin;
|
|
@@ -95,6 +114,11 @@
|
|
|
95
114
|
background: #F5F5F5;
|
|
96
115
|
color: #B2B2B2;
|
|
97
116
|
}
|
|
117
|
+
.item-box .btn.orange-btn {
|
|
118
|
+
color: #ffffff;
|
|
119
|
+
opacity: 0.4;
|
|
120
|
+
background: #ff5429;
|
|
121
|
+
}
|
|
98
122
|
@media screen and (min-width: 768px) and (orientation: portrait) {
|
|
99
123
|
.item-box {
|
|
100
124
|
display: flex;
|
|
@@ -169,8 +193,27 @@
|
|
|
169
193
|
margin-top: 0.52083vmin;
|
|
170
194
|
font-size: 1.5625vmin;
|
|
171
195
|
color: #FF5429;
|
|
196
|
+
font-family: "PingFang SC";
|
|
197
|
+
line-height: 2.08333vmin;
|
|
198
|
+
align-items: center;
|
|
199
|
+
}
|
|
200
|
+
.item-box .left .task-tip .finish-text {
|
|
201
|
+
display: inline-block;
|
|
202
|
+
color: #999999;
|
|
203
|
+
}
|
|
204
|
+
.item-box .left .task-tip .show-answer {
|
|
205
|
+
display: inline-flex;
|
|
206
|
+
align-items: center;
|
|
207
|
+
margin-left: 1.30208vmin;
|
|
208
|
+
font-style: normal;
|
|
209
|
+
font-weight: 400;
|
|
172
210
|
line-height: 2.08333vmin;
|
|
173
211
|
}
|
|
212
|
+
.item-box .left .task-tip .show-answer .analysis-icon {
|
|
213
|
+
width: 1.5625vmin;
|
|
214
|
+
height: 1.5625vmin;
|
|
215
|
+
margin-left: -vmin(4);
|
|
216
|
+
}
|
|
174
217
|
.item-box .btn {
|
|
175
218
|
width: 9.375vmin;
|
|
176
219
|
height: 3.64583vmin;
|
|
@@ -193,6 +236,11 @@
|
|
|
193
236
|
background: #F5F5F5;
|
|
194
237
|
color: #B2B2B2;
|
|
195
238
|
}
|
|
239
|
+
.item-box .btn.orange-btn {
|
|
240
|
+
color: #ffffff;
|
|
241
|
+
opacity: 0.4;
|
|
242
|
+
background: #ff5429;
|
|
243
|
+
}
|
|
196
244
|
}
|
|
197
245
|
@media screen and (min-height: 630px) and (orientation: landscape) {
|
|
198
246
|
.item-box {
|
|
@@ -268,8 +316,27 @@
|
|
|
268
316
|
margin-top: 0.63492vmin;
|
|
269
317
|
font-size: 1.90476vmin;
|
|
270
318
|
color: #FF5429;
|
|
319
|
+
font-family: "PingFang SC";
|
|
320
|
+
line-height: 2.53968vmin;
|
|
321
|
+
align-items: center;
|
|
322
|
+
}
|
|
323
|
+
.item-box .left .task-tip .finish-text {
|
|
324
|
+
display: inline-block;
|
|
325
|
+
color: #999999;
|
|
326
|
+
}
|
|
327
|
+
.item-box .left .task-tip .show-answer {
|
|
328
|
+
display: inline-flex;
|
|
329
|
+
align-items: center;
|
|
330
|
+
margin-left: 1.5873vmin;
|
|
331
|
+
font-style: normal;
|
|
332
|
+
font-weight: 400;
|
|
271
333
|
line-height: 2.53968vmin;
|
|
272
334
|
}
|
|
335
|
+
.item-box .left .task-tip .show-answer .analysis-icon {
|
|
336
|
+
width: 1.90476vmin;
|
|
337
|
+
height: 1.90476vmin;
|
|
338
|
+
margin-left: -vmin(4);
|
|
339
|
+
}
|
|
273
340
|
.item-box .btn {
|
|
274
341
|
width: 11.42857vmin;
|
|
275
342
|
height: 4.44444vmin;
|
|
@@ -292,6 +359,11 @@
|
|
|
292
359
|
background: #F5F5F5;
|
|
293
360
|
color: #B2B2B2;
|
|
294
361
|
}
|
|
362
|
+
.item-box .btn.orange-btn {
|
|
363
|
+
color: #ffffff;
|
|
364
|
+
opacity: 0.4;
|
|
365
|
+
background: #ff5429;
|
|
366
|
+
}
|
|
295
367
|
}
|
|
296
368
|
@media screen and (min-height: 768px) and (orientation: landscape) {
|
|
297
369
|
.item-box {
|
|
@@ -367,8 +439,27 @@
|
|
|
367
439
|
margin-top: 0.52083vmin;
|
|
368
440
|
font-size: 1.5625vmin;
|
|
369
441
|
color: #FF5429;
|
|
442
|
+
font-family: "PingFang SC";
|
|
443
|
+
line-height: 2.08333vmin;
|
|
444
|
+
align-items: center;
|
|
445
|
+
}
|
|
446
|
+
.item-box .left .task-tip .finish-text {
|
|
447
|
+
display: inline-block;
|
|
448
|
+
color: #999999;
|
|
449
|
+
}
|
|
450
|
+
.item-box .left .task-tip .show-answer {
|
|
451
|
+
display: inline-flex;
|
|
452
|
+
align-items: center;
|
|
453
|
+
margin-left: 1.30208vmin;
|
|
454
|
+
font-style: normal;
|
|
455
|
+
font-weight: 400;
|
|
370
456
|
line-height: 2.08333vmin;
|
|
371
457
|
}
|
|
458
|
+
.item-box .left .task-tip .show-answer .analysis-icon {
|
|
459
|
+
width: 1.5625vmin;
|
|
460
|
+
height: 1.5625vmin;
|
|
461
|
+
margin-left: -vmin(4);
|
|
462
|
+
}
|
|
372
463
|
.item-box .btn {
|
|
373
464
|
width: 9.375vmin;
|
|
374
465
|
height: 3.64583vmin;
|
|
@@ -391,4 +482,9 @@
|
|
|
391
482
|
background: #F5F5F5;
|
|
392
483
|
color: #B2B2B2;
|
|
393
484
|
}
|
|
485
|
+
.item-box .btn.orange-btn {
|
|
486
|
+
color: #ffffff;
|
|
487
|
+
opacity: 0.4;
|
|
488
|
+
background: #ff5429;
|
|
489
|
+
}
|
|
394
490
|
}
|
|
@@ -47,6 +47,10 @@ const taskTypeConfig = {
|
|
|
47
47
|
9:{
|
|
48
48
|
title: "签到",
|
|
49
49
|
icon: "https://commonresource-1252524126.cdn.xiaoeknow.com/image/ltpfaylp019h.png"
|
|
50
|
+
},
|
|
51
|
+
10:{
|
|
52
|
+
title: "答题",
|
|
53
|
+
icon: "https://commonresource-1252524126.cdn.xiaoeknow.com/image/lzl1plgd0mex.png"
|
|
50
54
|
}
|
|
51
55
|
}
|
|
52
56
|
}
|
|
@@ -74,6 +78,10 @@ Component({
|
|
|
74
78
|
value:()=>{
|
|
75
79
|
return []
|
|
76
80
|
}
|
|
81
|
+
},
|
|
82
|
+
teamId:{
|
|
83
|
+
type: String,
|
|
84
|
+
value: '',
|
|
77
85
|
}
|
|
78
86
|
},
|
|
79
87
|
data: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
{
|
|
2
|
-
"component": true,
|
|
3
|
-
"usingComponents": {
|
|
4
|
-
"task-type": "../TaskType",
|
|
5
|
-
"task-item": "../TaskItem"
|
|
6
|
-
}
|
|
7
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"component": true,
|
|
3
|
+
"usingComponents": {
|
|
4
|
+
"task-type": "../TaskType",
|
|
5
|
+
"task-item": "../TaskItem"
|
|
6
|
+
}
|
|
7
|
+
}
|
|
@@ -1,67 +1,67 @@
|
|
|
1
|
-
$deviceWidth: 750;
|
|
2
|
-
|
|
3
|
-
@function vmin($rpx) {
|
|
4
|
-
@return #{$rpx * 100 / $deviceWidth}vmin;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
@mixin task-list{
|
|
8
|
-
height: 100%;
|
|
9
|
-
min-height: 40vmin;
|
|
10
|
-
// padding-bottom: vmin(32);
|
|
11
|
-
box-sizing: border-box;
|
|
12
|
-
.error-box{
|
|
13
|
-
background: #fff;
|
|
14
|
-
padding: vmin(2) vmin(2) 0 vmin(2);
|
|
15
|
-
position: relative;
|
|
16
|
-
margin-bottom: vmin(24);
|
|
17
|
-
border-radius: vmin(16);
|
|
18
|
-
overflow: hidden;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.nothing{
|
|
22
|
-
display: flex;
|
|
23
|
-
align-items: center;
|
|
24
|
-
margin-top: vmin(160);
|
|
25
|
-
flex-direction: column;
|
|
26
|
-
image{
|
|
27
|
-
width: vmin(176);
|
|
28
|
-
height: vmin(176);
|
|
29
|
-
}
|
|
30
|
-
.text{
|
|
31
|
-
font-size: vmin(28);
|
|
32
|
-
color: #999999;
|
|
33
|
-
margin-top: vmin(32);
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.task-list {
|
|
39
|
-
@include task-list;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
// 竖屏pad
|
|
43
|
-
@media screen and (min-width: 768px) and (orientation: portrait) {
|
|
44
|
-
$deviceWidth: 1536 !global;
|
|
45
|
-
|
|
46
|
-
.task-list {
|
|
47
|
-
@include task-list;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
// PC 放大适配
|
|
52
|
-
@media screen and (min-height: 630px) and (orientation: landscape) {
|
|
53
|
-
$deviceWidth: 1260 !global;
|
|
54
|
-
|
|
55
|
-
.task-list {
|
|
56
|
-
@include task-list;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
// 横屏pad
|
|
61
|
-
@media screen and (min-height: 768px) and (orientation: landscape) {
|
|
62
|
-
$deviceWidth: 1536 !global;
|
|
63
|
-
|
|
64
|
-
.task-list {
|
|
65
|
-
@include task-list;
|
|
66
|
-
}
|
|
1
|
+
$deviceWidth: 750;
|
|
2
|
+
|
|
3
|
+
@function vmin($rpx) {
|
|
4
|
+
@return #{$rpx * 100 / $deviceWidth}vmin;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
@mixin task-list{
|
|
8
|
+
height: 100%;
|
|
9
|
+
min-height: 40vmin;
|
|
10
|
+
// padding-bottom: vmin(32);
|
|
11
|
+
box-sizing: border-box;
|
|
12
|
+
.error-box{
|
|
13
|
+
background: #fff;
|
|
14
|
+
padding: vmin(2) vmin(2) 0 vmin(2);
|
|
15
|
+
position: relative;
|
|
16
|
+
margin-bottom: vmin(24);
|
|
17
|
+
border-radius: vmin(16);
|
|
18
|
+
overflow: hidden;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.nothing{
|
|
22
|
+
display: flex;
|
|
23
|
+
align-items: center;
|
|
24
|
+
margin-top: vmin(160);
|
|
25
|
+
flex-direction: column;
|
|
26
|
+
image{
|
|
27
|
+
width: vmin(176);
|
|
28
|
+
height: vmin(176);
|
|
29
|
+
}
|
|
30
|
+
.text{
|
|
31
|
+
font-size: vmin(28);
|
|
32
|
+
color: #999999;
|
|
33
|
+
margin-top: vmin(32);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.task-list {
|
|
39
|
+
@include task-list;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
// 竖屏pad
|
|
43
|
+
@media screen and (min-width: 768px) and (orientation: portrait) {
|
|
44
|
+
$deviceWidth: 1536 !global;
|
|
45
|
+
|
|
46
|
+
.task-list {
|
|
47
|
+
@include task-list;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
// PC 放大适配
|
|
52
|
+
@media screen and (min-height: 630px) and (orientation: landscape) {
|
|
53
|
+
$deviceWidth: 1260 !global;
|
|
54
|
+
|
|
55
|
+
.task-list {
|
|
56
|
+
@include task-list;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
// 横屏pad
|
|
61
|
+
@media screen and (min-height: 768px) and (orientation: landscape) {
|
|
62
|
+
$deviceWidth: 1536 !global;
|
|
63
|
+
|
|
64
|
+
.task-list {
|
|
65
|
+
@include task-list;
|
|
66
|
+
}
|
|
67
67
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
{
|
|
2
|
-
"component": true,
|
|
3
|
-
"usingComponents": {
|
|
4
|
-
"van-collapse": "@vant/weapp/collapse/index",
|
|
5
|
-
"van-collapse-item": "@vant/weapp/collapse-item/index",
|
|
6
|
-
"van-icon": "@vant/weapp/icon/index",
|
|
7
|
-
"task-item": "../TaskItem"
|
|
8
|
-
}
|
|
9
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"component": true,
|
|
3
|
+
"usingComponents": {
|
|
4
|
+
"van-collapse": "@vant/weapp/collapse/index",
|
|
5
|
+
"van-collapse-item": "@vant/weapp/collapse-item/index",
|
|
6
|
+
"van-icon": "@vant/weapp/icon/index",
|
|
7
|
+
"task-item": "../TaskItem"
|
|
8
|
+
}
|
|
9
|
+
}
|
|
@@ -1,63 +1,63 @@
|
|
|
1
|
-
$deviceWidth: 750;
|
|
2
|
-
|
|
3
|
-
@function vmin($rpx) {
|
|
4
|
-
@return #{$rpx * 100 / $deviceWidth}vmin;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
@mixin collapse{
|
|
8
|
-
margin-bottom: vmin(24);
|
|
9
|
-
border-radius: vmin(16);
|
|
10
|
-
overflow: hidden;
|
|
11
|
-
.content{
|
|
12
|
-
padding: 0;
|
|
13
|
-
}
|
|
14
|
-
.task-item {
|
|
15
|
-
display: flex;
|
|
16
|
-
align-items: center;
|
|
17
|
-
.type-img {
|
|
18
|
-
width: vmin(80);
|
|
19
|
-
height: vmin(80);
|
|
20
|
-
}
|
|
21
|
-
.type-title {
|
|
22
|
-
font-size: vmin(28);
|
|
23
|
-
font-weight: 500;
|
|
24
|
-
margin-left: vmin(16);
|
|
25
|
-
color: #333333;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
.icon{
|
|
29
|
-
display: flex;
|
|
30
|
-
align-items: center;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.collapse {
|
|
35
|
-
@include collapse;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
// 竖屏pad
|
|
39
|
-
@media screen and (min-width: 768px) and (orientation: portrait) {
|
|
40
|
-
$deviceWidth: 1536 !global;
|
|
41
|
-
|
|
42
|
-
.collapse {
|
|
43
|
-
@include collapse;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
// PC 放大适配
|
|
48
|
-
@media screen and (min-height: 630px) and (orientation: landscape) {
|
|
49
|
-
$deviceWidth: 1260 !global;
|
|
50
|
-
|
|
51
|
-
.collapse {
|
|
52
|
-
@include collapse;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
// 横屏pad
|
|
57
|
-
@media screen and (min-height: 768px) and (orientation: landscape) {
|
|
58
|
-
$deviceWidth: 1536 !global;
|
|
59
|
-
|
|
60
|
-
.collapse {
|
|
61
|
-
@include collapse;
|
|
62
|
-
}
|
|
1
|
+
$deviceWidth: 750;
|
|
2
|
+
|
|
3
|
+
@function vmin($rpx) {
|
|
4
|
+
@return #{$rpx * 100 / $deviceWidth}vmin;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
@mixin collapse{
|
|
8
|
+
margin-bottom: vmin(24);
|
|
9
|
+
border-radius: vmin(16);
|
|
10
|
+
overflow: hidden;
|
|
11
|
+
.content{
|
|
12
|
+
padding: 0;
|
|
13
|
+
}
|
|
14
|
+
.task-item {
|
|
15
|
+
display: flex;
|
|
16
|
+
align-items: center;
|
|
17
|
+
.type-img {
|
|
18
|
+
width: vmin(80);
|
|
19
|
+
height: vmin(80);
|
|
20
|
+
}
|
|
21
|
+
.type-title {
|
|
22
|
+
font-size: vmin(28);
|
|
23
|
+
font-weight: 500;
|
|
24
|
+
margin-left: vmin(16);
|
|
25
|
+
color: #333333;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
.icon{
|
|
29
|
+
display: flex;
|
|
30
|
+
align-items: center;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.collapse {
|
|
35
|
+
@include collapse;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
// 竖屏pad
|
|
39
|
+
@media screen and (min-width: 768px) and (orientation: portrait) {
|
|
40
|
+
$deviceWidth: 1536 !global;
|
|
41
|
+
|
|
42
|
+
.collapse {
|
|
43
|
+
@include collapse;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
// PC 放大适配
|
|
48
|
+
@media screen and (min-height: 630px) and (orientation: landscape) {
|
|
49
|
+
$deviceWidth: 1260 !global;
|
|
50
|
+
|
|
51
|
+
.collapse {
|
|
52
|
+
@include collapse;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
// 横屏pad
|
|
57
|
+
@media screen and (min-height: 768px) and (orientation: landscape) {
|
|
58
|
+
$deviceWidth: 1536 !global;
|
|
59
|
+
|
|
60
|
+
.collapse {
|
|
61
|
+
@include collapse;
|
|
62
|
+
}
|
|
63
63
|
}
|