xiaoe_mp_npm 1.0.21 → 1.0.22-test01
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/GoodsItem/index.json +6 -6
- package/miniprogram_dist/GoodsItem/index.wxs +18 -18
- package/miniprogram_dist/LiveGoodsList/Header/index.js +54 -54
- package/miniprogram_dist/LiveGoodsList/Header/index.json +6 -6
- package/miniprogram_dist/LiveGoodsList/Header/index.less +45 -45
- package/miniprogram_dist/LiveGoodsList/Header/index.scss +105 -105
- package/miniprogram_dist/LiveGoodsList/Header/index.wxml +32 -32
- package/miniprogram_dist/LiveGoodsList/README.md +9 -9
- package/miniprogram_dist/LiveGoodsList/index.json +8 -8
- package/miniprogram_dist/LiveGoodsList/index.less +53 -53
- package/miniprogram_dist/LiveGoodsList/index.scss +92 -92
- package/miniprogram_dist/Task/TaskBubble/index.js +2 -1
- package/miniprogram_dist/Task/TaskPopup/component/TaskItem/index.js +241 -166
- package/miniprogram_dist/Task/TaskPopup/component/TaskItem/index.scss +26 -0
- package/miniprogram_dist/Task/TaskPopup/component/TaskItem/index.wxml +27 -8
- package/miniprogram_dist/Task/TaskPopup/component/TaskItem/index.wxss +96 -0
- package/miniprogram_dist/Task/TaskPopup/component/TaskList/index.js +4 -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 +47 -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 +226 -0
- package/miniprogram_dist/Task/TaskQuizPopup/index.json +8 -0
- package/miniprogram_dist/Task/TaskQuizPopup/index.scss +158 -0
- package/miniprogram_dist/Task/TaskQuizPopup/index.wxml +96 -0
- package/miniprogram_dist/Task/TaskQuizPopup/index.wxss +474 -0
- package/miniprogram_dist/Task/taskQuizRemindPopup/index.js +79 -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/common/utils/tool.js +54 -48
- package/package.json +1 -1
- package/src/AliveInvite/LiveRoomVertical/index.wxss +252 -252
- package/src/CollectionAddress/index.wxss +5 -5
- package/src/ConfirmOrder/components/AddressEdit/index.wxss +120 -120
- package/src/ConfirmOrder/components/AddressManage/index.wxss +98 -98
- package/src/ConfirmOrder/components/AddressSelect/index.wxss +67 -67
- package/src/ConfirmOrder/components/ChoosePicker/index.wxss +18 -18
- package/src/ConfirmOrder/components/GoodsInfo/components/GoodsCommerce/components/entityGiftList/index.wxss +45 -45
- package/src/ConfirmOrder/components/GoodsInfo/components/GoodsCommerce/components/entityItem/index.wxss +100 -100
- package/src/ConfirmOrder/components/GoodsInfo/components/GoodsCommerce/index.wxss +55 -55
- package/src/ConfirmOrder/components/GoodsInfo/components/ImageData/index.wxss +13 -13
- package/src/ConfirmOrder/components/Header/index.wxss +26 -26
- package/src/ConfirmOrder/components/IntegralSelect/componenets/integralTips/index.wxss +85 -85
- package/src/ConfirmOrder/components/Invoice/components/InvoiceSelect/index.wxss +155 -155
- package/src/ConfirmOrder/components/Invoice/components/InvoiceTip/index.wxss +51 -51
- package/src/ConfirmOrder/components/ModeSelect/index.wxss +44 -44
- package/src/ConfirmOrder/components/PickupSelect/index.wxss +22 -22
- package/src/ConfirmOrder/components/SelectSite/index.wxss +82 -82
- package/src/ConfirmOrder/components/Shipper/index.wxss +76 -76
- package/src/ConfirmOrder/components/ShipperEdit/index.wxss +78 -78
- package/src/ConfirmOrder/components/WechatAddress/index.wxss +22 -22
- package/src/ConfirmOrder/index.wxss +5 -5
- package/src/CouponList/couponMsg/index.wxss +3 -3
- package/src/CustomPopup/index.wxss +22 -22
- package/src/GoodsItem/index.json +6 -6
- package/src/GoodsItem/index.wxs +18 -18
- package/src/LiveGoodsList/Header/index.js +54 -54
- package/src/LiveGoodsList/Header/index.json +6 -6
- package/src/LiveGoodsList/Header/index.less +45 -45
- package/src/LiveGoodsList/Header/index.scss +105 -105
- package/src/LiveGoodsList/Header/index.wxml +32 -32
- package/src/LiveGoodsList/README.md +9 -9
- package/src/LiveGoodsList/index.json +8 -8
- package/src/LiveGoodsList/index.less +53 -53
- package/src/LiveGoodsList/index.scss +92 -92
- package/src/LiveGoodsList/index.wxss +218 -218
- package/src/PayComplete/Components/CouponItem/index.wxss +122 -122
- package/src/PayComplete/Components/Header/index.wxss +27 -27
- package/src/PayComplete/Components/LeadGroup/index.wxss +33 -33
- package/src/PayComplete/Components/PayGifts/index.wxss +157 -157
- package/src/PayComplete/Components/PayState/earnIntegral/index.wxss +23 -23
- package/src/PayComplete/Components/PayState/index.wxss +20 -20
- package/src/PayComplete/index.wxss +27 -27
- package/src/PayModule/wechatLoading/index.wxss +57 -57
- package/src/Recommend/index.wxss +110 -110
- package/src/Sku/Header/index.wxss +27 -27
- package/src/Sku/goods-info/index.wxss +52 -52
- package/src/Sku/index/index.wxss +52 -52
- package/src/Sku/row-item/index.wxss +50 -50
- package/src/Sku/step/index.wxss +11 -11
- package/src/Task/TaskBubble/index.js +2 -1
- package/src/Task/TaskBubble/index.wxss +289 -289
- package/src/Task/TaskIcon/index.wxss +130 -130
- package/src/Task/TaskPopup/component/RewardList/index.wxss +18 -18
- package/src/Task/TaskPopup/component/TaskItem/index.js +241 -166
- package/src/Task/TaskPopup/component/TaskItem/index.scss +26 -0
- package/src/Task/TaskPopup/component/TaskItem/index.wxml +27 -8
- package/src/Task/TaskPopup/component/TaskItem/index.wxss +1 -394
- package/src/Task/TaskPopup/component/TaskList/index.js +4 -0
- package/src/Task/TaskPopup/component/TaskList/index.wxss +118 -118
- package/src/Task/TaskPopup/component/TaskType/index.wxss +110 -110
- package/src/Task/TaskPopup/index.wxss +406 -406
- 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 +47 -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 +226 -0
- package/src/Task/TaskQuizPopup/index.json +8 -0
- package/src/Task/TaskQuizPopup/index.scss +158 -0
- package/src/Task/TaskQuizPopup/index.wxml +96 -0
- package/src/Task/TaskQuizPopup/index.wxss +1 -0
- package/src/Task/taskQuizRemindPopup/index.js +79 -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/customPrizes/index.wxss +220 -220
- package/src/Task/taskReceivePopup/index.wxss +1 -1
- package/src/Task/taskReceivePopup/integral/index.wxss +94 -94
- package/src/common/css/theme.wxss +16 -16
- package/src/common/utils/tool.js +54 -48
- package/src/miniprogram_npm/miniprogram-computed/index.js +1 -0
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
<view class="task-quiz-popup" catchtap>
|
|
2
|
+
<van-popup
|
|
3
|
+
show="{{showPopup}}"
|
|
4
|
+
position="{{ popPosition }}"
|
|
5
|
+
custom-style="{{ customStyle }}"
|
|
6
|
+
z-index="{{100}}"
|
|
7
|
+
custom-class="quiz-popup"
|
|
8
|
+
safe-area-inset-bottom="{{ !showAnalysis }}"
|
|
9
|
+
overlay-style="{{ 'background-color: rgba(0, 0, 0, 0.8)' }}"
|
|
10
|
+
catch:close="closePop"
|
|
11
|
+
catch:click-overlay="closePop"
|
|
12
|
+
>
|
|
13
|
+
<!-- 标题 -->
|
|
14
|
+
<view class="content-header">
|
|
15
|
+
{{ showAnalysis ? '直播答题结果' : '直播答题' }}
|
|
16
|
+
<image
|
|
17
|
+
class="popup-close-icon"
|
|
18
|
+
src="https://commonresource-1252524126.cdn.xiaoeknow.com/image/lz0vxpq80hw7.svg"
|
|
19
|
+
catchtap="closePop"
|
|
20
|
+
/>
|
|
21
|
+
</view>
|
|
22
|
+
<!-- 内容 -->
|
|
23
|
+
<view class="popup-content">
|
|
24
|
+
<!-- 结果解析 -->
|
|
25
|
+
<block wx:if="{{ showAnalysis }}">
|
|
26
|
+
<!-- 获奖结果区 -->
|
|
27
|
+
<view class="reward-show-box">
|
|
28
|
+
<view class="reward-condition">
|
|
29
|
+
<text>本次直播答题</text>
|
|
30
|
+
<text class="orange-color">{{join_result.qs_is_pass || quiz_task_item.qs_is_pass ? '达到' : '未达到'}}</text>
|
|
31
|
+
<text>获奖条件:答对 {{quiz_task_item.reward_frequency}} 道题</text>
|
|
32
|
+
</view>
|
|
33
|
+
<view class="reward-result">
|
|
34
|
+
{{
|
|
35
|
+
join_result.qs_is_pass || quiz_task_item.qs_is_pass
|
|
36
|
+
? '获得奖励'
|
|
37
|
+
: '未获得奖励'
|
|
38
|
+
}}
|
|
39
|
+
<view
|
|
40
|
+
wx:if="{{join_result.qs_is_pass || quiz_task_item.qs_is_pass}}"
|
|
41
|
+
class="reward-result-show"
|
|
42
|
+
>
|
|
43
|
+
<image class="reward-img" src="{{ rewardIcon }}" />{{ rewardText }}
|
|
44
|
+
</view>
|
|
45
|
+
</view>
|
|
46
|
+
</view>
|
|
47
|
+
<!-- 解析区 -->
|
|
48
|
+
<view class="analysis-tip">解析</view>
|
|
49
|
+
<quizContent
|
|
50
|
+
wx:for="{{quizList}}"
|
|
51
|
+
questionContent="{{item}}"
|
|
52
|
+
quizIndex="{{index + 1}}"
|
|
53
|
+
showAnalysis="{{true}}"
|
|
54
|
+
wx:key="{{item.qs_id}}"
|
|
55
|
+
/>
|
|
56
|
+
</block>
|
|
57
|
+
<!-- 答题内容 -->
|
|
58
|
+
<block wx:else>
|
|
59
|
+
<quizContent
|
|
60
|
+
wx:if="{{quizList.length > 0}}"
|
|
61
|
+
questionContent="{{quizList[currentIndex]}}"
|
|
62
|
+
quizIndex="{{currentIndex + 1}}"
|
|
63
|
+
catch:clickOption="clickOption"
|
|
64
|
+
/>
|
|
65
|
+
</block>
|
|
66
|
+
</view>
|
|
67
|
+
<!-- 底部按钮 -->
|
|
68
|
+
<view wx:if="{{ !showAnalysis }}" class="content-footer">
|
|
69
|
+
<view
|
|
70
|
+
hidden="{{!(currentIndex !== 0 && total > 1)}}"
|
|
71
|
+
data-type="prev"
|
|
72
|
+
class="last-step"
|
|
73
|
+
catchtap="handleQuizOrder"
|
|
74
|
+
>
|
|
75
|
+
上一题
|
|
76
|
+
</view>
|
|
77
|
+
<view
|
|
78
|
+
hidden="{{!(currentIndex !== total - 1 && total > 1)}}"
|
|
79
|
+
data-type="next"
|
|
80
|
+
class="next-step"
|
|
81
|
+
catchtap="handleQuizOrder"
|
|
82
|
+
>
|
|
83
|
+
下一题
|
|
84
|
+
</view>
|
|
85
|
+
<view
|
|
86
|
+
hidden="{{!(total === 1 || currentIndex === total - 1)}}"
|
|
87
|
+
data-type="submit"
|
|
88
|
+
class="submit-step"
|
|
89
|
+
catchtap="handleQuizOrder"
|
|
90
|
+
>
|
|
91
|
+
提交
|
|
92
|
+
</view>
|
|
93
|
+
</view>
|
|
94
|
+
</van-popup>
|
|
95
|
+
<van-dialog id="van-dialog"/>
|
|
96
|
+
</view>
|
|
@@ -0,0 +1,474 @@
|
|
|
1
|
+
.task-quiz-popup {
|
|
2
|
+
height: 100%;
|
|
3
|
+
}
|
|
4
|
+
.task-quiz-popup .quiz-popup {
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
align-items: center;
|
|
8
|
+
background-color: #f5f5f5;
|
|
9
|
+
border-radius: 3.2vmin 3.2vmin 0 0;
|
|
10
|
+
z-index: 500;
|
|
11
|
+
}
|
|
12
|
+
.task-quiz-popup .quiz-popup .content-header {
|
|
13
|
+
width: 100%;
|
|
14
|
+
height: 12.8vmin;
|
|
15
|
+
font-size: 4.26667vmin;
|
|
16
|
+
font-weight: 500;
|
|
17
|
+
display: flex;
|
|
18
|
+
justify-content: center;
|
|
19
|
+
align-items: center;
|
|
20
|
+
position: relative;
|
|
21
|
+
}
|
|
22
|
+
.task-quiz-popup .quiz-popup .content-header .popup-close-icon {
|
|
23
|
+
width: 4.26667vmin;
|
|
24
|
+
height: 4.26667vmin;
|
|
25
|
+
position: absolute;
|
|
26
|
+
top: 4.26667vmin;
|
|
27
|
+
right: 4.26667vmin;
|
|
28
|
+
}
|
|
29
|
+
.task-quiz-popup .quiz-popup .popup-content {
|
|
30
|
+
flex: 1;
|
|
31
|
+
box-sizing: border-box;
|
|
32
|
+
overflow-y: overlay;
|
|
33
|
+
padding: 0 4.26667vmin;
|
|
34
|
+
width: 100%;
|
|
35
|
+
}
|
|
36
|
+
.task-quiz-popup .quiz-popup .popup-content .reward-show-box {
|
|
37
|
+
display: flex;
|
|
38
|
+
padding: 4.26667vmin 3.2vmin;
|
|
39
|
+
flex-direction: column;
|
|
40
|
+
align-items: flex-start;
|
|
41
|
+
border-radius: 2.13333vmin;
|
|
42
|
+
background: #fff;
|
|
43
|
+
color: #333333;
|
|
44
|
+
font-family: "PingFang SC";
|
|
45
|
+
font-size: 3.73333vmin;
|
|
46
|
+
font-style: normal;
|
|
47
|
+
font-weight: 400;
|
|
48
|
+
margin-bottom: 4.26667vmin;
|
|
49
|
+
line-height: 5.33333vmin;
|
|
50
|
+
}
|
|
51
|
+
.task-quiz-popup .quiz-popup .popup-content .reward-show-box .reward-condition {
|
|
52
|
+
font-weight: 500;
|
|
53
|
+
}
|
|
54
|
+
.task-quiz-popup .quiz-popup .popup-content .reward-show-box .reward-condition .orange-color {
|
|
55
|
+
color: #ff5429;
|
|
56
|
+
}
|
|
57
|
+
.task-quiz-popup .quiz-popup .popup-content .reward-show-box .reward-result {
|
|
58
|
+
display: flex;
|
|
59
|
+
align-items: center;
|
|
60
|
+
margin-top: 1.06667vmin;
|
|
61
|
+
}
|
|
62
|
+
.task-quiz-popup .quiz-popup .popup-content .reward-show-box .reward-result .reward-result-show {
|
|
63
|
+
margin-left: 2.13333vmin;
|
|
64
|
+
color: #ff5429;
|
|
65
|
+
font-size: 3.2vmin;
|
|
66
|
+
display: inline-flex;
|
|
67
|
+
align-items: center;
|
|
68
|
+
}
|
|
69
|
+
.task-quiz-popup .quiz-popup .popup-content .reward-show-box .reward-result .reward-result-show .reward-img {
|
|
70
|
+
width: 3.2vmin;
|
|
71
|
+
height: 3.2vmin;
|
|
72
|
+
padding: 0.53333vmin 0;
|
|
73
|
+
vertical-align: top;
|
|
74
|
+
}
|
|
75
|
+
.task-quiz-popup .quiz-popup .popup-content .analysis-tip {
|
|
76
|
+
font-size: 4.26667vmin;
|
|
77
|
+
color: #333333;
|
|
78
|
+
font-family: "PingFang SC";
|
|
79
|
+
font-style: normal;
|
|
80
|
+
font-weight: 500;
|
|
81
|
+
line-height: 6.4vmin;
|
|
82
|
+
margin-bottom: 4.26667vmin;
|
|
83
|
+
}
|
|
84
|
+
.task-quiz-popup .quiz-popup .content-footer {
|
|
85
|
+
width: 100%;
|
|
86
|
+
font-size: 4.26667vmin;
|
|
87
|
+
font-weight: 400;
|
|
88
|
+
color: #999;
|
|
89
|
+
line-height: 5.33333vmin;
|
|
90
|
+
display: flex;
|
|
91
|
+
justify-content: center;
|
|
92
|
+
align-items: center;
|
|
93
|
+
padding: 0 4.26667vmin;
|
|
94
|
+
box-sizing: border-box;
|
|
95
|
+
}
|
|
96
|
+
.task-quiz-popup .quiz-popup .content-footer view {
|
|
97
|
+
flex: 1;
|
|
98
|
+
height: 10.66667vmin;
|
|
99
|
+
font-weight: 500;
|
|
100
|
+
line-height: 10.66667vmin;
|
|
101
|
+
font-size: 3.73333vmin;
|
|
102
|
+
text-align: center;
|
|
103
|
+
border-radius: 5.33333vmin;
|
|
104
|
+
box-sizing: border-box;
|
|
105
|
+
}
|
|
106
|
+
.task-quiz-popup .quiz-popup .content-footer .last-step {
|
|
107
|
+
margin-right: 4vmin;
|
|
108
|
+
}
|
|
109
|
+
.task-quiz-popup .quiz-popup .content-footer .last-step,
|
|
110
|
+
.task-quiz-popup .quiz-popup .content-footer .next-step {
|
|
111
|
+
color: #1472ff;
|
|
112
|
+
border: 0.26667vmin solid #1472ff;
|
|
113
|
+
}
|
|
114
|
+
.task-quiz-popup .quiz-popup .content-footer .submit-step {
|
|
115
|
+
color: #fff;
|
|
116
|
+
background: #1472ff;
|
|
117
|
+
}
|
|
118
|
+
@media screen and (min-width: 768px) and (orientation: portrait) {
|
|
119
|
+
.task-quiz-popup {
|
|
120
|
+
height: 100%;
|
|
121
|
+
}
|
|
122
|
+
.task-quiz-popup .quiz-popup {
|
|
123
|
+
display: flex;
|
|
124
|
+
flex-direction: column;
|
|
125
|
+
align-items: center;
|
|
126
|
+
background-color: #f5f5f5;
|
|
127
|
+
border-radius: 1.5625vmin 1.5625vmin 0 0;
|
|
128
|
+
z-index: 500;
|
|
129
|
+
}
|
|
130
|
+
.task-quiz-popup .quiz-popup .content-header {
|
|
131
|
+
width: 100%;
|
|
132
|
+
height: 6.25vmin;
|
|
133
|
+
font-size: 2.08333vmin;
|
|
134
|
+
font-weight: 500;
|
|
135
|
+
display: flex;
|
|
136
|
+
justify-content: center;
|
|
137
|
+
align-items: center;
|
|
138
|
+
position: relative;
|
|
139
|
+
}
|
|
140
|
+
.task-quiz-popup .quiz-popup .content-header .popup-close-icon {
|
|
141
|
+
width: 2.08333vmin;
|
|
142
|
+
height: 2.08333vmin;
|
|
143
|
+
position: absolute;
|
|
144
|
+
top: 2.08333vmin;
|
|
145
|
+
right: 2.08333vmin;
|
|
146
|
+
}
|
|
147
|
+
.task-quiz-popup .quiz-popup .popup-content {
|
|
148
|
+
flex: 1;
|
|
149
|
+
box-sizing: border-box;
|
|
150
|
+
overflow-y: overlay;
|
|
151
|
+
padding: 0 2.08333vmin;
|
|
152
|
+
width: 100%;
|
|
153
|
+
}
|
|
154
|
+
.task-quiz-popup .quiz-popup .popup-content .reward-show-box {
|
|
155
|
+
display: flex;
|
|
156
|
+
padding: 2.08333vmin 1.5625vmin;
|
|
157
|
+
flex-direction: column;
|
|
158
|
+
align-items: flex-start;
|
|
159
|
+
border-radius: 1.04167vmin;
|
|
160
|
+
background: #fff;
|
|
161
|
+
color: #333333;
|
|
162
|
+
font-family: "PingFang SC";
|
|
163
|
+
font-size: 1.82292vmin;
|
|
164
|
+
font-style: normal;
|
|
165
|
+
font-weight: 400;
|
|
166
|
+
margin-bottom: 2.08333vmin;
|
|
167
|
+
line-height: 2.60417vmin;
|
|
168
|
+
}
|
|
169
|
+
.task-quiz-popup .quiz-popup .popup-content .reward-show-box .reward-condition {
|
|
170
|
+
font-weight: 500;
|
|
171
|
+
}
|
|
172
|
+
.task-quiz-popup .quiz-popup .popup-content .reward-show-box .reward-condition .orange-color {
|
|
173
|
+
color: #ff5429;
|
|
174
|
+
}
|
|
175
|
+
.task-quiz-popup .quiz-popup .popup-content .reward-show-box .reward-result {
|
|
176
|
+
display: flex;
|
|
177
|
+
align-items: center;
|
|
178
|
+
margin-top: 0.52083vmin;
|
|
179
|
+
}
|
|
180
|
+
.task-quiz-popup .quiz-popup .popup-content .reward-show-box .reward-result .reward-result-show {
|
|
181
|
+
margin-left: 1.04167vmin;
|
|
182
|
+
color: #ff5429;
|
|
183
|
+
font-size: 1.5625vmin;
|
|
184
|
+
display: inline-flex;
|
|
185
|
+
align-items: center;
|
|
186
|
+
}
|
|
187
|
+
.task-quiz-popup .quiz-popup .popup-content .reward-show-box .reward-result .reward-result-show .reward-img {
|
|
188
|
+
width: 1.5625vmin;
|
|
189
|
+
height: 1.5625vmin;
|
|
190
|
+
padding: 0.26042vmin 0;
|
|
191
|
+
vertical-align: top;
|
|
192
|
+
}
|
|
193
|
+
.task-quiz-popup .quiz-popup .popup-content .analysis-tip {
|
|
194
|
+
font-size: 2.08333vmin;
|
|
195
|
+
color: #333333;
|
|
196
|
+
font-family: "PingFang SC";
|
|
197
|
+
font-style: normal;
|
|
198
|
+
font-weight: 500;
|
|
199
|
+
line-height: 3.125vmin;
|
|
200
|
+
margin-bottom: 2.08333vmin;
|
|
201
|
+
}
|
|
202
|
+
.task-quiz-popup .quiz-popup .content-footer {
|
|
203
|
+
width: 100%;
|
|
204
|
+
font-size: 2.08333vmin;
|
|
205
|
+
font-weight: 400;
|
|
206
|
+
color: #999;
|
|
207
|
+
line-height: 2.60417vmin;
|
|
208
|
+
display: flex;
|
|
209
|
+
justify-content: center;
|
|
210
|
+
align-items: center;
|
|
211
|
+
padding: 0 2.08333vmin;
|
|
212
|
+
box-sizing: border-box;
|
|
213
|
+
}
|
|
214
|
+
.task-quiz-popup .quiz-popup .content-footer view {
|
|
215
|
+
flex: 1;
|
|
216
|
+
height: 5.20833vmin;
|
|
217
|
+
font-weight: 500;
|
|
218
|
+
line-height: 5.20833vmin;
|
|
219
|
+
font-size: 1.82292vmin;
|
|
220
|
+
text-align: center;
|
|
221
|
+
border-radius: 2.60417vmin;
|
|
222
|
+
box-sizing: border-box;
|
|
223
|
+
}
|
|
224
|
+
.task-quiz-popup .quiz-popup .content-footer .last-step {
|
|
225
|
+
margin-right: 1.95312vmin;
|
|
226
|
+
}
|
|
227
|
+
.task-quiz-popup .quiz-popup .content-footer .last-step,
|
|
228
|
+
.task-quiz-popup .quiz-popup .content-footer .next-step {
|
|
229
|
+
color: #1472ff;
|
|
230
|
+
border: 0.13021vmin solid #1472ff;
|
|
231
|
+
}
|
|
232
|
+
.task-quiz-popup .quiz-popup .content-footer .submit-step {
|
|
233
|
+
color: #fff;
|
|
234
|
+
background: #1472ff;
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
@media screen and (min-height: 630px) and (orientation: landscape) {
|
|
238
|
+
.task-quiz-popup {
|
|
239
|
+
height: 100%;
|
|
240
|
+
}
|
|
241
|
+
.task-quiz-popup .quiz-popup {
|
|
242
|
+
display: flex;
|
|
243
|
+
flex-direction: column;
|
|
244
|
+
align-items: center;
|
|
245
|
+
background-color: #f5f5f5;
|
|
246
|
+
border-radius: 1.90476vmin 1.90476vmin 0 0;
|
|
247
|
+
z-index: 500;
|
|
248
|
+
}
|
|
249
|
+
.task-quiz-popup .quiz-popup .content-header {
|
|
250
|
+
width: 100%;
|
|
251
|
+
height: 7.61905vmin;
|
|
252
|
+
font-size: 2.53968vmin;
|
|
253
|
+
font-weight: 500;
|
|
254
|
+
display: flex;
|
|
255
|
+
justify-content: center;
|
|
256
|
+
align-items: center;
|
|
257
|
+
position: relative;
|
|
258
|
+
}
|
|
259
|
+
.task-quiz-popup .quiz-popup .content-header .popup-close-icon {
|
|
260
|
+
width: 2.53968vmin;
|
|
261
|
+
height: 2.53968vmin;
|
|
262
|
+
position: absolute;
|
|
263
|
+
top: 2.53968vmin;
|
|
264
|
+
right: 2.53968vmin;
|
|
265
|
+
}
|
|
266
|
+
.task-quiz-popup .quiz-popup .popup-content {
|
|
267
|
+
flex: 1;
|
|
268
|
+
box-sizing: border-box;
|
|
269
|
+
overflow-y: overlay;
|
|
270
|
+
padding: 0 2.53968vmin;
|
|
271
|
+
width: 100%;
|
|
272
|
+
}
|
|
273
|
+
.task-quiz-popup .quiz-popup .popup-content .reward-show-box {
|
|
274
|
+
display: flex;
|
|
275
|
+
padding: 2.53968vmin 1.90476vmin;
|
|
276
|
+
flex-direction: column;
|
|
277
|
+
align-items: flex-start;
|
|
278
|
+
border-radius: 1.26984vmin;
|
|
279
|
+
background: #fff;
|
|
280
|
+
color: #333333;
|
|
281
|
+
font-family: "PingFang SC";
|
|
282
|
+
font-size: 2.22222vmin;
|
|
283
|
+
font-style: normal;
|
|
284
|
+
font-weight: 400;
|
|
285
|
+
margin-bottom: 2.53968vmin;
|
|
286
|
+
line-height: 3.1746vmin;
|
|
287
|
+
}
|
|
288
|
+
.task-quiz-popup .quiz-popup .popup-content .reward-show-box .reward-condition {
|
|
289
|
+
font-weight: 500;
|
|
290
|
+
}
|
|
291
|
+
.task-quiz-popup .quiz-popup .popup-content .reward-show-box .reward-condition .orange-color {
|
|
292
|
+
color: #ff5429;
|
|
293
|
+
}
|
|
294
|
+
.task-quiz-popup .quiz-popup .popup-content .reward-show-box .reward-result {
|
|
295
|
+
display: flex;
|
|
296
|
+
align-items: center;
|
|
297
|
+
margin-top: 0.63492vmin;
|
|
298
|
+
}
|
|
299
|
+
.task-quiz-popup .quiz-popup .popup-content .reward-show-box .reward-result .reward-result-show {
|
|
300
|
+
margin-left: 1.26984vmin;
|
|
301
|
+
color: #ff5429;
|
|
302
|
+
font-size: 1.90476vmin;
|
|
303
|
+
display: inline-flex;
|
|
304
|
+
align-items: center;
|
|
305
|
+
}
|
|
306
|
+
.task-quiz-popup .quiz-popup .popup-content .reward-show-box .reward-result .reward-result-show .reward-img {
|
|
307
|
+
width: 1.90476vmin;
|
|
308
|
+
height: 1.90476vmin;
|
|
309
|
+
padding: 0.31746vmin 0;
|
|
310
|
+
vertical-align: top;
|
|
311
|
+
}
|
|
312
|
+
.task-quiz-popup .quiz-popup .popup-content .analysis-tip {
|
|
313
|
+
font-size: 2.53968vmin;
|
|
314
|
+
color: #333333;
|
|
315
|
+
font-family: "PingFang SC";
|
|
316
|
+
font-style: normal;
|
|
317
|
+
font-weight: 500;
|
|
318
|
+
line-height: 3.80952vmin;
|
|
319
|
+
margin-bottom: 2.53968vmin;
|
|
320
|
+
}
|
|
321
|
+
.task-quiz-popup .quiz-popup .content-footer {
|
|
322
|
+
width: 100%;
|
|
323
|
+
font-size: 2.53968vmin;
|
|
324
|
+
font-weight: 400;
|
|
325
|
+
color: #999;
|
|
326
|
+
line-height: 3.1746vmin;
|
|
327
|
+
display: flex;
|
|
328
|
+
justify-content: center;
|
|
329
|
+
align-items: center;
|
|
330
|
+
padding: 0 2.53968vmin;
|
|
331
|
+
box-sizing: border-box;
|
|
332
|
+
}
|
|
333
|
+
.task-quiz-popup .quiz-popup .content-footer view {
|
|
334
|
+
flex: 1;
|
|
335
|
+
height: 6.34921vmin;
|
|
336
|
+
font-weight: 500;
|
|
337
|
+
line-height: 6.34921vmin;
|
|
338
|
+
font-size: 2.22222vmin;
|
|
339
|
+
text-align: center;
|
|
340
|
+
border-radius: 3.1746vmin;
|
|
341
|
+
box-sizing: border-box;
|
|
342
|
+
}
|
|
343
|
+
.task-quiz-popup .quiz-popup .content-footer .last-step {
|
|
344
|
+
margin-right: 2.38095vmin;
|
|
345
|
+
}
|
|
346
|
+
.task-quiz-popup .quiz-popup .content-footer .last-step,
|
|
347
|
+
.task-quiz-popup .quiz-popup .content-footer .next-step {
|
|
348
|
+
color: #1472ff;
|
|
349
|
+
border: 0.15873vmin solid #1472ff;
|
|
350
|
+
}
|
|
351
|
+
.task-quiz-popup .quiz-popup .content-footer .submit-step {
|
|
352
|
+
color: #fff;
|
|
353
|
+
background: #1472ff;
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
@media screen and (min-height: 768px) and (orientation: landscape) {
|
|
357
|
+
.task-quiz-popup {
|
|
358
|
+
height: 100%;
|
|
359
|
+
}
|
|
360
|
+
.task-quiz-popup .quiz-popup {
|
|
361
|
+
display: flex;
|
|
362
|
+
flex-direction: column;
|
|
363
|
+
align-items: center;
|
|
364
|
+
background-color: #f5f5f5;
|
|
365
|
+
border-radius: 1.5625vmin 1.5625vmin 0 0;
|
|
366
|
+
z-index: 500;
|
|
367
|
+
}
|
|
368
|
+
.task-quiz-popup .quiz-popup .content-header {
|
|
369
|
+
width: 100%;
|
|
370
|
+
height: 6.25vmin;
|
|
371
|
+
font-size: 2.08333vmin;
|
|
372
|
+
font-weight: 500;
|
|
373
|
+
display: flex;
|
|
374
|
+
justify-content: center;
|
|
375
|
+
align-items: center;
|
|
376
|
+
position: relative;
|
|
377
|
+
}
|
|
378
|
+
.task-quiz-popup .quiz-popup .content-header .popup-close-icon {
|
|
379
|
+
width: 2.08333vmin;
|
|
380
|
+
height: 2.08333vmin;
|
|
381
|
+
position: absolute;
|
|
382
|
+
top: 2.08333vmin;
|
|
383
|
+
right: 2.08333vmin;
|
|
384
|
+
}
|
|
385
|
+
.task-quiz-popup .quiz-popup .popup-content {
|
|
386
|
+
flex: 1;
|
|
387
|
+
box-sizing: border-box;
|
|
388
|
+
overflow-y: overlay;
|
|
389
|
+
padding: 0 2.08333vmin;
|
|
390
|
+
width: 100%;
|
|
391
|
+
}
|
|
392
|
+
.task-quiz-popup .quiz-popup .popup-content .reward-show-box {
|
|
393
|
+
display: flex;
|
|
394
|
+
padding: 2.08333vmin 1.5625vmin;
|
|
395
|
+
flex-direction: column;
|
|
396
|
+
align-items: flex-start;
|
|
397
|
+
border-radius: 1.04167vmin;
|
|
398
|
+
background: #fff;
|
|
399
|
+
color: #333333;
|
|
400
|
+
font-family: "PingFang SC";
|
|
401
|
+
font-size: 1.82292vmin;
|
|
402
|
+
font-style: normal;
|
|
403
|
+
font-weight: 400;
|
|
404
|
+
margin-bottom: 2.08333vmin;
|
|
405
|
+
line-height: 2.60417vmin;
|
|
406
|
+
}
|
|
407
|
+
.task-quiz-popup .quiz-popup .popup-content .reward-show-box .reward-condition {
|
|
408
|
+
font-weight: 500;
|
|
409
|
+
}
|
|
410
|
+
.task-quiz-popup .quiz-popup .popup-content .reward-show-box .reward-condition .orange-color {
|
|
411
|
+
color: #ff5429;
|
|
412
|
+
}
|
|
413
|
+
.task-quiz-popup .quiz-popup .popup-content .reward-show-box .reward-result {
|
|
414
|
+
display: flex;
|
|
415
|
+
align-items: center;
|
|
416
|
+
margin-top: 0.52083vmin;
|
|
417
|
+
}
|
|
418
|
+
.task-quiz-popup .quiz-popup .popup-content .reward-show-box .reward-result .reward-result-show {
|
|
419
|
+
margin-left: 1.04167vmin;
|
|
420
|
+
color: #ff5429;
|
|
421
|
+
font-size: 1.5625vmin;
|
|
422
|
+
display: inline-flex;
|
|
423
|
+
align-items: center;
|
|
424
|
+
}
|
|
425
|
+
.task-quiz-popup .quiz-popup .popup-content .reward-show-box .reward-result .reward-result-show .reward-img {
|
|
426
|
+
width: 1.5625vmin;
|
|
427
|
+
height: 1.5625vmin;
|
|
428
|
+
padding: 0.26042vmin 0;
|
|
429
|
+
vertical-align: top;
|
|
430
|
+
}
|
|
431
|
+
.task-quiz-popup .quiz-popup .popup-content .analysis-tip {
|
|
432
|
+
font-size: 2.08333vmin;
|
|
433
|
+
color: #333333;
|
|
434
|
+
font-family: "PingFang SC";
|
|
435
|
+
font-style: normal;
|
|
436
|
+
font-weight: 500;
|
|
437
|
+
line-height: 3.125vmin;
|
|
438
|
+
margin-bottom: 2.08333vmin;
|
|
439
|
+
}
|
|
440
|
+
.task-quiz-popup .quiz-popup .content-footer {
|
|
441
|
+
width: 100%;
|
|
442
|
+
font-size: 2.08333vmin;
|
|
443
|
+
font-weight: 400;
|
|
444
|
+
color: #999;
|
|
445
|
+
line-height: 2.60417vmin;
|
|
446
|
+
display: flex;
|
|
447
|
+
justify-content: center;
|
|
448
|
+
align-items: center;
|
|
449
|
+
padding: 0 2.08333vmin;
|
|
450
|
+
box-sizing: border-box;
|
|
451
|
+
}
|
|
452
|
+
.task-quiz-popup .quiz-popup .content-footer view {
|
|
453
|
+
flex: 1;
|
|
454
|
+
height: 5.20833vmin;
|
|
455
|
+
font-weight: 500;
|
|
456
|
+
line-height: 5.20833vmin;
|
|
457
|
+
font-size: 1.82292vmin;
|
|
458
|
+
text-align: center;
|
|
459
|
+
border-radius: 2.60417vmin;
|
|
460
|
+
box-sizing: border-box;
|
|
461
|
+
}
|
|
462
|
+
.task-quiz-popup .quiz-popup .content-footer .last-step {
|
|
463
|
+
margin-right: 1.95312vmin;
|
|
464
|
+
}
|
|
465
|
+
.task-quiz-popup .quiz-popup .content-footer .last-step,
|
|
466
|
+
.task-quiz-popup .quiz-popup .content-footer .next-step {
|
|
467
|
+
color: #1472ff;
|
|
468
|
+
border: 0.13021vmin solid #1472ff;
|
|
469
|
+
}
|
|
470
|
+
.task-quiz-popup .quiz-popup .content-footer .submit-step {
|
|
471
|
+
color: #fff;
|
|
472
|
+
background: #1472ff;
|
|
473
|
+
}
|
|
474
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { scatterRequest } from '../../common/utils/tool';
|
|
2
|
+
Component({
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* 组件的属性列表
|
|
6
|
+
*/
|
|
7
|
+
properties: {
|
|
8
|
+
showPopup:{
|
|
9
|
+
type: Boolean,
|
|
10
|
+
value: false
|
|
11
|
+
},
|
|
12
|
+
// 任务列表中进行中的答题任务
|
|
13
|
+
quiz_task_start_list: {
|
|
14
|
+
type: Object,
|
|
15
|
+
value: {}
|
|
16
|
+
},
|
|
17
|
+
// 直播间人次
|
|
18
|
+
viewCount: {
|
|
19
|
+
type: Number,
|
|
20
|
+
value: 0
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* 组件的初始数据
|
|
26
|
+
*/
|
|
27
|
+
data: {
|
|
28
|
+
btnLock: false
|
|
29
|
+
},
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* 组件的方法列表
|
|
33
|
+
*/
|
|
34
|
+
methods: {
|
|
35
|
+
closePop(){
|
|
36
|
+
this.triggerEvent("closePop")
|
|
37
|
+
this.setData({ btnLock: false })
|
|
38
|
+
},
|
|
39
|
+
quizHandle() {
|
|
40
|
+
if (this.data.btnLock) return;
|
|
41
|
+
this.setData({ btnLock: true })
|
|
42
|
+
scatterRequest(
|
|
43
|
+
// 随机条件
|
|
44
|
+
() => {
|
|
45
|
+
let delay = 0;
|
|
46
|
+
if (this.data.viewCount > 10000) {
|
|
47
|
+
// pv: 10000,则0-3秒随机打散
|
|
48
|
+
const randomDelay = Math.random();
|
|
49
|
+
delay = Math.ceil(randomDelay * 3000); // 转换为毫秒
|
|
50
|
+
}
|
|
51
|
+
return delay;
|
|
52
|
+
},
|
|
53
|
+
// 打散配置
|
|
54
|
+
{
|
|
55
|
+
defaultDelay: 0, // 默认打散时间
|
|
56
|
+
useScatter: true, // * 是否触发打散
|
|
57
|
+
},
|
|
58
|
+
async () => {
|
|
59
|
+
if (this.data.quiz_task_start_list.length === 1) {
|
|
60
|
+
// 如果只有一个拉起答题
|
|
61
|
+
this.triggerEvent("openRelatedPop",
|
|
62
|
+
{
|
|
63
|
+
quiz_task_item: this.data.quiz_task_start_list[0],
|
|
64
|
+
show_quiz_popup: true,
|
|
65
|
+
}
|
|
66
|
+
)
|
|
67
|
+
} else if (this.data.quiz_task_start_list.length > 1) {
|
|
68
|
+
this.triggerEvent("openRelatedPop",
|
|
69
|
+
{
|
|
70
|
+
show_task_popup: true,
|
|
71
|
+
}
|
|
72
|
+
)
|
|
73
|
+
}
|
|
74
|
+
this.closePop();
|
|
75
|
+
}
|
|
76
|
+
);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
})
|