xiaoe_mp_npm 0.2.1 → 0.2.2-beta1

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 (596) hide show
  1. package/package.json +1 -1
  2. package/src/AliveInvite/LiveRoomVertical/index.less +1 -1
  3. package/src/AliveInvite/LiveRoomVertical/index.wxss +1 -1
  4. package/src/Lottery/components/MerchantContactInfo/index.wxml +1 -1
  5. package/miniprogram_dist/AliveInvite/LiveRoomVertical/components/friends/friends.js +0 -145
  6. package/miniprogram_dist/AliveInvite/LiveRoomVertical/components/friends/friends.json +0 -4
  7. package/miniprogram_dist/AliveInvite/LiveRoomVertical/components/friends/friends.wxml +0 -23
  8. package/miniprogram_dist/AliveInvite/LiveRoomVertical/components/friends/friends.wxss +0 -90
  9. package/miniprogram_dist/AliveInvite/LiveRoomVertical/components/invite-poster/invite-poster.js +0 -227
  10. package/miniprogram_dist/AliveInvite/LiveRoomVertical/components/invite-poster/invite-poster.json +0 -4
  11. package/miniprogram_dist/AliveInvite/LiveRoomVertical/components/invite-poster/invite-poster.wxml +0 -64
  12. package/miniprogram_dist/AliveInvite/LiveRoomVertical/components/invite-poster/invite-poster.wxss +0 -167
  13. package/miniprogram_dist/AliveInvite/LiveRoomVertical/components/rewards/rewards.js +0 -117
  14. package/miniprogram_dist/AliveInvite/LiveRoomVertical/components/rewards/rewards.json +0 -4
  15. package/miniprogram_dist/AliveInvite/LiveRoomVertical/components/rewards/rewards.wxml +0 -36
  16. package/miniprogram_dist/AliveInvite/LiveRoomVertical/components/rewards/rewards.wxss +0 -92
  17. package/miniprogram_dist/AliveInvite/LiveRoomVertical/components/rules/rules.js +0 -90
  18. package/miniprogram_dist/AliveInvite/LiveRoomVertical/components/rules/rules.json +0 -4
  19. package/miniprogram_dist/AliveInvite/LiveRoomVertical/components/rules/rules.wxml +0 -16
  20. package/miniprogram_dist/AliveInvite/LiveRoomVertical/components/rules/rules.wxss +0 -48
  21. package/miniprogram_dist/AliveInvite/LiveRoomVertical/index.js +0 -232
  22. package/miniprogram_dist/AliveInvite/LiveRoomVertical/index.json +0 -10
  23. package/miniprogram_dist/AliveInvite/LiveRoomVertical/index.less +0 -271
  24. package/miniprogram_dist/AliveInvite/LiveRoomVertical/index.wxml +0 -122
  25. package/miniprogram_dist/AliveInvite/LiveRoomVertical/index.wxss +0 -267
  26. package/miniprogram_dist/AliveInvite/LiveRoomVertical/libs/base64.js +0 -234
  27. package/miniprogram_dist/AliveInvite/images/copylink.png +0 -0
  28. package/miniprogram_dist/AliveInvite/images/cup.png +0 -0
  29. package/miniprogram_dist/AliveInvite/images/icon_arrow_right_white.png +0 -0
  30. package/miniprogram_dist/AliveInvite/images/icon_arrow_up.png +0 -0
  31. package/miniprogram_dist/AliveInvite/images/invite_entrance/new_crown_blue_pure.svg +0 -29
  32. package/miniprogram_dist/AliveInvite/images/invite_entrance/new_crown_pink_pure.svg +0 -29
  33. package/miniprogram_dist/AliveInvite/images/invite_entrance/new_crown_yellow_pure.svg +0 -27
  34. package/miniprogram_dist/AliveInvite/images/liveClose.png +0 -0
  35. package/miniprogram_dist/AliveInvite/images/new_emptypage.svg +0 -59
  36. package/miniprogram_dist/AliveInvite/images/new_icon_close.png +0 -0
  37. package/miniprogram_dist/AliveInvite/images/new_invite_title.svg +0 -23
  38. package/miniprogram_dist/AliveInvite/images/new_share_icon.png +0 -0
  39. package/miniprogram_dist/AliveInvite/images/rank_first.svg +0 -11
  40. package/miniprogram_dist/AliveInvite/images/rank_second.svg +0 -11
  41. package/miniprogram_dist/AliveInvite/images/rank_third.svg +0 -11
  42. package/miniprogram_dist/AliveInvite/images/u_6182407864819_jXJGQ1pe0d.png +0 -0
  43. package/miniprogram_dist/AliveInvite/images/wechat.png +0 -0
  44. package/miniprogram_dist/CollectionAddress/index.js +0 -285
  45. package/miniprogram_dist/CollectionAddress/index.json +0 -14
  46. package/miniprogram_dist/CollectionAddress/index.less +0 -5
  47. package/miniprogram_dist/CollectionAddress/index.wxml +0 -91
  48. package/miniprogram_dist/CollectionAddress/index.wxss +0 -5
  49. package/miniprogram_dist/ConfirmOrder/README.md +0 -12
  50. package/miniprogram_dist/ConfirmOrder/components/AddressEdit/index.js +0 -343
  51. package/miniprogram_dist/ConfirmOrder/components/AddressEdit/index.json +0 -11
  52. package/miniprogram_dist/ConfirmOrder/components/AddressEdit/index.less +0 -98
  53. package/miniprogram_dist/ConfirmOrder/components/AddressEdit/index.wxml +0 -39
  54. package/miniprogram_dist/ConfirmOrder/components/AddressEdit/index.wxss +0 -99
  55. package/miniprogram_dist/ConfirmOrder/components/AddressManage/index.js +0 -160
  56. package/miniprogram_dist/ConfirmOrder/components/AddressManage/index.json +0 -8
  57. package/miniprogram_dist/ConfirmOrder/components/AddressManage/index.less +0 -96
  58. package/miniprogram_dist/ConfirmOrder/components/AddressManage/index.wxml +0 -37
  59. package/miniprogram_dist/ConfirmOrder/components/AddressManage/index.wxss +0 -98
  60. package/miniprogram_dist/ConfirmOrder/components/AddressSelect/index.js +0 -160
  61. package/miniprogram_dist/ConfirmOrder/components/AddressSelect/index.json +0 -4
  62. package/miniprogram_dist/ConfirmOrder/components/AddressSelect/index.less +0 -80
  63. package/miniprogram_dist/ConfirmOrder/components/AddressSelect/index.wxml +0 -34
  64. package/miniprogram_dist/ConfirmOrder/components/AddressSelect/index.wxss +0 -67
  65. package/miniprogram_dist/ConfirmOrder/components/ChoosePicker/index.js +0 -110
  66. package/miniprogram_dist/ConfirmOrder/components/ChoosePicker/index.json +0 -6
  67. package/miniprogram_dist/ConfirmOrder/components/ChoosePicker/index.less +0 -21
  68. package/miniprogram_dist/ConfirmOrder/components/ChoosePicker/index.wxml +0 -10
  69. package/miniprogram_dist/ConfirmOrder/components/ChoosePicker/index.wxss +0 -18
  70. package/miniprogram_dist/ConfirmOrder/components/ConfirmOrderContent/index.js +0 -831
  71. package/miniprogram_dist/ConfirmOrder/components/ConfirmOrderContent/index.json +0 -23
  72. package/miniprogram_dist/ConfirmOrder/components/ConfirmOrderContent/index.less +0 -12
  73. package/miniprogram_dist/ConfirmOrder/components/ConfirmOrderContent/index.wxml +0 -172
  74. package/miniprogram_dist/ConfirmOrder/components/ConfirmOrderContent/index.wxss +0 -10
  75. package/miniprogram_dist/ConfirmOrder/components/GoodsInfo/components/GoodsCommerce/components/entityGiftList/index.js +0 -72
  76. package/miniprogram_dist/ConfirmOrder/components/GoodsInfo/components/GoodsCommerce/components/entityGiftList/index.json +0 -6
  77. package/miniprogram_dist/ConfirmOrder/components/GoodsInfo/components/GoodsCommerce/components/entityGiftList/index.less +0 -45
  78. package/miniprogram_dist/ConfirmOrder/components/GoodsInfo/components/GoodsCommerce/components/entityGiftList/index.wxml +0 -18
  79. package/miniprogram_dist/ConfirmOrder/components/GoodsInfo/components/GoodsCommerce/components/entityGiftList/index.wxss +0 -39
  80. package/miniprogram_dist/ConfirmOrder/components/GoodsInfo/components/GoodsCommerce/components/entityItem/filter.wxs +0 -8
  81. package/miniprogram_dist/ConfirmOrder/components/GoodsInfo/components/GoodsCommerce/components/entityItem/index.js +0 -92
  82. package/miniprogram_dist/ConfirmOrder/components/GoodsInfo/components/GoodsCommerce/components/entityItem/index.json +0 -4
  83. package/miniprogram_dist/ConfirmOrder/components/GoodsInfo/components/GoodsCommerce/components/entityItem/index.less +0 -109
  84. package/miniprogram_dist/ConfirmOrder/components/GoodsInfo/components/GoodsCommerce/components/entityItem/index.wxml +0 -29
  85. package/miniprogram_dist/ConfirmOrder/components/GoodsInfo/components/GoodsCommerce/components/entityItem/index.wxss +0 -96
  86. package/miniprogram_dist/ConfirmOrder/components/GoodsInfo/components/GoodsCommerce/index.js +0 -78
  87. package/miniprogram_dist/ConfirmOrder/components/GoodsInfo/components/GoodsCommerce/index.json +0 -8
  88. package/miniprogram_dist/ConfirmOrder/components/GoodsInfo/components/GoodsCommerce/index.less +0 -52
  89. package/miniprogram_dist/ConfirmOrder/components/GoodsInfo/components/GoodsCommerce/index.wxml +0 -27
  90. package/miniprogram_dist/ConfirmOrder/components/GoodsInfo/components/GoodsCommerce/index.wxss +0 -45
  91. package/miniprogram_dist/ConfirmOrder/components/GoodsInfo/components/ImageData/index.js +0 -69
  92. package/miniprogram_dist/ConfirmOrder/components/GoodsInfo/components/ImageData/index.json +0 -4
  93. package/miniprogram_dist/ConfirmOrder/components/GoodsInfo/components/ImageData/index.less +0 -14
  94. package/miniprogram_dist/ConfirmOrder/components/GoodsInfo/components/ImageData/index.wxml +0 -4
  95. package/miniprogram_dist/ConfirmOrder/components/GoodsInfo/components/ImageData/index.wxss +0 -13
  96. package/miniprogram_dist/ConfirmOrder/components/GoodsInfo/filter.wxs +0 -7
  97. package/miniprogram_dist/ConfirmOrder/components/GoodsInfo/index.js +0 -429
  98. package/miniprogram_dist/ConfirmOrder/components/GoodsInfo/index.json +0 -9
  99. package/miniprogram_dist/ConfirmOrder/components/GoodsInfo/index.less +0 -182
  100. package/miniprogram_dist/ConfirmOrder/components/GoodsInfo/index.wxml +0 -75
  101. package/miniprogram_dist/ConfirmOrder/components/GoodsInfo/index.wxss +0 -153
  102. package/miniprogram_dist/ConfirmOrder/components/Header/index.js +0 -50
  103. package/miniprogram_dist/ConfirmOrder/components/Header/index.json +0 -6
  104. package/miniprogram_dist/ConfirmOrder/components/Header/index.less +0 -31
  105. package/miniprogram_dist/ConfirmOrder/components/Header/index.wxml +0 -10
  106. package/miniprogram_dist/ConfirmOrder/components/Header/index.wxss +0 -27
  107. package/miniprogram_dist/ConfirmOrder/components/InfoCollect/index.js +0 -108
  108. package/miniprogram_dist/ConfirmOrder/components/InfoCollect/index.json +0 -6
  109. package/miniprogram_dist/ConfirmOrder/components/InfoCollect/index.less +0 -0
  110. package/miniprogram_dist/ConfirmOrder/components/InfoCollect/index.wxml +0 -13
  111. package/miniprogram_dist/ConfirmOrder/components/InfoCollect/index.wxss +0 -1
  112. package/miniprogram_dist/ConfirmOrder/components/IntegralSelect/componenets/integralTips/index.js +0 -85
  113. package/miniprogram_dist/ConfirmOrder/components/IntegralSelect/componenets/integralTips/index.json +0 -4
  114. package/miniprogram_dist/ConfirmOrder/components/IntegralSelect/componenets/integralTips/index.less +0 -64
  115. package/miniprogram_dist/ConfirmOrder/components/IntegralSelect/componenets/integralTips/index.wxml +0 -31
  116. package/miniprogram_dist/ConfirmOrder/components/IntegralSelect/componenets/integralTips/index.wxss +0 -57
  117. package/miniprogram_dist/ConfirmOrder/components/IntegralSelect/filter.wxs +0 -7
  118. package/miniprogram_dist/ConfirmOrder/components/IntegralSelect/index.js +0 -83
  119. package/miniprogram_dist/ConfirmOrder/components/IntegralSelect/index.json +0 -8
  120. package/miniprogram_dist/ConfirmOrder/components/IntegralSelect/index.less +0 -55
  121. package/miniprogram_dist/ConfirmOrder/components/IntegralSelect/index.wxml +0 -27
  122. package/miniprogram_dist/ConfirmOrder/components/IntegralSelect/index.wxss +0 -47
  123. package/miniprogram_dist/ConfirmOrder/components/Invoice/components/InvoiceSelect/index.js +0 -284
  124. package/miniprogram_dist/ConfirmOrder/components/Invoice/components/InvoiceSelect/index.json +0 -8
  125. package/miniprogram_dist/ConfirmOrder/components/Invoice/components/InvoiceSelect/index.less +0 -162
  126. package/miniprogram_dist/ConfirmOrder/components/Invoice/components/InvoiceSelect/index.wxml +0 -89
  127. package/miniprogram_dist/ConfirmOrder/components/Invoice/components/InvoiceSelect/index.wxss +0 -152
  128. package/miniprogram_dist/ConfirmOrder/components/Invoice/components/InvoiceTip/index.js +0 -33
  129. package/miniprogram_dist/ConfirmOrder/components/Invoice/components/InvoiceTip/index.json +0 -6
  130. package/miniprogram_dist/ConfirmOrder/components/Invoice/components/InvoiceTip/index.less +0 -49
  131. package/miniprogram_dist/ConfirmOrder/components/Invoice/components/InvoiceTip/index.wxml +0 -17
  132. package/miniprogram_dist/ConfirmOrder/components/Invoice/components/InvoiceTip/index.wxss +0 -58
  133. package/miniprogram_dist/ConfirmOrder/components/Invoice/index.js +0 -155
  134. package/miniprogram_dist/ConfirmOrder/components/Invoice/index.json +0 -7
  135. package/miniprogram_dist/ConfirmOrder/components/Invoice/index.less +0 -29
  136. package/miniprogram_dist/ConfirmOrder/components/Invoice/index.wxml +0 -24
  137. package/miniprogram_dist/ConfirmOrder/components/Invoice/index.wxss +0 -23
  138. package/miniprogram_dist/ConfirmOrder/components/LeaveWord/index.js +0 -61
  139. package/miniprogram_dist/ConfirmOrder/components/LeaveWord/index.json +0 -6
  140. package/miniprogram_dist/ConfirmOrder/components/LeaveWord/index.less +0 -6
  141. package/miniprogram_dist/ConfirmOrder/components/LeaveWord/index.wxml +0 -11
  142. package/miniprogram_dist/ConfirmOrder/components/LeaveWord/index.wxss +0 -6
  143. package/miniprogram_dist/ConfirmOrder/components/LimitDiscount/index.js +0 -50
  144. package/miniprogram_dist/ConfirmOrder/components/LimitDiscount/index.json +0 -4
  145. package/miniprogram_dist/ConfirmOrder/components/LimitDiscount/index.wxml +0 -1
  146. package/miniprogram_dist/ConfirmOrder/components/LimitDiscount/index.wxss +0 -1
  147. package/miniprogram_dist/ConfirmOrder/components/ModeSelect/index.js +0 -42
  148. package/miniprogram_dist/ConfirmOrder/components/ModeSelect/index.json +0 -7
  149. package/miniprogram_dist/ConfirmOrder/components/ModeSelect/index.less +0 -35
  150. package/miniprogram_dist/ConfirmOrder/components/ModeSelect/index.wxml +0 -7
  151. package/miniprogram_dist/ConfirmOrder/components/ModeSelect/index.wxss +0 -44
  152. package/miniprogram_dist/ConfirmOrder/components/PayBar/index.js +0 -233
  153. package/miniprogram_dist/ConfirmOrder/components/PayBar/index.json +0 -6
  154. package/miniprogram_dist/ConfirmOrder/components/PayBar/index.less +0 -32
  155. package/miniprogram_dist/ConfirmOrder/components/PayBar/index.wxml +0 -26
  156. package/miniprogram_dist/ConfirmOrder/components/PayBar/index.wxss +0 -27
  157. package/miniprogram_dist/ConfirmOrder/components/PayDetail/filter.wxs +0 -16
  158. package/miniprogram_dist/ConfirmOrder/components/PayDetail/index.js +0 -68
  159. package/miniprogram_dist/ConfirmOrder/components/PayDetail/index.json +0 -4
  160. package/miniprogram_dist/ConfirmOrder/components/PayDetail/index.less +0 -16
  161. package/miniprogram_dist/ConfirmOrder/components/PayDetail/index.wxml +0 -18
  162. package/miniprogram_dist/ConfirmOrder/components/PayDetail/index.wxss +0 -14
  163. package/miniprogram_dist/ConfirmOrder/components/PayGifts/index.js +0 -23
  164. package/miniprogram_dist/ConfirmOrder/components/PayGifts/index.json +0 -4
  165. package/miniprogram_dist/ConfirmOrder/components/PayGifts/index.wxml +0 -2
  166. package/miniprogram_dist/ConfirmOrder/components/PayGifts/index.wxss +0 -1
  167. package/miniprogram_dist/ConfirmOrder/components/PickupSelect/index.js +0 -80
  168. package/miniprogram_dist/ConfirmOrder/components/PickupSelect/index.json +0 -8
  169. package/miniprogram_dist/ConfirmOrder/components/PickupSelect/index.less +0 -24
  170. package/miniprogram_dist/ConfirmOrder/components/PickupSelect/index.wxml +0 -14
  171. package/miniprogram_dist/ConfirmOrder/components/PickupSelect/index.wxss +0 -22
  172. package/miniprogram_dist/ConfirmOrder/components/SelectSite/index.js +0 -147
  173. package/miniprogram_dist/ConfirmOrder/components/SelectSite/index.json +0 -7
  174. package/miniprogram_dist/ConfirmOrder/components/SelectSite/index.less +0 -96
  175. package/miniprogram_dist/ConfirmOrder/components/SelectSite/index.wxml +0 -46
  176. package/miniprogram_dist/ConfirmOrder/components/SelectSite/index.wxss +0 -82
  177. package/miniprogram_dist/ConfirmOrder/components/Shipper/index.js +0 -100
  178. package/miniprogram_dist/ConfirmOrder/components/Shipper/index.json +0 -6
  179. package/miniprogram_dist/ConfirmOrder/components/Shipper/index.less +0 -70
  180. package/miniprogram_dist/ConfirmOrder/components/Shipper/index.wxml +0 -16
  181. package/miniprogram_dist/ConfirmOrder/components/Shipper/index.wxss +0 -76
  182. package/miniprogram_dist/ConfirmOrder/components/ShipperEdit/index.js +0 -218
  183. package/miniprogram_dist/ConfirmOrder/components/ShipperEdit/index.json +0 -8
  184. package/miniprogram_dist/ConfirmOrder/components/ShipperEdit/index.less +0 -77
  185. package/miniprogram_dist/ConfirmOrder/components/ShipperEdit/index.wxml +0 -20
  186. package/miniprogram_dist/ConfirmOrder/components/ShipperEdit/index.wxss +0 -78
  187. package/miniprogram_dist/ConfirmOrder/components/WechatAddress/index.js +0 -78
  188. package/miniprogram_dist/ConfirmOrder/components/WechatAddress/index.json +0 -4
  189. package/miniprogram_dist/ConfirmOrder/components/WechatAddress/index.less +0 -25
  190. package/miniprogram_dist/ConfirmOrder/components/WechatAddress/index.wxml +0 -9
  191. package/miniprogram_dist/ConfirmOrder/components/WechatAddress/index.wxss +0 -22
  192. package/miniprogram_dist/ConfirmOrder/index.js +0 -72
  193. package/miniprogram_dist/ConfirmOrder/index.json +0 -9
  194. package/miniprogram_dist/ConfirmOrder/index.less +0 -5
  195. package/miniprogram_dist/ConfirmOrder/index.wxml +0 -25
  196. package/miniprogram_dist/ConfirmOrder/index.wxss +0 -5
  197. package/miniprogram_dist/CouponList/README.md +0 -6
  198. package/miniprogram_dist/CouponList/components/CouponItem/index.js +0 -239
  199. package/miniprogram_dist/CouponList/components/CouponItem/index.json +0 -5
  200. package/miniprogram_dist/CouponList/components/CouponItem/index.less +0 -288
  201. package/miniprogram_dist/CouponList/components/CouponItem/index.wxml +0 -191
  202. package/miniprogram_dist/CouponList/components/CouponItem/index.wxss +0 -276
  203. package/miniprogram_dist/CouponList/couponColumn/index.js +0 -65
  204. package/miniprogram_dist/CouponList/couponColumn/index.json +0 -6
  205. package/miniprogram_dist/CouponList/couponColumn/index.less +0 -32
  206. package/miniprogram_dist/CouponList/couponColumn/index.wxml +0 -23
  207. package/miniprogram_dist/CouponList/couponColumn/index.wxss +0 -31
  208. package/miniprogram_dist/CouponList/couponMsg/index.js +0 -27
  209. package/miniprogram_dist/CouponList/couponMsg/index.json +0 -6
  210. package/miniprogram_dist/CouponList/couponMsg/index.less +0 -3
  211. package/miniprogram_dist/CouponList/couponMsg/index.wxml +0 -10
  212. package/miniprogram_dist/CouponList/couponMsg/index.wxss +0 -3
  213. package/miniprogram_dist/CurrentPay/index.js +0 -56
  214. package/miniprogram_dist/CurrentPay/index.json +0 -9
  215. package/miniprogram_dist/CurrentPay/index.wxml +0 -11
  216. package/miniprogram_dist/CurrentPay/index.wxss +0 -1
  217. package/miniprogram_dist/CurrentPayModule/index.js +0 -256
  218. package/miniprogram_dist/CurrentPayModule/index.json +0 -9
  219. package/miniprogram_dist/CurrentPayModule/index.less +0 -13
  220. package/miniprogram_dist/CurrentPayModule/index.wxml +0 -4
  221. package/miniprogram_dist/CurrentPayModule/index.wxss +0 -13
  222. package/miniprogram_dist/CustomPopup/index.js +0 -56
  223. package/miniprogram_dist/CustomPopup/index.json +0 -6
  224. package/miniprogram_dist/CustomPopup/index.less +0 -15
  225. package/miniprogram_dist/CustomPopup/index.wxml +0 -18
  226. package/miniprogram_dist/CustomPopup/index.wxss +0 -15
  227. package/miniprogram_dist/GoodsItem/index.js +0 -538
  228. package/miniprogram_dist/GoodsItem/index.json +0 -6
  229. package/miniprogram_dist/GoodsItem/index.less +0 -249
  230. package/miniprogram_dist/GoodsItem/index.wxml +0 -90
  231. package/miniprogram_dist/GoodsItem/index.wxss +0 -261
  232. package/miniprogram_dist/LiveGoodsList/Header/index.js +0 -36
  233. package/miniprogram_dist/LiveGoodsList/Header/index.json +0 -6
  234. package/miniprogram_dist/LiveGoodsList/Header/index.less +0 -45
  235. package/miniprogram_dist/LiveGoodsList/Header/index.wxml +0 -28
  236. package/miniprogram_dist/LiveGoodsList/Header/index.wxss +0 -44
  237. package/miniprogram_dist/LiveGoodsList/README.md +0 -10
  238. package/miniprogram_dist/LiveGoodsList/index.js +0 -423
  239. package/miniprogram_dist/LiveGoodsList/index.json +0 -10
  240. package/miniprogram_dist/LiveGoodsList/index.less +0 -53
  241. package/miniprogram_dist/LiveGoodsList/index.wxml +0 -74
  242. package/miniprogram_dist/LiveGoodsList/index.wxss +0 -50
  243. package/miniprogram_dist/Lottery/components/AddressCollection/index.js +0 -73
  244. package/miniprogram_dist/Lottery/components/AddressCollection/index.json +0 -7
  245. package/miniprogram_dist/Lottery/components/AddressCollection/index.less +0 -39
  246. package/miniprogram_dist/Lottery/components/AddressCollection/index.wxml +0 -16
  247. package/miniprogram_dist/Lottery/components/AddressCollection/index.wxss +0 -39
  248. package/miniprogram_dist/Lottery/components/CommonPopup/index.js +0 -57
  249. package/miniprogram_dist/Lottery/components/CommonPopup/index.json +0 -6
  250. package/miniprogram_dist/Lottery/components/CommonPopup/index.less +0 -66
  251. package/miniprogram_dist/Lottery/components/CommonPopup/index.wxml +0 -23
  252. package/miniprogram_dist/Lottery/components/CommonPopup/index.wxss +0 -61
  253. package/miniprogram_dist/Lottery/components/JoinRecords/RecordItem/index.js +0 -34
  254. package/miniprogram_dist/Lottery/components/JoinRecords/RecordItem/index.json +0 -6
  255. package/miniprogram_dist/Lottery/components/JoinRecords/RecordItem/index.less +0 -36
  256. package/miniprogram_dist/Lottery/components/JoinRecords/RecordItem/index.wxml +0 -8
  257. package/miniprogram_dist/Lottery/components/JoinRecords/RecordItem/index.wxss +0 -36
  258. package/miniprogram_dist/Lottery/components/JoinRecords/index.js +0 -59
  259. package/miniprogram_dist/Lottery/components/JoinRecords/index.json +0 -7
  260. package/miniprogram_dist/Lottery/components/JoinRecords/index.less +0 -40
  261. package/miniprogram_dist/Lottery/components/JoinRecords/index.wxml +0 -15
  262. package/miniprogram_dist/Lottery/components/JoinRecords/index.wxss +0 -40
  263. package/miniprogram_dist/Lottery/components/LotteryAnimation/animation.js +0 -1
  264. package/miniprogram_dist/Lottery/components/LotteryAnimation/index.js +0 -64
  265. package/miniprogram_dist/Lottery/components/LotteryAnimation/index.json +0 -4
  266. package/miniprogram_dist/Lottery/components/LotteryAnimation/index.less +0 -14
  267. package/miniprogram_dist/Lottery/components/LotteryAnimation/index.wxml +0 -4
  268. package/miniprogram_dist/Lottery/components/LotteryAnimation/index.wxss +0 -12
  269. package/miniprogram_dist/Lottery/components/LotteryAnimation/lottie-miniprogram-sdk.js +0 -9
  270. package/miniprogram_dist/Lottery/components/LotteryFAB/index.js +0 -99
  271. package/miniprogram_dist/Lottery/components/LotteryFAB/index.json +0 -6
  272. package/miniprogram_dist/Lottery/components/LotteryFAB/index.less +0 -36
  273. package/miniprogram_dist/Lottery/components/LotteryFAB/index.wxml +0 -17
  274. package/miniprogram_dist/Lottery/components/LotteryFAB/index.wxss +0 -36
  275. package/miniprogram_dist/Lottery/components/LotteryInfo/Indicator/index.js +0 -34
  276. package/miniprogram_dist/Lottery/components/LotteryInfo/Indicator/index.json +0 -5
  277. package/miniprogram_dist/Lottery/components/LotteryInfo/Indicator/index.less +0 -17
  278. package/miniprogram_dist/Lottery/components/LotteryInfo/Indicator/index.wxml +0 -3
  279. package/miniprogram_dist/Lottery/components/LotteryInfo/Indicator/index.wxss +0 -17
  280. package/miniprogram_dist/Lottery/components/LotteryInfo/LotteryCountdown/index.js +0 -37
  281. package/miniprogram_dist/Lottery/components/LotteryInfo/LotteryCountdown/index.json +0 -5
  282. package/miniprogram_dist/Lottery/components/LotteryInfo/LotteryCountdown/index.less +0 -17
  283. package/miniprogram_dist/Lottery/components/LotteryInfo/LotteryCountdown/index.wxml +0 -9
  284. package/miniprogram_dist/Lottery/components/LotteryInfo/LotteryCountdown/index.wxss +0 -17
  285. package/miniprogram_dist/Lottery/components/LotteryInfo/index.js +0 -159
  286. package/miniprogram_dist/Lottery/components/LotteryInfo/index.json +0 -10
  287. package/miniprogram_dist/Lottery/components/LotteryInfo/index.less +0 -99
  288. package/miniprogram_dist/Lottery/components/LotteryInfo/index.wxml +0 -50
  289. package/miniprogram_dist/Lottery/components/LotteryInfo/index.wxss +0 -104
  290. package/miniprogram_dist/Lottery/components/LotteryMsg/index.js +0 -42
  291. package/miniprogram_dist/Lottery/components/LotteryMsg/index.json +0 -5
  292. package/miniprogram_dist/Lottery/components/LotteryMsg/index.less +0 -22
  293. package/miniprogram_dist/Lottery/components/LotteryMsg/index.wxml +0 -11
  294. package/miniprogram_dist/Lottery/components/LotteryMsg/index.wxss +0 -20
  295. package/miniprogram_dist/Lottery/components/LotteryPopups/index.js +0 -178
  296. package/miniprogram_dist/Lottery/components/LotteryPopups/index.json +0 -13
  297. package/miniprogram_dist/Lottery/components/LotteryPopups/index.wxml +0 -7
  298. package/miniprogram_dist/Lottery/components/LotteryResult/LosingLottery/index.js +0 -35
  299. package/miniprogram_dist/Lottery/components/LotteryResult/LosingLottery/index.json +0 -7
  300. package/miniprogram_dist/Lottery/components/LotteryResult/LosingLottery/index.less +0 -48
  301. package/miniprogram_dist/Lottery/components/LotteryResult/LosingLottery/index.wxml +0 -16
  302. package/miniprogram_dist/Lottery/components/LotteryResult/LosingLottery/index.wxss +0 -48
  303. package/miniprogram_dist/Lottery/components/LotteryResult/WinLottery/index.js +0 -144
  304. package/miniprogram_dist/Lottery/components/LotteryResult/WinLottery/index.json +0 -7
  305. package/miniprogram_dist/Lottery/components/LotteryResult/WinLottery/index.less +0 -68
  306. package/miniprogram_dist/Lottery/components/LotteryResult/WinLottery/index.wxml +0 -23
  307. package/miniprogram_dist/Lottery/components/LotteryResult/WinLottery/index.wxss +0 -73
  308. package/miniprogram_dist/Lottery/components/LotteryResult/index.js +0 -56
  309. package/miniprogram_dist/Lottery/components/LotteryResult/index.json +0 -9
  310. package/miniprogram_dist/Lottery/components/LotteryResult/index.less +0 -0
  311. package/miniprogram_dist/Lottery/components/LotteryResult/index.wxml +0 -10
  312. package/miniprogram_dist/Lottery/components/LotteryResult/index.wxss +0 -0
  313. package/miniprogram_dist/Lottery/components/MerchantContactInfo/index.js +0 -40
  314. package/miniprogram_dist/Lottery/components/MerchantContactInfo/index.json +0 -7
  315. package/miniprogram_dist/Lottery/components/MerchantContactInfo/index.less +0 -61
  316. package/miniprogram_dist/Lottery/components/MerchantContactInfo/index.wxml +0 -19
  317. package/miniprogram_dist/Lottery/components/MerchantContactInfo/index.wxss +0 -61
  318. package/miniprogram_dist/Lottery/components/MyLottery/index.js +0 -52
  319. package/miniprogram_dist/Lottery/components/MyLottery/index.json +0 -11
  320. package/miniprogram_dist/Lottery/components/MyLottery/index.wxml +0 -12
  321. package/miniprogram_dist/Lottery/components/MyLottery/index.wxss +0 -0
  322. package/miniprogram_dist/Lottery/components/NobodyAttend/index.js +0 -33
  323. package/miniprogram_dist/Lottery/components/NobodyAttend/index.json +0 -6
  324. package/miniprogram_dist/Lottery/components/NobodyAttend/index.less +0 -33
  325. package/miniprogram_dist/Lottery/components/NobodyAttend/index.wxml +0 -11
  326. package/miniprogram_dist/Lottery/components/NobodyAttend/index.wxss +0 -33
  327. package/miniprogram_dist/Lottery/components/PrizeCard/index.js +0 -19
  328. package/miniprogram_dist/Lottery/components/PrizeCard/index.json +0 -5
  329. package/miniprogram_dist/Lottery/components/PrizeCard/index.less +0 -42
  330. package/miniprogram_dist/Lottery/components/PrizeCard/index.wxml +0 -8
  331. package/miniprogram_dist/Lottery/components/PrizeCard/index.wxss +0 -42
  332. package/miniprogram_dist/Lottery/components/RewardList/RewardItem/index.js +0 -137
  333. package/miniprogram_dist/Lottery/components/RewardList/RewardItem/index.json +0 -6
  334. package/miniprogram_dist/Lottery/components/RewardList/RewardItem/index.less +0 -77
  335. package/miniprogram_dist/Lottery/components/RewardList/RewardItem/index.wxml +0 -14
  336. package/miniprogram_dist/Lottery/components/RewardList/RewardItem/index.wxss +0 -77
  337. package/miniprogram_dist/Lottery/components/RewardList/index.js +0 -70
  338. package/miniprogram_dist/Lottery/components/RewardList/index.json +0 -7
  339. package/miniprogram_dist/Lottery/components/RewardList/index.less +0 -62
  340. package/miniprogram_dist/Lottery/components/RewardList/index.wxml +0 -28
  341. package/miniprogram_dist/Lottery/components/RewardList/index.wxss +0 -62
  342. package/miniprogram_dist/Lottery/components/Winners/WinnerItem/index.js +0 -14
  343. package/miniprogram_dist/Lottery/components/Winners/WinnerItem/index.json +0 -6
  344. package/miniprogram_dist/Lottery/components/Winners/WinnerItem/index.less +0 -41
  345. package/miniprogram_dist/Lottery/components/Winners/WinnerItem/index.wxml +0 -8
  346. package/miniprogram_dist/Lottery/components/Winners/WinnerItem/index.wxss +0 -50
  347. package/miniprogram_dist/Lottery/components/Winners/index.js +0 -80
  348. package/miniprogram_dist/Lottery/components/Winners/index.json +0 -7
  349. package/miniprogram_dist/Lottery/components/Winners/index.less +0 -49
  350. package/miniprogram_dist/Lottery/components/Winners/index.wxml +0 -31
  351. package/miniprogram_dist/Lottery/components/Winners/index.wxss +0 -49
  352. package/miniprogram_dist/Lottery/constants.js +0 -119
  353. package/miniprogram_dist/Lottery/countdown.js +0 -88
  354. package/miniprogram_dist/Lottery/eventBus.js +0 -29
  355. package/miniprogram_dist/Lottery/remotePic.js +0 -52
  356. package/miniprogram_dist/Lottery/store/effect.js +0 -204
  357. package/miniprogram_dist/Lottery/store/index.js +0 -35
  358. package/miniprogram_dist/Lottery/store/reducer.js +0 -194
  359. package/miniprogram_dist/Lottery/store/util.js +0 -116
  360. package/miniprogram_dist/Lottery/utils.js +0 -68
  361. package/miniprogram_dist/PayComplete/Components/CouponItem/index.js +0 -51
  362. package/miniprogram_dist/PayComplete/Components/CouponItem/index.json +0 -4
  363. package/miniprogram_dist/PayComplete/Components/CouponItem/index.less +0 -143
  364. package/miniprogram_dist/PayComplete/Components/CouponItem/index.wxml +0 -47
  365. package/miniprogram_dist/PayComplete/Components/CouponItem/index.wxss +0 -122
  366. package/miniprogram_dist/PayComplete/Components/CouponItem/sub.wxs +0 -73
  367. package/miniprogram_dist/PayComplete/Components/LeadGroup/index.js +0 -95
  368. package/miniprogram_dist/PayComplete/Components/LeadGroup/index.json +0 -7
  369. package/miniprogram_dist/PayComplete/Components/LeadGroup/index.less +0 -38
  370. package/miniprogram_dist/PayComplete/Components/LeadGroup/index.wxml +0 -6
  371. package/miniprogram_dist/PayComplete/Components/LeadGroup/index.wxss +0 -33
  372. package/miniprogram_dist/PayComplete/Components/PayGifts/index.js +0 -130
  373. package/miniprogram_dist/PayComplete/Components/PayGifts/index.json +0 -6
  374. package/miniprogram_dist/PayComplete/Components/PayGifts/index.less +0 -178
  375. package/miniprogram_dist/PayComplete/Components/PayGifts/index.wxml +0 -58
  376. package/miniprogram_dist/PayComplete/Components/PayGifts/index.wxss +0 -157
  377. package/miniprogram_dist/PayComplete/Components/PayState/earnIntegral/index.js +0 -62
  378. package/miniprogram_dist/PayComplete/Components/PayState/earnIntegral/index.json +0 -6
  379. package/miniprogram_dist/PayComplete/Components/PayState/earnIntegral/index.less +0 -26
  380. package/miniprogram_dist/PayComplete/Components/PayState/earnIntegral/index.wxml +0 -4
  381. package/miniprogram_dist/PayComplete/Components/PayState/earnIntegral/index.wxss +0 -23
  382. package/miniprogram_dist/PayComplete/Components/PayState/index.js +0 -38
  383. package/miniprogram_dist/PayComplete/Components/PayState/index.json +0 -7
  384. package/miniprogram_dist/PayComplete/Components/PayState/index.less +0 -23
  385. package/miniprogram_dist/PayComplete/Components/PayState/index.wxml +0 -11
  386. package/miniprogram_dist/PayComplete/Components/PayState/index.wxss +0 -20
  387. package/miniprogram_dist/PayComplete/index.js +0 -143
  388. package/miniprogram_dist/PayComplete/index.json +0 -11
  389. package/miniprogram_dist/PayComplete/index.less +0 -16
  390. package/miniprogram_dist/PayComplete/index.wxml +0 -31
  391. package/miniprogram_dist/PayComplete/index.wxss +0 -16
  392. package/miniprogram_dist/PayModule/README.md +0 -0
  393. package/miniprogram_dist/PayModule/button/index.js +0 -44
  394. package/miniprogram_dist/PayModule/button/index.json +0 -6
  395. package/miniprogram_dist/PayModule/button/index.less +0 -16
  396. package/miniprogram_dist/PayModule/button/index.wxml +0 -8
  397. package/miniprogram_dist/PayModule/button/index.wxss +0 -28
  398. package/miniprogram_dist/PayModule/index/index.js +0 -254
  399. package/miniprogram_dist/PayModule/index/index.json +0 -7
  400. package/miniprogram_dist/PayModule/index/index.less +0 -0
  401. package/miniprogram_dist/PayModule/index/index.wxml +0 -12
  402. package/miniprogram_dist/PayModule/index/index.wxss +0 -1
  403. package/miniprogram_dist/PayModule/wechatLoading/index.js +0 -43
  404. package/miniprogram_dist/PayModule/wechatLoading/index.json +0 -4
  405. package/miniprogram_dist/PayModule/wechatLoading/index.less +0 -66
  406. package/miniprogram_dist/PayModule/wechatLoading/index.wxml +0 -12
  407. package/miniprogram_dist/PayModule/wechatLoading/index.wxss +0 -57
  408. package/miniprogram_dist/Recommend/index.js +0 -58
  409. package/miniprogram_dist/Recommend/index.json +0 -4
  410. package/miniprogram_dist/Recommend/index.less +0 -116
  411. package/miniprogram_dist/Recommend/index.wxml +0 -29
  412. package/miniprogram_dist/Recommend/index.wxss +0 -110
  413. package/miniprogram_dist/SharePoster/PosterDom/index.js +0 -1898
  414. package/miniprogram_dist/SharePoster/PosterDom/index.json +0 -5
  415. package/miniprogram_dist/SharePoster/PosterDom/index.less +0 -57
  416. package/miniprogram_dist/SharePoster/PosterDom/index.wxml +0 -13
  417. package/miniprogram_dist/SharePoster/PosterDom/index.wxss +0 -57
  418. package/miniprogram_dist/SharePoster/README.md +0 -10
  419. package/miniprogram_dist/SharePoster/ShareTextPopup/index.js +0 -66
  420. package/miniprogram_dist/SharePoster/ShareTextPopup/index.json +0 -7
  421. package/miniprogram_dist/SharePoster/ShareTextPopup/index.less +0 -75
  422. package/miniprogram_dist/SharePoster/ShareTextPopup/index.wxml +0 -29
  423. package/miniprogram_dist/SharePoster/ShareTextPopup/index.wxss +0 -75
  424. package/miniprogram_dist/SharePoster/components/saveTip/index.js +0 -40
  425. package/miniprogram_dist/SharePoster/components/saveTip/index.json +0 -5
  426. package/miniprogram_dist/SharePoster/components/saveTip/index.less +0 -0
  427. package/miniprogram_dist/SharePoster/components/saveTip/index.wxml +0 -6
  428. package/miniprogram_dist/SharePoster/components/saveTip/index.wxss +0 -21
  429. package/miniprogram_dist/SharePoster/components/settingModal/index.js +0 -38
  430. package/miniprogram_dist/SharePoster/components/settingModal/index.json +0 -5
  431. package/miniprogram_dist/SharePoster/components/settingModal/index.less +0 -0
  432. package/miniprogram_dist/SharePoster/components/settingModal/index.wxml +0 -9
  433. package/miniprogram_dist/SharePoster/components/settingModal/index.wxss +0 -45
  434. package/miniprogram_dist/SharePoster/components/shareCircleTip/index.js +0 -35
  435. package/miniprogram_dist/SharePoster/components/shareCircleTip/index.json +0 -5
  436. package/miniprogram_dist/SharePoster/components/shareCircleTip/index.wxml +0 -5
  437. package/miniprogram_dist/SharePoster/components/shareCircleTip/index.wxss +0 -35
  438. package/miniprogram_dist/SharePoster/components/unauthorizedModal/index.js +0 -35
  439. package/miniprogram_dist/SharePoster/components/unauthorizedModal/index.json +0 -5
  440. package/miniprogram_dist/SharePoster/components/unauthorizedModal/index.wxml +0 -11
  441. package/miniprogram_dist/SharePoster/components/unauthorizedModal/index.wxss +0 -51
  442. package/miniprogram_dist/SharePoster/createPoster/index.js +0 -201
  443. package/miniprogram_dist/SharePoster/createPoster/utils/drawImage.js +0 -267
  444. package/miniprogram_dist/SharePoster/createPoster/utils/util.js +0 -40
  445. package/miniprogram_dist/SharePoster/libs/constant.js +0 -57
  446. package/miniprogram_dist/SharePoster/libs/positionMap.js +0 -255
  447. package/miniprogram_dist/SharePoster/mockData/mockData.js +0 -591
  448. package/miniprogram_dist/SharePoster/sharePopup/index.js +0 -658
  449. package/miniprogram_dist/SharePoster/sharePopup/index.json +0 -13
  450. package/miniprogram_dist/SharePoster/sharePopup/index.less +0 -181
  451. package/miniprogram_dist/SharePoster/sharePopup/index.wxml +0 -94
  452. package/miniprogram_dist/SharePoster/sharePopup/index.wxss +0 -193
  453. package/miniprogram_dist/Sku/commSelect/index.js +0 -427
  454. package/miniprogram_dist/Sku/commSelect/index.json +0 -8
  455. package/miniprogram_dist/Sku/commSelect/index.less +0 -48
  456. package/miniprogram_dist/Sku/commSelect/index.wxml +0 -41
  457. package/miniprogram_dist/Sku/commSelect/index.wxss +0 -45
  458. package/miniprogram_dist/Sku/goods-info/index.js +0 -52
  459. package/miniprogram_dist/Sku/goods-info/index.json +0 -4
  460. package/miniprogram_dist/Sku/goods-info/index.less +0 -48
  461. package/miniprogram_dist/Sku/goods-info/index.wxml +0 -19
  462. package/miniprogram_dist/Sku/goods-info/index.wxss +0 -48
  463. package/miniprogram_dist/Sku/index/index.js +0 -280
  464. package/miniprogram_dist/Sku/index/index.json +0 -12
  465. package/miniprogram_dist/Sku/index/index.less +0 -78
  466. package/miniprogram_dist/Sku/index/index.wxml +0 -58
  467. package/miniprogram_dist/Sku/index/index.wxss +0 -50
  468. package/miniprogram_dist/Sku/row-item/index.js +0 -61
  469. package/miniprogram_dist/Sku/row-item/index.json +0 -4
  470. package/miniprogram_dist/Sku/row-item/index.less +0 -48
  471. package/miniprogram_dist/Sku/row-item/index.wxml +0 -10
  472. package/miniprogram_dist/Sku/row-item/index.wxss +0 -42
  473. package/miniprogram_dist/Sku/step/index.js +0 -95
  474. package/miniprogram_dist/Sku/step/index.json +0 -6
  475. package/miniprogram_dist/Sku/step/index.less +0 -11
  476. package/miniprogram_dist/Sku/step/index.wxml +0 -11
  477. package/miniprogram_dist/Sku/step/index.wxss +0 -11
  478. package/miniprogram_dist/TeacherGoodsList/Header/index.js +0 -36
  479. package/miniprogram_dist/TeacherGoodsList/Header/index.json +0 -6
  480. package/miniprogram_dist/TeacherGoodsList/Header/index.less +0 -47
  481. package/miniprogram_dist/TeacherGoodsList/Header/index.wxml +0 -27
  482. package/miniprogram_dist/TeacherGoodsList/Header/index.wxss +0 -45
  483. package/miniprogram_dist/TeacherGoodsList/README.md +0 -10
  484. package/miniprogram_dist/TeacherGoodsList/index.js +0 -269
  485. package/miniprogram_dist/TeacherGoodsList/index.json +0 -8
  486. package/miniprogram_dist/TeacherGoodsList/index.less +0 -53
  487. package/miniprogram_dist/TeacherGoodsList/index.wxml +0 -49
  488. package/miniprogram_dist/TeacherGoodsList/index.wxss +0 -50
  489. package/miniprogram_dist/common/api/confirmOrder.js +0 -218
  490. package/miniprogram_dist/common/api/coupon.js +0 -19
  491. package/miniprogram_dist/common/api/couponlist.js +0 -106
  492. package/miniprogram_dist/common/api/eLiveInvite.js +0 -46
  493. package/miniprogram_dist/common/api/liveGoodsList.js +0 -52
  494. package/miniprogram_dist/common/api/lottery.js +0 -57
  495. package/miniprogram_dist/common/api/pay.js +0 -42
  496. package/miniprogram_dist/common/api/payComplete.js +0 -22
  497. package/miniprogram_dist/common/api/sharePoster.js +0 -68
  498. package/miniprogram_dist/common/api/sku.js +0 -58
  499. package/miniprogram_dist/common/assets/copy.wxss +0 -3
  500. package/miniprogram_dist/common/assets/icon.png +0 -0
  501. package/miniprogram_dist/common/assets/images/activity.png +0 -0
  502. package/miniprogram_dist/common/assets/images/address.png +0 -0
  503. package/miniprogram_dist/common/assets/images/bg_gift@2x.png +0 -0
  504. package/miniprogram_dist/common/assets/images/close.png +0 -0
  505. package/miniprogram_dist/common/assets/images/coupon/coupon_bg.png +0 -0
  506. package/miniprogram_dist/common/assets/images/coupon/coupon_finish.png +0 -0
  507. package/miniprogram_dist/common/assets/images/coupon/coupon_select.png +0 -0
  508. package/miniprogram_dist/common/assets/images/coupon/coupon_style2.png +0 -0
  509. package/miniprogram_dist/common/assets/images/coupon/coupon_style2.svg +0 -30
  510. package/miniprogram_dist/common/assets/images/coupon/coupons_style2.svg +0 -30
  511. package/miniprogram_dist/common/assets/images/coupon/down.svg +0 -22
  512. package/miniprogram_dist/common/assets/images/coupon/emptypage.svg +0 -50
  513. package/miniprogram_dist/common/assets/images/coupon/expand.png +0 -0
  514. package/miniprogram_dist/common/assets/images/coupon/failed.png +0 -0
  515. package/miniprogram_dist/common/assets/images/coupon/failed.svg +0 -5
  516. package/miniprogram_dist/common/assets/images/coupon/finished.png +0 -0
  517. package/miniprogram_dist/common/assets/images/coupon/has_receive.png +0 -0
  518. package/miniprogram_dist/common/assets/images/coupon/has_recevie_style2.png +0 -0
  519. package/miniprogram_dist/common/assets/images/coupon/hint.png +0 -0
  520. package/miniprogram_dist/common/assets/images/coupon/icon_arrow.png +0 -0
  521. package/miniprogram_dist/common/assets/images/coupon/retract.png +0 -0
  522. package/miniprogram_dist/common/assets/images/coupon/seal_receivingPage_received.png +0 -0
  523. package/miniprogram_dist/common/assets/images/coupon/superposition_logo.png +0 -0
  524. package/miniprogram_dist/common/assets/images/coupon/up.svg +0 -22
  525. package/miniprogram_dist/common/assets/images/fingerprint.png +0 -0
  526. package/miniprogram_dist/common/assets/images/icon-tip.png +0 -0
  527. package/miniprogram_dist/common/assets/images/img_adrr.png +0 -0
  528. package/miniprogram_dist/common/assets/images/left.png +0 -0
  529. package/miniprogram_dist/common/assets/images/liveGoodsList/explaining.png +0 -0
  530. package/miniprogram_dist/common/assets/images/liveGoodsList/no-data.png +0 -0
  531. package/miniprogram_dist/common/assets/images/lottery/arrow-right.png +0 -0
  532. package/miniprogram_dist/common/assets/images/lottery/black-right-arrow.png +0 -0
  533. package/miniprogram_dist/common/assets/images/lottery/close-f-new.png +0 -0
  534. package/miniprogram_dist/common/assets/images/lottery/icon_back_black.png +0 -0
  535. package/miniprogram_dist/common/assets/images/lottery/is_not_winner.svg +0 -19
  536. package/miniprogram_dist/common/assets/images/lottery/lotteryV2_close.png +0 -0
  537. package/miniprogram_dist/common/assets/images/lottery/lottery_v1_back.svg +0 -19
  538. package/miniprogram_dist/common/assets/images/lottery/lottery_v1_close.svg +0 -19
  539. package/miniprogram_dist/common/assets/images/lottery/prize_icon_new_land.png +0 -0
  540. package/miniprogram_dist/common/assets/images/lottery/reward_list_title.svg +0 -19
  541. package/miniprogram_dist/common/assets/images/lottery/white_right_arrow.png +0 -0
  542. package/miniprogram_dist/common/assets/images/lottery/winner_list_smile_icon.svg +0 -56
  543. package/miniprogram_dist/common/assets/images/lottery/winner_list_title.svg +0 -19
  544. package/miniprogram_dist/common/assets/images/package.png +0 -0
  545. package/miniprogram_dist/common/assets/images/pay/loading.svg +0 -3
  546. package/miniprogram_dist/common/assets/images/recommend.svg +0 -6
  547. package/miniprogram_dist/common/assets/images/recommend_with_bg.png +0 -0
  548. package/miniprogram_dist/common/assets/images/refresh.svg +0 -10
  549. package/miniprogram_dist/common/assets/images/refresh_white.svg +0 -3
  550. package/miniprogram_dist/common/assets/images/replenish.png +0 -0
  551. package/miniprogram_dist/common/assets/images/search-bg.png +0 -0
  552. package/miniprogram_dist/common/assets/images/shop.png +0 -0
  553. package/miniprogram_dist/common/assets/images/success.png +0 -0
  554. package/miniprogram_dist/common/assets/images/tips.png +0 -0
  555. package/miniprogram_dist/common/assets/images/update.png +0 -0
  556. package/miniprogram_dist/common/assets/images/wechat.svg +0 -4
  557. package/miniprogram_dist/common/assets/images/wx.png +0 -0
  558. package/miniprogram_dist/common/assets/images/zhixiang.png +0 -0
  559. package/miniprogram_dist/common/css/index.less +0 -2
  560. package/miniprogram_dist/common/css/index.wxss +0 -1
  561. package/miniprogram_dist/common/css/theme.less +0 -20
  562. package/miniprogram_dist/common/css/theme.wxss +0 -16
  563. package/miniprogram_dist/common/libs/dataUp/sensorUp.js +0 -92
  564. package/miniprogram_dist/common/libs/playerHttp.js +0 -58
  565. package/miniprogram_dist/common/libs/playerRequestUrl.js +0 -40
  566. package/miniprogram_dist/common/utils/constants.js +0 -256
  567. package/miniprogram_dist/common/utils/currency.js +0 -52
  568. package/miniprogram_dist/common/utils/helper.js +0 -160
  569. package/miniprogram_dist/common/utils/index.js +0 -56
  570. package/miniprogram_dist/common/utils/postCouponList.js +0 -53
  571. package/miniprogram_dist/common/utils/tool.js +0 -66
  572. package/miniprogram_dist/common/wxs/filter.wxs +0 -30
  573. package/miniprogram_dist/coupon/README.md +0 -12
  574. package/miniprogram_dist/coupon/components/CouponItem/index.js +0 -176
  575. package/miniprogram_dist/coupon/components/CouponItem/index.json +0 -6
  576. package/miniprogram_dist/coupon/components/CouponItem/index.less +0 -208
  577. package/miniprogram_dist/coupon/components/CouponItem/index.wxml +0 -100
  578. package/miniprogram_dist/coupon/components/CouponItem/index.wxss +0 -195
  579. package/miniprogram_dist/coupon/components/CouponSelect/index.js +0 -324
  580. package/miniprogram_dist/coupon/components/CouponSelect/index.json +0 -9
  581. package/miniprogram_dist/coupon/components/CouponSelect/index.less +0 -238
  582. package/miniprogram_dist/coupon/components/CouponSelect/index.wxml +0 -75
  583. package/miniprogram_dist/coupon/components/CouponSelect/index.wxss +0 -249
  584. package/miniprogram_dist/coupon/index.css +0 -50
  585. package/miniprogram_dist/coupon/index.js +0 -205
  586. package/miniprogram_dist/coupon/index.json +0 -8
  587. package/miniprogram_dist/coupon/index.less +0 -51
  588. package/miniprogram_dist/coupon/index.wxml +0 -24
  589. package/miniprogram_dist/coupon/index.wxss +0 -50
  590. package/miniprogram_dist/index.js +0 -117
  591. package/miniprogram_dist/index.js.map +0 -1
  592. package/miniprogram_dist/index.json +0 -5
  593. package/miniprogram_dist/index.wxml +0 -2
  594. package/miniprogram_dist/index.wxss +0 -1
  595. package/miniprogram_dist/lib.js +0 -105
  596. package/miniprogram_dist/lib.js.map +0 -1
@@ -1,1898 +0,0 @@
1
- import objToPoster from '../createPoster/index'
2
- import { posterInfo } from '../libs/positionMap';
3
- import { TYPES,POSTER_CLS, } from '../libs/constant';
4
- import { sensorLog } from "live-mp-tools";
5
- const computedBehavior = require('miniprogram-computed').behavior;
6
- const POSTER_WIDTH = 750;
7
- const POSTER_HEIGHT = 1344;
8
-
9
- let ID = 0
10
-
11
- Component({
12
- behaviors: [computedBehavior],
13
- /**
14
- * 组件的属性列表
15
- */
16
- /**
17
- * 组件的属性列表
18
- */
19
- properties: {
20
- isSinglePoster: {
21
- type: Boolean,
22
- value: false
23
- },
24
- motiveInfo: {
25
- type: Array,
26
- value: () => {
27
- return [];
28
- }
29
- },
30
- posterItem: {
31
- type: Object,
32
- value: () => {},
33
- },
34
- promotionInfo:{
35
- type: Object,
36
- value: () => {
37
- return {};
38
- }
39
- },
40
- showPopup:{
41
- type: Boolean,
42
- value: false
43
- },
44
- sensorReportParams: {
45
- type: Object,
46
- value: () => {}
47
- },
48
- roomInfo: {
49
- type: Object,
50
- value: () => {}
51
- }
52
- },
53
- observers: {
54
- posterItem(newData) {
55
- if(Object.getOwnPropertyNames(newData).length){
56
- this.setData({
57
- isVisible :true,
58
- posterItemData:newData,
59
- posterStyle:newData.default_poster_mark
60
- })
61
- }
62
- if(Object.getOwnPropertyNames(newData).length && Object.getOwnPropertyNames(this.properties.promotionInfo).length && this.properties.promotionInfo.resource_info.qr_code.includes("myqcloud")){
63
- if(this.properties.showPopup){
64
- this.generatePoster(15);
65
- }
66
- }
67
- },
68
- promotionInfo(newData){
69
- if(Object.getOwnPropertyNames(newData).length && newData.resource_info.qr_code.includes("myqcloud") && Object.getOwnPropertyNames(this.properties.posterItem).length){
70
- if(this.properties.showPopup){
71
- this.generatePoster(15);
72
- }
73
- }
74
- },
75
- },
76
- lifetimes: {
77
- attached(){
78
- var app = getApp()
79
- app.globalData[`poster${ID++}`] = this
80
- },
81
- ready(){
82
- this.cleanUpWxFileSystemMemory(2);
83
- }
84
- },
85
- /**
86
- * 组件的初始数据
87
- */
88
- data: {
89
- imgSrc:'',
90
- imageUrl:'',
91
- isVisible:true,
92
- posterMapInfo: posterInfo,
93
- motiveInfoData:{"text":"世上没有任何伟业的成就能够离得开激情。","auther":"黑格尔"},
94
- shareAddInfo:{},
95
- posterObj:{},
96
- isSwitchBtnShow:false,
97
- posterItemData:{},
98
- posterStyle:"",
99
- defaultAvatarUrl: 'https://wechatavator-1252524126.cos.ap-shanghai.myqcloud.com/dasda.jpg',
100
- longPressCount: 0
101
- },
102
- computed:{
103
- posterData(data) {
104
- let temInfo = data.posterItemData;
105
- let defaultPoster = data.posterMapInfo[data.posterItemData.default_poster_mark];
106
- temInfo = {...data.posterItemData, ...defaultPoster};
107
- console.log(temInfo,'teninfo');
108
- return temInfo;
109
- },
110
- // 根据不同商品类型展示不同邀请文案
111
- shareHint(data) {
112
- let resType = data.promotionInfo && data.promotionInfo.resource_info && data.promotionInfo.resource_info.resource_type;
113
- let shareTxt = '';
114
- if (data.posterData.is_default === 1) {
115
- switch (resType) {
116
- case 2:
117
- shareTxt = '邀请你一起收听';
118
- break;
119
- case 4:
120
- shareTxt = '邀请你一起观看';
121
- break;
122
- case 20:
123
- shareTxt = '邀请你一起阅读';
124
- break;
125
- case 21:
126
- shareTxt = '邀请你一起购买';
127
- break;
128
- case 31:
129
- case 29:
130
- case 25:
131
- case 35:
132
- shareTxt = '邀请你一起参加';
133
- break;
134
- default:
135
- shareTxt = '邀请你一起学习';
136
- break;
137
- }
138
- }
139
-
140
- return shareTxt;
141
- },
142
- userInfo(data) {
143
- return data.promotionInfo.user_info || { wx_avatar: '', wx_nickname: '' };
144
- },
145
- // posterStyle(data) {
146
- // return data.posterData && data.posterData.default_poster_mark || "";
147
- // },
148
- showGoods(data) {
149
- let showGood = data.posterData.is_show_goods;
150
- if (data.posterStyle !== POSTER_CLS.USER_CUSTOM) {
151
- showGood = data.posterData.goods_position;
152
- }
153
- return showGood;
154
- },
155
- showGoodsImg(data) {
156
- let showImg = true;
157
- if (data.posterData.is_default === 1) {
158
- showImg = data.posterData.show_goods_img;
159
- }
160
- return showImg;
161
- },
162
- showFinger(data) {
163
- return data.posterData.qr_code_type === 1 && data.posterData.is_default === 0;
164
- },
165
- resource_info(data) {
166
- return data.promotionInfo && data.promotionInfo.resource_info;
167
- },
168
- isShowPrice(data) {
169
- let showPrcie = true;
170
- let payment_type = data.resource_info && data.resource_info.payment_type || 2; //仅关联不展示价格
171
- if (data.posterStyle !== POSTER_CLS.USER_CUSTOM) {
172
- showPrcie = data.posterData.has_price_info;
173
- } else {
174
- showPrcie = data.posterData.is_show_price && payment_type != 3;
175
- }
176
- return showPrcie;
177
- },
178
- activityLable(data) {
179
- return data.resource_info && data.resource_info.activity_label || '';
180
- },
181
- zbStartAt(data) {
182
- return data.resource_info && data.resource_info.zb_start_at && data.resource_info.zb_start_at.split(' ');
183
- },
184
- resourceLinePrice(data) {
185
- return data.resource_info && data.resource_info.line_price ? String((data.resource_info.line_price / 100).toFixed(2)) : '';
186
- }
187
- },
188
-
189
- /**
190
- * 组件的方法列表
191
- */
192
- methods: {
193
- longPress() {
194
- try{
195
- let params = {
196
- page_id: 'e_alive#mini#first#alive_room',
197
- l_program: '鹅直播',
198
- page_name: '直播间页面',
199
- page_path: '鹅直播#小程序#首页#直播间页面',
200
- app_id: this.properties.roomInfo.appId,
201
- page_button: "长按保存海报",
202
- c_user_id: this.properties.roomInfo.userId,
203
- union_id:this.properties.roomInfo.unionId,
204
- resource_id: this.properties.roomInfo.aliveId,
205
- current_role:this.properties.sensorReportParams.current_role,
206
- type:this.properties.sensorReportParams.type,
207
- cmm1:this.properties.sensorReportParams.alive_type,
208
- cmm2:this.properties.sensorReportParams.version_type,
209
- comm2:this.properties.sensorReportParams.pay_type,
210
- cmm3:'鹅直播增长'
211
- }
212
- sensorLog.sensors.track('click_butt', params);
213
- console.log("当前长按了 保存图片" + Number(++this.data.longPressCount) +"次",params);
214
- }catch(e) {
215
- console.log("埋点", e)
216
- }
217
- },
218
- getPosterData() {
219
- let temInfo = this.data.posterItemData;
220
- let defaultPoster = this.data.posterMapInfo[this.data.posterItemData.default_poster_mark];
221
- temInfo = {...this.data.posterItemData, ...defaultPoster};
222
- return temInfo;
223
- },
224
- // 价格的 单位、整数、小数部分字体大小不同,需分别绘制再拼接
225
- // x,y 表示起始位置
226
- getResourcePrice(x, y, color,poster) {
227
- const { price } = this.data.resource_info;
228
- if (price === 0) {
229
- return [
230
- {
231
- label: 'free',
232
- type: "font",
233
- x,
234
- y,
235
- value: '免费',
236
- size: 40,
237
- color
238
- }
239
- ];
240
- }
241
- const [priceInt, priceFloat] = String((price / 100).toFixed(2)).split('.');
242
- const unitProps = {
243
- label: 'priceUnit',
244
- type: "font",
245
- x,
246
- y,
247
- value: '¥',
248
- size: 40,
249
- fontWeight: 'normal',
250
- color
251
- };
252
- const MARGIN_RIGHT = 8;
253
- const priceIntProps = {
254
- label: 'priceInt',
255
- type: "font",
256
- x: x + poster.getTextRect(unitProps).width + MARGIN_RIGHT,
257
- y: y - 10,
258
- value: priceInt,
259
- size: 60,
260
- fontWeight: 'normal',
261
- color
262
- };
263
- const priceFloatProps = {
264
- label: 'priceFloat',
265
- type: "font",
266
- x:
267
- x +
268
- poster.getTextRect(priceIntProps).width +
269
- poster.getTextRect(unitProps).width +
270
- MARGIN_RIGHT,
271
- y,
272
- value: `.${priceFloat}`,
273
- size: 40,
274
- fontWeight: 'normal',
275
- color
276
- };
277
- return [unitProps, priceIntProps, priceFloatProps];
278
- },
279
- // 实际渲染的价格包含三个部分:整数、小数点、小数点后两位
280
- getResourcePriceRect(poster) {
281
- const [unitProps, priceIntProps, priceFloatProps] = this.getResourcePrice(0, 0, 'black',poster);
282
- const unitTextRect = poster.getTextRect(unitProps);
283
- const priceIntTextRect = poster.getTextRect(priceIntProps);
284
- const priceFloatTextRect = poster.getTextRect(priceFloatProps);
285
- return {
286
- width: unitTextRect.width + priceIntTextRect.width + priceFloatTextRect.width,
287
- height: Math.max(unitTextRect.height, priceIntTextRect.height, priceFloatTextRect.height)
288
- };
289
- },
290
- generatePoster(random){
291
- const that = this
292
- this.triggerEvent('drawPosterBegin');
293
- new objToPoster(POSTER_WIDTH,POSTER_HEIGHT,1,this).initCanvas(this,1).then(res=>{
294
- this.posterObj = this.getPosterConfig(res);
295
- return this.posterObj && res.convertToImg(this.posterObj)
296
- }).then(response=>{
297
- if(response){
298
- this.cleanUpWxFileSystemMemory(43);
299
- this.getWxFilesListAndWriteFile(response,random);
300
- }
301
- })
302
- },
303
- getImageSrc(response) {
304
- console.log('getImageSrc: ', response)
305
- this.setData({
306
- imgSrc: response,
307
- imageUrl: response,
308
- isVisible: false
309
- },()=>{
310
-
311
- console.log('imageUrl', this.data.imageUrl)
312
- })
313
- },
314
- getWxFilesListAndWriteFile(response,random){
315
- let that = this;
316
- const fs = wx.getFileSystemManager();
317
- fs.readdir({
318
- dirPath: wx.env.USER_DATA_PATH,
319
- success(res) {
320
- //res.files为存入的列表路径
321
- let filesList = res.files;
322
- let isOtherPosterExist = false;
323
- let isStudyPosterExist = false;
324
- if(filesList.length>2){
325
- isStudyPosterExist = that.data.posterStyle === POSTER_CLS.STUDY && filesList.some(item=>{
326
- let num = +(item.replace(/[^0-9]/ig,""))
327
- return num === random && item.includes(that.data.posterStyle)
328
- })
329
- isOtherPosterExist = that.data.posterStyle !== POSTER_CLS.STUDY && filesList.some(item=>{
330
- return item.includes(that.data.posterStyle)
331
- })
332
- if(!(isStudyPosterExist || isOtherPosterExist)){
333
- that.wxWriteFile(response,random)
334
- }else{
335
- if(isStudyPosterExist){
336
- that.setData({
337
- imageUrl:wx.env.USER_DATA_PATH + '/'+ that.data.posterStyle + random +'.png'
338
- })
339
- }else if(isOtherPosterExist){
340
- that.setData({
341
- imageUrl:wx.env.USER_DATA_PATH + '/'+ that.data.posterData.id +'.png'
342
- })
343
- }
344
- let isShow = that.data.posterData && that.data.posterData.default_poster_mark === POSTER_CLS.STUDY;
345
- that.setData({
346
- isSwitchBtnShow: isShow,
347
- isVisible: false
348
- })
349
- that.triggerEvent('drawPosterFulfilled', that.imageUrl);
350
- }
351
- }else{
352
- that.wxWriteFile(response,random)
353
- }
354
- }
355
- })
356
- },
357
- cleanUpWxFileSystemMemory(n){
358
- const fs = wx.getFileSystemManager();
359
- fs.readdir({
360
- dirPath: wx.env.USER_DATA_PATH,
361
- success(res) {
362
- //res.files为存入的列表路径
363
- let indexVal = res.files.length;
364
- //由于微信本地存储超过10M时,写入文件失败,10M大概是43张海报的内存,所以大于42时,清除垃圾文件,再写入
365
- if(indexVal>n){
366
- res.files.forEach((el) => {
367
- let name = (wx.env.USER_DATA_PATH+el).replace(/usr/g, "usr/");
368
- fs.unlink({
369
- filePath:name,
370
- fail(e) {
371
- console.log('文件删除失败:', e)
372
- },
373
- success(succ){
374
- console.log('文件删除成功:', succ);
375
- }
376
- })
377
- })
378
- }
379
- }
380
- })
381
- },
382
- wxWriteFile(response,random){
383
- const fs = wx.getFileSystemManager();
384
- //随机定义路径名称
385
- let codeimg =this.data.posterStyle === POSTER_CLS.STUDY ? wx.env.USER_DATA_PATH + '/' + this.data.posterStyle + random + '.png': wx.env.USER_DATA_PATH + '/' + this.data.posterData.id + '.png';
386
- //将base64图片写入
387
- fs.writeFile({
388
- filePath: codeimg,
389
- data: response.slice(22),
390
- encoding: 'base64',
391
- success: (res) => {
392
- //写入成功了的话,新的图片路径就能用了
393
- console.log(res)
394
- console.log("codeimg: ",codeimg)
395
- // this.imgSrc=codeimg;
396
- this.setData({
397
- imageUrl:codeimg
398
- })
399
- let isShow = this.data.posterData && this.data.posterData.default_poster_mark === POSTER_CLS.STUDY;
400
- this.setData({
401
- isSwitchBtnShow:isShow
402
- })
403
- this.triggerEvent('drawPosterFulfilled', this.data.imageUrl);
404
- },
405
- fail:(error)=>{
406
- console.log(error);
407
- }
408
- })
409
- },
410
- getPosterConfig(poster){
411
- const drawPosterFnMaps = {
412
- [POSTER_CLS.USER_CUSTOM]: this.drawUserCustomPoster,
413
- [POSTER_CLS.STUDY]: this.drawStudyPoster,
414
- [POSTER_CLS.PRICE_ONE]: this.drawPriceOnePoster,
415
- [POSTER_CLS.INTERACT_ONE]: this.drawInteractOnePoster,
416
- [POSTER_CLS.INTERACT_TWO]: this.drawInteractTwoPoster,
417
- [POSTER_CLS.PRICE_TWO]: this.drawPriceTwoPoster,
418
- [POSTER_CLS.INTERACT_THREE]: this.drawInteractThreePoster,
419
- [POSTER_CLS.ENTITY]: this.drawEntityPoster,
420
- [POSTER_CLS.ALIVE]: this.drawAlivePoster,
421
- [POSTER_CLS.ALIVE_GENERAL]: this.drawAliveGeneralPoster,
422
- [POSTER_CLS.ALIVE_SPECIFIC]: this.drawAliveSpecificPoster
423
- };
424
- console.log(this.data.posterStyle,'this.data.posterStyle')
425
- if(!this.data.posterStyle){
426
- return
427
- }
428
- const drawFn = drawPosterFnMaps[this.data.posterStyle].bind(this);
429
- if (!drawFn) {
430
- console.warn('未知的海报类型', this.data.posterStyle);
431
- return;
432
- }
433
- let posterConfigObj = drawFn(poster);
434
- return posterConfigObj;
435
- },
436
- // 绘制自定义海报
437
- // 自定义海报的 头像、昵称、二维码,是否展示、位置、宽高都是取的接口数据。
438
- // 其中 二维码类型需要单独区分 并计算位置和宽高
439
- // 条件渲染约定的值比较混乱
440
- drawUserCustomPoster(poster) {
441
- const isShowAvatar = [1, 2].includes(this.data.posterData.is_show_avatar); // 1和2 展示
442
- const isShowNickname = [1, 2].includes(this.data.posterData.is_show_nickname); // 1和2 展示
443
- const isShowGoods = this.data.posterData.is_show_goods === 1;
444
- const isShowPrice = this.data.posterData.is_show_price === 1;
445
- const isHideQrcode = this.data.posterData.qr_code_type === 2; // 0和1 展示
446
- const isShowFingerprints = this.data.posterData.is_show_fingerprints === 1; // 0和2 不展示
447
-
448
-
449
- const LINE_PRICE_MARGIN_RIGHT = 80;
450
- const linePriceProps = {
451
- label: 'resourceLinePrice',
452
- type: TYPES.TEXT,
453
- value: this.data.resourceLinePrice,
454
- size: 32,
455
- fontWeight: 'bold',
456
- color: '#777',
457
- textStyle: 'stroke'
458
- };
459
-
460
- // 部分公共数据提取出来,包含:背景图、价格、划线价、资源图、标题
461
- const commonWidgets = [
462
- {
463
- label: 'posterBg',
464
- type: TYPES.BG_IMG,
465
- src: this.data.posterData.poster_url,
466
- x:0,
467
- y:0,
468
- width:POSTER_WIDTH,
469
- height:POSTER_HEIGHT
470
- },
471
- isShowGoods && isShowPrice &&
472
- this.data.resourceLinePrice && {
473
- ...linePriceProps,
474
- x: POSTER_WIDTH - poster.getTextRect(linePriceProps).width - LINE_PRICE_MARGIN_RIGHT,
475
- y: 830
476
- },
477
- ...(isShowGoods && isShowPrice ? this.getResourcePrice(88, 830, '#FE8946',poster) : []),
478
- isShowGoods && {
479
- label: 'goodsName',
480
- type: TYPES.TEXT,
481
- x: 88,
482
- y: !isShowPrice ? 826 : 890,
483
- value: this.data.resource_info.title,
484
- size: 32,
485
- fontWeight: 'normal',
486
- color: 'black',
487
- maxWidth: 550,
488
- textOverflow: 'ellipsis'
489
- },
490
- isShowGoods && {
491
- label: 'goodsImg',
492
- type: TYPES.IMG,
493
- imgRoundType:'halfRoundRect',
494
- src: this.data.resource_info && this.data.resource_info.img_url,
495
- x: POSTER_WIDTH / 2 - 640 / 2,
496
- y: 310,
497
- width: 640,
498
- height: 640 * 0.75,
499
- },
500
- isShowGoods && {
501
- label: 'resourceAdditionalBackground',
502
- type: TYPES.SHAPE,
503
- width: 640,
504
- height: !isShowPrice ? 100 : 180,
505
- x: POSTER_WIDTH / 2 - 640 / 2,
506
- y: 790,
507
- r:20,
508
- color: 'white',
509
- shape:'bottomRoundRect',
510
- }
511
- ];
512
-
513
- // 新老数据逻辑上分开渲染,方便后续维护
514
- const isNewDataSource = Boolean(
515
- this.data.posterData.qrcode_size && this.data.posterData.avatar_size && this.data.posterData.nickname_size
516
- );
517
-
518
- console.log('isNewDataSource: ', isNewDataSource);
519
- if (isNewDataSource) {
520
- // 昵称最长不超出海报边界
521
- // 省略号...约等于一个字的宽度
522
- const NICKNAME_MARGIN_RIGHT = this.data.posterData.nickname_size.size;
523
- let nicknameMaxWidth = 400;
524
- if (this.data.posterData.is_show_avatar === 1) {
525
- const centralPoint = this.data.posterData.avatar_position.x + this.data.posterData.avatar_size.w / 2;
526
- nicknameMaxWidth = 2 * Math.min(POSTER_WIDTH - centralPoint, centralPoint) - NICKNAME_MARGIN_RIGHT*2;
527
- }
528
- if (this.data.posterData.is_show_avatar === 2) {
529
- nicknameMaxWidth = POSTER_WIDTH - this.data.posterData.nickname_position.x - NICKNAME_MARGIN_RIGHT;
530
- }
531
- const nicknameProps = {
532
- label: 'nickname',
533
- type: TYPES.TEXT,
534
- value: this.data.userInfo.wx_nickname,
535
- size: this.data.posterData.nickname_size.size,
536
- fontWeight: 'normal',
537
- color: this.data.posterData.nickname_color === 1 ? 'black' : 'white', // 0 | 1 | 2
538
- maxWidth: nicknameMaxWidth,
539
- textOverflow: 'ellipsis'
540
- };
541
- const nicknameRect = poster.getTextRect(nicknameProps);
542
- let nicknameX = this.data.posterData.nickname_position.x;
543
- // is_show_avatar === 1 时,昵称相对于头像 居中展示
544
- if (this.data.posterData.is_show_avatar === 1) {
545
- nicknameX =
546
- this.data.posterData.avatar_position.x + this.data.posterData.avatar_size.w / 2 - nicknameRect.width / 2;
547
- }
548
- return [
549
- ...commonWidgets,
550
- isShowNickname && {
551
- ...nicknameProps,
552
- x: nicknameX,
553
- y: this.data.posterData.nickname_position.y,
554
- },
555
- isShowAvatar && {
556
- label: 'avatar',
557
- type: TYPES.IMG,
558
- src: this.data.userInfo.wx_avatar,
559
- x: this.data.posterData.avatar_position.x,
560
- y: this.data.posterData.avatar_position.y,
561
- width: this.data.posterData.avatar_size.w,
562
- height: this.data.posterData.avatar_size.h,
563
- border:this.data.posterData.avatar_size.w
564
- },
565
- // 二维码和指纹宽高 需单独计算
566
- // 已知:二维码 和 指纹宽高一致,且能拿到整体宽高 qrcode_size.x qrcode_size.y
567
- // 间隙需动态调整
568
- isHideQrcode || {
569
- label: 'qrcode',
570
- type: TYPES.IMG,
571
- imgRoundType : 'fullRoundRect',
572
- src: this.data.resource_info && this.data.resource_info.qr_code,
573
- x: this.data.posterData && this.data.posterData.qrcode_position && this.data.posterData.qrcode_position.x,
574
- y: this.data.posterData && this.data.posterData.qrcode_position && this.data.posterData.qrcode_position.y,
575
- width: this.data.posterData.qrcode_size.h,
576
- height: this.data.posterData.qrcode_size.h,
577
- },
578
- isShowFingerprints && {
579
- label: 'fingerprint',
580
- type: TYPES.IMG,
581
- // 新数据 fingerprint_position 废弃不用
582
- x:
583
- this.data.posterData.qrcode_position.x +
584
- this.data.posterData.qrcode_size.w -
585
- this.data.posterData.qrcode_size.h,
586
- // 注意:顶部和二维码对齐,这里是之前已有的逻辑(由于fingerprint_position和qrcode_position数据y不一致,直接采用二维码的y值定位)
587
- y: this.data.posterData.qrcode_position.y,
588
- width: this.data.posterData.qrcode_size.h,
589
- height: this.data.posterData.qrcode_size.h,
590
- src: 'http://wechatapppro-1252524126.file.myqcloud.com/appAKLWLitn7978/image/859093d21aee5d46f4a58d3842f81d0d.png'
591
- }
592
- ];
593
- } else {
594
- // 注意:以下代码为兼容海报旧数据(已废弃)的特殊逻辑。
595
- // 由于旧数据及其不准确,之前是前端对错误的数据进行兜底特殊处理,几乎无法维护。
596
- // 以下逻辑完全照搬旧代码,非必要勿动。
597
- const NICKNAME_MARGIN_RIGHT = 36;
598
- const nicknameProps = {
599
- label: 'nickname',
600
- type: TYPES.TEXT,
601
- x: this.data.posterData.nickname_position.x,
602
- y: this.data.posterData.nickname_position.y,
603
- value: this.data.userInfo.wx_nickname,
604
- size: 32,
605
- fontWeight: 'normal',
606
- color: this.data.posterData.nickname_color === 1 ? 'black' : 'white', // 0 | 1 | 2
607
- textOverflow: 'ellipsis'
608
- };
609
- const nicknameRect = poster.getTextRect(nicknameProps);
610
- let nicknameX = this.data.posterData.nickname_position.x;
611
- let nicknameY = this.data.posterData.nickname_position.y;
612
- let align = this.data.posterData.nickname_position.align || 'left';
613
- if (align === 'center') {
614
- nicknameX = nicknameX - nicknameRect.width / 2;
615
- }
616
- // 由于b端自定义海报时,昵称距离海报边框有距离,所以如果left小于/等于18,则left取值为18
617
- nicknameX = Math.max(18, nicknameX);
618
- nicknameY = nicknameY - nicknameRect.height / 4;
619
- return [
620
- ...commonWidgets,
621
- isShowNickname && {
622
- ...nicknameProps,
623
- x: nicknameX,
624
- y: nicknameY,
625
- maxWidth: POSTER_WIDTH - nicknameX - NICKNAME_MARGIN_RIGHT
626
- },
627
- isShowAvatar && {
628
- label: 'avatar',
629
- type: TYPES.IMG,
630
- x: this.data.posterData.avatar_position.x,
631
- y: this.data.posterData.avatar_position.y-10,
632
- width: 90,
633
- height: 90,
634
- src: this.data.userInfo.wx_avatar,
635
- border:90
636
- },
637
- isHideQrcode || {
638
- label: 'qrcode',
639
- type: TYPES.IMG,
640
- imgRoundType : 'fullRoundRect',
641
- x: this.data.posterData && this.data.posterData.qrcode_position && this.data.posterData.qrcode_position.x,
642
- y: this.data.posterData && this.data.posterData.qrcode_position && this.data.posterData.qrcode_position.y,
643
- width: 150,
644
- height: 150,
645
- src: this.data.resource_info && this.data.resource_info.qr_code,
646
- },
647
- isShowFingerprints && {
648
- label: 'fingerprint',
649
- type: TYPES.IMG,
650
- x: this.data.posterData.fingerprint_position.x,
651
- y: this.data.posterData.fingerprint_position.y,
652
- width: 140,
653
- height: 140,
654
- src: 'http://wechatapppro-1252524126.file.myqcloud.com/appAKLWLitn7978/image/859093d21aee5d46f4a58d3842f81d0d.png'
655
- }
656
- ];
657
- }
658
- },
659
- //实物商品只有一张海报的场景
660
- drawEntityPoster(poster) {
661
- const LABEL_PADDING = 16;
662
- const LINE_PRICE_MARGIN_LEFT = 120;
663
- const shopNameProps = {
664
- label: 'shopName',
665
- type: TYPES.TEXT,
666
- y: 196,
667
- value: this.data.posterData.shop_name,
668
- size: 30,
669
- fontWeight: 'normal',
670
- color: 'white',
671
- maxWidth: 500
672
- };
673
- const shopNameRect = poster.getTextRect(shopNameProps);
674
- const linePriceProps = {
675
- label: 'resourceLinePrice',
676
- type: TYPES.TEXT,
677
- value: this.data.resourceLinePrice,
678
- size: 32,
679
- fontWeight: 'bold',
680
- color: '#777',
681
- textStyle: 'stroke'
682
- };
683
- return [{
684
- label: 'posterBg',
685
- type: TYPES.BG_IMG,
686
- src: this.data.posterData.poster_url,
687
- x:0,
688
- y:0,
689
- width:POSTER_WIDTH,
690
- height:POSTER_HEIGHT
691
- },
692
- {
693
- label: 'avatar',
694
- type: TYPES.IMG,
695
- x: 48,
696
- y: 32,
697
- width: 100,
698
- height: 100,
699
- src: this.data.userInfo.wx_avatar,
700
- border: 50
701
- },
702
- {
703
- label: 'nickname',
704
- type: TYPES.TEXT,
705
- x: 170,
706
- y: 48,
707
- value: this.data.userInfo.wx_nickname,
708
- size: 36,
709
- fontWeight: 'bold',
710
- color: 'black',
711
- maxWidth: 500,
712
- textOverflow: 'ellipsis'
713
- },
714
- {
715
- label: 'sharePrompt',
716
- type: TYPES.TEXT,
717
- x: 170,
718
- y: 96,
719
- value: this.data.shareHint,
720
- size: 28,
721
- color: '#444'
722
- },
723
- {
724
- label: 'goodsImg',
725
- type: TYPES.IMG,
726
- imgRoundType : 'fullRoundRect',
727
- src: this.data.resource_info.img_url,
728
- x: POSTER_WIDTH / 2 - 620 / 2,
729
- y: 180,
730
- width: 620,
731
- height: 620
732
- },
733
- {
734
- label: 'goodsName',
735
- type: TYPES.TEXT,
736
- x: 80,
737
- y: 950,
738
- value: this.data.resource_info.title,
739
- size: 32,
740
- fontWeight: 'normal',
741
- color: 'black',
742
- maxWidth: 600,
743
- textOverflow: 'wrap',
744
- lineHeight:48
745
- },
746
- {
747
- label: 'shopNameLabel',
748
- type: TYPES.SHAPE,
749
- x: POSTER_WIDTH - shopNameRect.width - 82 - LABEL_PADDING*2,
750
- y: shopNameProps.y - LABEL_PADDING/2-4,
751
- r: 4,
752
- width: shopNameRect.width + 2 * LABEL_PADDING,
753
- height: shopNameProps.size + LABEL_PADDING/2,
754
- shape:'diagonalRoundRect',
755
- color: '#FD822B'
756
- },
757
- {
758
- ...shopNameProps,
759
- x: POSTER_WIDTH - shopNameRect.width - 80
760
- },
761
- this.data.resourceLinePrice && {
762
- ...linePriceProps,
763
- x: this.getResourcePriceRect(poster).width + LINE_PRICE_MARGIN_LEFT,
764
- y: 884
765
-
766
- },
767
- ...this.getResourcePrice(80, 880, '#FD822B',poster),
768
- {
769
- label: 'qrcode',
770
- type: TYPES.IMG,
771
- src: this.data.resource_info.qr_code,
772
- x: 80,
773
- y: 1080,
774
- width: 160,
775
- height: 160,
776
- }
777
- ];
778
- },
779
- // drawStudyPoster(poster) {
780
- // const motiveTextProps = {
781
- // label: 'motiveText',
782
- // type: TYPES.TEXT,
783
- // x: 80,
784
- // y: 510,
785
- // value: this.data.motiveInfoData.text,
786
- // size: 32,
787
- // color: 'black',
788
- // lineHeight: 48,
789
- // maxWidth: 590,
790
- // textOverflow: 'wrap' // wrap ellipsis
791
- // };
792
- // const motiveTextAuthorProps = {
793
- // label: 'motiveTextAuthor',
794
- // type: TYPES.TEXT,
795
- // value: `—— ${this.data.motiveInfoData.auther}`,
796
- // size: 32,
797
- // color: 'black',
798
- // maxWidth: 600
799
- // };
800
- // const motiveTextAuthorRect = poster.getTextRect(motiveTextAuthorProps);
801
- // const motiveTextRect = poster.getTextRect(motiveTextProps);
802
- // return [{
803
- // label: 'posterBg',
804
- // type: TYPES.BG_IMG,
805
- // src: this.data.posterData.poster_url,
806
- // x:0,
807
- // y:0,
808
- // width:POSTER_WIDTH,
809
- // height:POSTER_HEIGHT
810
- // },
811
- // {
812
- // label: 'avatar',
813
- // type: TYPES.IMG,
814
- // x: 122,
815
- // y: 256,
816
- // width: 160,
817
- // height: 160,
818
- // src: this.data.userInfo.wx_avatar,
819
- // border: 80
820
- // },
821
- // {
822
- // label: 'nickname',
823
- // type: TYPES.TEXT,
824
- // x: 320,
825
- // y: 280,
826
- // value: this.data.userInfo.wx_nickname,
827
- // size: 44,
828
- // fontWeight: 'bold',
829
- // color: 'black',
830
- // maxWidth: 280,
831
- // textOverflow: 'ellipsis'
832
- // },
833
- // {
834
- // label: 'sharePrompt',
835
- // type: TYPES.TEXT,
836
- // x: 320,
837
- // y: 340,
838
- // value: this.data.shareHint,
839
- // size: 40,
840
- // color: 'black'
841
- // },
842
- // motiveTextProps,
843
- // {
844
- // label: 'resourceTitle',
845
- // type: TYPES.TEXT,
846
- // x: 80,
847
- // y: 800,
848
- // value: this.data.resource_info.title,
849
- // size: 36,
850
- // fontWeight: 'normal',
851
- // color: 'black',
852
- // maxWidth: 590,
853
- // textOverflow: 'ellipsis'
854
- // },
855
- // // {
856
- // // label: 'qrcode',
857
- // // type: TYPES.IMG,
858
- // // x: POSTER_WIDTH / 2 - 168 / 2,
859
- // // y: 928,
860
- // // width: 168,
861
- // // height: 168,
862
- // // src: this.data.resource_info.qr_code
863
- // // },
864
- // {
865
- // label: 'scanPrompt',
866
- // type: TYPES.TEXT,
867
- // x: 0,
868
- // y: 1110,
869
- // value: '长按扫码查看详情',
870
- // size: 24,
871
- // fontWeight: 'bold',
872
- // color: 'black',
873
- // textAlign: "center"
874
- // },
875
- // {
876
- // label: 'shopName',
877
- // type: TYPES.TEXT,
878
- // y: 898,
879
- // value: this.data.posterData.shop_name,
880
- // size: 32,
881
- // fontWeight: 'bold',
882
- // color: 'black',
883
- // maxWidth: 590,
884
- // textAlign: "center"
885
- // },
886
- // {
887
- // ...motiveTextAuthorProps,
888
- // x: POSTER_WIDTH - motiveTextAuthorRect.width - 80,
889
- // y: 500 + motiveTextRect.height
890
- // }
891
- // ];
892
- // },
893
- drawPriceOnePoster(poster) {
894
- const shopNameProps = {
895
- label: 'shopName',
896
- type: TYPES.TEXT,
897
- y: 346,
898
- value: this.data.posterData.shop_name,
899
- size: 32,
900
- fontWeight: 'bold',
901
- color: 'white',
902
- maxWidth: 500
903
- };
904
- const shopNameRect = poster.getTextRect(shopNameProps);
905
- const LABEL_PADDING = 4;
906
- const LINE_PRICE_MARGIN_RIGHT = 56;
907
- const linePriceProps = {
908
- label: 'resourceLinePrice',
909
- type: TYPES.TEXT,
910
- value: this.data.resourceLinePrice,
911
- size: 32,
912
- fontWeight: 'bold',
913
- color: '#777',
914
- textStyle: 'stroke'
915
- };
916
- let posterConfigArr = [
917
- {
918
- label: 'posterBg',
919
- type: TYPES.BG_IMG,
920
- src: this.data.posterData.poster_url,
921
- x:0,
922
- y:0,
923
- width:POSTER_WIDTH,
924
- height:POSTER_HEIGHT
925
- },
926
- {
927
- label: 'avatar',
928
- type: TYPES.IMG,
929
- x: POSTER_WIDTH / 2 - 160 / 2,
930
- y: 25,
931
- width: 160,
932
- height: 160,
933
- src: this.data.userInfo.wx_avatar,
934
- border: 80
935
- },
936
- {
937
- label: 'nickname',
938
- type: TYPES.TEXT,
939
- y: 200,
940
- value: this.data.userInfo.wx_nickname,
941
- size: 44,
942
- fontWeight: 'bold',
943
- color: 'white',
944
- maxWidth: 600,
945
- textOverflow: 'ellipsis',
946
- textAlign: "center"
947
- },
948
- {
949
- label: 'sharePrompt',
950
- type: TYPES.TEXT,
951
- y: 260,
952
- value: this.data.shareHint,
953
- size:40,
954
- color: 'white',
955
- textAlign:"center"
956
- },
957
- {
958
- label: 'resourceAdditionalBackground',
959
- type: TYPES.IMG,
960
- x: 34,
961
- y: 804,
962
- width: 684,
963
- height: 184,
964
- src: this.data.posterData.goods_add_bg
965
- },
966
- {
967
- label: 'resourcePic',
968
- type: TYPES.IMG,
969
- x: POSTER_WIDTH / 2 - 640 / 2,
970
- y: 324,
971
- width: 640,
972
- height: 640 * 0.75,
973
- src: this.data.resource_info.img_url,
974
- imgRoundType:'halfRoundRect'
975
- },
976
- {
977
- label: 'resourceTitle',
978
- type: TYPES.TEXT,
979
- x: 66,
980
- y: 840,
981
- value: this.data.resource_info.title,
982
- size: 32,
983
- fontWeight: 'bold',
984
- color: 'black',
985
- maxWidth: 600,
986
- textOverflow: 'ellipsis'
987
- },
988
- this.data.resourceLinePrice && {
989
- ...linePriceProps,
990
- x: POSTER_WIDTH - poster.getTextRect(linePriceProps).width - LINE_PRICE_MARGIN_RIGHT,
991
- y: 900
992
- },
993
- ...this.getResourcePrice(66, 900, '#fd0300',poster),
994
- {
995
- label: 'qrcode',
996
- type: TYPES.IMG,
997
- x: POSTER_WIDTH / 2 - 144 / 2,
998
- y: 1026,
999
- width: 144,
1000
- height: 144,
1001
- src: this.data.resource_info.qr_code
1002
- },
1003
- {
1004
- label: 'shopNameLabel',
1005
- type: TYPES.SHAPE,
1006
- x: POSTER_WIDTH - shopNameRect.width - 77 - LABEL_PADDING,
1007
- y: shopNameProps.y - LABEL_PADDING,
1008
- r: 8,
1009
- width: shopNameRect.width + 2 * LABEL_PADDING,
1010
- height: 40,
1011
- shape: 'diagonalRoundRect',
1012
- color: '#FA6A4A'
1013
- },
1014
- {
1015
- ...shopNameProps,
1016
- x: POSTER_WIDTH - shopNameRect.width - 77
1017
- }
1018
- ];
1019
- if (this.data.resource_info.activityLabel) {
1020
- const activityTitleProps = {
1021
- label: 'activityTitle',
1022
- type: TYPES.TEXT,
1023
- x: 240,
1024
- y: 890,
1025
- value: this.data.resource_info.activityLabel,
1026
- fontSize: 32,
1027
- fontWeight: 'bold',
1028
- color: 'white',
1029
- maxWidth: 500,
1030
- textOverflow: 'ellipsis'
1031
- };
1032
- const activityTitleRect = poster.getTextRect(activityTitleProps);
1033
-
1034
- posterConfigArr.concat([activityTitleProps,{
1035
- label: 'activityLabel',
1036
- type: TYPES.SHAPE,
1037
- x: 240 - LABEL_PADDING,
1038
- y: activityTitleProps.y - LABEL_PADDING,
1039
- r: 12,
1040
- width: activityTitleRect.width + 2 * LABEL_PADDING,
1041
- height: 40,
1042
- shape: 'fullRoundRect',
1043
- color: '#FA6A48'
1044
- }]);
1045
- }
1046
- return posterConfigArr;
1047
- },
1048
- drawInteractOnePoster(poster) {
1049
- const shopNameProps = {
1050
- label: 'shopName',
1051
- type: TYPES.TEXT,
1052
- y: 414,
1053
- value: this.data.posterData.shop_name,
1054
- size: 32,
1055
- fontWeight: 'bold',
1056
- color: 'white',
1057
- maxWidth: 500
1058
- };
1059
- const shopNameRect = poster.getTextRect(shopNameProps);
1060
- const LABEL_PADDING = 4;
1061
- return [
1062
- {
1063
- label: 'posterBg',
1064
- type: TYPES.BG_IMG,
1065
- src: this.data.posterData.poster_url,
1066
- x:0,
1067
- y:0,
1068
- width:POSTER_WIDTH,
1069
- height:POSTER_HEIGHT
1070
- },
1071
- {
1072
- label: 'avatar',
1073
- type: TYPES.IMG,
1074
- x: POSTER_WIDTH / 2 - 160 / 2,
1075
- y: 35,
1076
- width: 160,
1077
- height: 160,
1078
- src: this.data.userInfo.wx_avatar,
1079
- border: 80
1080
- },
1081
- {
1082
- label: 'nickname',
1083
- type: TYPES.TEXT,
1084
- y: 220,
1085
- value: this.data.userInfo.wx_nickname,
1086
- size: 44,
1087
- fontWeight: 'bold',
1088
- color: 'white',
1089
- maxWidth: 600,
1090
- textOverflow: 'ellipsis',
1091
- textAlign: "center"
1092
- },
1093
- {
1094
- label: 'sharePrompt',
1095
- type: TYPES.TEXT,
1096
- y: 280,
1097
- value: this.data.shareHint,
1098
- size: 40,
1099
- color: 'white',
1100
- textAlign: "center"
1101
- },
1102
- {
1103
- label: 'resourceTitle',
1104
- type: TYPES.TEXT,
1105
- x: 66,
1106
- y: 908,
1107
- value: this.data.resource_info.title,
1108
- size: 32,
1109
- fontWeight: 'normal',
1110
- color: 'black',
1111
- maxWidth: 620,
1112
- textAlign: "center",
1113
- textOverflow: 'wrap',
1114
- lineHeight: 48
1115
- },
1116
- {
1117
- label: 'resourcePic',
1118
- type: TYPES.IMG,
1119
- x: POSTER_WIDTH / 2 - 640 / 2,
1120
- y: 392,
1121
- width: 640,
1122
- height: 640 * 0.75,
1123
- src: this.data.resource_info.img_url,
1124
- imgRoundType:'fullRoundRect',
1125
- },
1126
- {
1127
- label: 'qrcode',
1128
- type: TYPES.IMG,
1129
- x: POSTER_WIDTH / 2 - 180 / 2,
1130
- y: 1016,
1131
- width: 180,
1132
- height: 180,
1133
- src: this.data.resource_info.qr_code
1134
- },
1135
- {
1136
- label: 'scanPrompt',
1137
- type: TYPES.TEXT,
1138
- x: POSTER_WIDTH / 2 - 144 / 2,
1139
- y: 1208,
1140
- value: '长按扫码查看详情',
1141
- size: 22,
1142
- fontWeight: 'normal',
1143
- color: 'black',
1144
- textAlign: "center"
1145
- },
1146
- {
1147
- label: 'shopNameLabel',
1148
- type: TYPES.SHAPE,
1149
- x: POSTER_WIDTH - shopNameRect.width - 74 - LABEL_PADDING,
1150
- y: shopNameProps.y - LABEL_PADDING,
1151
- r: 8,
1152
- width: shopNameRect.width + 2 * LABEL_PADDING,
1153
- height: 40,
1154
- shape: 'diagonalRoundRect',
1155
- color: '#308EF9'
1156
- },
1157
- {
1158
- ...shopNameProps,
1159
- x: POSTER_WIDTH - shopNameRect.width - 74
1160
- }
1161
- ];
1162
- },
1163
- drawInteractTwoPoster(poster) {
1164
- return [
1165
- {
1166
- label: 'posterBg',
1167
- type: TYPES.BG_IMG,
1168
- src: this.data.posterData.poster_url,
1169
- x:0,
1170
- y:0,
1171
- width:POSTER_WIDTH,
1172
- height:POSTER_HEIGHT
1173
- },
1174
- {
1175
- label: 'avatar',
1176
- type: TYPES.IMG,
1177
- x: 60,
1178
- y: 40,
1179
- width: 160,
1180
- height: 160,
1181
- src: this.data.userInfo.wx_avatar,
1182
- border: 80
1183
- },
1184
- {
1185
- label: 'nickname',
1186
- type: TYPES.TEXT,
1187
- x: 80,
1188
- y: 240,
1189
- value: this.data.userInfo.wx_nickname,
1190
- size: 44,
1191
- fontWeight: 'bold',
1192
- color: 'white',
1193
- maxWidth: 600,
1194
- textOverflow: 'ellipsis'
1195
- },
1196
- {
1197
- label: 'sharePrompt',
1198
- type: TYPES.TEXT,
1199
- x: 80,
1200
- y: 300,
1201
- value: this.data.shareHint,
1202
- size: 40,
1203
- color: 'white'
1204
- },
1205
- {
1206
- label: 'resourceTitle',
1207
- type: TYPES.TEXT,
1208
- x: 80,
1209
- y: 860,
1210
- value: this.data.resource_info.title,
1211
- size: 32,
1212
- fontWeight: 'normal',
1213
- color: 'white',
1214
- maxWidth: 600,
1215
- textOverflow: 'wrap',
1216
- lineHeight:48
1217
- },
1218
- {
1219
- label: 'resourcePic',
1220
- type: TYPES.IMG,
1221
- x: POSTER_WIDTH / 2 - 640 / 2,
1222
- y: 350,
1223
- width: 640,
1224
- height: 640 * 0.75,
1225
- src: this.data.resource_info.img_url,
1226
- imgRoundType:'halfRoundRect',
1227
- },
1228
- {
1229
- label: 'resourceAdditionalBackground',
1230
- type: TYPES.IMG,
1231
- x: POSTER_WIDTH / 2 - 640 / 2,
1232
- y: 830,
1233
- width: 640,
1234
- height: 180,
1235
- src: this.data.posterData.goods_add_bg,
1236
- },
1237
- {
1238
- label: 'shopName',
1239
- type: TYPES.TEXT,
1240
- x: 56,
1241
- y: 1100,
1242
- value: this.data.posterData.shop_name,
1243
- size: 32,
1244
- fontWeight: 'bold',
1245
- color: 'white',
1246
- maxWidth: 440
1247
- },
1248
- {
1249
- label:"whiteLine",
1250
- type:TYPES.SHAPE,
1251
- width:84,
1252
- height:6,
1253
- x:56,
1254
- y:1155,
1255
- r:3,
1256
- color:'white',
1257
- shape:'fullRoundRect'
1258
- },
1259
- {
1260
- label: 'scanPrompt',
1261
- type: TYPES.TEXT,
1262
- x: 56,
1263
- y: 1190,
1264
- value: '长按扫码查看详情',
1265
- size: 32,
1266
- fontWeight: 'bold',
1267
- color: 'white'
1268
- },
1269
- {
1270
- label: 'qrcode',
1271
- type: TYPES.IMG,
1272
- x: 540,
1273
- y: 1070,
1274
- width: 160,
1275
- height: 160,
1276
- src: this.data.resource_info.qr_code
1277
- }
1278
- ];
1279
- },
1280
- drawPriceTwoPoster(poster) {
1281
- const LINE_PRICE_MARGIN_RIGHT = 56;
1282
- const linePriceProps = {
1283
- label: 'resourceLinePrice',
1284
- type: TYPES.TEXT,
1285
- value: this.data.resourceLinePrice,
1286
- size: 32,
1287
- fontWeight: 'bold',
1288
- color: '#777',
1289
- textStyle: 'stroke'
1290
- };
1291
- return[
1292
- {
1293
- label: 'posterBg',
1294
- type: TYPES.BG_IMG,
1295
- src: this.data.posterData.poster_url,
1296
- x:0,
1297
- y:0,
1298
- width:POSTER_WIDTH,
1299
- height:POSTER_HEIGHT
1300
- },
1301
- {
1302
- label: 'avatar',
1303
- type: TYPES.IMG,
1304
- x: 60,
1305
- y: 40,
1306
- width: 160,
1307
- height: 160,
1308
- src: this.data.userInfo.wx_avatar,
1309
- border: 80
1310
- },
1311
- {
1312
- label: 'nickname',
1313
- type: TYPES.TEXT,
1314
- x: 80,
1315
- y: 240,
1316
- value: this.data.userInfo.wx_nickname,
1317
- size: 44,
1318
- fontWeight: 'bold',
1319
- color: 'white',
1320
- maxWidth: 600,
1321
- textOverflow: 'ellipsis'
1322
- },
1323
- {
1324
- label: 'sharePrompt',
1325
- type: TYPES.TEXT,
1326
- x: 80,
1327
- y: 300,
1328
- value: this.data.shareHint,
1329
- size: 40,
1330
- color: 'white'
1331
- },
1332
- {
1333
- label: 'resourceTitle',
1334
- type: TYPES.TEXT,
1335
- x: 80,
1336
- y: 860,
1337
- value: this.data.resource_info.title,
1338
- size: 32,
1339
- fontWeight: 'normal',
1340
- color: 'white',
1341
- maxWidth: 550,
1342
- textOverflow: 'ellipsis'
1343
- },
1344
- {
1345
- label: 'resourcePic',
1346
- type: TYPES.IMG,
1347
- x: POSTER_WIDTH / 2 - 640 / 2,
1348
- y: 350,
1349
- width: 640,
1350
- height: 640 * 0.75,
1351
- src: this.data.resource_info.img_url,
1352
- imgRoundType:'halfRoundRect',
1353
- },
1354
- {
1355
- label: 'resourceAdditionalBackground',
1356
- type: TYPES.IMG,
1357
- x: POSTER_WIDTH / 2 - 640 / 2,
1358
- y: 830,
1359
- width: 640,
1360
- height: 88,
1361
- src: this.data.posterData.goods_add_bg,
1362
- },
1363
- this.data.resourceLinePrice && {
1364
- ...linePriceProps,
1365
- x: POSTER_WIDTH - poster.getTextRect(linePriceProps).width - LINE_PRICE_MARGIN_RIGHT,
1366
- y: 980
1367
- },
1368
- ...this.getResourcePrice(60, 980, '#FA5988',poster),
1369
- {
1370
- label: 'shopName',
1371
- type: TYPES.TEXT,
1372
- x: 56,
1373
- y: 1132,
1374
- value: this.data.posterData.shop_name,
1375
- size: 32,
1376
- fontWeight: 'bold',
1377
- color: 'black',
1378
- maxWidth: 440
1379
- },
1380
- {
1381
- label: 'qrcode',
1382
- type: TYPES.IMG,
1383
- x: 540,
1384
- y: 1100,
1385
- width: 160,
1386
- height: 160,
1387
- src: this.data.resource_info.qr_code
1388
- }
1389
- ];
1390
- },
1391
- drawInteractThreePoster(poster) {
1392
- return [
1393
- {
1394
- label: 'posterBg',
1395
- type: TYPES.BG_IMG,
1396
- src: this.data.posterData.poster_url,
1397
- x:0,
1398
- y:0,
1399
- width:POSTER_WIDTH,
1400
- height:POSTER_HEIGHT
1401
- },
1402
- {
1403
- label: 'avatar',
1404
- type: TYPES.IMG,
1405
- x: 54,
1406
- y: 120,
1407
- width: 160,
1408
- height: 160,
1409
- src: this.data.userInfo.wx_avatar
1410
- },
1411
- {
1412
- label: 'avatarBorder',
1413
- type: TYPES.IMG,
1414
- x: 54,
1415
- y: 120,
1416
- width: 160,
1417
- height: 160,
1418
- src: 'http://wechatapppro-1252524126.file.myqcloud.com/appAKLWLitn7978/image/eafb3f4d43f8101dd2eaff99a149c021.png'
1419
- },
1420
- {
1421
- label: 'nickname',
1422
- type: TYPES.TEXT,
1423
- x: 60,
1424
- y: 320,
1425
- value: this.data.userInfo.wx_nickname,
1426
- size: 44,
1427
- fontWeight: 'bold',
1428
- color: '#FCCD9B',
1429
- maxWidth: 600,
1430
- textOverflow: 'ellipsis'
1431
- },
1432
- {
1433
- label: 'sharePrompt',
1434
- type: TYPES.TEXT,
1435
- x: 60,
1436
- y: 380,
1437
- value: this.data.shareHint,
1438
- size: 40,
1439
- color: '#FCCD9B'
1440
- },
1441
- {
1442
- label: 'resourceTitle',
1443
- type: TYPES.TEXT,
1444
- y: 520,
1445
- value: this.data.resource_info.title,
1446
- size: 32,
1447
- fontWeight: 'normal',
1448
- color: 'black',
1449
- maxWidth: 550,
1450
- textOverflow: 'wrap',
1451
- textAlign: "center",
1452
- lineHeight:48
1453
- },
1454
- {
1455
- label: 'shopName',
1456
- type: TYPES.TEXT,
1457
- y: 800,
1458
- value: this.data.posterData.shop_name,
1459
- size: 32,
1460
- fontWeight: 'bold',
1461
- color: 'black',
1462
- maxWidth: 500,
1463
- textAlign: "center"
1464
- },
1465
- {
1466
- label: 'qrcode',
1467
- type: TYPES.IMG,
1468
- x: POSTER_WIDTH / 2 - 240 / 2,
1469
- y: 850,
1470
- width: 240,
1471
- height: 240,
1472
- src: this.data.resource_info.qr_code
1473
- }
1474
- ];
1475
- },
1476
- drawAlivePoster(poster) {
1477
- const shopNameProps = {
1478
- label: 'shopName',
1479
- type: TYPES.TEXT,
1480
- y: 760,
1481
- value: `来自「${this.data.posterData.shop_name}」`,
1482
- size: 24,
1483
- fontWeight: 'bold',
1484
- color: '#1560F4',
1485
- maxWidth: 340
1486
- };
1487
- return [
1488
- {
1489
- label: 'posterBg',
1490
- type: TYPES.BG_IMG,
1491
- src: this.data.posterData.poster_url,
1492
- x:0,
1493
- y:0,
1494
- width:POSTER_WIDTH,
1495
- height:POSTER_HEIGHT
1496
- },
1497
- {
1498
- label: 'avatar',
1499
- type: TYPES.IMG,
1500
- x: 40,
1501
- y: 40,
1502
- width: 140,
1503
- height: 140,
1504
- src: this.data.userInfo.wx_avatar,
1505
- border: 70
1506
- },
1507
- {
1508
- label: 'nickname',
1509
- type: TYPES.TEXT,
1510
- x: 210,
1511
- y: 70,
1512
- value: this.data.userInfo.wx_nickname,
1513
- size: 48,
1514
- fontWeight: 'bold',
1515
- color: 'black',
1516
- maxWidth: 470,
1517
- textOverflow: 'ellipsis'
1518
- },
1519
- {
1520
- label: 'sharePrompt',
1521
- type: TYPES.TEXT,
1522
- x: 210,
1523
- y: 130,
1524
- value: this.data.shareHint,
1525
- size: 36,
1526
- color: 'black'
1527
- },
1528
- {
1529
- label: 'resourcePic',
1530
- type: TYPES.IMG,
1531
- x: POSTER_WIDTH / 2 - 700 / 2,
1532
- y: 200,
1533
- width: 700,
1534
- height: 700 * 0.75,
1535
- src: this.data.resource_info.img_url,
1536
- imgRoundType:'fullRoundRect',
1537
- },
1538
- {
1539
- label: 'resourceTitle',
1540
- type: TYPES.TEXT,
1541
- x: 40,
1542
- y: 840,
1543
- value: this.data.resource_info.title,
1544
- size: 40,
1545
- fontWeight: 'bold',
1546
- color: 'black',
1547
- maxWidth: 664,
1548
- textOverflow: 'wrap',
1549
- lineHeight: 48
1550
- },
1551
- {
1552
- ...shopNameProps,
1553
- x: POSTER_WIDTH - poster.getTextRect(shopNameProps).width - 20
1554
- },
1555
- {
1556
- label: 'aliveStartTime',
1557
- type: TYPES.TEXT,
1558
- x: 88,
1559
- y: 1148,
1560
- value: this.data.resource_info.zb_start_at,
1561
- size: 30,
1562
- fontWeight: 'bold',
1563
- color: '#3B4C6E'
1564
- },
1565
- {
1566
- label: 'scanPrompt',
1567
- type: TYPES.TEXT,
1568
- x: 512,
1569
- y: 1240,
1570
- value: '长按扫码查看详情',
1571
- size: 24,
1572
- fontWeight: 'bold',
1573
- color: 'black'
1574
- },
1575
- {
1576
- label: 'qrcode',
1577
- type: TYPES.IMG,
1578
- x: 510,
1579
- y: 1020,
1580
- width: 200,
1581
- height: 200,
1582
- imgRoundType:'fullRoundRect',
1583
- src: this.data.resource_info.qr_code
1584
- }
1585
- ];
1586
- },
1587
- drawAliveGeneralPoster(poster) {
1588
- console.log(this,'this??????????');
1589
- const nicknameProps = {
1590
- label: 'nickname',
1591
- type: TYPES.TEXT,
1592
- x: 140,
1593
- y: 712,
1594
- value: this.data.userInfo.wx_nickname,
1595
- size: 32,
1596
- fontWeight: 'normal',
1597
- color: '#777',
1598
- maxWidth: 300,
1599
- textOverflow: 'ellipsis'
1600
- };
1601
- return [
1602
- {
1603
- label: 'posterBg',
1604
- type: TYPES.BG_IMG,
1605
- src: this.data.posterData.poster_url,
1606
- x:0,
1607
- y:0,
1608
- width:POSTER_WIDTH,
1609
- height:POSTER_HEIGHT
1610
- },
1611
- {
1612
- label: 'avatar',
1613
- type: TYPES.IMG,
1614
- x: 40,
1615
- y: 680,
1616
- width: 80,
1617
- height: 80,
1618
- src: this.data.userInfo.wx_avatar,
1619
- border: 40
1620
- },
1621
- nicknameProps,
1622
- {
1623
- label: 'sharePrompt',
1624
- type: TYPES.TEXT,
1625
- x: 160 + poster.getTextRect(nicknameProps).width,
1626
- y: 712,
1627
- value: this.data.shareHint,
1628
- size: 32,
1629
- color: '#777'
1630
- },
1631
- {
1632
- label: 'resourcePic',
1633
- type: TYPES.IMG,
1634
- x: POSTER_WIDTH / 2 - 750 / 2,
1635
- y: 0,
1636
- width: 750,
1637
- height: 750 * 0.75,
1638
- src: this.data.resource_info.img_url,
1639
- imgRoundType: 'top'
1640
- },
1641
- {
1642
- label: 'resourceTitle',
1643
- type: TYPES.TEXT,
1644
- x: 40,
1645
- y: 860,
1646
- value: this.data.resource_info.title,
1647
- size: 36,
1648
- fontWeight: 'bold',
1649
- color: 'black',
1650
- maxWidth: 680,
1651
- textOverflow: 'wrap',
1652
- lineHeight: 48
1653
- },
1654
- {
1655
- label: 'shopName',
1656
- type: TYPES.TEXT,
1657
- x: 40,
1658
- y: 1000,
1659
- value: `- ${this.data.posterData.shop_name}`,
1660
- size: 30,
1661
- fontWeight: 'normal',
1662
- color: '#777',
1663
- maxWidth: 500
1664
- },
1665
- {
1666
- label: 'scanPrompt',
1667
- type: TYPES.TEXT,
1668
- y: 1230,
1669
- value: '长按扫码查看详情',
1670
- size: 20,
1671
- fontWeight: 'normal',
1672
- color: '#777',
1673
- textAlign: "center"
1674
- },
1675
- {
1676
- label: 'qrcode',
1677
- type: TYPES.IMG,
1678
- x: 750 / 2 - 140 / 2,
1679
- y: 1070,
1680
- width: 140,
1681
- height: 140,
1682
- imgRoundType:'fullRoundRect',
1683
- src: this.data.resource_info.qr_code
1684
- }
1685
- ];
1686
- },
1687
- drawAliveSpecificPoster() {
1688
- return [
1689
- {
1690
- label: 'posterBg',
1691
- type: TYPES.BG_IMG,
1692
- src: this.data.posterData.poster_url,
1693
- x:0,
1694
- y:0,
1695
- width:POSTER_WIDTH,
1696
- height:POSTER_HEIGHT
1697
- },
1698
- {
1699
- label: 'avatar',
1700
- type: TYPES.IMG,
1701
- x: 40,
1702
- y: 730,
1703
- width: 80,
1704
- height: 80,
1705
- src: this.data.userInfo.wx_avatar,
1706
- border: 40
1707
- },
1708
- {
1709
- label: 'nickname',
1710
- type: TYPES.TEXT,
1711
- x: 140,
1712
- y: 748,
1713
- value: this.data.userInfo.wx_nickname,
1714
- size: 28,
1715
- fontWeight: 'bold',
1716
- color: '#3B4C6E',
1717
- maxWidth: 400,
1718
- textOverflow: 'ellipsis'
1719
- },
1720
- {
1721
- label: 'sharePrompt',
1722
- type: TYPES.TEXT,
1723
- x: 140,
1724
- y: 782,
1725
- value: this.data.shareHint,
1726
- size: 24,
1727
- color: '#3B4C6E'
1728
- },
1729
- {
1730
- label: 'resourcePic',
1731
- type: TYPES.IMG,
1732
- x: POSTER_WIDTH / 2 - 720 / 2,
1733
- y: 134,
1734
- width: 720,
1735
- height: 720 * 0.75,
1736
- src: this.data.resource_info.img_url,
1737
- imgRoundType:'fullRoundRect',
1738
- },
1739
- {
1740
- label: 'aliveStartTime',
1741
- type: TYPES.TEXT,
1742
- x: 56,
1743
- y: 1048,
1744
- value: this.data.resource_info.zb_start_at,
1745
- size: 28,
1746
- fontWeight: 'bold',
1747
- color: '#3B4C6E'
1748
- },
1749
- {
1750
- label: 'scanPrompt',
1751
- type: TYPES.TEXT,
1752
- x: 510,
1753
- y: 1160,
1754
- value: '长按扫码查看详情',
1755
- size: 24,
1756
- fontWeight: 'bold',
1757
- color: '#3B4C6E'
1758
- },
1759
- {
1760
- label: 'qrcode',
1761
- type: TYPES.IMG,
1762
- x: 500,
1763
- y: 930,
1764
- width: 220,
1765
- height: 220,
1766
- roundRectType: 'full',
1767
- borderRadius: 12,
1768
- src: this.data.resource_info.qr_code
1769
- }
1770
- ];
1771
- },
1772
- drawStudyPoster(poster) {
1773
- const motiveTextProps = {
1774
- label: 'motiveText',
1775
- type: TYPES.TEXT,
1776
- x: 80,
1777
- y: 510,
1778
- value: this.data.motiveInfoData.text,
1779
- size: 32,
1780
- color: 'black',
1781
- lineHeight: 48,
1782
- maxWidth: 590,
1783
- textOverflow: 'wrap' // wrap ellipsis
1784
- };
1785
- const motiveTextAuthorProps = {
1786
- label: 'motiveTextAuthor',
1787
- type: TYPES.TEXT,
1788
- value: `—— ${this.data.motiveInfoData.auther}`,
1789
- size: 32,
1790
- color: 'black',
1791
- maxWidth: 600
1792
- };
1793
- const motiveTextAuthorRect = poster.getTextRect(motiveTextAuthorProps);
1794
- const motiveTextRect = poster.getTextRect(motiveTextProps);
1795
- return [{
1796
- label: 'posterBg',
1797
- type: TYPES.BG_IMG,
1798
- src: this.data.posterData.poster_url,
1799
- x:0,
1800
- y:0,
1801
- width:POSTER_WIDTH,
1802
- height:POSTER_HEIGHT
1803
- },
1804
- {
1805
- label: 'avatar',
1806
- type: TYPES.IMG,
1807
- x: 122,
1808
- y: 256,
1809
- width: 160,
1810
- height: 160,
1811
- src: this.data.userInfo.wx_avatar,
1812
- border: 80
1813
- },
1814
- {
1815
- label: 'nickname',
1816
- type: TYPES.TEXT,
1817
- x: 320,
1818
- y: 280,
1819
- value: this.data.userInfo.wx_nickname,
1820
- size: 44,
1821
- fontWeight: 'bold',
1822
- color: 'black',
1823
- maxWidth: 280,
1824
- textOverflow: 'ellipsis'
1825
- },
1826
- {
1827
- label: 'sharePrompt',
1828
- type: TYPES.TEXT,
1829
- x: 320,
1830
- y: 340,
1831
- value: this.data.shareHint,
1832
- size: 40,
1833
- color: 'black'
1834
- },
1835
- motiveTextProps,
1836
- {
1837
- label: 'resourceTitle',
1838
- type: TYPES.TEXT,
1839
- x: 80,
1840
- y: 800,
1841
- value: this.data.resource_info.title,
1842
- size: 36,
1843
- fontWeight: 'normal',
1844
- color: 'black',
1845
- maxWidth: 590,
1846
- textOverflow: 'ellipsis'
1847
- },
1848
- {
1849
- label: 'qrcode',
1850
- type: TYPES.IMG,
1851
- x: POSTER_WIDTH / 2 - 168 / 2,
1852
- y: 928,
1853
- width: 168,
1854
- height: 168,
1855
- src: this.data.resource_info.qr_code
1856
- },
1857
- {
1858
- label: 'scanPrompt',
1859
- type: TYPES.TEXT,
1860
- x: 0,
1861
- y: 1110,
1862
- value: '长按扫码查看详情',
1863
- size: 24,
1864
- fontWeight: 'bold',
1865
- color: 'black',
1866
- textAlign: "center"
1867
- },
1868
- {
1869
- label: 'shopName',
1870
- type: TYPES.TEXT,
1871
- y: 898,
1872
- value: this.data.posterData.shop_name,
1873
- size: 32,
1874
- fontWeight: 'bold',
1875
- color: 'black',
1876
- maxWidth: 590,
1877
- textAlign: "center"
1878
- },
1879
- {
1880
- ...motiveTextAuthorProps,
1881
- x: POSTER_WIDTH - motiveTextAuthorRect.width - 80,
1882
- y: 500 + motiveTextRect.height
1883
- }
1884
- ];
1885
- },
1886
- // 换一条励志语
1887
- changeRecTxt() {
1888
- let temInfo = this.data.motiveInfo || [];
1889
- let random = Math.floor(Math.random() * temInfo.length);
1890
- this.data.motiveInfoData = temInfo[random] || {};
1891
- this.data.motiveInfoData.id = `study_${random}`;
1892
- this.setData({
1893
- isVisible : true
1894
- })
1895
- this.generatePoster(random);
1896
- },
1897
- }
1898
- })