Authored by lea guo

订单列表接口整理

const config = {
development: {
axiosBaseUrl: 'http://m.yohobuy.com:6001/xianyu',
axiosBaseUrl: 'http://m.yohobuy.com/xianyu',
axiosResponseType: 'json',
reportUrl: '//badjs.yoho.cn/apm/yas2.gif',
},
... ...
... ... @@ -125,6 +125,66 @@ module.exports = {
},
},
// 不卖了 确认提示信息
'/api/seller/trade/cancle/confirm/info': {
auth: true,
ufo: true,
api: 'ufo.sellerOrder.cancelConfirm',
params: {
orderCode: { type: Number, require: true }, // 订单编号
},
},
// 不卖了
'/api/seller/trade/cancel': {
auth: true,
ufo: true,
api: 'ufo.sellerOrder.cancel',
params: {
orderCode: { type: Number, require: true }, // 订单编号
},
},
// 取消订单
'/api/buyer/trade/cancel': {
auth: true,
ufo: true,
api: 'ufo.buyer.cancel',
params: {
orderCode: { type: Number, require: true }, // 订单编号
},
},
// 买家删除订单
'/api/buyer/order/delete': {
auth: true,
ufo: true,
api: 'ufo.buyer.delete',
params: {
orderCode: { type: Number, require: true }, // 订单编号
},
},
// 买家删除订单
'/api/seller/order/delete': {
auth: true,
ufo: true,
api: 'ufo.sellerOrder.delete',
params: {
orderCode: { type: Number, require: true }, // 订单编号
},
},
// 买家取消订单预信息
'/pai/buyer/trade/cancel/info': {
auth: true,
ufo: true,
api: 'ufo.buyer.cancelCompute',
params: {
orderCode: { type: Number, require: true }, // 订单编号
},
},
// 订单数量
'/api/order/confirm/count': {
ufo: true,
... ...
... ... @@ -44,9 +44,9 @@ module.exports = (req, res, next) => {
};
}
// Todo 删除 600043484
// Todo 删除 600032996
req.user.uid = 600032996;
req.user.uid = 600043484;
res.locals.isLogin = Boolean(req.user.uid); // 用户是否登录
if (_.get(req, 'user.appSessionType') === 'miniapp') {
... ...
... ... @@ -33,4 +33,22 @@ declare module 'yoho' {
confirmTips?: string;
text: string;
}
interface ISellerCancelConfirmInfo {
confirmDesc: string;
needPenalty: boolean;
showPrice: boolean;
}
interface IBuyerCancelTradeConfirmInfo {
needPenalty: boolean;
orderPrice: string;
orderPriceDesc: string;
penaltyAmount: string;
penaltyDesc: string;
penaltyRate: string;
refundAmount: string;
refundDesc: string;
showPrice: boolean;
}
}
... ...