xiaoe_mp_npm 0.5.44-alpha.13 → 0.5.44-alpha.14

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 (135) hide show
  1. package/.gitlab-ci.yml +45 -45
  2. package/miniprogram_dist/ConfirmOrder/components/AddressSelect/index.js +160 -160
  3. package/miniprogram_dist/ConfirmOrder/components/ConfirmOrderContent/index.js +875 -875
  4. package/miniprogram_dist/ConfirmOrder/components/ConfirmOrderContent/index.scss +44 -44
  5. package/miniprogram_dist/ConfirmOrder/components/GoodsInfo/components/CopGoodsList/index.js +129 -129
  6. package/miniprogram_dist/ConfirmOrder/components/GoodsInfo/components/CopGoodsList/index.json +8 -8
  7. package/miniprogram_dist/ConfirmOrder/components/GoodsInfo/components/CopGoodsList/index.scss +55 -55
  8. package/miniprogram_dist/ConfirmOrder/components/GoodsInfo/components/CopGoodsList/index.wxml +25 -25
  9. package/miniprogram_dist/ConfirmOrder/components/GoodsInfo/index.js +436 -436
  10. package/miniprogram_dist/ConfirmOrder/components/GoodsInfo/index.json +9 -9
  11. package/miniprogram_dist/ConfirmOrder/components/GoodsInfo/index.scss +222 -222
  12. package/miniprogram_dist/ConfirmOrder/components/GoodsInfo/index.wxml +81 -81
  13. package/miniprogram_dist/ConfirmOrder/components/IntegralSelect/index.scss +90 -90
  14. package/miniprogram_dist/ConfirmOrder/components/Invoice/index.scss +60 -60
  15. package/miniprogram_dist/ConfirmOrder/components/LeaveWord/index.scss +39 -39
  16. package/miniprogram_dist/ConfirmOrder/components/PayBar/index.js +249 -249
  17. package/miniprogram_dist/ConfirmOrder/components/PayBar/index.scss +61 -61
  18. package/miniprogram_dist/ConfirmOrder/components/PayDetail/index.scss +40 -40
  19. package/miniprogram_dist/ConfirmOrder/index.js +110 -110
  20. package/miniprogram_dist/CopGoodsCard/constans.js +462 -462
  21. package/miniprogram_dist/CopGoodsCard/index.js +147 -147
  22. package/miniprogram_dist/CopGoodsCard/index.json +2 -2
  23. package/miniprogram_dist/CopGoodsCard/index.scss +99 -99
  24. package/miniprogram_dist/CopGoodsCard/index.wxml +20 -20
  25. package/miniprogram_dist/CouponList/components/CouponItem/index.js +308 -308
  26. package/miniprogram_dist/CouponList/components/CouponItem/index.scss +591 -591
  27. package/miniprogram_dist/CouponList/components/CouponItem/index.wxml +195 -195
  28. package/miniprogram_dist/CouponList/couponColumn/index.scss +117 -117
  29. package/miniprogram_dist/CustomPopup/index.js +82 -82
  30. package/miniprogram_dist/CustomPopup/index.wxml +25 -25
  31. package/miniprogram_dist/GoodsItem/index.js +667 -667
  32. package/miniprogram_dist/GoodsItem/index.less +299 -299
  33. package/miniprogram_dist/GoodsItem/index.scss +331 -331
  34. package/miniprogram_dist/GoodsItem/index.wxml +90 -90
  35. package/miniprogram_dist/GoodsRecommend/fun.wxs +37 -37
  36. package/miniprogram_dist/GoodsRecommend/index.js +91 -91
  37. package/miniprogram_dist/GoodsRecommend/index.json +3 -3
  38. package/miniprogram_dist/GoodsRecommend/index.less +129 -129
  39. package/miniprogram_dist/GoodsRecommend/index.scss +162 -162
  40. package/miniprogram_dist/GoodsRecommend/index.wxml +47 -47
  41. package/miniprogram_dist/LiveGoodsList/Header/index.scss +78 -78
  42. package/miniprogram_dist/LiveGoodsList/index.js +480 -480
  43. package/miniprogram_dist/LiveGoodsList/index.scss +92 -92
  44. package/miniprogram_dist/LiveGoodsList/index.wxml +107 -107
  45. package/miniprogram_dist/PayModule/button/index.scss +44 -44
  46. package/miniprogram_dist/Sku/commSelect/index.js +2 -1
  47. package/miniprogram_dist/Sku/commSelect/index.wxml +1 -0
  48. package/miniprogram_dist/Sku/index/index.js +5 -1
  49. package/miniprogram_dist/TeacherGoodsList/index.wxml +41 -41
  50. package/miniprogram_dist/common/api/confirmOrder.js +223 -223
  51. package/miniprogram_dist/common/api/liveGoodsList.js +81 -81
  52. package/miniprogram_dist/common/api/sku.js +73 -73
  53. package/miniprogram_dist/common/utils/index.js +69 -69
  54. package/miniprogram_dist/coupon/components/CouponItem/index.less +208 -208
  55. package/miniprogram_dist/coupon/components/CouponItem/index.scss +246 -246
  56. package/miniprogram_dist/coupon/components/CouponSelect/index.scss +330 -330
  57. package/miniprogram_dist/coupon/index.js +237 -237
  58. package/miniprogram_dist/coupon/index.scss +83 -83
  59. package/package.json +78 -78
  60. package/src/ConfirmOrder/components/AddressSelect/index.js +160 -160
  61. package/src/ConfirmOrder/components/ConfirmOrderContent/index.js +875 -875
  62. package/src/ConfirmOrder/components/ConfirmOrderContent/index.scss +44 -44
  63. package/src/ConfirmOrder/components/ConfirmOrderContent/index.wxss +51 -51
  64. package/src/ConfirmOrder/components/GoodsInfo/components/CopGoodsList/index.js +129 -129
  65. package/src/ConfirmOrder/components/GoodsInfo/components/CopGoodsList/index.json +8 -8
  66. package/src/ConfirmOrder/components/GoodsInfo/components/CopGoodsList/index.scss +55 -55
  67. package/src/ConfirmOrder/components/GoodsInfo/components/CopGoodsList/index.wxml +25 -25
  68. package/src/ConfirmOrder/components/GoodsInfo/components/CopGoodsList/index.wxss +1 -1
  69. package/src/ConfirmOrder/components/GoodsInfo/index.js +436 -436
  70. package/src/ConfirmOrder/components/GoodsInfo/index.json +9 -9
  71. package/src/ConfirmOrder/components/GoodsInfo/index.scss +222 -222
  72. package/src/ConfirmOrder/components/GoodsInfo/index.wxml +81 -81
  73. package/src/ConfirmOrder/components/GoodsInfo/index.wxss +673 -673
  74. package/src/ConfirmOrder/components/IntegralSelect/index.scss +90 -90
  75. package/src/ConfirmOrder/components/IntegralSelect/index.wxss +218 -218
  76. package/src/ConfirmOrder/components/Invoice/index.scss +60 -60
  77. package/src/ConfirmOrder/components/Invoice/index.wxss +93 -93
  78. package/src/ConfirmOrder/components/LeaveWord/index.scss +39 -39
  79. package/src/ConfirmOrder/components/LeaveWord/index.wxss +34 -34
  80. package/src/ConfirmOrder/components/PayBar/index.js +249 -249
  81. package/src/ConfirmOrder/components/PayBar/index.scss +61 -61
  82. package/src/ConfirmOrder/components/PayBar/index.wxss +108 -108
  83. package/src/ConfirmOrder/components/PayDetail/index.scss +40 -40
  84. package/src/ConfirmOrder/components/PayDetail/index.wxss +50 -50
  85. package/src/ConfirmOrder/index.js +110 -110
  86. package/src/CopGoodsCard/constans.js +462 -462
  87. package/src/CopGoodsCard/index.js +147 -147
  88. package/src/CopGoodsCard/index.json +2 -2
  89. package/src/CopGoodsCard/index.scss +99 -99
  90. package/src/CopGoodsCard/index.wxml +20 -20
  91. package/src/CopGoodsCard/index.wxss +1 -1
  92. package/src/CouponList/components/CouponItem/index.js +308 -308
  93. package/src/CouponList/components/CouponItem/index.scss +591 -591
  94. package/src/CouponList/components/CouponItem/index.wxml +195 -195
  95. package/src/CouponList/components/CouponItem/index.wxss +1715 -1715
  96. package/src/CouponList/couponColumn/index.scss +117 -117
  97. package/src/CouponList/couponColumn/index.wxss +265 -265
  98. package/src/CustomPopup/index.js +82 -82
  99. package/src/CustomPopup/index.wxml +25 -25
  100. package/src/GoodsItem/index.js +667 -667
  101. package/src/GoodsItem/index.less +299 -299
  102. package/src/GoodsItem/index.scss +331 -331
  103. package/src/GoodsItem/index.wxml +90 -90
  104. package/src/GoodsItem/index.wxss +1172 -1172
  105. package/src/GoodsRecommend/fun.wxs +37 -37
  106. package/src/GoodsRecommend/index.js +91 -91
  107. package/src/GoodsRecommend/index.json +3 -3
  108. package/src/GoodsRecommend/index.less +129 -129
  109. package/src/GoodsRecommend/index.scss +162 -162
  110. package/src/GoodsRecommend/index.wxml +47 -47
  111. package/src/GoodsRecommend/index.wxss +537 -537
  112. package/src/LiveGoodsList/Header/index.scss +78 -78
  113. package/src/LiveGoodsList/Header/index.wxss +190 -190
  114. package/src/LiveGoodsList/index.js +480 -480
  115. package/src/LiveGoodsList/index.scss +92 -92
  116. package/src/LiveGoodsList/index.wxml +107 -107
  117. package/src/PayModule/button/index.scss +44 -44
  118. package/src/PayModule/button/index.wxss +58 -58
  119. package/src/Sku/commSelect/index.js +2 -1
  120. package/src/Sku/commSelect/index.wxml +1 -0
  121. package/src/Sku/commSelect/index.wxss +54 -54
  122. package/src/Sku/index/index.js +5 -1
  123. package/src/TeacherGoodsList/index.wxml +41 -41
  124. package/src/common/api/confirmOrder.js +223 -223
  125. package/src/common/api/liveGoodsList.js +81 -81
  126. package/src/common/api/sku.js +73 -73
  127. package/src/common/utils/index.js +69 -69
  128. package/src/coupon/components/CouponItem/index.less +208 -208
  129. package/src/coupon/components/CouponItem/index.scss +246 -246
  130. package/src/coupon/components/CouponItem/index.wxss +821 -821
  131. package/src/coupon/components/CouponSelect/index.scss +330 -330
  132. package/src/coupon/components/CouponSelect/index.wxss +1132 -1132
  133. package/src/coupon/index.js +237 -237
  134. package/src/coupon/index.scss +83 -83
  135. package/src/coupon/index.wxss +216 -216
package/.gitlab-ci.yml CHANGED
@@ -1,45 +1,45 @@
1
- # 发布测试包
2
- build_test:
3
- stage: build
4
- only:
5
- - dev
6
- - bug-hotfix/replace-url
7
- - feature/live_marketing_iteration
8
- - feature/remove-error-report
9
- - fix/record-lottery
10
- - feature/coupon_fix
11
- tags:
12
- - fe-group-prod-runner-2
13
- script:
14
- - export project_name=$(cat package.json|awk -F "[:]" '/"name"/{print$2}')
15
- - export project_name=${project_name:2:$[${#project_name}-4]}
16
- - export version=`cat package.json|awk -F "[:]" '/"version"/{print$2}'`
17
- - export version=${version:2:$[${#version}-4]}
18
- - export message=$(git log --pretty=format:%s -1)
19
- - export author=$(git log --pretty=format:%an -1)
20
- - cnpm i
21
- - npm run build
22
- - cnpm publish
23
-
24
- # 发布正式包
25
- build_master:
26
- stage: build
27
- only:
28
- - master
29
- - /^release\/.*$/
30
- tags:
31
- - fe-group-prod-runner-2
32
- script:
33
- - export project_name=$(cat package.json|awk -F "[:]" '/"name"/{print$2}')
34
- - export project_name=${project_name:2:$[${#project_name}-4]}
35
- - export version=`cat package.json|awk -F "[:]" '/"version"/{print$2}'`
36
- - export version=${version:2:$[${#version}-4]}
37
- - export message=$(git log --no-merges --pretty=format:%s -1)
38
- - export author=$(git log --no-merges --pretty=format:%an -1)
39
- - cnpm i
40
- - npm run build
41
- - cnpm publish
42
- - curl 'https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=0ae9c0e9-3e15-49cf-9493-8f880943c6f0' -H 'Content-Type:application/json' -d '{"msgtype":"text","text":{"content":"'${project_name}'发包成功,版本号:'${version}',提交人:'${author}',提交信息:'${message}'"}}'
43
-
44
-
45
-
1
+ # 发布测试包
2
+ build_test:
3
+ stage: build
4
+ only:
5
+ - dev
6
+ - bug-hotfix/replace-url
7
+ - feature/live_marketing_iteration
8
+ - feature/remove-error-report
9
+ - fix/record-lottery
10
+ - feature/coupon_fix
11
+ tags:
12
+ - fe-group-prod-runner-2
13
+ script:
14
+ - export project_name=$(cat package.json|awk -F "[:]" '/"name"/{print$2}')
15
+ - export project_name=${project_name:2:$[${#project_name}-4]}
16
+ - export version=`cat package.json|awk -F "[:]" '/"version"/{print$2}'`
17
+ - export version=${version:2:$[${#version}-4]}
18
+ - export message=$(git log --pretty=format:%s -1)
19
+ - export author=$(git log --pretty=format:%an -1)
20
+ - cnpm i
21
+ - npm run build
22
+ - cnpm publish
23
+
24
+ # 发布正式包
25
+ build_master:
26
+ stage: build
27
+ only:
28
+ - master
29
+ - /^release\/.*$/
30
+ tags:
31
+ - fe-group-prod-runner-2
32
+ script:
33
+ - export project_name=$(cat package.json|awk -F "[:]" '/"name"/{print$2}')
34
+ - export project_name=${project_name:2:$[${#project_name}-4]}
35
+ - export version=`cat package.json|awk -F "[:]" '/"version"/{print$2}'`
36
+ - export version=${version:2:$[${#version}-4]}
37
+ - export message=$(git log --no-merges --pretty=format:%s -1)
38
+ - export author=$(git log --no-merges --pretty=format:%an -1)
39
+ - cnpm i
40
+ - npm run build
41
+ - cnpm publish
42
+ - curl 'https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=0ae9c0e9-3e15-49cf-9493-8f880943c6f0' -H 'Content-Type:application/json' -d '{"msgtype":"text","text":{"content":"'${project_name}'发包成功,版本号:'${version}',提交人:'${author}',提交信息:'${message}'"}}'
43
+
44
+
45
+
@@ -1,161 +1,161 @@
1
- // src/ConfirmOrder/components/AddressSelect/index.js
2
- const computedBehavior = require('miniprogram-computed').behavior
3
- import {
4
- ENTITY_GOODS,COP_GOODS
5
- } from '../../../common/utils/constants';
6
- import {
7
- isEmptyObject
8
- } from "../../../common/utils/index"
9
-
10
- Component({
11
- behaviors: [computedBehavior],
12
- /**
13
- * 组件的属性列表
14
- */
15
- properties: {
16
- addressInfo: {
17
- type: Object,
18
- value: () => {},
19
- observer(address) {
20
- this.triggerEvent("dataChange", {
21
- name: 'address',
22
- prePayParams: {
23
- address_id: address && address.id,
24
- },
25
- errMsg: this.data.showAddressSelect && !this.data.haveAddress && '请添加收货地址',
26
- triggerPrePay: !!(!this.data.isCart && address && address.id),
27
- })
28
- if (this.data.isCart) {
29
- this.triggerEvent("updataData", {
30
- cartInfoLoaded: false
31
- })
32
- }
33
- if (!this.data.addressInfoLoaded) {
34
- this.triggerEvent("updataData", {
35
- addressInfoLoaded: true
36
- })
37
- }
38
- }
39
- },
40
- isCart: {
41
- type: Number,
42
- value: 0,
43
- },
44
- activeMode: {
45
- type: Number,
46
- value: 0,
47
- },
48
- baseInfoQuery: {
49
- type: Object,
50
- value: () => {},
51
- },
52
- hasEntityGoods: {
53
- type: Boolean,
54
- value: false,
55
- },
56
- cartGoodsList: {
57
- type: Array,
58
- value: () => [],
59
- },
60
- goodsInfo: {
61
- type: Object,
62
- value: () => {},
63
- },
64
- isShowAddressManage: {
65
- type: Boolean,
66
- value: false,
67
- },
68
- addressQuery: {
69
- type: Object,
70
- value: () => {},
71
- },
72
- cartInfoLoaded: {
73
- type: Boolean,
74
- value: false,
75
- },
76
- addressInfoLoaded: {
77
- type: Boolean,
78
- value: false,
79
- }
80
- },
81
-
82
- /**
83
- * 组件的初始数据
84
- */
85
- data: {
86
-
87
- },
88
-
89
- lifetimes: {
90
- attached: async function () {
91
- this.triggerEvent("dataChange", {
92
- name: 'address',
93
- errMsg: this.data.showAddressSelect &&
94
- !this.data.haveAddress &&
95
- this.data.activeMode === 0 &&
96
- '请添加收货地址',
97
- })
98
- },
99
- },
100
- computed: {
101
- showAddressSelect(data) {
102
- return (
103
- data.baseInfoQuery.spu_type === ENTITY_GOODS ||
104
- data.baseInfoQuery.spu_type === COP_GOODS ||
105
- (data.goodsInfo.is_goods_package && data.hasEntityGoods) ||
106
- (data.isCart &&
107
- data.cartGoodsList.some((goodsInfo) => {
108
- return (
109
- goodsInfo.spu_type === ENTITY_GOODS ||
110
- goodsInfo.entity_goods_num > 0
111
- );
112
- }))
113
- );
114
- },
115
- haveAddress(data) {
116
- return data.addressInfo && !isEmptyObject(data.addressInfo);
117
- },
118
- invalidAddress(data) {
119
- return data.addressInfo && !data.addressInfo.calculate_freight;
120
- },
121
- needAddress(data) {
122
- return !data.haveAddress && data.showAddressSelect;
123
- },
124
- },
125
- observers: {
126
- needAddress(val) {
127
- if (val) {
128
- this.triggerEvent("dataChange", {
129
- name: 'address',
130
- errMsg: '请添加收货地址'
131
- })
132
- }
133
- }
134
- },
135
- /**
136
- * 组件的方法列表
137
- */
138
- methods: {
139
- // 修改地址
140
- changeAddress() {
141
- let obj = {}
142
- if (this.data.haveAddress) {
143
- obj = {
144
- isShowAddressManage: true,
145
- addressQuery: {
146
- selectable: true,
147
- id: this.data.addressInfo.id,
148
- orderdata: this.data.baseInfoQuery,
149
- }
150
- }
151
- } else {
152
- obj = {
153
- isShowEditAddress: true,
154
- addressQuery: {}
155
- }
156
- }
157
- this.triggerEvent("updataData", obj)
158
- this.setData(obj)
159
- }
160
- }
1
+ // src/ConfirmOrder/components/AddressSelect/index.js
2
+ const computedBehavior = require('miniprogram-computed').behavior
3
+ import {
4
+ ENTITY_GOODS,COP_GOODS
5
+ } from '../../../common/utils/constants';
6
+ import {
7
+ isEmptyObject
8
+ } from "../../../common/utils/index"
9
+
10
+ Component({
11
+ behaviors: [computedBehavior],
12
+ /**
13
+ * 组件的属性列表
14
+ */
15
+ properties: {
16
+ addressInfo: {
17
+ type: Object,
18
+ value: () => {},
19
+ observer(address) {
20
+ this.triggerEvent("dataChange", {
21
+ name: 'address',
22
+ prePayParams: {
23
+ address_id: address && address.id,
24
+ },
25
+ errMsg: this.data.showAddressSelect && !this.data.haveAddress && '请添加收货地址',
26
+ triggerPrePay: !!(!this.data.isCart && address && address.id),
27
+ })
28
+ if (this.data.isCart) {
29
+ this.triggerEvent("updataData", {
30
+ cartInfoLoaded: false
31
+ })
32
+ }
33
+ if (!this.data.addressInfoLoaded) {
34
+ this.triggerEvent("updataData", {
35
+ addressInfoLoaded: true
36
+ })
37
+ }
38
+ }
39
+ },
40
+ isCart: {
41
+ type: Number,
42
+ value: 0,
43
+ },
44
+ activeMode: {
45
+ type: Number,
46
+ value: 0,
47
+ },
48
+ baseInfoQuery: {
49
+ type: Object,
50
+ value: () => {},
51
+ },
52
+ hasEntityGoods: {
53
+ type: Boolean,
54
+ value: false,
55
+ },
56
+ cartGoodsList: {
57
+ type: Array,
58
+ value: () => [],
59
+ },
60
+ goodsInfo: {
61
+ type: Object,
62
+ value: () => {},
63
+ },
64
+ isShowAddressManage: {
65
+ type: Boolean,
66
+ value: false,
67
+ },
68
+ addressQuery: {
69
+ type: Object,
70
+ value: () => {},
71
+ },
72
+ cartInfoLoaded: {
73
+ type: Boolean,
74
+ value: false,
75
+ },
76
+ addressInfoLoaded: {
77
+ type: Boolean,
78
+ value: false,
79
+ }
80
+ },
81
+
82
+ /**
83
+ * 组件的初始数据
84
+ */
85
+ data: {
86
+
87
+ },
88
+
89
+ lifetimes: {
90
+ attached: async function () {
91
+ this.triggerEvent("dataChange", {
92
+ name: 'address',
93
+ errMsg: this.data.showAddressSelect &&
94
+ !this.data.haveAddress &&
95
+ this.data.activeMode === 0 &&
96
+ '请添加收货地址',
97
+ })
98
+ },
99
+ },
100
+ computed: {
101
+ showAddressSelect(data) {
102
+ return (
103
+ data.baseInfoQuery.spu_type === ENTITY_GOODS ||
104
+ data.baseInfoQuery.spu_type === COP_GOODS ||
105
+ (data.goodsInfo.is_goods_package && data.hasEntityGoods) ||
106
+ (data.isCart &&
107
+ data.cartGoodsList.some((goodsInfo) => {
108
+ return (
109
+ goodsInfo.spu_type === ENTITY_GOODS ||
110
+ goodsInfo.entity_goods_num > 0
111
+ );
112
+ }))
113
+ );
114
+ },
115
+ haveAddress(data) {
116
+ return data.addressInfo && !isEmptyObject(data.addressInfo);
117
+ },
118
+ invalidAddress(data) {
119
+ return data.addressInfo && !data.addressInfo.calculate_freight;
120
+ },
121
+ needAddress(data) {
122
+ return !data.haveAddress && data.showAddressSelect;
123
+ },
124
+ },
125
+ observers: {
126
+ needAddress(val) {
127
+ if (val) {
128
+ this.triggerEvent("dataChange", {
129
+ name: 'address',
130
+ errMsg: '请添加收货地址'
131
+ })
132
+ }
133
+ }
134
+ },
135
+ /**
136
+ * 组件的方法列表
137
+ */
138
+ methods: {
139
+ // 修改地址
140
+ changeAddress() {
141
+ let obj = {}
142
+ if (this.data.haveAddress) {
143
+ obj = {
144
+ isShowAddressManage: true,
145
+ addressQuery: {
146
+ selectable: true,
147
+ id: this.data.addressInfo.id,
148
+ orderdata: this.data.baseInfoQuery,
149
+ }
150
+ }
151
+ } else {
152
+ obj = {
153
+ isShowEditAddress: true,
154
+ addressQuery: {}
155
+ }
156
+ }
157
+ this.triggerEvent("updataData", obj)
158
+ this.setData(obj)
159
+ }
160
+ }
161
161
  })