Authored by 沈志敏

fix bug

... ... @@ -53,7 +53,7 @@ exports.cancelOrder = (orderCode, reasonId, reason) => {
method: 'app.SpaceOrders.close',
order_code: orderCode,
reason_id: reasonId,
reason: reason
reason: reason ? reason : ''
});
};
... ...
... ... @@ -130,6 +130,20 @@ const matchHeader = (path, qs, titleMap) => {
return header;
}
if (/\/me\/return\/refund$/.test(path)) {
header = titleMap[3];
header.title.des = '退货申请';
header.right.action = 'submitForm';
return header;
}
if (/\/me\/return\/exchange$/.test(path)) {
header = titleMap[3];
header.title.des = '换货申请';
header.right.action = 'submitForm';
return header;
}
if (/\/me\/return\/refund\/detail/.test(path)) {
header = titleMap[1];
header.title.des = '退货状态';
... ...
... ... @@ -93,6 +93,8 @@
}
},
created() {
yoho.addNativeMethod('submitForm', this.submit.bind(this));
$.ajax({
url: '/me/return/refund/order',
data: {
... ...