...
|
...
|
@@ -18,7 +18,6 @@ module.exports = class extends global.yoho.BaseModel { |
|
|
closeReasons() {
|
|
|
return this.get({
|
|
|
data: {method: 'app.SpaceOrders.closeReasons'},
|
|
|
api: global.yoho.API,
|
|
|
param: {cache: true}
|
|
|
}).then((result) => {
|
|
|
if (result && result.code === 200) {
|
...
|
...
|
@@ -158,8 +157,7 @@ module.exports = class extends global.yoho.BaseModel { |
|
|
method: 'app.SpaceOrders.detail',
|
|
|
uid: uid,
|
|
|
order_code: orderCode
|
|
|
},
|
|
|
api: global.yoho.API
|
|
|
}
|
|
|
}).then(result => {
|
|
|
if (result && result.code === 200) {
|
|
|
let orderDetail = camelCase(result.data);
|
...
|
...
|
@@ -301,8 +299,7 @@ module.exports = class extends global.yoho.BaseModel { |
|
|
method: 'app.SpaceOrders.delOrderByCode',
|
|
|
uid: uid,
|
|
|
order_code: orderCode
|
|
|
},
|
|
|
api: global.yoho.API
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
|
...
|
...
|
@@ -313,8 +310,7 @@ module.exports = class extends global.yoho.BaseModel { |
|
|
method: 'app.Shopping.readd',
|
|
|
uid: uid,
|
|
|
order_code: orderCode
|
|
|
},
|
|
|
api: global.yoho.API
|
|
|
}
|
|
|
}).then((result) => {
|
|
|
if (result && result.code === 200) {
|
|
|
result.message = '商品已重新加入购物车';
|
...
|
...
|
@@ -341,8 +337,7 @@ module.exports = class extends global.yoho.BaseModel { |
|
|
reasons: reason,
|
|
|
gender: gender,
|
|
|
yh_channel: channel
|
|
|
},
|
|
|
api: global.yoho.API
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
|
...
|
...
|
@@ -357,8 +352,7 @@ module.exports = class extends global.yoho.BaseModel { |
|
|
order_code: params.orderCode,
|
|
|
reason_id: params.reasonId,
|
|
|
reason: params.reason
|
|
|
},
|
|
|
api: global.yoho.API
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
|
...
|
...
|
@@ -390,8 +384,7 @@ module.exports = class extends global.yoho.BaseModel { |
|
|
}
|
|
|
|
|
|
return this.get({
|
|
|
data: finalParams,
|
|
|
api: global.yoho.API
|
|
|
data: finalParams
|
|
|
});
|
|
|
}
|
|
|
|
...
|
...
|
@@ -486,8 +479,7 @@ module.exports = class extends global.yoho.BaseModel { |
|
|
}
|
|
|
|
|
|
return this.post({
|
|
|
data: apiParams,
|
|
|
api: global.yoho.API
|
|
|
data: apiParams
|
|
|
});
|
|
|
}
|
|
|
}; |
...
|
...
|
|