xiaoe_mp_npm 1.1.21 → 1.1.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 (418) hide show
  1. package/.babelrc +10 -10
  2. package/.eslintrc.js +102 -102
  3. package/.gitlab-ci.yml +44 -44
  4. package/.prettierrc.js +34 -34
  5. package/.vscode/extensions.json +4 -4
  6. package/.vscode/settings.json +9 -9
  7. package/LICENSE +21 -21
  8. package/README.md +134 -134
  9. package/gulpfile.js +26 -26
  10. package/miniprogram_dist/AliveInvite/LiveRoomVertical/components/friends/friends.js +181 -181
  11. package/miniprogram_dist/AliveInvite/LiveRoomVertical/components/friends/friends.wxml +25 -25
  12. package/miniprogram_dist/AliveInvite/LiveRoomVertical/index.js +253 -253
  13. package/miniprogram_dist/AliveInvite/LiveRoomVertical/index.less +255 -255
  14. package/miniprogram_dist/AliveInvite/LiveRoomVertical/index.wxml +122 -122
  15. package/miniprogram_dist/CollectionAddress/index.js +288 -288
  16. package/miniprogram_dist/CollectionAddress/index.json +13 -13
  17. package/miniprogram_dist/CollectionAddress/index.less +4 -4
  18. package/miniprogram_dist/CollectionAddress/index.wxml +93 -93
  19. package/miniprogram_dist/ConfirmOrder/components/AddressEdit/index.json +10 -10
  20. package/miniprogram_dist/ConfirmOrder/components/AddressEdit/index.less +123 -123
  21. package/miniprogram_dist/ConfirmOrder/components/AddressEdit/index.wxml +51 -51
  22. package/miniprogram_dist/ConfirmOrder/components/AddressManage/index.js +168 -168
  23. package/miniprogram_dist/ConfirmOrder/components/AddressManage/index.json +7 -7
  24. package/miniprogram_dist/ConfirmOrder/components/AddressManage/index.less +95 -95
  25. package/miniprogram_dist/ConfirmOrder/components/AddressManage/index.wxml +36 -36
  26. package/miniprogram_dist/ConfirmOrder/components/AddressSelect/index.js +160 -160
  27. package/miniprogram_dist/ConfirmOrder/components/AddressSelect/index.json +4 -4
  28. package/miniprogram_dist/ConfirmOrder/components/AddressSelect/index.less +79 -79
  29. package/miniprogram_dist/ConfirmOrder/components/AddressSelect/index.wxml +33 -33
  30. package/miniprogram_dist/ConfirmOrder/components/ChoosePicker/index.js +115 -115
  31. package/miniprogram_dist/ConfirmOrder/components/ChoosePicker/index.json +5 -5
  32. package/miniprogram_dist/ConfirmOrder/components/ChoosePicker/index.less +20 -20
  33. package/miniprogram_dist/ConfirmOrder/components/ChoosePicker/index.wxml +9 -9
  34. package/miniprogram_dist/ConfirmOrder/components/ConfirmOrderContent/index.js +1819 -1819
  35. package/miniprogram_dist/ConfirmOrder/components/ConfirmOrderContent/index.json +27 -27
  36. package/miniprogram_dist/ConfirmOrder/components/ConfirmOrderContent/index.scss +44 -44
  37. package/miniprogram_dist/ConfirmOrder/components/ConfirmOrderContent/index.wxml +225 -225
  38. package/miniprogram_dist/ConfirmOrder/components/GoodsInfo/components/CopGoodsList/index.js +129 -129
  39. package/miniprogram_dist/ConfirmOrder/components/GoodsInfo/components/CopGoodsList/index.json +8 -8
  40. package/miniprogram_dist/ConfirmOrder/components/GoodsInfo/components/CopGoodsList/index.scss +58 -58
  41. package/miniprogram_dist/ConfirmOrder/components/GoodsInfo/components/CopGoodsList/index.wxml +25 -25
  42. package/miniprogram_dist/GoodsItem/index.js +180 -21
  43. package/miniprogram_dist/GoodsItem/index.scss +822 -627
  44. package/miniprogram_dist/GoodsItem/index.wxml +145 -108
  45. package/miniprogram_dist/GoodsItem/index.wxs +40 -40
  46. package/miniprogram_dist/GoodsItem/index.wxss +1149 -461
  47. package/miniprogram_dist/LiveGoodsList/Header/index.js +65 -65
  48. package/miniprogram_dist/LiveGoodsList/Header/index.json +6 -6
  49. package/miniprogram_dist/LiveGoodsList/Header/index.less +45 -45
  50. package/miniprogram_dist/LiveGoodsList/Header/index.scss +157 -137
  51. package/miniprogram_dist/LiveGoodsList/Header/index.wxml +39 -36
  52. package/miniprogram_dist/LiveGoodsList/Header/index.wxss +88 -12
  53. package/miniprogram_dist/LiveGoodsList/README.md +9 -9
  54. package/miniprogram_dist/LiveGoodsList/index.js +29 -10
  55. package/miniprogram_dist/LiveGoodsList/index.less +53 -53
  56. package/miniprogram_dist/LiveGoodsList/index.scss +173 -173
  57. package/miniprogram_dist/LiveGoodsList/index.wxml +9 -1
  58. package/miniprogram_dist/MatchList/index.js +445 -441
  59. package/miniprogram_dist/MatchList/index.json +5 -5
  60. package/miniprogram_dist/MatchList/index.scss +175 -175
  61. package/miniprogram_dist/MatchList/index.wxml +98 -97
  62. package/miniprogram_dist/MemberIntegralMultiplierBar/index.js +196 -196
  63. package/miniprogram_dist/MemberIntegralMultiplierBar/index.json +7 -7
  64. package/miniprogram_dist/MemberIntegralMultiplierBar/index.scss +67 -67
  65. package/miniprogram_dist/MemberIntegralMultiplierBar/index.wxml +8 -8
  66. package/miniprogram_dist/MemberIntegralMultiplierPopup/index.js +54 -54
  67. package/miniprogram_dist/MemberIntegralMultiplierPopup/index.json +7 -7
  68. package/miniprogram_dist/MemberIntegralMultiplierPopup/index.scss +86 -86
  69. package/miniprogram_dist/MemberIntegralMultiplierPopup/index.wxml +48 -48
  70. package/miniprogram_dist/MemberIntegralMultiplierPopup/popup-service.js +18 -18
  71. package/miniprogram_dist/MsgBubble/index.js +312 -0
  72. package/miniprogram_dist/MsgBubble/index.json +7 -0
  73. package/miniprogram_dist/MsgBubble/index.scss +81 -0
  74. package/miniprogram_dist/MsgBubble/index.wxml +19 -0
  75. package/miniprogram_dist/MsgBubble/index.wxss +202 -0
  76. package/miniprogram_dist/ShoppingCartBubble/index.js +336 -156
  77. package/miniprogram_dist/ShoppingCartBubble/index.scss +94 -55
  78. package/miniprogram_dist/ShoppingCartBubble/index.wxml +14 -11
  79. package/miniprogram_dist/ShoppingCartBubble/index.wxss +196 -40
  80. package/miniprogram_dist/Task/TaskBubble/index.json +3 -3
  81. package/miniprogram_dist/Task/TaskBubble/index.scss +125 -125
  82. package/miniprogram_dist/Task/TaskBubble/index.wxml +22 -22
  83. package/miniprogram_dist/Task/TaskIcon/index.js +29 -29
  84. package/miniprogram_dist/Task/TaskIcon/index.json +4 -4
  85. package/miniprogram_dist/Task/TaskIcon/index.scss +70 -70
  86. package/miniprogram_dist/Task/TaskIcon/index.wxml +5 -5
  87. package/miniprogram_dist/Task/TaskPopup/component/RewardList/index.js +52 -52
  88. package/miniprogram_dist/Task/TaskPopup/component/RewardList/index.json +6 -6
  89. package/miniprogram_dist/Task/TaskPopup/component/RewardList/index.scss +39 -39
  90. package/miniprogram_dist/Task/TaskPopup/component/RewardList/index.wxml +23 -23
  91. package/miniprogram_dist/Task/TaskPopup/component/TaskItem/index.js +578 -578
  92. package/miniprogram_dist/Task/TaskPopup/component/TaskItem/index.json +10 -10
  93. package/miniprogram_dist/Task/TaskPopup/component/TaskItem/index.scss +245 -245
  94. package/miniprogram_dist/Task/TaskPopup/component/TaskItem/index.wxml +145 -145
  95. package/miniprogram_dist/Task/TaskPopup/component/TaskItem/index.wxs +7 -7
  96. package/miniprogram_dist/Task/TaskPopup/component/TaskList/index.js +298 -298
  97. package/miniprogram_dist/Task/TaskPopup/component/TaskList/index.json +7 -7
  98. package/miniprogram_dist/Task/TaskPopup/component/TaskList/index.scss +66 -66
  99. package/miniprogram_dist/Task/TaskPopup/component/TaskList/index.wxml +41 -41
  100. package/miniprogram_dist/Task/TaskPopup/component/TaskType/index.js +129 -129
  101. package/miniprogram_dist/Task/TaskPopup/component/TaskType/index.json +13 -13
  102. package/miniprogram_dist/Task/TaskPopup/component/TaskType/index.scss +90 -90
  103. package/miniprogram_dist/Task/TaskPopup/component/TaskType/index.wxml +69 -69
  104. package/miniprogram_dist/Task/TaskPopup/index.js +174 -174
  105. package/miniprogram_dist/Task/TaskPopup/index.json +7 -7
  106. package/miniprogram_dist/Task/TaskPopup/index.scss +166 -166
  107. package/miniprogram_dist/Task/TaskPopup/index.wxml +87 -87
  108. package/miniprogram_dist/Task/TaskQuizPopup/components/quizContent/index.js +131 -131
  109. package/miniprogram_dist/Task/TaskQuizPopup/components/quizContent/index.json +5 -5
  110. package/miniprogram_dist/Task/TaskQuizPopup/components/quizContent/index.scss +191 -191
  111. package/miniprogram_dist/Task/TaskQuizPopup/components/quizContent/index.wxml +64 -64
  112. package/miniprogram_dist/Task/TaskQuizPopup/components/quizContent/index.wxs +78 -78
  113. package/miniprogram_dist/Task/TaskQuizPopup/components/quizRichText/index.js +40 -40
  114. package/miniprogram_dist/Task/TaskQuizPopup/components/quizRichText/index.json +5 -5
  115. package/miniprogram_dist/Task/TaskQuizPopup/components/quizRichText/index.scss +6 -6
  116. package/miniprogram_dist/Task/TaskQuizPopup/components/quizRichText/index.wxml +1 -1
  117. package/miniprogram_dist/Task/TaskQuizPopup/components/wxParse/base.wxml +50 -50
  118. package/miniprogram_dist/Task/TaskQuizPopup/components/wxParse/html2json.js +623 -623
  119. package/miniprogram_dist/Task/TaskQuizPopup/components/wxParse/htmlparser.js +183 -183
  120. package/miniprogram_dist/Task/TaskQuizPopup/components/wxParse/iframeParse.js +216 -216
  121. package/miniprogram_dist/Task/TaskQuizPopup/components/wxParse/loop.wxml +3563 -3563
  122. package/miniprogram_dist/Task/TaskQuizPopup/components/wxParse/showdown.js +2364 -2364
  123. package/miniprogram_dist/Task/TaskQuizPopup/components/wxParse/wxDiscode.js +209 -209
  124. package/miniprogram_dist/Task/TaskQuizPopup/components/wxParse/wxParse.js +269 -269
  125. package/miniprogram_dist/Task/TaskQuizPopup/components/wxParse/wxParse.wxml +1276 -1276
  126. package/miniprogram_dist/Task/TaskQuizPopup/index.js +246 -246
  127. package/miniprogram_dist/Task/TaskQuizPopup/index.json +7 -7
  128. package/miniprogram_dist/Task/TaskQuizPopup/index.scss +158 -158
  129. package/miniprogram_dist/Task/TaskQuizPopup/index.wxml +99 -99
  130. package/miniprogram_dist/Task/common/task.js +55 -55
  131. package/miniprogram_dist/Task/taskQuizRemindPopup/index.js +74 -74
  132. package/miniprogram_dist/Task/taskQuizRemindPopup/index.json +5 -5
  133. package/miniprogram_dist/Task/taskQuizRemindPopup/index.scss +107 -107
  134. package/miniprogram_dist/Task/taskQuizRemindPopup/index.wxml +27 -27
  135. package/miniprogram_dist/Task/taskReceivePopup/coupon/index.js +68 -68
  136. package/miniprogram_dist/Task/taskReceivePopup/coupon/index.json +6 -6
  137. package/miniprogram_dist/Task/taskReceivePopup/coupon/index.scss +123 -123
  138. package/miniprogram_dist/Task/taskReceivePopup/coupon/index.wxml +81 -81
  139. package/miniprogram_dist/Task/taskReceivePopup/coupon/index.wxs +48 -48
  140. package/miniprogram_dist/Task/taskReceivePopup/customPrizes/index.js +44 -44
  141. package/miniprogram_dist/Task/taskReceivePopup/customPrizes/index.json +6 -6
  142. package/miniprogram_dist/Task/taskReceivePopup/customPrizes/index.scss +106 -106
  143. package/miniprogram_dist/Task/taskReceivePopup/customPrizes/index.wxml +38 -38
  144. package/miniprogram_dist/Task/taskReceivePopup/customPrizes/index.wxs +48 -48
  145. package/miniprogram_dist/Task/taskReceivePopup/index.js +47 -47
  146. package/miniprogram_dist/Task/taskReceivePopup/index.json +13 -13
  147. package/miniprogram_dist/Task/taskReceivePopup/index.wxml +32 -32
  148. package/miniprogram_dist/Task/taskReceivePopup/integral/index.js +106 -106
  149. package/miniprogram_dist/Task/taskReceivePopup/integral/index.json +7 -7
  150. package/miniprogram_dist/Task/taskReceivePopup/integral/index.scss +60 -60
  151. package/miniprogram_dist/Task/taskReceivePopup/integral/index.wxml +23 -23
  152. package/miniprogram_dist/TeacherGoodsList/index.js +997 -983
  153. package/miniprogram_dist/TeacherGoodsList/index.json +10 -10
  154. package/miniprogram_dist/TeacherGoodsList/index.scss +178 -178
  155. package/miniprogram_dist/TeacherGoodsList/index.wxml +146 -144
  156. package/miniprogram_dist/common/api/liveGoodsList.js +181 -167
  157. package/miniprogram_dist/common/assets/images/coupon/emptypage.svg +49 -49
  158. package/miniprogram_dist/common/assets/images/coupon/failed.svg +5 -5
  159. package/miniprogram_dist/common/assets/images/coupon/up.svg +21 -21
  160. package/miniprogram_dist/common/assets/images/pay/loading.svg +3 -3
  161. package/miniprogram_dist/common/assets/images/recommend.svg +6 -6
  162. package/miniprogram_dist/common/assets/images/refresh.svg +10 -10
  163. package/miniprogram_dist/common/assets/images/refresh_white.svg +3 -3
  164. package/miniprogram_dist/common/assets/images/wechat.svg +4 -4
  165. package/miniprogram_dist/common/css/index.less +2 -2
  166. package/miniprogram_dist/common/css/theme.less +19 -19
  167. package/miniprogram_dist/common/libs/dataUp/sensorUp.js +91 -91
  168. package/miniprogram_dist/common/libs/playerHttp.js +58 -58
  169. package/miniprogram_dist/common/libs/playerRequestUrl.js +39 -39
  170. package/miniprogram_dist/common/transaction/parameter/channel-info.js +36 -36
  171. package/miniprogram_dist/common/transaction/parameter/delivery-info.js +26 -26
  172. package/miniprogram_dist/common/transaction/parameter/misc-parameter.js +21 -21
  173. package/miniprogram_dist/common/utils/currency.js +52 -52
  174. package/miniprogram_dist/common/utils/getInfoCollectionData.js +59 -59
  175. package/miniprogram_dist/common/utils/image-cdn-slim/constant.js +8 -8
  176. package/miniprogram_dist/common/utils/image-cdn-slim/index.js +7 -7
  177. package/miniprogram_dist/common/utils/image-cdn-slim/utils.js +156 -156
  178. package/miniprogram_dist/common/utils/index.js +86 -86
  179. package/miniprogram_dist/common/utils/liveGoods.js +217 -217
  180. package/miniprogram_dist/common/utils/specialList.js +5 -5
  181. package/miniprogram_dist/common/utils/tool.js +72 -72
  182. package/miniprogram_dist/common/wxs/filter.wxs +29 -29
  183. package/miniprogram_dist/index.js +6 -6
  184. package/miniprogram_dist/index.js.map +1 -1
  185. package/miniprogram_dist/lib.js.map +1 -1
  186. package/package.json +78 -78
  187. package/project.config.json +79 -79
  188. package/src/AliveInvite/LiveRoomVertical/components/friends/friends.js +181 -181
  189. package/src/AliveInvite/LiveRoomVertical/components/friends/friends.wxml +25 -25
  190. package/src/AliveInvite/LiveRoomVertical/components/friends/friends.wxss +97 -97
  191. package/src/AliveInvite/LiveRoomVertical/index.js +253 -253
  192. package/src/AliveInvite/LiveRoomVertical/index.less +255 -255
  193. package/src/AliveInvite/LiveRoomVertical/index.wxml +122 -122
  194. package/src/AliveInvite/LiveRoomVertical/index.wxss +252 -252
  195. package/src/CollectionAddress/index.js +288 -288
  196. package/src/CollectionAddress/index.json +13 -13
  197. package/src/CollectionAddress/index.less +4 -4
  198. package/src/CollectionAddress/index.wxml +93 -93
  199. package/src/CollectionAddress/index.wxss +5 -5
  200. package/src/ConfirmOrder/components/AddressEdit/index.json +10 -10
  201. package/src/ConfirmOrder/components/AddressEdit/index.less +123 -123
  202. package/src/ConfirmOrder/components/AddressEdit/index.wxml +51 -51
  203. package/src/ConfirmOrder/components/AddressEdit/index.wxss +120 -120
  204. package/src/ConfirmOrder/components/AddressManage/index.js +168 -168
  205. package/src/ConfirmOrder/components/AddressManage/index.json +7 -7
  206. package/src/ConfirmOrder/components/AddressManage/index.less +95 -95
  207. package/src/ConfirmOrder/components/AddressManage/index.wxml +36 -36
  208. package/src/ConfirmOrder/components/AddressManage/index.wxss +98 -98
  209. package/src/ConfirmOrder/components/AddressSelect/index.js +160 -160
  210. package/src/ConfirmOrder/components/AddressSelect/index.json +4 -4
  211. package/src/ConfirmOrder/components/AddressSelect/index.less +79 -79
  212. package/src/ConfirmOrder/components/AddressSelect/index.wxml +33 -33
  213. package/src/ConfirmOrder/components/AddressSelect/index.wxss +67 -67
  214. package/src/ConfirmOrder/components/ChoosePicker/index.js +115 -115
  215. package/src/ConfirmOrder/components/ChoosePicker/index.json +5 -5
  216. package/src/ConfirmOrder/components/ChoosePicker/index.less +20 -20
  217. package/src/ConfirmOrder/components/ChoosePicker/index.wxml +9 -9
  218. package/src/ConfirmOrder/components/ChoosePicker/index.wxss +18 -18
  219. package/src/ConfirmOrder/components/ConfirmOrderContent/index.js +1819 -1819
  220. package/src/ConfirmOrder/components/ConfirmOrderContent/index.json +27 -27
  221. package/src/ConfirmOrder/components/ConfirmOrderContent/index.scss +44 -44
  222. package/src/ConfirmOrder/components/ConfirmOrderContent/index.wxml +225 -225
  223. package/src/ConfirmOrder/components/ConfirmOrderContent/index.wxss +37 -37
  224. package/src/ConfirmOrder/components/GoodsInfo/components/CopGoodsList/index.js +129 -129
  225. package/src/ConfirmOrder/components/GoodsInfo/components/CopGoodsList/index.json +8 -8
  226. package/src/ConfirmOrder/components/GoodsInfo/components/CopGoodsList/index.scss +58 -58
  227. package/src/ConfirmOrder/components/GoodsInfo/components/CopGoodsList/index.wxml +25 -25
  228. package/src/ConfirmOrder/components/GoodsInfo/components/CopGoodsList/index.wxss +1 -1
  229. package/src/ConfirmOrder/components/GoodsInfo/index.wxss +1 -1
  230. package/src/ConfirmOrder/components/IntegralSelect/index.wxss +218 -218
  231. package/src/ConfirmOrder/components/Invoice/index.wxss +93 -93
  232. package/src/ConfirmOrder/components/LeaveWord/index.wxss +1 -1
  233. package/src/ConfirmOrder/components/OrderBubble/index.wxss +1 -1
  234. package/src/ConfirmOrder/components/PayBar/index.wxss +1 -1
  235. package/src/ConfirmOrder/components/PayDetail/index.wxss +78 -78
  236. package/src/ConfirmOrder/components/SvipSelect/SvipSelect.wxss +266 -266
  237. package/src/CopGoodsCard/index.wxss +1 -1
  238. package/src/CouponList/components/CouponItem/index.wxss +1 -1
  239. package/src/CouponList/components/couponIcon/index.wxss +1 -1
  240. package/src/CouponList/stuCouponPopup/index.wxss +1 -1
  241. package/src/CouponReceivePopup/index.wxss +1 -1
  242. package/src/CustomPopup/index.wxss +37 -37
  243. package/src/GoodsBubble/index.wxss +1 -1
  244. package/src/GoodsItem/index.js +180 -21
  245. package/src/GoodsItem/index.scss +822 -627
  246. package/src/GoodsItem/index.wxml +145 -108
  247. package/src/GoodsItem/index.wxs +40 -40
  248. package/src/GoodsItem/index.wxss +1 -1
  249. package/src/GoodsRecommend/index.wxss +537 -537
  250. package/src/LevelMemberBar/index.wxss +1 -1
  251. package/src/LiveGoodsList/Header/index.js +65 -65
  252. package/src/LiveGoodsList/Header/index.json +6 -6
  253. package/src/LiveGoodsList/Header/index.less +45 -45
  254. package/src/LiveGoodsList/Header/index.scss +157 -137
  255. package/src/LiveGoodsList/Header/index.wxml +39 -36
  256. package/src/LiveGoodsList/Header/index.wxss +1 -1
  257. package/src/LiveGoodsList/README.md +9 -9
  258. package/src/LiveGoodsList/index.js +29 -10
  259. package/src/LiveGoodsList/index.less +53 -53
  260. package/src/LiveGoodsList/index.scss +173 -173
  261. package/src/LiveGoodsList/index.wxml +9 -1
  262. package/src/LiveGoodsList/index.wxss +1 -1
  263. package/src/MatchList/index.js +445 -441
  264. package/src/MatchList/index.json +5 -5
  265. package/src/MatchList/index.scss +175 -175
  266. package/src/MatchList/index.wxml +98 -97
  267. package/src/MatchList/index.wxss +1 -1
  268. package/src/MemberIntegralMultiplierBar/index.js +196 -196
  269. package/src/MemberIntegralMultiplierBar/index.json +7 -7
  270. package/src/MemberIntegralMultiplierBar/index.scss +67 -67
  271. package/src/MemberIntegralMultiplierBar/index.wxml +8 -8
  272. package/src/MemberIntegralMultiplierBar/index.wxss +1 -1
  273. package/src/MemberIntegralMultiplierPopup/index.js +54 -54
  274. package/src/MemberIntegralMultiplierPopup/index.json +7 -7
  275. package/src/MemberIntegralMultiplierPopup/index.scss +86 -86
  276. package/src/MemberIntegralMultiplierPopup/index.wxml +48 -48
  277. package/src/MemberIntegralMultiplierPopup/index.wxss +1 -1
  278. package/src/MemberIntegralMultiplierPopup/popup-service.js +18 -18
  279. package/src/MsgBubble/index.js +312 -0
  280. package/src/MsgBubble/index.json +7 -0
  281. package/src/MsgBubble/index.scss +81 -0
  282. package/src/MsgBubble/index.wxml +19 -0
  283. package/src/MsgBubble/index.wxss +1 -0
  284. package/src/PayModule/button/index.wxss +58 -58
  285. package/src/ShoppingCartBubble/index.js +336 -156
  286. package/src/ShoppingCartBubble/index.scss +94 -55
  287. package/src/ShoppingCartBubble/index.wxml +14 -11
  288. package/src/ShoppingCartBubble/index.wxss +1 -1
  289. package/src/Task/TaskBubble/index.json +3 -3
  290. package/src/Task/TaskBubble/index.scss +125 -125
  291. package/src/Task/TaskBubble/index.wxml +22 -22
  292. package/src/Task/TaskBubble/index.wxss +289 -289
  293. package/src/Task/TaskIcon/index.js +29 -29
  294. package/src/Task/TaskIcon/index.json +4 -4
  295. package/src/Task/TaskIcon/index.scss +70 -70
  296. package/src/Task/TaskIcon/index.wxml +5 -5
  297. package/src/Task/TaskIcon/index.wxss +130 -130
  298. package/src/Task/TaskPopup/component/RewardList/index.js +52 -52
  299. package/src/Task/TaskPopup/component/RewardList/index.json +6 -6
  300. package/src/Task/TaskPopup/component/RewardList/index.scss +39 -39
  301. package/src/Task/TaskPopup/component/RewardList/index.wxml +23 -23
  302. package/src/Task/TaskPopup/component/RewardList/index.wxss +18 -18
  303. package/src/Task/TaskPopup/component/TaskItem/index.js +578 -578
  304. package/src/Task/TaskPopup/component/TaskItem/index.json +10 -10
  305. package/src/Task/TaskPopup/component/TaskItem/index.scss +245 -245
  306. package/src/Task/TaskPopup/component/TaskItem/index.wxml +145 -145
  307. package/src/Task/TaskPopup/component/TaskItem/index.wxs +7 -7
  308. package/src/Task/TaskPopup/component/TaskItem/index.wxss +1 -1
  309. package/src/Task/TaskPopup/component/TaskList/index.js +298 -298
  310. package/src/Task/TaskPopup/component/TaskList/index.json +7 -7
  311. package/src/Task/TaskPopup/component/TaskList/index.scss +66 -66
  312. package/src/Task/TaskPopup/component/TaskList/index.wxml +41 -41
  313. package/src/Task/TaskPopup/component/TaskList/index.wxss +118 -118
  314. package/src/Task/TaskPopup/component/TaskType/index.js +129 -129
  315. package/src/Task/TaskPopup/component/TaskType/index.json +13 -13
  316. package/src/Task/TaskPopup/component/TaskType/index.scss +90 -90
  317. package/src/Task/TaskPopup/component/TaskType/index.wxml +69 -69
  318. package/src/Task/TaskPopup/component/TaskType/index.wxss +1 -1
  319. package/src/Task/TaskPopup/index.js +174 -174
  320. package/src/Task/TaskPopup/index.json +7 -7
  321. package/src/Task/TaskPopup/index.scss +166 -166
  322. package/src/Task/TaskPopup/index.wxml +87 -87
  323. package/src/Task/TaskPopup/index.wxss +490 -490
  324. package/src/Task/TaskQuizPopup/components/quizContent/index.js +131 -131
  325. package/src/Task/TaskQuizPopup/components/quizContent/index.json +5 -5
  326. package/src/Task/TaskQuizPopup/components/quizContent/index.scss +191 -191
  327. package/src/Task/TaskQuizPopup/components/quizContent/index.wxml +64 -64
  328. package/src/Task/TaskQuizPopup/components/quizContent/index.wxs +78 -78
  329. package/src/Task/TaskQuizPopup/components/quizContent/index.wxss +521 -521
  330. package/src/Task/TaskQuizPopup/components/quizRichText/index.js +40 -40
  331. package/src/Task/TaskQuizPopup/components/quizRichText/index.json +5 -5
  332. package/src/Task/TaskQuizPopup/components/quizRichText/index.scss +6 -6
  333. package/src/Task/TaskQuizPopup/components/quizRichText/index.wxml +1 -1
  334. package/src/Task/TaskQuizPopup/components/quizRichText/index.wxss +298 -298
  335. package/src/Task/TaskQuizPopup/components/wxParse/base.wxml +50 -50
  336. package/src/Task/TaskQuizPopup/components/wxParse/html2json.js +623 -623
  337. package/src/Task/TaskQuizPopup/components/wxParse/htmlparser.js +183 -183
  338. package/src/Task/TaskQuizPopup/components/wxParse/iframeParse.js +216 -216
  339. package/src/Task/TaskQuizPopup/components/wxParse/loop.wxml +3563 -3563
  340. package/src/Task/TaskQuizPopup/components/wxParse/showdown.js +2364 -2364
  341. package/src/Task/TaskQuizPopup/components/wxParse/wxDiscode.js +209 -209
  342. package/src/Task/TaskQuizPopup/components/wxParse/wxParse.js +269 -269
  343. package/src/Task/TaskQuizPopup/components/wxParse/wxParse.wxml +1276 -1276
  344. package/src/Task/TaskQuizPopup/components/wxParse/wxParse.wxss +316 -316
  345. package/src/Task/TaskQuizPopup/index.js +246 -246
  346. package/src/Task/TaskQuizPopup/index.json +7 -7
  347. package/src/Task/TaskQuizPopup/index.scss +158 -158
  348. package/src/Task/TaskQuizPopup/index.wxml +99 -99
  349. package/src/Task/TaskQuizPopup/index.wxss +478 -478
  350. package/src/Task/common/task.js +55 -55
  351. package/src/Task/taskQuizRemindPopup/index.js +74 -74
  352. package/src/Task/taskQuizRemindPopup/index.json +5 -5
  353. package/src/Task/taskQuizRemindPopup/index.scss +107 -107
  354. package/src/Task/taskQuizRemindPopup/index.wxml +27 -27
  355. package/src/Task/taskQuizRemindPopup/index.wxss +286 -286
  356. package/src/Task/taskReceivePopup/coupon/index.js +68 -68
  357. package/src/Task/taskReceivePopup/coupon/index.json +6 -6
  358. package/src/Task/taskReceivePopup/coupon/index.scss +123 -123
  359. package/src/Task/taskReceivePopup/coupon/index.wxml +81 -81
  360. package/src/Task/taskReceivePopup/coupon/index.wxs +48 -48
  361. package/src/Task/taskReceivePopup/coupon/index.wxss +274 -274
  362. package/src/Task/taskReceivePopup/customPrizes/index.js +44 -44
  363. package/src/Task/taskReceivePopup/customPrizes/index.json +6 -6
  364. package/src/Task/taskReceivePopup/customPrizes/index.scss +106 -106
  365. package/src/Task/taskReceivePopup/customPrizes/index.wxml +38 -38
  366. package/src/Task/taskReceivePopup/customPrizes/index.wxs +48 -48
  367. package/src/Task/taskReceivePopup/customPrizes/index.wxss +220 -220
  368. package/src/Task/taskReceivePopup/index.js +47 -47
  369. package/src/Task/taskReceivePopup/index.json +13 -13
  370. package/src/Task/taskReceivePopup/index.wxml +32 -32
  371. package/src/Task/taskReceivePopup/index.wxss +1 -1
  372. package/src/Task/taskReceivePopup/integral/index.js +106 -106
  373. package/src/Task/taskReceivePopup/integral/index.json +7 -7
  374. package/src/Task/taskReceivePopup/integral/index.scss +60 -60
  375. package/src/Task/taskReceivePopup/integral/index.wxml +23 -23
  376. package/src/Task/taskReceivePopup/integral/index.wxss +94 -94
  377. package/src/TeacherGoodsList/index.js +997 -983
  378. package/src/TeacherGoodsList/index.json +10 -10
  379. package/src/TeacherGoodsList/index.scss +178 -178
  380. package/src/TeacherGoodsList/index.wxml +146 -144
  381. package/src/TeacherGoodsList/index.wxss +1 -1
  382. package/src/common/api/liveGoodsList.js +181 -167
  383. package/src/common/assets/copy.wxss +3 -3
  384. package/src/common/assets/images/coupon/emptypage.svg +49 -49
  385. package/src/common/assets/images/coupon/failed.svg +5 -5
  386. package/src/common/assets/images/coupon/up.svg +21 -21
  387. package/src/common/assets/images/pay/loading.svg +3 -3
  388. package/src/common/assets/images/recommend.svg +6 -6
  389. package/src/common/assets/images/refresh.svg +10 -10
  390. package/src/common/assets/images/refresh_white.svg +3 -3
  391. package/src/common/assets/images/wechat.svg +4 -4
  392. package/src/common/css/index.less +2 -2
  393. package/src/common/css/theme.less +19 -19
  394. package/src/common/css/theme.wxss +16 -16
  395. package/src/common/libs/dataUp/sensorUp.js +91 -91
  396. package/src/common/libs/playerHttp.js +58 -58
  397. package/src/common/libs/playerRequestUrl.js +39 -39
  398. package/src/common/transaction/parameter/channel-info.js +36 -36
  399. package/src/common/transaction/parameter/delivery-info.js +26 -26
  400. package/src/common/transaction/parameter/misc-parameter.js +21 -21
  401. package/src/common/utils/currency.js +52 -52
  402. package/src/common/utils/getInfoCollectionData.js +59 -59
  403. package/src/common/utils/image-cdn-slim/constant.js +8 -8
  404. package/src/common/utils/image-cdn-slim/index.js +7 -7
  405. package/src/common/utils/image-cdn-slim/utils.js +156 -156
  406. package/src/common/utils/index.js +86 -86
  407. package/src/common/utils/liveGoods.js +217 -217
  408. package/src/common/utils/specialList.js +5 -5
  409. package/src/common/utils/tool.js +72 -72
  410. package/src/common/wxs/filter.wxs +29 -29
  411. package/src/coupon/components/CouponItem/index.wxss +821 -821
  412. package/src/coupon/components/CouponSelect/index.wxss +1132 -1132
  413. package/src/coupon/index.wxss +216 -216
  414. package/src/index.js +23 -23
  415. package/src/lib.ts +5 -5
  416. package/src/project.config.json +68 -68
  417. package/src/utils.js +5 -5
  418. package/tsconfig.json +25 -25
@@ -1,68 +1,68 @@
1
- const computedBehavior = require('miniprogram-computed').behavior
2
- Component({
3
- behaviors: [computedBehavior],
4
- /**
5
- * 组件的属性列表
6
- */
7
- properties: {
8
- // 全屏互动
9
- isFullScreen: {
10
- type: Boolean,
11
- value: false,
12
- },
13
- showCouponReceivePopup: {
14
- type: Boolean,
15
- value: false,
16
- },
17
- rewardData: {
18
- type: Object,
19
- value: {},
20
- }
21
- },
22
-
23
- /**
24
- * 组件的初始数据
25
- */
26
- data: {},
27
- computed: {
28
- receiveCouponNowMsg(data){
29
- return data.rewardData.coupon_list[0]
30
- },
31
- isShowPoint(data) {
32
- let tempPrice = data.receiveCouponNowMsg.price;
33
- if (tempPrice % 100 == 0) {
34
- return false;
35
- } else {
36
- return true;
37
- }
38
- },
39
- // 是否为礼品券
40
- isGiftCoupon(data) {
41
- const item = data.receiveCouponNowMsg;
42
- return item && item.coupon_type && +item.coupon_type === 6; // 优惠券类型 1=通用优惠券,2=专属优惠券,3=员工优惠券 6=礼品劵 7=兑换券
43
- },
44
- // 是否为红包礼品券
45
- isRedPacketGiftCoupon(data) {
46
- const { coupon_type, gift_coupon_type } = data?.receiveCouponNowMsg || {};
47
-
48
- return +coupon_type === 6 && +gift_coupon_type === 1;
49
- },
50
- // 是否为兑换券
51
- isExchangeCoupon(data) {
52
- const item = data.receiveCouponNowMsg;
53
- return item && item.coupon_type && +item.coupon_type === 7; // 优惠券类型 1=通用优惠券,2=专属优惠券,3=员工优惠券 6=礼品劵 7=兑换券
54
- },
55
- },
56
-
57
- /**
58
- * 组件的方法列表
59
- */
60
- methods: {
61
- closePopup() {
62
- this.setData({
63
- showCouponReceivePopup: false
64
- })
65
- this.triggerEvent('close')
66
- },
67
- },
68
- })
1
+ const computedBehavior = require('miniprogram-computed').behavior
2
+ Component({
3
+ behaviors: [computedBehavior],
4
+ /**
5
+ * 组件的属性列表
6
+ */
7
+ properties: {
8
+ // 全屏互动
9
+ isFullScreen: {
10
+ type: Boolean,
11
+ value: false,
12
+ },
13
+ showCouponReceivePopup: {
14
+ type: Boolean,
15
+ value: false,
16
+ },
17
+ rewardData: {
18
+ type: Object,
19
+ value: {},
20
+ }
21
+ },
22
+
23
+ /**
24
+ * 组件的初始数据
25
+ */
26
+ data: {},
27
+ computed: {
28
+ receiveCouponNowMsg(data){
29
+ return data.rewardData.coupon_list[0]
30
+ },
31
+ isShowPoint(data) {
32
+ let tempPrice = data.receiveCouponNowMsg.price;
33
+ if (tempPrice % 100 == 0) {
34
+ return false;
35
+ } else {
36
+ return true;
37
+ }
38
+ },
39
+ // 是否为礼品券
40
+ isGiftCoupon(data) {
41
+ const item = data.receiveCouponNowMsg;
42
+ return item && item.coupon_type && +item.coupon_type === 6; // 优惠券类型 1=通用优惠券,2=专属优惠券,3=员工优惠券 6=礼品劵 7=兑换券
43
+ },
44
+ // 是否为红包礼品券
45
+ isRedPacketGiftCoupon(data) {
46
+ const { coupon_type, gift_coupon_type } = data?.receiveCouponNowMsg || {};
47
+
48
+ return +coupon_type === 6 && +gift_coupon_type === 1;
49
+ },
50
+ // 是否为兑换券
51
+ isExchangeCoupon(data) {
52
+ const item = data.receiveCouponNowMsg;
53
+ return item && item.coupon_type && +item.coupon_type === 7; // 优惠券类型 1=通用优惠券,2=专属优惠券,3=员工优惠券 6=礼品劵 7=兑换券
54
+ },
55
+ },
56
+
57
+ /**
58
+ * 组件的方法列表
59
+ */
60
+ methods: {
61
+ closePopup() {
62
+ this.setData({
63
+ showCouponReceivePopup: false
64
+ })
65
+ this.triggerEvent('close')
66
+ },
67
+ },
68
+ })
@@ -1,6 +1,6 @@
1
- {
2
- "component": true,
3
- "usingComponents": {
4
- "van-popup": "@vant/weapp/popup/index"
5
- }
6
- }
1
+ {
2
+ "component": true,
3
+ "usingComponents": {
4
+ "van-popup": "@vant/weapp/popup/index"
5
+ }
6
+ }
@@ -1,123 +1,123 @@
1
- @function vmin($rpx) {
2
- @return #{$rpx * 100 / $deviceWidth}vmin;
3
- }
4
-
5
- $deviceWidth: 750;
6
-
7
- @mixin coupon-receive-popup {
8
- .receive-container {
9
- width: vmin(512);
10
- height: vmin(698);
11
- background-size: 100% 100%;
12
- background-image: url('https://commonresource-1252524126.cdn.xiaoeknow.com/image/loqj5jrx0grc.png');
13
- overflow: hidden;
14
- .receive-container-gift {
15
- margin-top: vmin(300);
16
- }
17
- &__content {
18
- display: flex;
19
- flex-direction: column;
20
- margin: vmin(272) vmin(32) vmin(32);
21
- padding: 0 vmin(24);
22
- }
23
- &__content-price {
24
- font-weight: 500;
25
- font-family: "PingFang SC";
26
- text-align: left;
27
- display: flex;
28
- align-items: baseline;
29
- margin-top: vmin(48);
30
- .smallIcon {
31
- color: #fd2b54;
32
- font-size: vmin(40);
33
- line-height: vmin(40);
34
- margin-right: vmin(4);
35
- }
36
- .boldIcon {
37
- color: #fd2b54;
38
- font-size: vmin(80);
39
- line-height: vmin(80);
40
- }
41
- .discountFont{
42
- color: #fd2b54;
43
- font-size: vmin(32);
44
- line-height: vmin(32);
45
- margin-left: vmin(4);
46
- font-weight: 600;
47
- }
48
- }
49
- &__content-gift {
50
- .label {
51
- color: #fd2b54;
52
- font-size: vmin(36);
53
- height: vmin(48);
54
- line-height: vmin(48);
55
- margin-right: vmin(4);
56
- }
57
- .title {
58
- display: flex;
59
- justify-content: center;
60
- align-items: center;
61
- height: vmin(64);
62
- margin-top: vmin(4);
63
- .title-txt {
64
- width: vmin(400);
65
- line-height: vmin(64);
66
- color: #fd2b54;
67
- font-size: vmin(48);
68
- font-weight: 600;
69
- display: -webkit-box;
70
- -webkit-box-orient: vertical;
71
- -webkit-line-clamp: 1;
72
- font-family: "PingFang SC";
73
- font-weight: 600;
74
- overflow: hidden;
75
- }
76
- }
77
- }
78
- &__content-describe {
79
- color: #333333;
80
- font-size: vmin(28);
81
- font-weight: 400;
82
- font-family: "PingFang SC";
83
- text-align: left;
84
- line-height: vmin(40);
85
- margin-top: vmin(76);
86
- view {
87
- display: block;
88
- margin-bottom: vmin(8);
89
- }
90
- }
91
- &__close {
92
- display: block;
93
- width: vmin(64);
94
- height: vmin(64);
95
- margin: vmin(32) auto 0;
96
- }
97
- }
98
- &.coupon-receive-popup-full .receive-container-wrapper{
99
- transform: scale(0.8)
100
- }
101
- }
102
-
103
- .coupon-receive-popup {
104
- @include coupon-receive-popup;
105
- }
106
-
107
- // 竖屏pad
108
- @media screen and (min-width: 768px) and (orientation: portrait) {
109
- $deviceWidth: 1536 !global;
110
-
111
- .coupon-receive-popup {
112
- @include coupon-receive-popup;
113
- }
114
- }
115
-
116
- // 横屏pad
117
- @media screen and (min-height: 768px) and (orientation: landscape) {
118
- $deviceWidth: 1536 !global;
119
-
120
- .coupon-receive-popup {
121
- @include coupon-receive-popup;
122
- }
123
- }
1
+ @function vmin($rpx) {
2
+ @return #{$rpx * 100 / $deviceWidth}vmin;
3
+ }
4
+
5
+ $deviceWidth: 750;
6
+
7
+ @mixin coupon-receive-popup {
8
+ .receive-container {
9
+ width: vmin(512);
10
+ height: vmin(698);
11
+ background-size: 100% 100%;
12
+ background-image: url('https://commonresource-1252524126.cdn.xiaoeknow.com/image/loqj5jrx0grc.png');
13
+ overflow: hidden;
14
+ .receive-container-gift {
15
+ margin-top: vmin(300);
16
+ }
17
+ &__content {
18
+ display: flex;
19
+ flex-direction: column;
20
+ margin: vmin(272) vmin(32) vmin(32);
21
+ padding: 0 vmin(24);
22
+ }
23
+ &__content-price {
24
+ font-weight: 500;
25
+ font-family: "PingFang SC";
26
+ text-align: left;
27
+ display: flex;
28
+ align-items: baseline;
29
+ margin-top: vmin(48);
30
+ .smallIcon {
31
+ color: #fd2b54;
32
+ font-size: vmin(40);
33
+ line-height: vmin(40);
34
+ margin-right: vmin(4);
35
+ }
36
+ .boldIcon {
37
+ color: #fd2b54;
38
+ font-size: vmin(80);
39
+ line-height: vmin(80);
40
+ }
41
+ .discountFont{
42
+ color: #fd2b54;
43
+ font-size: vmin(32);
44
+ line-height: vmin(32);
45
+ margin-left: vmin(4);
46
+ font-weight: 600;
47
+ }
48
+ }
49
+ &__content-gift {
50
+ .label {
51
+ color: #fd2b54;
52
+ font-size: vmin(36);
53
+ height: vmin(48);
54
+ line-height: vmin(48);
55
+ margin-right: vmin(4);
56
+ }
57
+ .title {
58
+ display: flex;
59
+ justify-content: center;
60
+ align-items: center;
61
+ height: vmin(64);
62
+ margin-top: vmin(4);
63
+ .title-txt {
64
+ width: vmin(400);
65
+ line-height: vmin(64);
66
+ color: #fd2b54;
67
+ font-size: vmin(48);
68
+ font-weight: 600;
69
+ display: -webkit-box;
70
+ -webkit-box-orient: vertical;
71
+ -webkit-line-clamp: 1;
72
+ font-family: "PingFang SC";
73
+ font-weight: 600;
74
+ overflow: hidden;
75
+ }
76
+ }
77
+ }
78
+ &__content-describe {
79
+ color: #333333;
80
+ font-size: vmin(28);
81
+ font-weight: 400;
82
+ font-family: "PingFang SC";
83
+ text-align: left;
84
+ line-height: vmin(40);
85
+ margin-top: vmin(76);
86
+ view {
87
+ display: block;
88
+ margin-bottom: vmin(8);
89
+ }
90
+ }
91
+ &__close {
92
+ display: block;
93
+ width: vmin(64);
94
+ height: vmin(64);
95
+ margin: vmin(32) auto 0;
96
+ }
97
+ }
98
+ &.coupon-receive-popup-full .receive-container-wrapper{
99
+ transform: scale(0.8)
100
+ }
101
+ }
102
+
103
+ .coupon-receive-popup {
104
+ @include coupon-receive-popup;
105
+ }
106
+
107
+ // 竖屏pad
108
+ @media screen and (min-width: 768px) and (orientation: portrait) {
109
+ $deviceWidth: 1536 !global;
110
+
111
+ .coupon-receive-popup {
112
+ @include coupon-receive-popup;
113
+ }
114
+ }
115
+
116
+ // 横屏pad
117
+ @media screen and (min-height: 768px) and (orientation: landscape) {
118
+ $deviceWidth: 1536 !global;
119
+
120
+ .coupon-receive-popup {
121
+ @include coupon-receive-popup;
122
+ }
123
+ }
@@ -1,81 +1,81 @@
1
- <wxs src="./index.wxs" module="couponReceivePopup" />
2
- <van-popup
3
- show="{{true}}"
4
- round
5
- class="coupon-receive-popup {{isFullScreen? 'coupon-receive-popup-full' : ''}}"
6
- custom-style="background: unset"
7
- bind:close="closePopup"
8
- >
9
- <view class="receive-container-wrapper">
10
- <view class="receive-container">
11
- <view class="receive-container__content {{ isGiftCoupon || isExchangeCoupon ? 'receive-container-gift' : '' }}">
12
- {{ data.receiveCouponNowMsg.coupon_type }}
13
- <block wx:if="{{isGiftCoupon}}">
14
- <view class="receive-container__content-gift">
15
- <view class="label">礼品券</view>
16
- <view class="title">
17
- <view class="title-txt">{{ receiveCouponNowMsg.title }}</view>
18
- </view>
19
- </view>
20
- </block>
21
- <block wx:elif="{{isExchangeCoupon}}">
22
- <view class="receive-container__content-gift">
23
- <view class="label">兑换券</view>
24
- <view class="title">
25
- <view class="title-txt">{{ receiveCouponNowMsg.title }}</view>
26
- </view>
27
- </view>
28
- </block>
29
- <block wx:else>
30
- <view class="receive-container__content-price">
31
- <view wx:if="{{receiveCouponNowMsg.discount_way === 1}}">
32
- <text class="smallIcon">¥</text>
33
- <text class="boldIcon">{{ couponReceivePopup.filterPrice(receiveCouponNowMsg.price) }}</text>
34
- <text
35
- class="smallIcon"
36
- wx:if="{{isShowPoint}}"
37
- >.{{ couponReceivePopup.fixedFont(receiveCouponNowMsg.price) }}</text>
38
- </view>
39
- <text wx:if="{{receiveCouponNowMsg.discount_way === 2}}">
40
- <text class="boldIcon">{{ couponReceivePopup.filterPrice(receiveCouponNowMsg.discount_percent, false) }}</text>
41
- <text
42
- class="boldIcon"
43
- wx:if="{{receiveCouponNowMsg.discount_percent % 10 !== 0}}"
44
- >.{{ couponReceivePopup.fixedFont(receiveCouponNowMsg.discount_percent, false) }}</text>
45
- <text class="discountFont">折</text>
46
- </text>
47
- </view>
48
- </block>
49
- <view class="receive-container__content-describe">
50
- <block wx:if="{{!isGiftCoupon && !isExchangeCoupon}}">
51
- <!-- 无门槛 -->
52
- <view wx:if="{{receiveCouponNowMsg.require_price == 0}}">无门槛</view>
53
- <!-- 满xx元可用 -->
54
- <view wx:else>满{{ receiveCouponNowMsg.require_price / 100 }}元可用</view>
55
- </block>
56
- <view wx:if="{{ !isRedPacketGiftCoupon }}">
57
- <!-- 全部商品可用 -->
58
- <view wx:if="{{receiveCouponNowMsg.type == 1}}">全部商品可用</view>
59
- <!-- 部分商品可用 -->
60
- <view wx:else>部分商品可用</view>
61
- </view>
62
- <!-- 领取次日x天内有效 / 自领取起x天内有效-->
63
- <view wx:if="{{receiveCouponNowMsg.valid_day}}">
64
- <view wx:if="{{receiveCouponNowMsg.valid_after == 1}}">领取次日{{receiveCouponNowMsg.valid_day}}天内有效</view>
65
- <view wx:else>自领取起{{receiveCouponNowMsg.valid_day}}天内有效</view>
66
- </view>
67
- <!-- 有效期至 -->
68
- <view
69
- wx:if="{{!receiveCouponNowMsg.valid_day && receiveCouponNowMsg.valid_at && receiveCouponNowMsg.invalid_at}}"
70
- >有效期至:{{ couponReceivePopup.formatDateToMinte(receiveCouponNowMsg.invalid_at) }}</view>
71
- </view>
72
- </view>
73
- </view>
74
- <image
75
- src="https://commonresource-1252524126.cdn.xiaoeknow.com/image/lmimm9mb0q88.png"
76
- alt
77
- class="receive-container__close"
78
- catchtap="closePopup"
79
- />
80
- </view>
81
- </van-popup>
1
+ <wxs src="./index.wxs" module="couponReceivePopup" />
2
+ <van-popup
3
+ show="{{true}}"
4
+ round
5
+ class="coupon-receive-popup {{isFullScreen? 'coupon-receive-popup-full' : ''}}"
6
+ custom-style="background: unset"
7
+ bind:close="closePopup"
8
+ >
9
+ <view class="receive-container-wrapper">
10
+ <view class="receive-container">
11
+ <view class="receive-container__content {{ isGiftCoupon || isExchangeCoupon ? 'receive-container-gift' : '' }}">
12
+ {{ data.receiveCouponNowMsg.coupon_type }}
13
+ <block wx:if="{{isGiftCoupon}}">
14
+ <view class="receive-container__content-gift">
15
+ <view class="label">礼品券</view>
16
+ <view class="title">
17
+ <view class="title-txt">{{ receiveCouponNowMsg.title }}</view>
18
+ </view>
19
+ </view>
20
+ </block>
21
+ <block wx:elif="{{isExchangeCoupon}}">
22
+ <view class="receive-container__content-gift">
23
+ <view class="label">兑换券</view>
24
+ <view class="title">
25
+ <view class="title-txt">{{ receiveCouponNowMsg.title }}</view>
26
+ </view>
27
+ </view>
28
+ </block>
29
+ <block wx:else>
30
+ <view class="receive-container__content-price">
31
+ <view wx:if="{{receiveCouponNowMsg.discount_way === 1}}">
32
+ <text class="smallIcon">¥</text>
33
+ <text class="boldIcon">{{ couponReceivePopup.filterPrice(receiveCouponNowMsg.price) }}</text>
34
+ <text
35
+ class="smallIcon"
36
+ wx:if="{{isShowPoint}}"
37
+ >.{{ couponReceivePopup.fixedFont(receiveCouponNowMsg.price) }}</text>
38
+ </view>
39
+ <text wx:if="{{receiveCouponNowMsg.discount_way === 2}}">
40
+ <text class="boldIcon">{{ couponReceivePopup.filterPrice(receiveCouponNowMsg.discount_percent, false) }}</text>
41
+ <text
42
+ class="boldIcon"
43
+ wx:if="{{receiveCouponNowMsg.discount_percent % 10 !== 0}}"
44
+ >.{{ couponReceivePopup.fixedFont(receiveCouponNowMsg.discount_percent, false) }}</text>
45
+ <text class="discountFont">折</text>
46
+ </text>
47
+ </view>
48
+ </block>
49
+ <view class="receive-container__content-describe">
50
+ <block wx:if="{{!isGiftCoupon && !isExchangeCoupon}}">
51
+ <!-- 无门槛 -->
52
+ <view wx:if="{{receiveCouponNowMsg.require_price == 0}}">无门槛</view>
53
+ <!-- 满xx元可用 -->
54
+ <view wx:else>满{{ receiveCouponNowMsg.require_price / 100 }}元可用</view>
55
+ </block>
56
+ <view wx:if="{{ !isRedPacketGiftCoupon }}">
57
+ <!-- 全部商品可用 -->
58
+ <view wx:if="{{receiveCouponNowMsg.type == 1}}">全部商品可用</view>
59
+ <!-- 部分商品可用 -->
60
+ <view wx:else>部分商品可用</view>
61
+ </view>
62
+ <!-- 领取次日x天内有效 / 自领取起x天内有效-->
63
+ <view wx:if="{{receiveCouponNowMsg.valid_day}}">
64
+ <view wx:if="{{receiveCouponNowMsg.valid_after == 1}}">领取次日{{receiveCouponNowMsg.valid_day}}天内有效</view>
65
+ <view wx:else>自领取起{{receiveCouponNowMsg.valid_day}}天内有效</view>
66
+ </view>
67
+ <!-- 有效期至 -->
68
+ <view
69
+ wx:if="{{!receiveCouponNowMsg.valid_day && receiveCouponNowMsg.valid_at && receiveCouponNowMsg.invalid_at}}"
70
+ >有效期至:{{ couponReceivePopup.formatDateToMinte(receiveCouponNowMsg.invalid_at) }}</view>
71
+ </view>
72
+ </view>
73
+ </view>
74
+ <image
75
+ src="https://commonresource-1252524126.cdn.xiaoeknow.com/image/lmimm9mb0q88.png"
76
+ alt
77
+ class="receive-container__close"
78
+ catchtap="closePopup"
79
+ />
80
+ </view>
81
+ </van-popup>
@@ -1,48 +1,48 @@
1
- /*
2
- 使用目的:
3
- 这里定义的函数,用在页面中, 类似于 Vue 里的 computed
4
-
5
- 注意点:
6
- 1. wxs中不支持 let , const
7
- 2. 导出的时候,即使 key 和 value 相同, 也不能简写。
8
- */
9
-
10
- // 做数值过滤,value-要处理的数字 ToFix2-默认保留两位,默认转分转元,除以100。其他除以10(如折扣)
11
- var filterPrice = function (value, ToFix2 = true) {
12
- var result = (value / 100).toString();
13
- if (!ToFix2) {
14
- result = (value / 10).toString();
15
- }
16
- if (result.indexOf(".") > 0) {
17
- return result.split(".")[0];
18
- } else {
19
- return result;
20
- }
21
- }
22
-
23
- // 小数点后的样式补充 ToFix2-默认保留2位,其他保留1位
24
- var fixedFont = function (value, ToFix2 = true) {
25
- if (value) {
26
- var result = (value / 100).toString();
27
- if (!ToFix2) {
28
- result = (value / 10).toString();
29
- }
30
- if (result.toString().indexOf(".") > -1) {
31
- return result.split(".")[1];
32
- } else {
33
- return "";
34
- }
35
- }
36
- }
37
-
38
- // 时间精确到分
39
- var formatDateToMinte = function (date) {
40
- var lastIndex = date.lastIndexOf(":");
41
- return date.substring(0, lastIndex).replace(getRegExp('-', 'g'), ".");
42
- }
43
-
44
- module.exports = {
45
- filterPrice: filterPrice,
46
- fixedFont: fixedFont,
47
- formatDateToMinte: formatDateToMinte
48
- }
1
+ /*
2
+ 使用目的:
3
+ 这里定义的函数,用在页面中, 类似于 Vue 里的 computed
4
+
5
+ 注意点:
6
+ 1. wxs中不支持 let , const
7
+ 2. 导出的时候,即使 key 和 value 相同, 也不能简写。
8
+ */
9
+
10
+ // 做数值过滤,value-要处理的数字 ToFix2-默认保留两位,默认转分转元,除以100。其他除以10(如折扣)
11
+ var filterPrice = function (value, ToFix2 = true) {
12
+ var result = (value / 100).toString();
13
+ if (!ToFix2) {
14
+ result = (value / 10).toString();
15
+ }
16
+ if (result.indexOf(".") > 0) {
17
+ return result.split(".")[0];
18
+ } else {
19
+ return result;
20
+ }
21
+ }
22
+
23
+ // 小数点后的样式补充 ToFix2-默认保留2位,其他保留1位
24
+ var fixedFont = function (value, ToFix2 = true) {
25
+ if (value) {
26
+ var result = (value / 100).toString();
27
+ if (!ToFix2) {
28
+ result = (value / 10).toString();
29
+ }
30
+ if (result.toString().indexOf(".") > -1) {
31
+ return result.split(".")[1];
32
+ } else {
33
+ return "";
34
+ }
35
+ }
36
+ }
37
+
38
+ // 时间精确到分
39
+ var formatDateToMinte = function (date) {
40
+ var lastIndex = date.lastIndexOf(":");
41
+ return date.substring(0, lastIndex).replace(getRegExp('-', 'g'), ".");
42
+ }
43
+
44
+ module.exports = {
45
+ filterPrice: filterPrice,
46
+ fixedFont: fixedFont,
47
+ formatDateToMinte: formatDateToMinte
48
+ }