@subiz/widget-v4 4.0.72 → 4.0.73
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/compiled_src/order/order.js +5 -3
- package/dist/132.js +13 -11
- package/dist/178.js +1 -1
- package/dist/{1806ea1a59c.132.js → 1806f67a77b.132.js} +1 -1
- package/dist/{1806ea1a59c.178.js → 1806f67a77b.178.js} +1 -1
- package/dist/{1806ea1a59c.213.js → 1806f67a77b.213.js} +0 -0
- package/dist/{1806ea1a59c.335.js → 1806f67a77b.335.js} +0 -0
- package/dist/{1806ea1a59c.362.js → 1806f67a77b.362.js} +0 -0
- package/dist/{1806ea1a59c.441.js → 1806f67a77b.441.js} +0 -0
- package/dist/{1806ea1a59c.605.js → 1806f67a77b.605.js} +0 -0
- package/dist/{1806ea1a59c.678.js → 1806f67a77b.678.js} +0 -0
- package/dist/{1806ea1a59c.782.js → 1806f67a77b.782.js} +0 -0
- package/dist/{1806ea1a59c.app.js → 1806f67a77b.app.js} +1 -1
- package/dist/{1806ea1a59c.index.html → 1806f67a77b.index.html} +1 -1
- package/dist/{1806ea1a59c.library.html → 1806f67a77b.library.html} +1 -1
- package/dist/{1806ea1a59c.library.js → 1806f67a77b.library.js} +1 -1
- package/dist/{1806ea1a59c.preview.html → 1806f67a77b.preview.html} +1 -1
- package/dist/{1806ea1a59c.preview.js → 1806f67a77b.preview.js} +1 -1
- package/dist/{1806ea1a59c.screenshoot.js → 1806f67a77b.screenshoot.js} +1 -1
- package/dist/HASH +1 -1
- package/dist/screenshoot.html +1 -1
- package/package.json +1 -1
- package/src/order/order.js +10 -14
package/src/order/order.js
CHANGED
|
@@ -21,6 +21,7 @@ export default class Order extends common.Com {
|
|
|
21
21
|
loading: true,
|
|
22
22
|
order: {},
|
|
23
23
|
err: {},
|
|
24
|
+
shipping_address: 'new',
|
|
24
25
|
|
|
25
26
|
selectedProvince: null,
|
|
26
27
|
selectedDistrict: null,
|
|
@@ -868,21 +869,16 @@ export default class Order extends common.Com {
|
|
|
868
869
|
</div>
|
|
869
870
|
)
|
|
870
871
|
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
872
|
if (order.user_confirmation || order.status != 'open') {
|
|
875
873
|
$status = null
|
|
876
874
|
if (this.props.cid)
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
875
|
+
$close = (
|
|
876
|
+
<div class='order_btn order__btn__light mt-3' onClick={this.close}>
|
|
877
|
+
{this.props.t('close')}
|
|
878
|
+
</div>
|
|
879
|
+
)
|
|
882
880
|
}
|
|
883
881
|
|
|
884
|
-
|
|
885
|
-
|
|
886
882
|
return (
|
|
887
883
|
<div class='order' style='height: 100% !important'>
|
|
888
884
|
<div class='order--content'>
|
|
@@ -1132,15 +1128,15 @@ export default class Order extends common.Com {
|
|
|
1132
1128
|
|
|
1133
1129
|
onCancel = () => {
|
|
1134
1130
|
if (this.props.onResponse) this.props.onResponse('rejected')
|
|
1135
|
-
this.close()
|
|
1136
|
-
}
|
|
1137
|
-
|
|
1138
|
-
close = () => {
|
|
1139
1131
|
if (this.props.cid && !this.state.order.user_confirmation) {
|
|
1140
1132
|
let order = sb.cloneDeep(this.state.order)
|
|
1141
1133
|
order.user_confirmation = 'rejected'
|
|
1142
1134
|
this.props.store.updateOrder(order)
|
|
1143
1135
|
}
|
|
1136
|
+
this.close()
|
|
1137
|
+
}
|
|
1138
|
+
|
|
1139
|
+
close = () => {
|
|
1144
1140
|
if (this.props.onClose) this.props.onClose()
|
|
1145
1141
|
}
|
|
1146
1142
|
}
|