Authored by zhangwenxue

商品详情: 调整已有订单跳转路由

区分出售与购买
... ... @@ -292,7 +292,13 @@ export default {
skup: tradeProduct.skup,
});
if (info.code !== 200) {
/**
* {
* "message": "您有未支付的订单,支付或取消后可提交新的订单",
* "code": 512
* }
*/
if (info.code === 512) {
return this.$createDialog({
type: 'confirm',
content: info.message,
... ... @@ -310,7 +316,7 @@ export default {
},
onConfirm: () => {
this.$router.push({
name: 'OrderList',
name: this.selectSizeConfig.type === 'buy' ? 'OrderList' : 'InSaleOrderList',
params: {
owner: this.selectSizeConfig.type,
},
... ... @@ -320,6 +326,7 @@ export default {
}).show();
}
} catch (e) {
// e
}
this.$router.push({
... ...