Authored by 张孝茹

order

... ... @@ -108,7 +108,6 @@ module.exports = class extends global.yoho.BaseModel {
yh_channel: params.yh_channel,
uid: params.uid
},
api: global.yoho.API,
param: {code: 200}
});
}
... ... @@ -255,7 +254,6 @@ module.exports = class extends global.yoho.BaseModel {
data: _.assign({
method: 'app.SpaceOrders.closeReasons'
}, params),
api: global.yoho.API,
param: {cache: true, code: 200}
}).then(result => {
... ... @@ -273,7 +271,6 @@ module.exports = class extends global.yoho.BaseModel {
refundReason() {
return this.get({
data: {method: 'app.SpaceOrders.refundApplyReasons'},
api: global.yoho.API,
param: {code: 200, cache: true}
}).then(result => {
return _.get(result, 'data', []);
... ... @@ -335,8 +332,7 @@ module.exports = class extends global.yoho.BaseModel {
method: 'app.SpaceOrders.confirm',
order_code: params.order_code,
uid: params.uid
},
api: global.yoho.API
}
});
}
};
... ...
... ... @@ -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
});
}
};
... ...