xiaoe_mp_npm 1.0.21 → 1.0.22-test02

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