xiaoe_mp_npm 1.0.6 → 1.0.7-alpha2

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 (271) hide show
  1. package/.gitlab-ci.yml +44 -44
  2. package/miniprogram_dist/ConfirmOrder/components/AddressSelect/index.js +160 -160
  3. package/miniprogram_dist/ConfirmOrder/components/ChoosePicker/index.js +115 -115
  4. package/miniprogram_dist/ConfirmOrder/components/ConfirmOrderContent/index.js +890 -890
  5. package/miniprogram_dist/ConfirmOrder/components/ConfirmOrderContent/index.json +23 -23
  6. package/miniprogram_dist/ConfirmOrder/components/ConfirmOrderContent/index.scss +44 -44
  7. package/miniprogram_dist/ConfirmOrder/components/ConfirmOrderContent/index.wxml +188 -188
  8. package/miniprogram_dist/ConfirmOrder/components/GoodsInfo/components/CopGoodsList/index.js +129 -129
  9. package/miniprogram_dist/ConfirmOrder/components/GoodsInfo/components/CopGoodsList/index.json +8 -8
  10. package/miniprogram_dist/ConfirmOrder/components/GoodsInfo/components/CopGoodsList/index.scss +58 -58
  11. package/miniprogram_dist/ConfirmOrder/components/GoodsInfo/components/CopGoodsList/index.wxml +25 -25
  12. package/miniprogram_dist/ConfirmOrder/components/GoodsInfo/index.js +448 -448
  13. package/miniprogram_dist/ConfirmOrder/components/GoodsInfo/index.json +9 -9
  14. package/miniprogram_dist/ConfirmOrder/components/GoodsInfo/index.scss +222 -222
  15. package/miniprogram_dist/ConfirmOrder/components/GoodsInfo/index.wxml +81 -81
  16. package/miniprogram_dist/ConfirmOrder/components/IntegralSelect/index.scss +90 -90
  17. package/miniprogram_dist/ConfirmOrder/components/Invoice/index.scss +60 -60
  18. package/miniprogram_dist/ConfirmOrder/components/LeaveWord/index.scss +39 -39
  19. package/miniprogram_dist/ConfirmOrder/components/PayBar/index.js +249 -249
  20. package/miniprogram_dist/ConfirmOrder/components/PayBar/index.scss +61 -61
  21. package/miniprogram_dist/ConfirmOrder/components/PayDetail/index.scss +40 -40
  22. package/miniprogram_dist/ConfirmOrder/components/PickupSelect/index.js +89 -89
  23. package/miniprogram_dist/ConfirmOrder/components/PickupSelect/index.wxml +13 -13
  24. package/miniprogram_dist/ConfirmOrder/components/SvipSelect/SvipSelect.js +99 -99
  25. package/miniprogram_dist/ConfirmOrder/components/SvipSelect/SvipSelect.json +6 -6
  26. package/miniprogram_dist/ConfirmOrder/components/SvipSelect/SvipSelect.scss +150 -150
  27. package/miniprogram_dist/ConfirmOrder/components/SvipSelect/SvipSelect.wxml +39 -39
  28. package/miniprogram_dist/ConfirmOrder/components/SvipSelect/filter.wxs +6 -6
  29. package/miniprogram_dist/ConfirmOrder/index.js +110 -110
  30. package/miniprogram_dist/CopGoodsCard/constans.js +462 -462
  31. package/miniprogram_dist/CopGoodsCard/index.js +147 -147
  32. package/miniprogram_dist/CopGoodsCard/index.json +2 -2
  33. package/miniprogram_dist/CopGoodsCard/index.scss +100 -100
  34. package/miniprogram_dist/CopGoodsCard/index.wxml +20 -20
  35. package/miniprogram_dist/CouponList/components/CouponItem/index.css +1715 -1715
  36. package/miniprogram_dist/CouponList/components/CouponItem/index.js +325 -319
  37. package/miniprogram_dist/CouponList/components/CouponItem/index.min.css +1 -1
  38. package/miniprogram_dist/CouponList/components/CouponItem/index.scss +591 -591
  39. package/miniprogram_dist/CouponList/components/CouponItem/index.wxml +199 -199
  40. package/miniprogram_dist/CouponList/couponColumn/index.js +176 -176
  41. package/miniprogram_dist/CouponList/couponColumn/index.scss +117 -117
  42. package/miniprogram_dist/CouponList/couponColumn/index.wxml +39 -39
  43. package/miniprogram_dist/CouponReceivePopup/index.js +72 -72
  44. package/miniprogram_dist/CouponReceivePopup/index.json +5 -5
  45. package/miniprogram_dist/CouponReceivePopup/index.scss +99 -99
  46. package/miniprogram_dist/CouponReceivePopup/index.wxml +85 -85
  47. package/miniprogram_dist/CustomPopup/index.js +82 -82
  48. package/miniprogram_dist/CustomPopup/index.wxml +25 -25
  49. package/miniprogram_dist/GoodsItem/index.js +745 -745
  50. package/miniprogram_dist/GoodsItem/index.scss +524 -524
  51. package/miniprogram_dist/GoodsItem/index.wxml +173 -173
  52. package/miniprogram_dist/GoodsItem/index.wxs +18 -18
  53. package/miniprogram_dist/GoodsRecommend/fun.wxs +37 -37
  54. package/miniprogram_dist/GoodsRecommend/index.js +91 -91
  55. package/miniprogram_dist/GoodsRecommend/index.json +3 -3
  56. package/miniprogram_dist/GoodsRecommend/index.less +129 -129
  57. package/miniprogram_dist/GoodsRecommend/index.scss +162 -162
  58. package/miniprogram_dist/GoodsRecommend/index.wxml +47 -47
  59. package/miniprogram_dist/LiveGoodsList/Header/index.scss +78 -78
  60. package/miniprogram_dist/LiveGoodsList/index.js +821 -821
  61. package/miniprogram_dist/LiveGoodsList/index.scss +92 -92
  62. package/miniprogram_dist/LiveGoodsList/index.wxml +106 -106
  63. package/miniprogram_dist/PayModule/button/index.scss +44 -44
  64. package/miniprogram_dist/PayModule/index/index.js +264 -264
  65. package/miniprogram_dist/Task/TaskBubble/index.js +117 -117
  66. package/miniprogram_dist/Task/TaskBubble/index.json +3 -3
  67. package/miniprogram_dist/Task/TaskBubble/index.scss +125 -125
  68. package/miniprogram_dist/Task/TaskBubble/index.wxml +22 -22
  69. package/miniprogram_dist/Task/TaskIcon/index.js +29 -29
  70. package/miniprogram_dist/Task/TaskIcon/index.json +4 -4
  71. package/miniprogram_dist/Task/TaskIcon/index.scss +70 -70
  72. package/miniprogram_dist/Task/TaskIcon/index.wxml +5 -5
  73. package/miniprogram_dist/Task/TaskPopup/component/RewardList/index.js +39 -39
  74. package/miniprogram_dist/Task/TaskPopup/component/RewardList/index.json +6 -6
  75. package/miniprogram_dist/Task/TaskPopup/component/RewardList/index.scss +39 -39
  76. package/miniprogram_dist/Task/TaskPopup/component/RewardList/index.wxml +19 -19
  77. package/miniprogram_dist/Task/TaskPopup/component/TaskItem/index.js +207 -207
  78. package/miniprogram_dist/Task/TaskPopup/component/TaskItem/index.json +5 -5
  79. package/miniprogram_dist/Task/TaskPopup/component/TaskItem/index.scss +139 -139
  80. package/miniprogram_dist/Task/TaskPopup/component/TaskItem/index.wxml +43 -43
  81. package/miniprogram_dist/Task/TaskPopup/component/TaskItem/index.wxs +7 -7
  82. package/miniprogram_dist/Task/TaskPopup/component/TaskList/index.js +146 -146
  83. package/miniprogram_dist/Task/TaskPopup/component/TaskList/index.json +7 -7
  84. package/miniprogram_dist/Task/TaskPopup/component/TaskList/index.scss +66 -66
  85. package/miniprogram_dist/Task/TaskPopup/component/TaskList/index.wxml +39 -39
  86. package/miniprogram_dist/Task/TaskPopup/component/TaskType/index.js +75 -75
  87. package/miniprogram_dist/Task/TaskPopup/component/TaskType/index.json +9 -9
  88. package/miniprogram_dist/Task/TaskPopup/component/TaskType/index.scss +59 -59
  89. package/miniprogram_dist/Task/TaskPopup/component/TaskType/index.wxml +42 -42
  90. package/miniprogram_dist/Task/TaskPopup/index.js +113 -113
  91. package/miniprogram_dist/Task/TaskPopup/index.json +8 -8
  92. package/miniprogram_dist/Task/TaskPopup/index.scss +113 -113
  93. package/miniprogram_dist/Task/TaskPopup/index.wxml +67 -67
  94. package/miniprogram_dist/Task/taskReceivePopup/coupon/index.js +52 -52
  95. package/miniprogram_dist/Task/taskReceivePopup/coupon/index.json +6 -6
  96. package/miniprogram_dist/Task/taskReceivePopup/coupon/index.scss +91 -91
  97. package/miniprogram_dist/Task/taskReceivePopup/coupon/index.wxml +53 -53
  98. package/miniprogram_dist/Task/taskReceivePopup/coupon/index.wxs +48 -48
  99. package/miniprogram_dist/Task/taskReceivePopup/index.js +30 -30
  100. package/miniprogram_dist/Task/taskReceivePopup/index.json +11 -11
  101. package/miniprogram_dist/Task/taskReceivePopup/index.wxml +18 -18
  102. package/miniprogram_dist/Task/taskReceivePopup/integral/index.js +37 -37
  103. package/miniprogram_dist/Task/taskReceivePopup/integral/index.json +6 -6
  104. package/miniprogram_dist/Task/taskReceivePopup/integral/index.scss +60 -60
  105. package/miniprogram_dist/Task/taskReceivePopup/integral/index.wxml +17 -17
  106. package/miniprogram_dist/TeacherGoodsList/index.js +825 -825
  107. package/miniprogram_dist/TeacherGoodsList/index.json +9 -9
  108. package/miniprogram_dist/TeacherGoodsList/index.scss +145 -145
  109. package/miniprogram_dist/TeacherGoodsList/index.wxml +110 -110
  110. package/miniprogram_dist/common/api/confirmOrder.js +223 -223
  111. package/miniprogram_dist/common/api/couponlist.js +2 -63
  112. package/miniprogram_dist/common/api/liveGoodsList.js +89 -89
  113. package/miniprogram_dist/common/api/sku.js +73 -73
  114. package/miniprogram_dist/common/utils/index.js +69 -69
  115. package/miniprogram_dist/coupon/components/CouponItem/index.less +208 -208
  116. package/miniprogram_dist/coupon/components/CouponItem/index.scss +246 -246
  117. package/miniprogram_dist/coupon/components/CouponSelect/index.scss +330 -330
  118. package/miniprogram_dist/coupon/index.js +248 -248
  119. package/miniprogram_dist/coupon/index.scss +83 -83
  120. package/package.json +78 -78
  121. package/src/ConfirmOrder/components/AddressSelect/index.js +160 -160
  122. package/src/ConfirmOrder/components/ChoosePicker/index.js +115 -115
  123. package/src/ConfirmOrder/components/ConfirmOrderContent/index.js +890 -890
  124. package/src/ConfirmOrder/components/ConfirmOrderContent/index.json +23 -23
  125. package/src/ConfirmOrder/components/ConfirmOrderContent/index.scss +44 -44
  126. package/src/ConfirmOrder/components/ConfirmOrderContent/index.wxml +188 -188
  127. package/src/ConfirmOrder/components/ConfirmOrderContent/index.wxss +51 -51
  128. package/src/ConfirmOrder/components/GoodsInfo/components/CopGoodsList/index.js +129 -129
  129. package/src/ConfirmOrder/components/GoodsInfo/components/CopGoodsList/index.json +8 -8
  130. package/src/ConfirmOrder/components/GoodsInfo/components/CopGoodsList/index.scss +58 -58
  131. package/src/ConfirmOrder/components/GoodsInfo/components/CopGoodsList/index.wxml +25 -25
  132. package/src/ConfirmOrder/components/GoodsInfo/components/CopGoodsList/index.wxss +1 -1
  133. package/src/ConfirmOrder/components/GoodsInfo/index.js +448 -448
  134. package/src/ConfirmOrder/components/GoodsInfo/index.json +9 -9
  135. package/src/ConfirmOrder/components/GoodsInfo/index.scss +222 -222
  136. package/src/ConfirmOrder/components/GoodsInfo/index.wxml +81 -81
  137. package/src/ConfirmOrder/components/GoodsInfo/index.wxss +673 -673
  138. package/src/ConfirmOrder/components/IntegralSelect/index.scss +90 -90
  139. package/src/ConfirmOrder/components/IntegralSelect/index.wxss +218 -218
  140. package/src/ConfirmOrder/components/Invoice/index.scss +60 -60
  141. package/src/ConfirmOrder/components/Invoice/index.wxss +93 -93
  142. package/src/ConfirmOrder/components/LeaveWord/index.scss +39 -39
  143. package/src/ConfirmOrder/components/LeaveWord/index.wxss +34 -34
  144. package/src/ConfirmOrder/components/PayBar/index.js +249 -249
  145. package/src/ConfirmOrder/components/PayBar/index.scss +61 -61
  146. package/src/ConfirmOrder/components/PayBar/index.wxss +108 -108
  147. package/src/ConfirmOrder/components/PayDetail/index.scss +40 -40
  148. package/src/ConfirmOrder/components/PayDetail/index.wxss +50 -50
  149. package/src/ConfirmOrder/components/PickupSelect/index.js +89 -89
  150. package/src/ConfirmOrder/components/PickupSelect/index.wxml +13 -13
  151. package/src/ConfirmOrder/components/SvipSelect/SvipSelect.js +99 -99
  152. package/src/ConfirmOrder/components/SvipSelect/SvipSelect.json +6 -6
  153. package/src/ConfirmOrder/components/SvipSelect/SvipSelect.scss +150 -150
  154. package/src/ConfirmOrder/components/SvipSelect/SvipSelect.wxml +39 -39
  155. package/src/ConfirmOrder/components/SvipSelect/SvipSelect.wxss +266 -266
  156. package/src/ConfirmOrder/components/SvipSelect/filter.wxs +6 -6
  157. package/src/ConfirmOrder/index.js +110 -110
  158. package/src/CopGoodsCard/constans.js +462 -462
  159. package/src/CopGoodsCard/index.js +147 -147
  160. package/src/CopGoodsCard/index.json +2 -2
  161. package/src/CopGoodsCard/index.scss +100 -100
  162. package/src/CopGoodsCard/index.wxml +20 -20
  163. package/src/CopGoodsCard/index.wxss +1 -1
  164. package/src/CouponList/components/CouponItem/index.css +1715 -1715
  165. package/src/CouponList/components/CouponItem/index.js +325 -319
  166. package/src/CouponList/components/CouponItem/index.min.css +1 -1
  167. package/src/CouponList/components/CouponItem/index.scss +591 -591
  168. package/src/CouponList/components/CouponItem/index.wxml +199 -199
  169. package/src/CouponList/components/CouponItem/index.wxss +1715 -1715
  170. package/src/CouponList/couponColumn/index.js +176 -176
  171. package/src/CouponList/couponColumn/index.scss +117 -117
  172. package/src/CouponList/couponColumn/index.wxml +39 -39
  173. package/src/CouponList/couponColumn/index.wxss +265 -265
  174. package/src/CouponReceivePopup/index.js +72 -72
  175. package/src/CouponReceivePopup/index.json +5 -5
  176. package/src/CouponReceivePopup/index.scss +99 -99
  177. package/src/CouponReceivePopup/index.wxml +85 -85
  178. package/src/CouponReceivePopup/index.wxss +1 -1
  179. package/src/CustomPopup/index.js +82 -82
  180. package/src/CustomPopup/index.wxml +25 -25
  181. package/src/GoodsItem/index.js +745 -745
  182. package/src/GoodsItem/index.scss +524 -524
  183. package/src/GoodsItem/index.wxml +173 -173
  184. package/src/GoodsItem/index.wxs +18 -18
  185. package/src/GoodsItem/index.wxss +1935 -1935
  186. package/src/GoodsRecommend/fun.wxs +37 -37
  187. package/src/GoodsRecommend/index.js +91 -91
  188. package/src/GoodsRecommend/index.json +3 -3
  189. package/src/GoodsRecommend/index.less +129 -129
  190. package/src/GoodsRecommend/index.scss +162 -162
  191. package/src/GoodsRecommend/index.wxml +47 -47
  192. package/src/GoodsRecommend/index.wxss +537 -537
  193. package/src/LiveGoodsList/Header/index.scss +78 -78
  194. package/src/LiveGoodsList/Header/index.wxss +190 -190
  195. package/src/LiveGoodsList/index.js +821 -821
  196. package/src/LiveGoodsList/index.scss +92 -92
  197. package/src/LiveGoodsList/index.wxml +106 -106
  198. package/src/LiveGoodsList/index.wxss +230 -230
  199. package/src/PayModule/button/index.scss +44 -44
  200. package/src/PayModule/button/index.wxss +58 -58
  201. package/src/PayModule/index/index.js +264 -264
  202. package/src/Sku/commSelect/index.wxss +54 -54
  203. package/src/Task/TaskBubble/index.js +117 -117
  204. package/src/Task/TaskBubble/index.json +3 -3
  205. package/src/Task/TaskBubble/index.scss +125 -125
  206. package/src/Task/TaskBubble/index.wxml +22 -22
  207. package/src/Task/TaskBubble/index.wxss +289 -289
  208. package/src/Task/TaskIcon/index.js +29 -29
  209. package/src/Task/TaskIcon/index.json +4 -4
  210. package/src/Task/TaskIcon/index.scss +70 -70
  211. package/src/Task/TaskIcon/index.wxml +5 -5
  212. package/src/Task/TaskIcon/index.wxss +130 -130
  213. package/src/Task/TaskPopup/component/RewardList/index.js +39 -39
  214. package/src/Task/TaskPopup/component/RewardList/index.json +6 -6
  215. package/src/Task/TaskPopup/component/RewardList/index.scss +39 -39
  216. package/src/Task/TaskPopup/component/RewardList/index.wxml +19 -19
  217. package/src/Task/TaskPopup/component/RewardList/index.wxss +18 -18
  218. package/src/Task/TaskPopup/component/TaskItem/index.js +207 -207
  219. package/src/Task/TaskPopup/component/TaskItem/index.json +5 -5
  220. package/src/Task/TaskPopup/component/TaskItem/index.scss +139 -139
  221. package/src/Task/TaskPopup/component/TaskItem/index.wxml +43 -43
  222. package/src/Task/TaskPopup/component/TaskItem/index.wxs +7 -7
  223. package/src/Task/TaskPopup/component/TaskItem/index.wxss +394 -394
  224. package/src/Task/TaskPopup/component/TaskList/index.js +146 -146
  225. package/src/Task/TaskPopup/component/TaskList/index.json +7 -7
  226. package/src/Task/TaskPopup/component/TaskList/index.scss +66 -66
  227. package/src/Task/TaskPopup/component/TaskList/index.wxml +39 -39
  228. package/src/Task/TaskPopup/component/TaskList/index.wxss +118 -118
  229. package/src/Task/TaskPopup/component/TaskType/index.js +75 -75
  230. package/src/Task/TaskPopup/component/TaskType/index.json +9 -9
  231. package/src/Task/TaskPopup/component/TaskType/index.scss +59 -59
  232. package/src/Task/TaskPopup/component/TaskType/index.wxml +42 -42
  233. package/src/Task/TaskPopup/component/TaskType/index.wxss +98 -98
  234. package/src/Task/TaskPopup/index.js +113 -113
  235. package/src/Task/TaskPopup/index.json +8 -8
  236. package/src/Task/TaskPopup/index.scss +113 -113
  237. package/src/Task/TaskPopup/index.wxml +67 -67
  238. package/src/Task/TaskPopup/index.wxss +306 -306
  239. package/src/Task/taskReceivePopup/coupon/index.js +52 -52
  240. package/src/Task/taskReceivePopup/coupon/index.json +6 -6
  241. package/src/Task/taskReceivePopup/coupon/index.scss +91 -91
  242. package/src/Task/taskReceivePopup/coupon/index.wxml +53 -53
  243. package/src/Task/taskReceivePopup/coupon/index.wxs +48 -48
  244. package/src/Task/taskReceivePopup/coupon/index.wxss +187 -187
  245. package/src/Task/taskReceivePopup/index.js +30 -30
  246. package/src/Task/taskReceivePopup/index.json +11 -11
  247. package/src/Task/taskReceivePopup/index.wxml +18 -18
  248. package/src/Task/taskReceivePopup/index.wxss +1 -1
  249. package/src/Task/taskReceivePopup/integral/index.js +37 -37
  250. package/src/Task/taskReceivePopup/integral/index.json +6 -6
  251. package/src/Task/taskReceivePopup/integral/index.scss +60 -60
  252. package/src/Task/taskReceivePopup/integral/index.wxml +17 -17
  253. package/src/Task/taskReceivePopup/integral/index.wxss +94 -94
  254. package/src/TeacherGoodsList/index.js +825 -825
  255. package/src/TeacherGoodsList/index.json +9 -9
  256. package/src/TeacherGoodsList/index.scss +145 -145
  257. package/src/TeacherGoodsList/index.wxml +110 -110
  258. package/src/TeacherGoodsList/index.wxss +196 -196
  259. package/src/common/api/confirmOrder.js +223 -223
  260. package/src/common/api/couponlist.js +2 -63
  261. package/src/common/api/liveGoodsList.js +89 -89
  262. package/src/common/api/sku.js +73 -73
  263. package/src/common/utils/index.js +69 -69
  264. package/src/coupon/components/CouponItem/index.less +208 -208
  265. package/src/coupon/components/CouponItem/index.scss +246 -246
  266. package/src/coupon/components/CouponItem/index.wxss +821 -821
  267. package/src/coupon/components/CouponSelect/index.scss +330 -330
  268. package/src/coupon/components/CouponSelect/index.wxss +1132 -1132
  269. package/src/coupon/index.js +248 -248
  270. package/src/coupon/index.scss +83 -83
  271. package/src/coupon/index.wxss +216 -216
@@ -1,130 +1,130 @@
1
- const computedBehavior = require('miniprogram-computed').behavior;
2
- import {
3
- getGoodsList
4
- } from "../../../../../common/api/confirmOrder"
5
-
6
- Component({
7
- behaviors: [computedBehavior],
8
- /**
9
- * 组件的属性列表
10
- */
11
- properties: {
12
- spuId:{
13
- type: String,
14
- value: ''
15
- },
16
- skuId:{
17
- type: String,
18
- value: ''
19
- },
20
- isFullScreen: {
21
- type: Boolean,
22
- value: false
23
- }
24
- },
25
-
26
- /**
27
- * 组件的初始数据
28
- */
29
- data: {
30
- showList: false,
31
- goodsList: [],
32
- // item: {
33
- // "master_spu_id": "SPU_COP_1694610367Pn9ZXbFK6glLT",
34
- // "master_sku_id": "SKU_COP_1698052496eW4Bk4af1v1mi",
35
- // "spu_id": "i_647f4d72e4b09d723799c040",
36
- // "resource_id": "i_647f4d72e4b09d723799c040",
37
- // "sku_id": "SKU_ITX_6860644988815AFbtG77",
38
- // "sku_business_id": "",
39
- // "spu_type": "ITX",
40
- // "resource_type": 1,
41
- // "is_public": 1,
42
- // "is_free": 0,
43
- // "is_password": 0,
44
- // "goods_name": "1-商家独立车-旗舰版(内灰)1-商家独立车-旗舰版(内灰)1-商家独立车-旗舰版(内灰)",
45
- // "sale_status": 1,
46
- // "is_display": 1,
47
- // "is_stop_sell": 0,
48
- // "stock_deduct_mode": 0,
49
- // "freight": 0,
50
- // "distribution_pattern": 1,
51
- // "is_uniform_freight": 0,
52
- // "freight_template_id": 0,
53
- // "img_url_compressed": "http://wechatapppro-1252524126.file.myqcloud.com/appegbzh7h16457/image/compress/414320701l1a507dv0a9c.png",
54
- // "is_single": 1,
55
- // "is_deleted": 0,
56
- // "is_forbid": 0,
57
- // "order_stock_limit": 0,
58
- // "sku_state": 1,
59
- // "new_period_value": "",
60
- // "new_period_type": -1,
61
- // "period_value": "-1",
62
- // "period_type": 0,
63
- // "limit_purchase": 0,
64
- // "limit_purchase_type": 0,
65
- // "goods_img": [
66
- // "https://wechatapppro-1252524126.file.myqcloud.com/appegbzh7h16457/image/b_u_61de508a8916c_18VwY3Or/l1a507dv0a9c.png"
67
- // ],
68
- // "sell_type": 1,
69
- // "sku_price": 2200,
70
- // "price_low": 2200,
71
- // "spu_extend": "",
72
- // "goods_sn": "",
73
- // "can_sold_start": "0001-01-01 00:00:00",
74
- // "can_sold_end": "0001-01-01 00:00:00",
75
- // "sku_img": "https://wechatapppro-1252524126.file.myqcloud.com/appegbzh7h16457/image/b_u_61de508a8916c_18VwY3Or/l1a507dv0a9c.png",
76
- // "sku_cost_price": 0,
77
- // "sku_weight": "",
78
- // "sku_volume": "",
79
- // "sku_spec_code": "",
80
- // "sku_num": 1,
81
- // "sku_min_purchase": 0,
82
- // "sku_desc": "",
83
- // "sku_name": "1-商家独立车-旗舰版(内灰)1-商家独立车-旗舰版(内灰)1-商家独立车-旗舰版(内灰)",
84
- // "left_stock": 999999,
85
- // "sales": 0,
86
- // "attr_value_list": null,
87
- // "goods_state": 0
88
- // }
89
- },
90
- lifetimes: {
91
- attached: function () {
92
- //this.getGoodsList();
93
- // if (this.data.spuId) {
94
- // this.getGoodsList();
95
- // }
96
- },
97
- },
98
- /**
99
- * 组件的方法列表
100
- */
101
- methods: {
102
- onClose() {
103
- this.setData({
104
- showList: false,
105
- goodsList: []
106
-
107
- })
108
- },
109
- openCombinedList() {
110
- this.getGoodsList();
111
- this.setData({
112
- showList: true
113
- })
114
- },
115
- getGoodsList(){
116
- const params = {
117
- spu_id: this.data.spuId,
118
- sku_id: this.data.skuId,
119
- }
120
- getGoodsList(params).then(res => {
121
- const { data, code } = res.data
122
- if(code == 0 ){
123
- this.setData({
124
- goodsList: Array.isArray(data) ? data : []
125
- })
126
- }
127
- })
128
- },
129
- }
1
+ const computedBehavior = require('miniprogram-computed').behavior;
2
+ import {
3
+ getGoodsList
4
+ } from "../../../../../common/api/confirmOrder"
5
+
6
+ Component({
7
+ behaviors: [computedBehavior],
8
+ /**
9
+ * 组件的属性列表
10
+ */
11
+ properties: {
12
+ spuId:{
13
+ type: String,
14
+ value: ''
15
+ },
16
+ skuId:{
17
+ type: String,
18
+ value: ''
19
+ },
20
+ isFullScreen: {
21
+ type: Boolean,
22
+ value: false
23
+ }
24
+ },
25
+
26
+ /**
27
+ * 组件的初始数据
28
+ */
29
+ data: {
30
+ showList: false,
31
+ goodsList: [],
32
+ // item: {
33
+ // "master_spu_id": "SPU_COP_1694610367Pn9ZXbFK6glLT",
34
+ // "master_sku_id": "SKU_COP_1698052496eW4Bk4af1v1mi",
35
+ // "spu_id": "i_647f4d72e4b09d723799c040",
36
+ // "resource_id": "i_647f4d72e4b09d723799c040",
37
+ // "sku_id": "SKU_ITX_6860644988815AFbtG77",
38
+ // "sku_business_id": "",
39
+ // "spu_type": "ITX",
40
+ // "resource_type": 1,
41
+ // "is_public": 1,
42
+ // "is_free": 0,
43
+ // "is_password": 0,
44
+ // "goods_name": "1-商家独立车-旗舰版(内灰)1-商家独立车-旗舰版(内灰)1-商家独立车-旗舰版(内灰)",
45
+ // "sale_status": 1,
46
+ // "is_display": 1,
47
+ // "is_stop_sell": 0,
48
+ // "stock_deduct_mode": 0,
49
+ // "freight": 0,
50
+ // "distribution_pattern": 1,
51
+ // "is_uniform_freight": 0,
52
+ // "freight_template_id": 0,
53
+ // "img_url_compressed": "http://wechatapppro-1252524126.file.myqcloud.com/appegbzh7h16457/image/compress/414320701l1a507dv0a9c.png",
54
+ // "is_single": 1,
55
+ // "is_deleted": 0,
56
+ // "is_forbid": 0,
57
+ // "order_stock_limit": 0,
58
+ // "sku_state": 1,
59
+ // "new_period_value": "",
60
+ // "new_period_type": -1,
61
+ // "period_value": "-1",
62
+ // "period_type": 0,
63
+ // "limit_purchase": 0,
64
+ // "limit_purchase_type": 0,
65
+ // "goods_img": [
66
+ // "https://wechatapppro-1252524126.file.myqcloud.com/appegbzh7h16457/image/b_u_61de508a8916c_18VwY3Or/l1a507dv0a9c.png"
67
+ // ],
68
+ // "sell_type": 1,
69
+ // "sku_price": 2200,
70
+ // "price_low": 2200,
71
+ // "spu_extend": "",
72
+ // "goods_sn": "",
73
+ // "can_sold_start": "0001-01-01 00:00:00",
74
+ // "can_sold_end": "0001-01-01 00:00:00",
75
+ // "sku_img": "https://wechatapppro-1252524126.file.myqcloud.com/appegbzh7h16457/image/b_u_61de508a8916c_18VwY3Or/l1a507dv0a9c.png",
76
+ // "sku_cost_price": 0,
77
+ // "sku_weight": "",
78
+ // "sku_volume": "",
79
+ // "sku_spec_code": "",
80
+ // "sku_num": 1,
81
+ // "sku_min_purchase": 0,
82
+ // "sku_desc": "",
83
+ // "sku_name": "1-商家独立车-旗舰版(内灰)1-商家独立车-旗舰版(内灰)1-商家独立车-旗舰版(内灰)",
84
+ // "left_stock": 999999,
85
+ // "sales": 0,
86
+ // "attr_value_list": null,
87
+ // "goods_state": 0
88
+ // }
89
+ },
90
+ lifetimes: {
91
+ attached: function () {
92
+ //this.getGoodsList();
93
+ // if (this.data.spuId) {
94
+ // this.getGoodsList();
95
+ // }
96
+ },
97
+ },
98
+ /**
99
+ * 组件的方法列表
100
+ */
101
+ methods: {
102
+ onClose() {
103
+ this.setData({
104
+ showList: false,
105
+ goodsList: []
106
+
107
+ })
108
+ },
109
+ openCombinedList() {
110
+ this.getGoodsList();
111
+ this.setData({
112
+ showList: true
113
+ })
114
+ },
115
+ getGoodsList(){
116
+ const params = {
117
+ spu_id: this.data.spuId,
118
+ sku_id: this.data.skuId,
119
+ }
120
+ getGoodsList(params).then(res => {
121
+ const { data, code } = res.data
122
+ if(code == 0 ){
123
+ this.setData({
124
+ goodsList: Array.isArray(data) ? data : []
125
+ })
126
+ }
127
+ })
128
+ },
129
+ }
130
130
  })
@@ -1,9 +1,9 @@
1
- {
2
- "component": true,
3
- "usingComponents": {
4
- "van-popup": "@vant/weapp/popup/index",
5
- "van-loading": "@vant/weapp/loading/index",
6
- "CustomPopup": "../../../../../CustomPopup/index",
7
- "CopGoodsCard": "../../../../../CopGoodsCard/index"
8
- }
1
+ {
2
+ "component": true,
3
+ "usingComponents": {
4
+ "van-popup": "@vant/weapp/popup/index",
5
+ "van-loading": "@vant/weapp/loading/index",
6
+ "CustomPopup": "../../../../../CustomPopup/index",
7
+ "CopGoodsCard": "../../../../../CopGoodsCard/index"
8
+ }
9
9
  }
@@ -1,59 +1,59 @@
1
- $deviceWidth: 750;
2
- @function vmin($rpx) {
3
- @return #{$rpx * 100 / $deviceWidth}vmin;
4
- }
5
-
6
- @mixin combined-goods-list{
7
- width: 100%;
8
- overflow: hidden;
9
- .combined-goods-select{
10
- display: flex;
11
- justify-content: space-between;
12
- align-items: center;
13
- padding: 0 vmin(32);
14
- padding-bottom: vmin(32);
15
- background: #fff;
16
- .combined-goods-desc{
17
- font-size: vmin(28);
18
- color: #333;
19
- }
20
- .arron-right{
21
- width: vmin(32);
22
- height: vmin(32);
23
- }
24
- }
25
- .header-cont {
26
- height: 100%;
27
- display: flex;
28
- align-items: center;
29
- justify-content: center;
30
- position: relative;
31
-
32
- .header-title {
33
- color: rgba(51, 51, 51, 1);
34
- font-size: 4.27vmin;
35
- font-weight: 600;
36
- }
37
-
38
- .img {
39
- width: 4.27vmin;
40
- height: 4.27vmin;
41
- position: absolute;
42
- right: 4.27vmin;
43
- top: 4.27vmin;
44
- }
45
- .img-left{
46
- width: 4.27vmin;
47
- height: 4.27vmin;
48
- position: absolute;
49
- top: 4.27vmin;
50
- left: 4.27vmin;
51
- }
52
- }
53
- .cop-goods-card{
54
- margin: 0 vmin(32)
55
- }
56
- }
57
- .combined-goods-list{
58
- @include combined-goods-list
1
+ $deviceWidth: 750;
2
+ @function vmin($rpx) {
3
+ @return #{$rpx * 100 / $deviceWidth}vmin;
4
+ }
5
+
6
+ @mixin combined-goods-list{
7
+ width: 100%;
8
+ overflow: hidden;
9
+ .combined-goods-select{
10
+ display: flex;
11
+ justify-content: space-between;
12
+ align-items: center;
13
+ padding: 0 vmin(32);
14
+ padding-bottom: vmin(32);
15
+ background: #fff;
16
+ .combined-goods-desc{
17
+ font-size: vmin(28);
18
+ color: #333;
19
+ }
20
+ .arron-right{
21
+ width: vmin(32);
22
+ height: vmin(32);
23
+ }
24
+ }
25
+ .header-cont {
26
+ height: 100%;
27
+ display: flex;
28
+ align-items: center;
29
+ justify-content: center;
30
+ position: relative;
31
+
32
+ .header-title {
33
+ color: rgba(51, 51, 51, 1);
34
+ font-size: 4.27vmin;
35
+ font-weight: 600;
36
+ }
37
+
38
+ .img {
39
+ width: 4.27vmin;
40
+ height: 4.27vmin;
41
+ position: absolute;
42
+ right: 4.27vmin;
43
+ top: 4.27vmin;
44
+ }
45
+ .img-left{
46
+ width: 4.27vmin;
47
+ height: 4.27vmin;
48
+ position: absolute;
49
+ top: 4.27vmin;
50
+ left: 4.27vmin;
51
+ }
52
+ }
53
+ .cop-goods-card{
54
+ margin: 0 vmin(32)
55
+ }
56
+ }
57
+ .combined-goods-list{
58
+ @include combined-goods-list
59
59
  }
@@ -1,25 +1,25 @@
1
- <view class="combined-goods-list">
2
- <view class="combined-goods-select" bindtap="openCombinedList">
3
- <view class="combined-goods-desc">内含商品</view>
4
- <image src="../../../../../common/assets/images/zhixiang.png" class="iconfont arron-right"></image>
5
- </view>
6
- <CustomPopup
7
- showPopup="{{ showList }}"
8
- bind:onClose="onClose"
9
- round="{{ !isFullScreen }}"
10
- customStyle="{{ isFullScreen ? 'height: 100%;width: 100vmin;' : 'height: 80%;' }}"
11
- overlay="{{ !isFullScreen }}"
12
- >
13
- <view slot="header" class="header-cont">
14
- <image src="../../../../../common/assets/images/left.png" class="img-left" bindtap="onClose" wx:if="{{ isFullScreen }}"></image>
15
- <view class="header-title">内含商品</view>
16
- <image src="../../../../../common/assets/images/close.png" class="img" bindtap="onClose" wx:if="{{ !isFullScreen }}"></image>
17
- </view>
18
- <view slot="content">
19
- <view class="cop-goods-card" wx:for="{{goodsList}}" wx:for-item="item" wx:key="index">
20
- <CopGoodsCard goodsInfo="{{ item }}"></CopGoodsCard>
21
- </view>
22
- </view>
23
- </CustomPopup>
24
- </view>
25
-
1
+ <view class="combined-goods-list">
2
+ <view class="combined-goods-select" bindtap="openCombinedList">
3
+ <view class="combined-goods-desc">内含商品</view>
4
+ <image src="../../../../../common/assets/images/zhixiang.png" class="iconfont arron-right"></image>
5
+ </view>
6
+ <CustomPopup
7
+ showPopup="{{ showList }}"
8
+ bind:onClose="onClose"
9
+ round="{{ !isFullScreen }}"
10
+ customStyle="{{ isFullScreen ? 'height: 100%;width: 100vmin;' : 'height: 80%;' }}"
11
+ overlay="{{ !isFullScreen }}"
12
+ >
13
+ <view slot="header" class="header-cont">
14
+ <image src="../../../../../common/assets/images/left.png" class="img-left" bindtap="onClose" wx:if="{{ isFullScreen }}"></image>
15
+ <view class="header-title">内含商品</view>
16
+ <image src="../../../../../common/assets/images/close.png" class="img" bindtap="onClose" wx:if="{{ !isFullScreen }}"></image>
17
+ </view>
18
+ <view slot="content">
19
+ <view class="cop-goods-card" wx:for="{{goodsList}}" wx:for-item="item" wx:key="index">
20
+ <CopGoodsCard goodsInfo="{{ item }}"></CopGoodsCard>
21
+ </view>
22
+ </view>
23
+ </CustomPopup>
24
+ </view>
25
+