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.
- package/miniprogram_dist/ConfirmOrder/components/ConfirmOrderContent/index.json +23 -22
- package/miniprogram_dist/ConfirmOrder/components/ConfirmOrderContent/index.wxml +188 -183
- package/miniprogram_dist/ConfirmOrder/components/PickupSelect/index.js +1 -1
- package/miniprogram_dist/ConfirmOrder/components/SvipSelect/SvipSelect.js +100 -0
- package/miniprogram_dist/ConfirmOrder/components/SvipSelect/SvipSelect.json +7 -0
- package/miniprogram_dist/ConfirmOrder/components/SvipSelect/SvipSelect.scss +151 -0
- package/miniprogram_dist/ConfirmOrder/components/SvipSelect/SvipSelect.wxml +39 -0
- package/miniprogram_dist/ConfirmOrder/components/SvipSelect/SvipSelect.wxss +263 -0
- package/miniprogram_dist/ConfirmOrder/components/SvipSelect/filter.wxs +7 -0
- package/miniprogram_dist/common/assets/images/nochecked.png +0 -0
- package/package.json +1 -1
- package/src/ConfirmOrder/components/ConfirmOrderContent/index.json +23 -22
- package/src/ConfirmOrder/components/ConfirmOrderContent/index.wxml +188 -183
- package/src/ConfirmOrder/components/PickupSelect/index.js +1 -1
- package/src/ConfirmOrder/components/SvipSelect/SvipSelect.js +100 -0
- package/src/ConfirmOrder/components/SvipSelect/SvipSelect.json +7 -0
- package/src/ConfirmOrder/components/SvipSelect/SvipSelect.scss +151 -0
- package/src/ConfirmOrder/components/SvipSelect/SvipSelect.wxml +39 -0
- package/src/ConfirmOrder/components/SvipSelect/SvipSelect.wxss +266 -0
- package/src/ConfirmOrder/components/SvipSelect/filter.wxs +7 -0
- 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
|
-
"
|
|
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
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
></
|
|
111
|
-
<!--
|
|
112
|
-
<
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
activeMode="{{ activeMode }}"
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
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
|
+
});
|