xiaoe_mp_npm 1.0.3 → 1.0.5-alpha.1

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 (21) hide show
  1. package/miniprogram_dist/ConfirmOrder/components/ConfirmOrderContent/index.json +23 -22
  2. package/miniprogram_dist/ConfirmOrder/components/ConfirmOrderContent/index.wxml +188 -183
  3. package/miniprogram_dist/ConfirmOrder/components/PickupSelect/index.js +1 -1
  4. package/miniprogram_dist/ConfirmOrder/components/SvipSelect/SvipSelect.js +100 -0
  5. package/miniprogram_dist/ConfirmOrder/components/SvipSelect/SvipSelect.json +7 -0
  6. package/miniprogram_dist/ConfirmOrder/components/SvipSelect/SvipSelect.scss +151 -0
  7. package/miniprogram_dist/ConfirmOrder/components/SvipSelect/SvipSelect.wxml +39 -0
  8. package/miniprogram_dist/ConfirmOrder/components/SvipSelect/SvipSelect.wxss +263 -0
  9. package/miniprogram_dist/ConfirmOrder/components/SvipSelect/filter.wxs +7 -0
  10. package/miniprogram_dist/common/assets/images/nochecked.png +0 -0
  11. package/package.json +1 -1
  12. package/src/ConfirmOrder/components/ConfirmOrderContent/index.json +23 -22
  13. package/src/ConfirmOrder/components/ConfirmOrderContent/index.wxml +188 -183
  14. package/src/ConfirmOrder/components/PickupSelect/index.js +1 -1
  15. package/src/ConfirmOrder/components/SvipSelect/SvipSelect.js +100 -0
  16. package/src/ConfirmOrder/components/SvipSelect/SvipSelect.json +7 -0
  17. package/src/ConfirmOrder/components/SvipSelect/SvipSelect.scss +151 -0
  18. package/src/ConfirmOrder/components/SvipSelect/SvipSelect.wxml +39 -0
  19. package/src/ConfirmOrder/components/SvipSelect/SvipSelect.wxss +266 -0
  20. package/src/ConfirmOrder/components/SvipSelect/filter.wxs +7 -0
  21. package/src/common/assets/images/nochecked.png +0 -0
@@ -1,23 +1,24 @@
1
- {
2
- "component": true,
3
- "usingComponents": {
4
- "ModeSelect": "../ModeSelect/index",
5
- "AddressSelect": "../AddressSelect/index",
6
- "AddressManage": "../AddressManage/index",
7
- "AddressEdit": "../AddressEdit/index",
8
- "PickupSelect": "../PickupSelect/index",
9
- "SelectSite": "../SelectSite/index",
10
- "Shipper": "../Shipper/index",
11
- "ChoosePicker": "../ChoosePicker/index",
12
- "ShipperEdit": "../ShipperEdit/index",
13
- "GoodsInfo": "../GoodsInfo/index",
14
- "LeaveWord": "../LeaveWord/index",
15
- "PayDetail": "../PayDetail/index",
16
- "PayBar": "../PayBar/index",
17
- "LimitDiscount": "../LimitDiscount/index",
18
- "Invoice": "../Invoice/index",
19
- "CouponSelect": "../../../coupon/index",
20
- "IntegralSelect": "../IntegralSelect/index",
21
- "InfoCollect": "../InfoCollect/index"
22
- }
1
+ {
2
+ "component": true,
3
+ "usingComponents": {
4
+ "ModeSelect": "../ModeSelect/index",
5
+ "AddressSelect": "../AddressSelect/index",
6
+ "AddressManage": "../AddressManage/index",
7
+ "AddressEdit": "../AddressEdit/index",
8
+ "PickupSelect": "../PickupSelect/index",
9
+ "SelectSite": "../SelectSite/index",
10
+ "Shipper": "../Shipper/index",
11
+ "ChoosePicker": "../ChoosePicker/index",
12
+ "ShipperEdit": "../ShipperEdit/index",
13
+ "GoodsInfo": "../GoodsInfo/index",
14
+ "LeaveWord": "../LeaveWord/index",
15
+ "PayDetail": "../PayDetail/index",
16
+ "PayBar": "../PayBar/index",
17
+ "LimitDiscount": "../LimitDiscount/index",
18
+ "Invoice": "../Invoice/index",
19
+ "CouponSelect": "../../../coupon/index",
20
+ "IntegralSelect": "../IntegralSelect/index",
21
+ "SvipSelect": "../SvipSelect/SvipSelect",
22
+ "InfoCollect": "../InfoCollect/index"
23
+ }
23
24
  }
@@ -1,184 +1,189 @@
1
- <!--src/ConfirmOrder/components/ConfirmOrderContent/index.wxml-->
2
- <view class="confirm-order-content" style="{{popsition == 'right' ? 'height:100vmin' : ''}}">
3
- <!-- 主页面 -->
4
- <view class="confirm-main" wx:if="{{ isShowMain }}">
5
- <!-- 配送模式选择 -->
6
- <ModeSelect
7
- activeMode="{{ activeMode }}"
8
- bind:changeMode="changeMode"
9
- wx:if="{{ showModeSelect }}"
10
- ></ModeSelect>
11
- <!-- 地址选择(非自提) -->
12
- <AddressSelect
13
- wx:if="{{ showAddressSelect }}"
14
- addressInfo="{{ addressInfo }}"
15
- isCart="{{ isCart }}"
16
- baseInfoQuery="{{ baseInfoQuery }}"
17
- hasEntityGoods="{{ hasEntityGoods }}"
18
- goodsInfo="{{ goodsInfo }}"
19
- isShowAddressManage="{{ isShowAddressManage }}"
20
- isShowEditAddress="{{ isShowEditAddress }}"
21
- addressQuery="{{ addressQuery }}"
22
- cartInfoLoaded="{{ cartInfoLoaded }}"
23
- addressInfoLoaded="{{ addressInfoLoaded }}"
24
- activeMode="{{ activeMode }}"
25
- bind:updataData="updataData"
26
- bind:dataChange="payInfoChange"
27
- ></AddressSelect>
28
- <!-- 自提点信息 -->
29
- <PickupSelect
30
- wx:if="{{ showPickSelf }}"
31
- isShowPoint="{{ isShowPoint }}"
32
- picksiteInfo="{{ picksiteInfo }}"
33
- express_type="{{ express_type }}"
34
- bind:updataData="updataData"
35
- bind:dataChange="payInfoChange"
36
- ></PickupSelect>
37
- <!-- 提货人信息 -->
38
- <ChoosePicker
39
- wx:if="{{ showPickSelf }}"
40
- pickerUserInfo="{{ pickerUserInfo }}"
41
- express_type="{{ express_type }}"
42
- isShowSelectShipper="{{ isShowSelectShipper }}"
43
- isShowCreateShipper="{{ isShowCreateShipper }}"
44
- backPage="{{ backPage }}"
45
- shipperType="{{ shipperType }}"
46
- showPickSelf="{{ showPickSelf }}"
47
- bind:updataData="updataData"
48
- bind:dataChange="payInfoChange"
49
- ></ChoosePicker>
50
- <!-- 商品信息 -->
51
- <GoodsInfo
52
- marketingData="{{ marketingData.marketing_info }}"
53
- goodsInfo="{{ goodsInfo }}"
54
- confirmOrderInfo="{{ confirmOrderInfo }}"
55
- baseInfo="{{ baseInfoQuery }}"
56
- isCart="{{ isCart }}"
57
- svipInfo="{{ superVipInfo }}"
58
- businessConf="{{ businessConf }}"
59
- cartInfoLoaded="{{ cartInfoLoaded }}"
60
- bind:updataData="updataData"
61
- bind:dataChange="payInfoChange"
62
- isFullScreen="{{ popPosition == 'right' }}"
63
- ></GoodsInfo>
64
- <!-- 【营销】限时折扣 -->
65
- <LimitDiscount
66
- marketingData="{{ marketingData }}"
67
- bind:dataChange="payInfoChange"
68
- ></LimitDiscount>
69
- <view class="coupon-integral-wrapper">
70
- <!-- 选择优惠券优惠码 -->
71
- <CouponSelect
72
- prePayInfo="{{prePayInfo}}"
73
- checkCodeParams="{{prePayParams}}"
74
- bind:dataChange="payInfoChange"
75
- isFullScreen="{{isFullScreen }}"
76
- >
77
- </CouponSelect>
78
- <!-- 积分组件 -->
79
- <IntegralSelect
80
- prePayInfo="{{ prePayInfo }}"
81
- baseInfo="{{ baseInfoQuery }}"
82
- bind:dataChange="payInfoChange"
83
- zIndex="{{invoiceSelectZIndex}}"
84
- isFullScreen="{{ isFullScreen }}"
85
- ></IntegralSelect>
86
- </view>
87
- <!-- 信息采集 -->
88
- <InfoCollect
89
- wx:if="{{ !isCart }}"
90
- baseInfo="{{ baseInfoQuery }}"
91
- goodsInfo="{{ goodsInfo }}"
92
- bind:dataChange="payInfoChange"
93
- isFullScreen="{{ isFullScreen }}"
94
- ></InfoCollect>
95
- <!-- 发票展示 -->
96
- <Invoice
97
- showClose="{{showClose}}"
98
- popPosition="{{ popPosition }}"
99
- round="{{ round }}"
100
- payPrams="{{ payParams }}"
101
- shopConf="{{ shopConf }}"
102
- bind:dataChange="payInfoChange"
103
- invoiceSelectZIndex="{{invoiceSelectZIndex}}"
104
- invoiceTipZIndex="{{invoiceTipZIndex}}"
105
- ></Invoice>
106
- <!-- 留言 -->
107
- <LeaveWord
108
- payParams="{{ payParams }}"
109
- bind:dataChange="payInfoChange"
110
- ></LeaveWord>
111
- <!-- 支付金额明细 -->
112
- <PayDetail
113
- prePayInfo="{{ prePayInfo }}"
114
- baseInfo="{{ baseInfoQuery }}"
115
- activeMode="{{ activeMode }}"
116
- bind:dataChange="payInfoChange"
117
- ></PayDetail>
118
- <!-- 底部支付栏 -->
119
- <PayBar
120
- activeMode="{{ activeMode }}"
121
- baseInfo="{{ baseInfoQuery }}"
122
- prePayInfo="{{ prePayInfo }}"
123
- payParams="{{ payParams }}"
124
- beforePay="{{ beforePay }}"
125
- afterPayCallback="{{ afterPayCallback }}"
126
- afterPay="{{ afterPay }}"
127
- checkList="{{ checkList }}"
128
- prePayParamsAsPayParams="{{ prePayParams }}"
129
- express_type="{{ express_type }}"
130
- pickerUserInfo="{{ pickerUserInfo }}"
131
- addressInfo="{{ addressInfo }}"
132
- picksiteInfo="{{ picksiteInfo }}"
133
- aliveInfo="{{ aliveInfo }}"
134
- sensorReportParams="{{ sensorReportParams }}"
135
- bind:successCallback="successCallback"
136
- bind:failCallback="failCallback"
137
- bind:updataData="updataData"
138
- isFullScreen="{{ popPosition == 'right' }}"
139
- zIndex="{{zIndex}}"
140
- ></PayBar>
141
- </view>
142
-
143
- <!-- 地址管理(非自提) -->
144
- <AddressManage
145
- wx:if="{{ isShowAddressManage }}"
146
- isShowAddressManage="{{ isShowAddressManage }}"
147
- addressInfo="{{ addressInfo }}"
148
- addressQuery="{{ addressQuery }}"
149
- isShowEditAddress="{{ isShowEditAddress }}"
150
- bind:updataData="updataData"
151
- ></AddressManage>
152
- <!-- 编辑、编辑地址 -->
153
- <AddressEdit
154
- wx:if="{{ isShowEditAddress }}"
155
- addressInfo="{{ addressInfo }}"
156
- addressList="{{ addressList }}"
157
- addressQuery="{{ addressQuery }}"
158
- isShowEditAddress="{{ isShowEditAddress }}"
159
- bind:updataData="updataData"
160
- bind:initConfirmOrderInfo="handleInfo"
161
- ></AddressEdit>
162
- <!-- 选择自提点 -->
163
- <SelectSite
164
- wx:if="{{ isShowPoint }}"
165
- picksiteInfo="{{ picksiteInfo }}"
166
- bind:updataData="updataData"
167
- ></SelectSite>
168
- <!-- 选择提货人 -->
169
- <Shipper
170
- wx:if="{{ isShowSelectShipper }}"
171
- pickerUserInfo="{{ pickerUserInfo }}"
172
- bind:updataData="updataData"
173
- ></Shipper>
174
- <!-- 新建、编辑提货人 -->
175
- <ShipperEdit
176
- wx:if="{{ isShowCreateShipper }}"
177
- pickerUserInfo="{{ pickerUserInfo }}"
178
- updateShipperInfo="{{ updateShipperInfo }}"
179
- shipperType="{{ shipperType }}"
180
- isShowCreateShipper="{{ isShowCreateShipper }}"
181
- bind:updataData="updataData"
182
- bind:initPickerInfo="initPickerInfo"
183
- ></ShipperEdit>
1
+ <!--src/ConfirmOrder/components/ConfirmOrderContent/index.wxml-->
2
+ <view class="confirm-order-content" style="{{popsition == 'right' ? 'height:100vmin' : ''}}">
3
+ <!-- 主页面 -->
4
+ <view class="confirm-main" wx:if="{{ isShowMain }}">
5
+ <!-- 配送模式选择 -->
6
+ <ModeSelect
7
+ activeMode="{{ activeMode }}"
8
+ bind:changeMode="changeMode"
9
+ wx:if="{{ showModeSelect }}"
10
+ ></ModeSelect>
11
+ <!-- 地址选择(非自提) -->
12
+ <AddressSelect
13
+ wx:if="{{ showAddressSelect }}"
14
+ addressInfo="{{ addressInfo }}"
15
+ isCart="{{ isCart }}"
16
+ baseInfoQuery="{{ baseInfoQuery }}"
17
+ hasEntityGoods="{{ hasEntityGoods }}"
18
+ goodsInfo="{{ goodsInfo }}"
19
+ isShowAddressManage="{{ isShowAddressManage }}"
20
+ isShowEditAddress="{{ isShowEditAddress }}"
21
+ addressQuery="{{ addressQuery }}"
22
+ cartInfoLoaded="{{ cartInfoLoaded }}"
23
+ addressInfoLoaded="{{ addressInfoLoaded }}"
24
+ activeMode="{{ activeMode }}"
25
+ bind:updataData="updataData"
26
+ bind:dataChange="payInfoChange"
27
+ ></AddressSelect>
28
+ <!-- 自提点信息 -->
29
+ <PickupSelect
30
+ wx:if="{{ showPickSelf }}"
31
+ isShowPoint="{{ isShowPoint }}"
32
+ picksiteInfo="{{ picksiteInfo }}"
33
+ express_type="{{ express_type }}"
34
+ bind:updataData="updataData"
35
+ bind:dataChange="payInfoChange"
36
+ ></PickupSelect>
37
+ <!-- 提货人信息 -->
38
+ <ChoosePicker
39
+ wx:if="{{ showPickSelf }}"
40
+ pickerUserInfo="{{ pickerUserInfo }}"
41
+ express_type="{{ express_type }}"
42
+ isShowSelectShipper="{{ isShowSelectShipper }}"
43
+ isShowCreateShipper="{{ isShowCreateShipper }}"
44
+ backPage="{{ backPage }}"
45
+ shipperType="{{ shipperType }}"
46
+ showPickSelf="{{ showPickSelf }}"
47
+ bind:updataData="updataData"
48
+ bind:dataChange="payInfoChange"
49
+ ></ChoosePicker>
50
+ <!-- 商品信息 -->
51
+ <GoodsInfo
52
+ marketingData="{{ marketingData.marketing_info }}"
53
+ goodsInfo="{{ goodsInfo }}"
54
+ confirmOrderInfo="{{ confirmOrderInfo }}"
55
+ baseInfo="{{ baseInfoQuery }}"
56
+ isCart="{{ isCart }}"
57
+ svipInfo="{{ superVipInfo }}"
58
+ businessConf="{{ businessConf }}"
59
+ cartInfoLoaded="{{ cartInfoLoaded }}"
60
+ bind:updataData="updataData"
61
+ bind:dataChange="payInfoChange"
62
+ isFullScreen="{{ popPosition == 'right' }}"
63
+ ></GoodsInfo>
64
+ <!-- 【营销】限时折扣 -->
65
+ <LimitDiscount
66
+ marketingData="{{ marketingData }}"
67
+ bind:dataChange="payInfoChange"
68
+ ></LimitDiscount>
69
+ <view class="coupon-integral-wrapper">
70
+ <!-- 选择优惠券优惠码 -->
71
+ <CouponSelect
72
+ prePayInfo="{{prePayInfo}}"
73
+ checkCodeParams="{{prePayParams}}"
74
+ bind:dataChange="payInfoChange"
75
+ isFullScreen="{{isFullScreen }}"
76
+ >
77
+ </CouponSelect>
78
+ <!-- 积分组件 -->
79
+ <IntegralSelect
80
+ prePayInfo="{{ prePayInfo }}"
81
+ baseInfo="{{ baseInfoQuery }}"
82
+ bind:dataChange="payInfoChange"
83
+ zIndex="{{invoiceSelectZIndex}}"
84
+ isFullScreen="{{ isFullScreen }}"
85
+ ></IntegralSelect>
86
+ <!-- SVIP组件 -->
87
+ <SvipSelect
88
+ prePayInfo="{{ prePayInfo }}"
89
+ bind:dataChange="payInfoChange"
90
+ ></SvipSelect>
91
+ </view>
92
+ <!-- 信息采集 -->
93
+ <InfoCollect
94
+ wx:if="{{ !isCart }}"
95
+ baseInfo="{{ baseInfoQuery }}"
96
+ goodsInfo="{{ goodsInfo }}"
97
+ bind:dataChange="payInfoChange"
98
+ isFullScreen="{{ isFullScreen }}"
99
+ ></InfoCollect>
100
+ <!-- 发票展示 -->
101
+ <Invoice
102
+ showClose="{{showClose}}"
103
+ popPosition="{{ popPosition }}"
104
+ round="{{ round }}"
105
+ payPrams="{{ payParams }}"
106
+ shopConf="{{ shopConf }}"
107
+ bind:dataChange="payInfoChange"
108
+ invoiceSelectZIndex="{{invoiceSelectZIndex}}"
109
+ invoiceTipZIndex="{{invoiceTipZIndex}}"
110
+ ></Invoice>
111
+ <!-- 留言 -->
112
+ <LeaveWord
113
+ payParams="{{ payParams }}"
114
+ bind:dataChange="payInfoChange"
115
+ ></LeaveWord>
116
+ <!-- 支付金额明细 -->
117
+ <PayDetail
118
+ prePayInfo="{{ prePayInfo }}"
119
+ baseInfo="{{ baseInfoQuery }}"
120
+ activeMode="{{ activeMode }}"
121
+ bind:dataChange="payInfoChange"
122
+ ></PayDetail>
123
+ <!-- 底部支付栏 -->
124
+ <PayBar
125
+ activeMode="{{ activeMode }}"
126
+ baseInfo="{{ baseInfoQuery }}"
127
+ prePayInfo="{{ prePayInfo }}"
128
+ payParams="{{ payParams }}"
129
+ beforePay="{{ beforePay }}"
130
+ afterPayCallback="{{ afterPayCallback }}"
131
+ afterPay="{{ afterPay }}"
132
+ checkList="{{ checkList }}"
133
+ prePayParamsAsPayParams="{{ prePayParams }}"
134
+ express_type="{{ express_type }}"
135
+ pickerUserInfo="{{ pickerUserInfo }}"
136
+ addressInfo="{{ addressInfo }}"
137
+ picksiteInfo="{{ picksiteInfo }}"
138
+ aliveInfo="{{ aliveInfo }}"
139
+ sensorReportParams="{{ sensorReportParams }}"
140
+ bind:successCallback="successCallback"
141
+ bind:failCallback="failCallback"
142
+ bind:updataData="updataData"
143
+ isFullScreen="{{ popPosition == 'right' }}"
144
+ zIndex="{{zIndex}}"
145
+ ></PayBar>
146
+ </view>
147
+
148
+ <!-- 地址管理(非自提) -->
149
+ <AddressManage
150
+ wx:if="{{ isShowAddressManage }}"
151
+ isShowAddressManage="{{ isShowAddressManage }}"
152
+ addressInfo="{{ addressInfo }}"
153
+ addressQuery="{{ addressQuery }}"
154
+ isShowEditAddress="{{ isShowEditAddress }}"
155
+ bind:updataData="updataData"
156
+ ></AddressManage>
157
+ <!-- 编辑、编辑地址 -->
158
+ <AddressEdit
159
+ wx:if="{{ isShowEditAddress }}"
160
+ addressInfo="{{ addressInfo }}"
161
+ addressList="{{ addressList }}"
162
+ addressQuery="{{ addressQuery }}"
163
+ isShowEditAddress="{{ isShowEditAddress }}"
164
+ bind:updataData="updataData"
165
+ bind:initConfirmOrderInfo="handleInfo"
166
+ ></AddressEdit>
167
+ <!-- 选择自提点 -->
168
+ <SelectSite
169
+ wx:if="{{ isShowPoint }}"
170
+ picksiteInfo="{{ picksiteInfo }}"
171
+ bind:updataData="updataData"
172
+ ></SelectSite>
173
+ <!-- 选择提货人 -->
174
+ <Shipper
175
+ wx:if="{{ isShowSelectShipper }}"
176
+ pickerUserInfo="{{ pickerUserInfo }}"
177
+ bind:updataData="updataData"
178
+ ></Shipper>
179
+ <!-- 新建、编辑提货人 -->
180
+ <ShipperEdit
181
+ wx:if="{{ isShowCreateShipper }}"
182
+ pickerUserInfo="{{ pickerUserInfo }}"
183
+ updateShipperInfo="{{ updateShipperInfo }}"
184
+ shipperType="{{ shipperType }}"
185
+ isShowCreateShipper="{{ isShowCreateShipper }}"
186
+ bind:updataData="updataData"
187
+ bind:initPickerInfo="initPickerInfo"
188
+ ></ShipperEdit>
184
189
  </view>
@@ -77,7 +77,7 @@ Component({
77
77
  methods: {
78
78
  // 显示提货点选择组件
79
79
  clickCell() {
80
- if (this.data.picksiteInfo.place_type === 1) return;
80
+ if (this.data.picksiteInfo && this.data.picksiteInfo.place_type === 1) return;
81
81
  this.triggerEvent('dataChange', {
82
82
  name: 'address',
83
83
  errMsg: '',
@@ -0,0 +1,100 @@
1
+ Component({
2
+ properties: {
3
+ prePayInfo: {
4
+ type: Object,
5
+ value: () => {
6
+ },
7
+ observer(val) {
8
+ if (val && val.svip_discount_info) {
9
+ this.setData({
10
+ svipSelectInfo: val && val['svip_discount_info'] || '',
11
+ cutPrice: (val.svip_discount_info.svip_discount / 100).toFixed(2) || 0
12
+ })
13
+ this.computedTxt()
14
+ this.triggerEvent("dataChange", {
15
+ name: 'svipInfo',
16
+ payParams: {
17
+ select_svip: val.svip_discount_info.select_svip
18
+ }
19
+ })
20
+ }
21
+ }
22
+ },
23
+ isFullScreen: {
24
+ type: Boolean,
25
+ value: false
26
+ }
27
+ },
28
+ data: {
29
+ svipSelectInfo: {},
30
+ invalidText: '',
31
+ showList: false,
32
+ isFullScreen: false,
33
+ cutPrice: 0,
34
+ listSelect: [
35
+ {
36
+ label: '【超级会员价】折扣',
37
+ text: '-',
38
+ value: 'svip_use'
39
+ },
40
+ {
41
+ label: '不使用',
42
+ text: '',
43
+ value: 'svip_no_use'
44
+ }
45
+ ],
46
+ curIndex: 0
47
+ },
48
+ methods: {
49
+ openSvipList() {
50
+ if (this.data.svipSelectInfo.select_svip !== 'svip_unavailable') {
51
+ this.setData({
52
+ showList: !this.data.showList
53
+ })
54
+ }
55
+ },
56
+ computedTxt() {
57
+ console.log('this.prePayInfo.select_svip==>', this.data.svipSelectInfo.select_svip);
58
+ switch (this.data.svipSelectInfo.select_svip) {
59
+ case 'svip_unavailable':
60
+ this.setData({
61
+ invalidText: this.data.svipSelectInfo.invalid_text
62
+ })
63
+ break;
64
+ case 'svip_use':
65
+ this.setData({
66
+ invalidText: `- ¥${(this.data.svipSelectInfo.svip_discount / 100).toFixed(2)}`
67
+ })
68
+ break;
69
+ case 'svip_no_use':
70
+ default:
71
+ this.setData({
72
+ invalidText: `请选择`
73
+ })
74
+ }
75
+ },
76
+ changeChose(e) {
77
+ // console.log(item);
78
+ this.setData({
79
+ showList: false,
80
+ curIndex: e.currentTarget.dataset['index']
81
+ })
82
+ this.triggerEvent("dataChange", {
83
+ name: 'svipInfo',
84
+ prePayParams: {
85
+ select_svip: e.currentTarget.dataset['value']
86
+ },
87
+ payParams: {
88
+ select_svip: e.currentTarget.dataset['value']
89
+ },
90
+ "triggerPrePay": true
91
+ })
92
+ },
93
+ // 关闭弹框
94
+ onClose() {
95
+ this.setData({
96
+ showList: false
97
+ })
98
+ }
99
+ }
100
+ });
@@ -0,0 +1,7 @@
1
+ {
2
+ "component": true,
3
+ "usingComponents": {
4
+ "van-popup": "@vant/weapp/popup/index",
5
+ "van-icon": "@vant/weapp/icon/index"
6
+ }
7
+ }