|
@@ -120,7 +120,11 @@ Page({ |
|
@@ -120,7 +120,11 @@ Page({ |
120
|
});
|
120
|
});
|
121
|
},
|
121
|
},
|
122
|
cancelOrder() {
|
122
|
cancelOrder() {
|
123
|
- orderHandle.cancelOrder(this.orderCode);
|
123
|
+ orderHandle.cancelOrder(this.orderCode, res => {
|
|
|
124
|
+ if (res && res.code === 200) {
|
|
|
125
|
+ wx.navigateBack({delta: 1});
|
|
|
126
|
+ }
|
|
|
127
|
+ });
|
124
|
},
|
128
|
},
|
125
|
payNow() {
|
129
|
payNow() {
|
126
|
orderHandle.payNow({
|
130
|
orderHandle.payNow({
|
|
@@ -129,13 +133,21 @@ Page({ |
|
@@ -129,13 +133,21 @@ Page({ |
129
|
});
|
133
|
});
|
130
|
},
|
134
|
},
|
131
|
deleteOrder() {
|
135
|
deleteOrder() {
|
132
|
- orderHandle.deleteOrder(this.orderCode);
|
136
|
+ orderHandle.deleteOrder(this.orderCode, res => {
|
|
|
137
|
+ if (res && res.code === 200) {
|
|
|
138
|
+ wx.navigateBack({delta: 1});
|
|
|
139
|
+ }
|
|
|
140
|
+ });
|
133
|
},
|
141
|
},
|
134
|
viewExpress() {
|
142
|
viewExpress() {
|
135
|
orderHandle.expressDetail(this.orderCode);
|
143
|
orderHandle.expressDetail(this.orderCode);
|
136
|
},
|
144
|
},
|
137
|
confirmOrder() {
|
145
|
confirmOrder() {
|
138
|
- orderHandle.confirmReceive(this.orderCode);
|
146
|
+ orderHandle.confirmReceive(this.orderCode, res => {
|
|
|
147
|
+ if (res && res.code === 200) {
|
|
|
148
|
+ wx.navigateBack({delta: 1});
|
|
|
149
|
+ }
|
|
|
150
|
+ });
|
139
|
},
|
151
|
},
|
140
|
refundOrder() {
|
152
|
refundOrder() {
|
141
|
let that = this;
|
153
|
let that = this;
|