Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
xianyu-ufo-app-web
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
zhangwenxue
5 years ago
Commit
11c302a160a0c1fc0f74ba5c59937e77ec99f249
1 parent
5e4018d9
商品详情: 调整已有订单跳转路由
区分出售与购买
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
apps/pages/product/product-detail.vue
apps/pages/product/product-detail.vue
View file @
11c302a
...
...
@@ -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' : 'InSale
OrderList',
params: {
owner: this.selectSizeConfig.type,
},
...
...
@@ -320,6 +326,7 @@ export default {
}).show();
}
} catch (e) {
// e
}
this.$router.push({
...
...
Please
register
or
login
to post a comment