Browse Source

优化订单

master
ltlzx 4 years ago
parent
commit
e5abdfe749
  1. 1
      src/components/page/Hoster/myOrder.vue
  2. 9
      src/components/page/Order/index.vue
  3. 4
      src/components/page/Purchaser/Purchaser.vue
  4. 1
      src/components/page/Purchaser/myOrder.vue

1
src/components/page/Hoster/myOrder.vue

@ -267,5 +267,6 @@ export default {
}
.order_item_info_content_operation p{
margin-bottom: 5px;
cursor: pointer;
}
</style>

9
src/components/page/Order/index.vue

@ -24,6 +24,7 @@ export default{
},
created(){
this.step= parseInt(this.$route.query.step)
console.info(this.$route)
this.type=this.$route.query.type
},
methods:{
@ -33,7 +34,9 @@ export default{
if (val.status==8 || val.status==2 || val.status==3) {
this.step=2
if (val.status==8) {
this.$router.push({path:'/order/orderDetails',query:{batchcode:val.batchcode,type:2}})
if (this.$route.path!='/order/orderDetails') {
this.$router.push({path:'/order/orderDetails',query:{batchcode:val.batchcode,type:2}})
}
this.type=2
}
}else if (val.status==0 ||val.status==1) {
@ -44,7 +47,9 @@ export default{
this.step=4
}else if (val.status==7 ) {
this.step=5
this.$router.push({path:'/order/orderDetails',query:{batchcode:val.batchcode,type:this.$route.query.type}})
if (this.$route.path!='/order/orderDetails') {
this.$router.push({path:'/order/orderDetails',query:{batchcode:val.batchcode,type:this.$route.query.type}})
}
}
}
}

4
src/components/page/Purchaser/Purchaser.vue

@ -15,8 +15,8 @@ export default {
headerList:[
{name:'我的订单',url:'/Purchaser'},
{name:'我的收藏',url:'/Purchaser/myCollection'},
{name:'在线学习',url:'/Purchaser/study'},
{name:'学习成果',url:'/Purchaser/achievements'}
// {name:'线',url:'/Purchaser/study'},
// {name:'',url:'/Purchaser/achievements'}
],
header_active:0
}

1
src/components/page/Purchaser/myOrder.vue

@ -265,5 +265,6 @@ export default {
}
.order_item_info_content_operation p{
margin-bottom: 5px;
cursor: pointer;
}
</style>

Loading…
Cancel
Save