Browse Source

优化订单

master
ltlzx 5 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{ .order_item_info_content_operation p{
margin-bottom: 5px; margin-bottom: 5px;
cursor: pointer;
} }
</style> </style>

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

@ -24,6 +24,7 @@ export default{
}, },
created(){ created(){
this.step= parseInt(this.$route.query.step) this.step= parseInt(this.$route.query.step)
console.info(this.$route)
this.type=this.$route.query.type this.type=this.$route.query.type
}, },
methods:{ methods:{
@ -33,7 +34,9 @@ export default{
if (val.status==8 || val.status==2 || val.status==3) { if (val.status==8 || val.status==2 || val.status==3) {
this.step=2 this.step=2
if (val.status==8) { 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 this.type=2
} }
}else if (val.status==0 ||val.status==1) { }else if (val.status==0 ||val.status==1) {
@ -44,7 +47,9 @@ export default{
this.step=4 this.step=4
}else if (val.status==7 ) { }else if (val.status==7 ) {
this.step=5 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:[ headerList:[
{name:'我的订单',url:'/Purchaser'}, {name:'我的订单',url:'/Purchaser'},
{name:'我的收藏',url:'/Purchaser/myCollection'}, {name:'我的收藏',url:'/Purchaser/myCollection'},
{name:'在线学习',url:'/Purchaser/study'}, // {name:'线',url:'/Purchaser/study'},
{name:'学习成果',url:'/Purchaser/achievements'} // {name:'',url:'/Purchaser/achievements'}
], ],
header_active:0 header_active:0
} }

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

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

Loading…
Cancel
Save