|
|
@@ -69,25 +69,23 @@ |
|
|
|
type: 2, |
|
|
|
data: { |
|
|
|
id: state.orderInfo.id, |
|
|
|
source: "WECHAT", |
|
|
|
reason: e.orderReason, |
|
|
|
// opId: getItem(StorageKeys.OpenId), |
|
|
|
openId: getItem(StorageKeys.OpenId), |
|
|
|
}, |
|
|
|
method: "POST", |
|
|
|
showLoading: true, |
|
|
|
}; |
|
|
|
console.log("options", options) |
|
|
|
|
|
|
|
// #ifdef MP-WEIXIN |
|
|
|
request(cancelOrder, options).then((res) => { |
|
|
|
cancelOrderSuccess(); |
|
|
|
}); |
|
|
|
options.data['source'] = 'WECHAT' |
|
|
|
// #endif |
|
|
|
// #ifdef MP-ALIPAY |
|
|
|
request(cancelOrderNew, options).then((res) => { |
|
|
|
options.data['source'] = 'ALI' |
|
|
|
// #endif |
|
|
|
console.log("options", options) |
|
|
|
request(cancelOrder, options).then((res) => { |
|
|
|
cancelOrderSuccess(); |
|
|
|
}); |
|
|
|
// #endif |
|
|
|
}, |
|
|
|
"取消确认" |
|
|
|
); |