xiaoe_mp_npm 1.0.21 → 1.0.22-store2

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 (165) 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/RewardList/index.js +23 -21
  15. package/miniprogram_dist/Task/TaskPopup/component/RewardList/index.wxml +1 -0
  16. package/miniprogram_dist/Task/TaskPopup/component/TaskItem/index.js +264 -169
  17. package/miniprogram_dist/Task/TaskPopup/component/TaskItem/index.scss +26 -0
  18. package/miniprogram_dist/Task/TaskPopup/component/TaskItem/index.wxml +32 -13
  19. package/miniprogram_dist/Task/TaskPopup/component/TaskItem/index.wxss +96 -0
  20. package/miniprogram_dist/Task/TaskPopup/component/TaskList/index.js +8 -0
  21. package/miniprogram_dist/Task/TaskPopup/component/TaskList/index.wxml +1 -0
  22. package/miniprogram_dist/Task/TaskPopup/component/TaskType/index.js +4 -0
  23. package/miniprogram_dist/Task/TaskPopup/component/TaskType/index.wxml +1 -0
  24. package/miniprogram_dist/Task/TaskPopup/index.js +76 -70
  25. package/miniprogram_dist/Task/TaskPopup/index.json +2 -2
  26. package/miniprogram_dist/Task/TaskPopup/index.wxml +2 -0
  27. package/miniprogram_dist/Task/TaskQuizPopup/components/quizContent/index.js +132 -0
  28. package/miniprogram_dist/Task/TaskQuizPopup/components/quizContent/index.json +6 -0
  29. package/miniprogram_dist/Task/TaskQuizPopup/components/quizContent/index.scss +192 -0
  30. package/miniprogram_dist/Task/TaskQuizPopup/components/quizContent/index.wxml +65 -0
  31. package/miniprogram_dist/Task/TaskQuizPopup/components/quizContent/index.wxs +79 -0
  32. package/miniprogram_dist/Task/TaskQuizPopup/components/quizContent/index.wxss +521 -0
  33. package/miniprogram_dist/Task/TaskQuizPopup/components/quizRichText/index.js +40 -0
  34. package/miniprogram_dist/Task/TaskQuizPopup/components/quizRichText/index.json +6 -0
  35. package/miniprogram_dist/Task/TaskQuizPopup/components/quizRichText/index.scss +7 -0
  36. package/miniprogram_dist/Task/TaskQuizPopup/components/quizRichText/index.wxml +2 -0
  37. package/miniprogram_dist/Task/TaskQuizPopup/components/quizRichText/index.wxss +298 -0
  38. package/miniprogram_dist/Task/TaskQuizPopup/components/wxParse/base.wxml +50 -0
  39. package/miniprogram_dist/Task/TaskQuizPopup/components/wxParse/html2json.js +623 -0
  40. package/miniprogram_dist/Task/TaskQuizPopup/components/wxParse/htmlparser.js +183 -0
  41. package/miniprogram_dist/Task/TaskQuizPopup/components/wxParse/iframeParse.js +216 -0
  42. package/miniprogram_dist/Task/TaskQuizPopup/components/wxParse/loop.wxml +3563 -0
  43. package/miniprogram_dist/Task/TaskQuizPopup/components/wxParse/showdown.js +2364 -0
  44. package/miniprogram_dist/Task/TaskQuizPopup/components/wxParse/wxDiscode.js +209 -0
  45. package/miniprogram_dist/Task/TaskQuizPopup/components/wxParse/wxParse.js +269 -0
  46. package/miniprogram_dist/Task/TaskQuizPopup/components/wxParse/wxParse.wxml +1276 -0
  47. package/miniprogram_dist/Task/TaskQuizPopup/components/wxParse/wxParse.wxss +316 -0
  48. package/miniprogram_dist/Task/TaskQuizPopup/index.js +225 -0
  49. package/miniprogram_dist/Task/TaskQuizPopup/index.json +8 -0
  50. package/miniprogram_dist/Task/TaskQuizPopup/index.scss +159 -0
  51. package/miniprogram_dist/Task/TaskQuizPopup/index.wxml +97 -0
  52. package/miniprogram_dist/Task/TaskQuizPopup/index.wxss +478 -0
  53. package/miniprogram_dist/Task/taskQuizRemindPopup/index.js +74 -0
  54. package/miniprogram_dist/Task/taskQuizRemindPopup/index.json +6 -0
  55. package/miniprogram_dist/Task/taskQuizRemindPopup/index.scss +108 -0
  56. package/miniprogram_dist/Task/taskQuizRemindPopup/index.wxml +27 -0
  57. package/miniprogram_dist/Task/taskQuizRemindPopup/index.wxss +286 -0
  58. package/miniprogram_dist/common/utils/tool.js +54 -48
  59. package/package.json +1 -1
  60. package/src/AliveInvite/LiveRoomVertical/index.wxss +252 -252
  61. package/src/CollectionAddress/index.wxss +5 -5
  62. package/src/ConfirmOrder/components/AddressEdit/index.wxss +120 -120
  63. package/src/ConfirmOrder/components/AddressManage/index.wxss +98 -98
  64. package/src/ConfirmOrder/components/AddressSelect/index.wxss +67 -67
  65. package/src/ConfirmOrder/components/ChoosePicker/index.wxss +18 -18
  66. package/src/ConfirmOrder/components/GoodsInfo/components/GoodsCommerce/components/entityGiftList/index.wxss +45 -45
  67. package/src/ConfirmOrder/components/GoodsInfo/components/GoodsCommerce/components/entityItem/index.wxss +100 -100
  68. package/src/ConfirmOrder/components/GoodsInfo/components/GoodsCommerce/index.wxss +55 -55
  69. package/src/ConfirmOrder/components/GoodsInfo/components/ImageData/index.wxss +13 -13
  70. package/src/ConfirmOrder/components/Header/index.wxss +26 -26
  71. package/src/ConfirmOrder/components/IntegralSelect/componenets/integralTips/index.wxss +85 -85
  72. package/src/ConfirmOrder/components/Invoice/components/InvoiceSelect/index.wxss +155 -155
  73. package/src/ConfirmOrder/components/Invoice/components/InvoiceTip/index.wxss +51 -51
  74. package/src/ConfirmOrder/components/ModeSelect/index.wxss +44 -44
  75. package/src/ConfirmOrder/components/PickupSelect/index.wxss +22 -22
  76. package/src/ConfirmOrder/components/SelectSite/index.wxss +82 -82
  77. package/src/ConfirmOrder/components/Shipper/index.wxss +76 -76
  78. package/src/ConfirmOrder/components/ShipperEdit/index.wxss +78 -78
  79. package/src/ConfirmOrder/components/WechatAddress/index.wxss +22 -22
  80. package/src/ConfirmOrder/index.wxss +5 -5
  81. package/src/CouponList/couponMsg/index.wxss +3 -3
  82. package/src/CustomPopup/index.wxss +22 -22
  83. package/src/GoodsItem/index.json +6 -6
  84. package/src/GoodsItem/index.wxs +18 -18
  85. package/src/LiveGoodsList/Header/index.js +54 -54
  86. package/src/LiveGoodsList/Header/index.json +6 -6
  87. package/src/LiveGoodsList/Header/index.less +45 -45
  88. package/src/LiveGoodsList/Header/index.scss +105 -105
  89. package/src/LiveGoodsList/Header/index.wxml +32 -32
  90. package/src/LiveGoodsList/README.md +9 -9
  91. package/src/LiveGoodsList/index.json +8 -8
  92. package/src/LiveGoodsList/index.less +53 -53
  93. package/src/LiveGoodsList/index.scss +92 -92
  94. package/src/LiveGoodsList/index.wxss +218 -218
  95. package/src/PayComplete/Components/CouponItem/index.wxss +122 -122
  96. package/src/PayComplete/Components/Header/index.wxss +27 -27
  97. package/src/PayComplete/Components/LeadGroup/index.wxss +33 -33
  98. package/src/PayComplete/Components/PayGifts/index.wxss +157 -157
  99. package/src/PayComplete/Components/PayState/earnIntegral/index.wxss +23 -23
  100. package/src/PayComplete/Components/PayState/index.wxss +20 -20
  101. package/src/PayComplete/index.wxss +27 -27
  102. package/src/PayModule/wechatLoading/index.wxss +57 -57
  103. package/src/Recommend/index.wxss +110 -110
  104. package/src/Sku/Header/index.wxss +27 -27
  105. package/src/Sku/goods-info/index.wxss +52 -52
  106. package/src/Sku/index/index.wxss +52 -52
  107. package/src/Sku/row-item/index.wxss +50 -50
  108. package/src/Sku/step/index.wxss +11 -11
  109. package/src/Task/TaskBubble/index.js +2 -1
  110. package/src/Task/TaskBubble/index.wxss +289 -289
  111. package/src/Task/TaskIcon/index.wxss +130 -130
  112. package/src/Task/TaskPopup/component/RewardList/index.js +23 -21
  113. package/src/Task/TaskPopup/component/RewardList/index.wxml +1 -0
  114. package/src/Task/TaskPopup/component/RewardList/index.wxss +18 -18
  115. package/src/Task/TaskPopup/component/TaskItem/index.js +264 -169
  116. package/src/Task/TaskPopup/component/TaskItem/index.scss +26 -0
  117. package/src/Task/TaskPopup/component/TaskItem/index.wxml +32 -13
  118. package/src/Task/TaskPopup/component/TaskItem/index.wxss +1 -394
  119. package/src/Task/TaskPopup/component/TaskList/index.js +8 -0
  120. package/src/Task/TaskPopup/component/TaskList/index.wxml +1 -0
  121. package/src/Task/TaskPopup/component/TaskList/index.wxss +118 -118
  122. package/src/Task/TaskPopup/component/TaskType/index.js +4 -0
  123. package/src/Task/TaskPopup/component/TaskType/index.wxml +1 -0
  124. package/src/Task/TaskPopup/component/TaskType/index.wxss +110 -110
  125. package/src/Task/TaskPopup/index.js +76 -70
  126. package/src/Task/TaskPopup/index.json +2 -2
  127. package/src/Task/TaskPopup/index.wxml +2 -0
  128. package/src/Task/TaskPopup/index.wxss +406 -406
  129. package/src/Task/TaskQuizPopup/components/quizContent/index.js +132 -0
  130. package/src/Task/TaskQuizPopup/components/quizContent/index.json +6 -0
  131. package/src/Task/TaskQuizPopup/components/quizContent/index.scss +192 -0
  132. package/src/Task/TaskQuizPopup/components/quizContent/index.wxml +65 -0
  133. package/src/Task/TaskQuizPopup/components/quizContent/index.wxs +79 -0
  134. package/src/Task/TaskQuizPopup/components/quizContent/index.wxss +1 -0
  135. package/src/Task/TaskQuizPopup/components/quizRichText/index.js +40 -0
  136. package/src/Task/TaskQuizPopup/components/quizRichText/index.json +6 -0
  137. package/src/Task/TaskQuizPopup/components/quizRichText/index.scss +7 -0
  138. package/src/Task/TaskQuizPopup/components/quizRichText/index.wxml +2 -0
  139. package/src/Task/TaskQuizPopup/components/quizRichText/index.wxss +1 -0
  140. package/src/Task/TaskQuizPopup/components/wxParse/base.wxml +50 -0
  141. package/src/Task/TaskQuizPopup/components/wxParse/html2json.js +623 -0
  142. package/src/Task/TaskQuizPopup/components/wxParse/htmlparser.js +183 -0
  143. package/src/Task/TaskQuizPopup/components/wxParse/iframeParse.js +216 -0
  144. package/src/Task/TaskQuizPopup/components/wxParse/loop.wxml +3563 -0
  145. package/src/Task/TaskQuizPopup/components/wxParse/showdown.js +2364 -0
  146. package/src/Task/TaskQuizPopup/components/wxParse/wxDiscode.js +209 -0
  147. package/src/Task/TaskQuizPopup/components/wxParse/wxParse.js +269 -0
  148. package/src/Task/TaskQuizPopup/components/wxParse/wxParse.wxml +1276 -0
  149. package/src/Task/TaskQuizPopup/components/wxParse/wxParse.wxss +283 -0
  150. package/src/Task/TaskQuizPopup/index.js +225 -0
  151. package/src/Task/TaskQuizPopup/index.json +8 -0
  152. package/src/Task/TaskQuizPopup/index.scss +159 -0
  153. package/src/Task/TaskQuizPopup/index.wxml +97 -0
  154. package/src/Task/TaskQuizPopup/index.wxss +1 -0
  155. package/src/Task/taskQuizRemindPopup/index.js +74 -0
  156. package/src/Task/taskQuizRemindPopup/index.json +6 -0
  157. package/src/Task/taskQuizRemindPopup/index.scss +108 -0
  158. package/src/Task/taskQuizRemindPopup/index.wxml +27 -0
  159. package/src/Task/taskQuizRemindPopup/index.wxss +1 -0
  160. package/src/Task/taskReceivePopup/customPrizes/index.wxss +220 -220
  161. package/src/Task/taskReceivePopup/index.wxss +1 -1
  162. package/src/Task/taskReceivePopup/integral/index.wxss +94 -94
  163. package/src/common/css/theme.wxss +16 -16
  164. package/src/common/utils/tool.js +54 -48
  165. package/src/miniprogram_npm/miniprogram-computed/index.js +1 -0
@@ -1,118 +1,118 @@
1
- .task-list {
2
- height: 100%;
3
- min-height: 40vmin;
4
- box-sizing: border-box;
5
- }
6
- .task-list .error-box {
7
- background: #fff;
8
- padding: 0.26667vmin 0.26667vmin 0 0.26667vmin;
9
- position: relative;
10
- margin-bottom: 3.2vmin;
11
- border-radius: 2.13333vmin;
12
- overflow: hidden;
13
- }
14
- .task-list .nothing {
15
- display: flex;
16
- align-items: center;
17
- margin-top: 21.33333vmin;
18
- flex-direction: column;
19
- }
20
- .task-list .nothing image {
21
- width: 23.46667vmin;
22
- height: 23.46667vmin;
23
- }
24
- .task-list .nothing .text {
25
- font-size: 3.73333vmin;
26
- color: #999999;
27
- margin-top: 4.26667vmin;
28
- }
29
- @media screen and (min-width: 768px) and (orientation: portrait) {
30
- .task-list {
31
- height: 100%;
32
- min-height: 40vmin;
33
- box-sizing: border-box;
34
- }
35
- .task-list .error-box {
36
- background: #fff;
37
- padding: 0.13021vmin 0.13021vmin 0 0.13021vmin;
38
- position: relative;
39
- margin-bottom: 1.5625vmin;
40
- border-radius: 1.04167vmin;
41
- overflow: hidden;
42
- }
43
- .task-list .nothing {
44
- display: flex;
45
- align-items: center;
46
- margin-top: 10.41667vmin;
47
- flex-direction: column;
48
- }
49
- .task-list .nothing image {
50
- width: 11.45833vmin;
51
- height: 11.45833vmin;
52
- }
53
- .task-list .nothing .text {
54
- font-size: 1.82292vmin;
55
- color: #999999;
56
- margin-top: 2.08333vmin;
57
- }
58
- }
59
- @media screen and (min-height: 630px) and (orientation: landscape) {
60
- .task-list {
61
- height: 100%;
62
- min-height: 40vmin;
63
- box-sizing: border-box;
64
- }
65
- .task-list .error-box {
66
- background: #fff;
67
- padding: 0.15873vmin 0.15873vmin 0 0.15873vmin;
68
- position: relative;
69
- margin-bottom: 1.90476vmin;
70
- border-radius: 1.26984vmin;
71
- overflow: hidden;
72
- }
73
- .task-list .nothing {
74
- display: flex;
75
- align-items: center;
76
- margin-top: 12.69841vmin;
77
- flex-direction: column;
78
- }
79
- .task-list .nothing image {
80
- width: 13.96825vmin;
81
- height: 13.96825vmin;
82
- }
83
- .task-list .nothing .text {
84
- font-size: 2.22222vmin;
85
- color: #999999;
86
- margin-top: 2.53968vmin;
87
- }
88
- }
89
- @media screen and (min-height: 768px) and (orientation: landscape) {
90
- .task-list {
91
- height: 100%;
92
- min-height: 40vmin;
93
- box-sizing: border-box;
94
- }
95
- .task-list .error-box {
96
- background: #fff;
97
- padding: 0.13021vmin 0.13021vmin 0 0.13021vmin;
98
- position: relative;
99
- margin-bottom: 1.5625vmin;
100
- border-radius: 1.04167vmin;
101
- overflow: hidden;
102
- }
103
- .task-list .nothing {
104
- display: flex;
105
- align-items: center;
106
- margin-top: 10.41667vmin;
107
- flex-direction: column;
108
- }
109
- .task-list .nothing image {
110
- width: 11.45833vmin;
111
- height: 11.45833vmin;
112
- }
113
- .task-list .nothing .text {
114
- font-size: 1.82292vmin;
115
- color: #999999;
116
- margin-top: 2.08333vmin;
117
- }
118
- }
1
+ .task-list {
2
+ height: 100%;
3
+ min-height: 40vmin;
4
+ box-sizing: border-box;
5
+ }
6
+ .task-list .error-box {
7
+ background: #fff;
8
+ padding: 0.26667vmin 0.26667vmin 0 0.26667vmin;
9
+ position: relative;
10
+ margin-bottom: 3.2vmin;
11
+ border-radius: 2.13333vmin;
12
+ overflow: hidden;
13
+ }
14
+ .task-list .nothing {
15
+ display: flex;
16
+ align-items: center;
17
+ margin-top: 21.33333vmin;
18
+ flex-direction: column;
19
+ }
20
+ .task-list .nothing image {
21
+ width: 23.46667vmin;
22
+ height: 23.46667vmin;
23
+ }
24
+ .task-list .nothing .text {
25
+ font-size: 3.73333vmin;
26
+ color: #999999;
27
+ margin-top: 4.26667vmin;
28
+ }
29
+ @media screen and (min-width: 768px) and (orientation: portrait) {
30
+ .task-list {
31
+ height: 100%;
32
+ min-height: 40vmin;
33
+ box-sizing: border-box;
34
+ }
35
+ .task-list .error-box {
36
+ background: #fff;
37
+ padding: 0.13021vmin 0.13021vmin 0 0.13021vmin;
38
+ position: relative;
39
+ margin-bottom: 1.5625vmin;
40
+ border-radius: 1.04167vmin;
41
+ overflow: hidden;
42
+ }
43
+ .task-list .nothing {
44
+ display: flex;
45
+ align-items: center;
46
+ margin-top: 10.41667vmin;
47
+ flex-direction: column;
48
+ }
49
+ .task-list .nothing image {
50
+ width: 11.45833vmin;
51
+ height: 11.45833vmin;
52
+ }
53
+ .task-list .nothing .text {
54
+ font-size: 1.82292vmin;
55
+ color: #999999;
56
+ margin-top: 2.08333vmin;
57
+ }
58
+ }
59
+ @media screen and (min-height: 630px) and (orientation: landscape) {
60
+ .task-list {
61
+ height: 100%;
62
+ min-height: 40vmin;
63
+ box-sizing: border-box;
64
+ }
65
+ .task-list .error-box {
66
+ background: #fff;
67
+ padding: 0.15873vmin 0.15873vmin 0 0.15873vmin;
68
+ position: relative;
69
+ margin-bottom: 1.90476vmin;
70
+ border-radius: 1.26984vmin;
71
+ overflow: hidden;
72
+ }
73
+ .task-list .nothing {
74
+ display: flex;
75
+ align-items: center;
76
+ margin-top: 12.69841vmin;
77
+ flex-direction: column;
78
+ }
79
+ .task-list .nothing image {
80
+ width: 13.96825vmin;
81
+ height: 13.96825vmin;
82
+ }
83
+ .task-list .nothing .text {
84
+ font-size: 2.22222vmin;
85
+ color: #999999;
86
+ margin-top: 2.53968vmin;
87
+ }
88
+ }
89
+ @media screen and (min-height: 768px) and (orientation: landscape) {
90
+ .task-list {
91
+ height: 100%;
92
+ min-height: 40vmin;
93
+ box-sizing: border-box;
94
+ }
95
+ .task-list .error-box {
96
+ background: #fff;
97
+ padding: 0.13021vmin 0.13021vmin 0 0.13021vmin;
98
+ position: relative;
99
+ margin-bottom: 1.5625vmin;
100
+ border-radius: 1.04167vmin;
101
+ overflow: hidden;
102
+ }
103
+ .task-list .nothing {
104
+ display: flex;
105
+ align-items: center;
106
+ margin-top: 10.41667vmin;
107
+ flex-direction: column;
108
+ }
109
+ .task-list .nothing image {
110
+ width: 11.45833vmin;
111
+ height: 11.45833vmin;
112
+ }
113
+ .task-list .nothing .text {
114
+ font-size: 1.82292vmin;
115
+ color: #999999;
116
+ margin-top: 2.08333vmin;
117
+ }
118
+ }
@@ -20,6 +20,10 @@ Component({
20
20
  value:()=>{
21
21
  return []
22
22
  }
23
+ },
24
+ teamId:{
25
+ type: String,
26
+ value: '',
23
27
  }
24
28
  },
25
29
  data: {
@@ -37,6 +37,7 @@
37
37
  taskItem="{{item}}"
38
38
  bind:btnClick="btnClick"
39
39
  viewingInProgress="{{viewingInProgress}}"
40
+ teamId="{{teamId}}"
40
41
  />
41
42
  </van-collapse-item>
42
43
  </van-collapse>
@@ -1,110 +1,110 @@
1
- .collapse {
2
- margin-bottom: 3.2vmin;
3
- border-radius: 2.13333vmin;
4
- overflow: hidden;
5
- }
6
- .collapse .content {
7
- padding: 0;
8
- }
9
- .collapse .task-item {
10
- display: flex;
11
- align-items: center;
12
- }
13
- .collapse .task-item .type-img {
14
- width: 10.66667vmin;
15
- height: 10.66667vmin;
16
- }
17
- .collapse .task-item .type-title {
18
- font-size: 3.73333vmin;
19
- font-weight: 500;
20
- margin-left: 2.13333vmin;
21
- color: #333333;
22
- }
23
- .collapse .icon {
24
- display: flex;
25
- align-items: center;
26
- }
27
- @media screen and (min-width: 768px) and (orientation: portrait) {
28
- .collapse {
29
- margin-bottom: 1.5625vmin;
30
- border-radius: 1.04167vmin;
31
- overflow: hidden;
32
- }
33
- .collapse .content {
34
- padding: 0;
35
- }
36
- .collapse .task-item {
37
- display: flex;
38
- align-items: center;
39
- }
40
- .collapse .task-item .type-img {
41
- width: 5.20833vmin;
42
- height: 5.20833vmin;
43
- }
44
- .collapse .task-item .type-title {
45
- font-size: 1.82292vmin;
46
- font-weight: 500;
47
- margin-left: 1.04167vmin;
48
- color: #333333;
49
- }
50
- .collapse .icon {
51
- display: flex;
52
- align-items: center;
53
- }
54
- }
55
- @media screen and (min-height: 630px) and (orientation: landscape) {
56
- .collapse {
57
- margin-bottom: 1.90476vmin;
58
- border-radius: 1.26984vmin;
59
- overflow: hidden;
60
- }
61
- .collapse .content {
62
- padding: 0;
63
- }
64
- .collapse .task-item {
65
- display: flex;
66
- align-items: center;
67
- }
68
- .collapse .task-item .type-img {
69
- width: 6.34921vmin;
70
- height: 6.34921vmin;
71
- }
72
- .collapse .task-item .type-title {
73
- font-size: 2.22222vmin;
74
- font-weight: 500;
75
- margin-left: 1.26984vmin;
76
- color: #333333;
77
- }
78
- .collapse .icon {
79
- display: flex;
80
- align-items: center;
81
- }
82
- }
83
- @media screen and (min-height: 768px) and (orientation: landscape) {
84
- .collapse {
85
- margin-bottom: 1.5625vmin;
86
- border-radius: 1.04167vmin;
87
- overflow: hidden;
88
- }
89
- .collapse .content {
90
- padding: 0;
91
- }
92
- .collapse .task-item {
93
- display: flex;
94
- align-items: center;
95
- }
96
- .collapse .task-item .type-img {
97
- width: 5.20833vmin;
98
- height: 5.20833vmin;
99
- }
100
- .collapse .task-item .type-title {
101
- font-size: 1.82292vmin;
102
- font-weight: 500;
103
- margin-left: 1.04167vmin;
104
- color: #333333;
105
- }
106
- .collapse .icon {
107
- display: flex;
108
- align-items: center;
109
- }
110
- }
1
+ .collapse {
2
+ margin-bottom: 3.2vmin;
3
+ border-radius: 2.13333vmin;
4
+ overflow: hidden;
5
+ }
6
+ .collapse .content {
7
+ padding: 0;
8
+ }
9
+ .collapse .task-item {
10
+ display: flex;
11
+ align-items: center;
12
+ }
13
+ .collapse .task-item .type-img {
14
+ width: 10.66667vmin;
15
+ height: 10.66667vmin;
16
+ }
17
+ .collapse .task-item .type-title {
18
+ font-size: 3.73333vmin;
19
+ font-weight: 500;
20
+ margin-left: 2.13333vmin;
21
+ color: #333333;
22
+ }
23
+ .collapse .icon {
24
+ display: flex;
25
+ align-items: center;
26
+ }
27
+ @media screen and (min-width: 768px) and (orientation: portrait) {
28
+ .collapse {
29
+ margin-bottom: 1.5625vmin;
30
+ border-radius: 1.04167vmin;
31
+ overflow: hidden;
32
+ }
33
+ .collapse .content {
34
+ padding: 0;
35
+ }
36
+ .collapse .task-item {
37
+ display: flex;
38
+ align-items: center;
39
+ }
40
+ .collapse .task-item .type-img {
41
+ width: 5.20833vmin;
42
+ height: 5.20833vmin;
43
+ }
44
+ .collapse .task-item .type-title {
45
+ font-size: 1.82292vmin;
46
+ font-weight: 500;
47
+ margin-left: 1.04167vmin;
48
+ color: #333333;
49
+ }
50
+ .collapse .icon {
51
+ display: flex;
52
+ align-items: center;
53
+ }
54
+ }
55
+ @media screen and (min-height: 630px) and (orientation: landscape) {
56
+ .collapse {
57
+ margin-bottom: 1.90476vmin;
58
+ border-radius: 1.26984vmin;
59
+ overflow: hidden;
60
+ }
61
+ .collapse .content {
62
+ padding: 0;
63
+ }
64
+ .collapse .task-item {
65
+ display: flex;
66
+ align-items: center;
67
+ }
68
+ .collapse .task-item .type-img {
69
+ width: 6.34921vmin;
70
+ height: 6.34921vmin;
71
+ }
72
+ .collapse .task-item .type-title {
73
+ font-size: 2.22222vmin;
74
+ font-weight: 500;
75
+ margin-left: 1.26984vmin;
76
+ color: #333333;
77
+ }
78
+ .collapse .icon {
79
+ display: flex;
80
+ align-items: center;
81
+ }
82
+ }
83
+ @media screen and (min-height: 768px) and (orientation: landscape) {
84
+ .collapse {
85
+ margin-bottom: 1.5625vmin;
86
+ border-radius: 1.04167vmin;
87
+ overflow: hidden;
88
+ }
89
+ .collapse .content {
90
+ padding: 0;
91
+ }
92
+ .collapse .task-item {
93
+ display: flex;
94
+ align-items: center;
95
+ }
96
+ .collapse .task-item .type-img {
97
+ width: 5.20833vmin;
98
+ height: 5.20833vmin;
99
+ }
100
+ .collapse .task-item .type-title {
101
+ font-size: 1.82292vmin;
102
+ font-weight: 500;
103
+ margin-left: 1.04167vmin;
104
+ color: #333333;
105
+ }
106
+ .collapse .icon {
107
+ display: flex;
108
+ align-items: center;
109
+ }
110
+ }
@@ -1,132 +1,138 @@
1
1
  const computedBehavior = require('miniprogram-computed').behavior
2
- import { rpxToVmin } from '../../common/utils/index.js'
2
+ import { rpxToVmin } from '../../npm-compoent/miniprogram_npm/xiaoe_mp_npm/common/utils/index.js'
3
3
  Component({
4
4
  options: {
5
5
  styleIsolation: 'shared',
6
6
  },
7
7
  behaviors: [computedBehavior],
8
8
  properties: {
9
- showPopup:{
9
+ showPopup: {
10
10
  type: Boolean,
11
- value: false
11
+ value: false,
12
12
  },
13
- taskList:{
14
- type:Array,
15
- value:()=>{
13
+ taskList: {
14
+ type: Array,
15
+ value: () => {
16
16
  return []
17
- }
17
+ },
18
18
  },
19
- errorList:{
20
- type:Array,
21
- value:()=>{
19
+ errorList: {
20
+ type: Array,
21
+ value: () => {
22
22
  return []
23
- }
23
+ },
24
24
  },
25
- rewardList:{
26
- type:Array,
27
- value:()=>{
25
+ rewardList: {
26
+ type: Array,
27
+ value: () => {
28
28
  return []
29
- }
29
+ },
30
30
  },
31
- hasRewardRecord:{
32
- type:Boolean,
33
- value: false
31
+ hasRewardRecord: {
32
+ type: Boolean,
33
+ value: false,
34
34
  },
35
35
  popPosition: {
36
36
  type: String,
37
- value: 'bottom'
37
+ value: 'bottom',
38
38
  },
39
- isShowClose:{
40
- type:Boolean,
41
- value: true
39
+ isShowClose: {
40
+ type: Boolean,
41
+ value: true,
42
42
  },
43
- rewardListRefreshStatus:{
44
- type:Boolean,
45
- value: false
43
+ rewardListRefreshStatus: {
44
+ type: Boolean,
45
+ value: false,
46
46
  },
47
- taskListRefreshStatus:{
48
- type:Boolean,
49
- value: false
47
+ taskListRefreshStatus: {
48
+ type: Boolean,
49
+ value: false,
50
50
  },
51
51
  orientation: {
52
52
  type: String,
53
- value: 'hor'
53
+ value: 'hor',
54
54
  },
55
55
  isFull: {
56
- type:Boolean,
57
- value: false
56
+ type: Boolean,
57
+ value: false,
58
58
  },
59
- viewingInProgress:{
60
- type:Array,
61
- value:()=>{
59
+ viewingInProgress: {
60
+ type: Array,
61
+ value: () => {
62
62
  return []
63
- }
63
+ },
64
+ },
65
+ teamId:{
66
+ type: String,
67
+ value: '',
64
68
  }
65
69
  },
66
70
  data: {
67
- isShowTaskList:true
71
+ isShowTaskList: true,
68
72
  },
69
73
  lifetimes: {
70
74
  // 生命周期函数,可以为函数,或一个在methods段中定义的方法名
71
- attached: function () {
72
-
73
- },
74
- moved: function () { },
75
- detached: function () { },
75
+ attached: function () {},
76
+ moved: function () {},
77
+ detached: function () {},
76
78
  },
77
79
  computed: {
78
80
  customStyle(properties) {
79
81
  const { popPosition, orientation } = properties
80
82
  const position = `position: ${orientation === 'ver' ? 'fixed' : 'absolute'}; left: 0; bottom: 0`
81
- return popPosition === "bottom" ? `${position}; width: ${orientation === 'ver' ? '100%' : ''}; height: calc(100% - ${rpxToVmin(422)});` : "height: 100%;width: 100vmin;"
82
- },
83
- popupContentBackground(data){
84
- if(data.isShowTaskList){
85
- return data.isFull ? 'background-image: url(https://commonresource-1252524126.cdn.xiaoeknow.com/image/ltzgkkz00m0m.png)' : 'background-image: url(https://commonresource-1252524126.cdn.xiaoeknow.com/image/ltqz384w02n9.png);'
86
- }else{
87
- return "background: #FFEFD7;"
83
+ return popPosition === 'bottom'
84
+ ? `${position}; width: ${orientation === 'ver' ? '100%' : ''}; height: calc(100% - ${rpxToVmin(422)});`
85
+ : 'height: 100%;width: 100vmin;'
86
+ },
87
+ popupContentBackground(data) {
88
+ if (data.isShowTaskList) {
89
+ return data.isFull
90
+ ? 'background-image: url(https://commonresource-1252524126.cdn.xiaoeknow.com/image/ltzgkkz00m0m.png)'
91
+ : 'background-image: url(https://commonresource-1252524126.cdn.xiaoeknow.com/image/ltqz384w02n9.png);'
92
+ } else {
93
+ return 'background: #FFEFD7;'
88
94
  }
89
- }
95
+ },
90
96
  },
91
97
  methods: {
92
- toReward(){
93
- if(!this.properties.hasRewardRecord){
98
+ toReward() {
99
+ if (!this.properties.hasRewardRecord) {
94
100
  wx.showToast({
95
- title: "还未完成任务,加油~",
96
- icon:"none"
101
+ title: '还未完成任务,加油~',
102
+ icon: 'none',
97
103
  })
98
104
  return
99
105
  }
100
- this.triggerEvent("toReward")
106
+ this.triggerEvent('toReward')
101
107
  this.setData({
102
- isShowTaskList: false
108
+ isShowTaskList: false,
103
109
  })
104
110
  },
105
- toBack(){
111
+ toBack() {
106
112
  this.setData({
107
- isShowTaskList: true
113
+ isShowTaskList: true,
108
114
  })
109
115
  },
110
- closePop(){
111
- this.triggerEvent("closePop")
116
+ closePop() {
117
+ this.triggerEvent('closePop')
112
118
  },
113
- btnClick(e){
114
- this.triggerEvent("btnClick",e.detail)
119
+ btnClick(e) {
120
+ this.triggerEvent('btnClick', e.detail)
115
121
  },
116
- onLoad(e){
117
- this.triggerEvent("onLoad",e)
122
+ onLoad(e) {
123
+ this.triggerEvent('onLoad', e)
124
+ },
125
+ getMoreList(e) {
126
+ this.triggerEvent('getMoreList', e)
118
127
  },
119
- getMoreList(e){
120
- this.triggerEvent("getMoreList",e)
121
- }
122
128
  },
123
129
  observers: {
124
- showPopup(newVal){
125
- if(newVal){
130
+ showPopup(newVal) {
131
+ if (newVal) {
126
132
  this.setData({
127
- isShowTaskList: true
133
+ isShowTaskList: true,
128
134
  })
129
135
  }
130
- }
136
+ },
131
137
  },
132
138
  })