Browse Source

优化

master
ltlzx 5 years ago
parent
commit
819a5da20e
  1. 9
      src/components/common/Home.vue
  2. 2
      src/components/page/AssetDetails.vue
  3. 2
      src/components/page/Order/confirmOrder.vue
  4. 2
      src/components/page/Order/orderPayment.vue

9
src/components/common/Home.vue

@ -1,8 +1,8 @@
<template> <template>
<div> <div>
<Header></Header> <Header ref="headerChild"></Header>
<div class="body"> <div class="body">
<router-view/> <router-view @UserConsole="UserConsole"/>
</div> </div>
<Footer/> <Footer/>
</div> </div>
@ -18,6 +18,11 @@ export default {
}, },
components:{ components:{
Header,Footer Header,Footer
},
methods:{
UserConsole(){
}
} }
} }
</script> </script>

2
src/components/page/AssetDetails.vue

@ -107,7 +107,7 @@ export default {
console.info(res) console.info(res)
if(res.code==100){ if(res.code==100){
this.query.count=this.listingList.pay_count this.query.count=this.listingList.pay_count
this.$router.push({path:'/order/confirmOrder',query:{step:0,id:this.query.id,count:this.query.count}}) this.$router.push({path:'/order/confirmOrder',query:{step:0,id:this.query.id,count:this.query.count,type:0}})
}else{ }else{
this.$message.error(res.msg) this.$message.error(res.msg)
} }

2
src/components/page/Order/confirmOrder.vue

@ -114,7 +114,7 @@ export default {
submitOrder(this.query).then(res=>{ submitOrder(this.query).then(res=>{
console.info(res) console.info(res)
if(res.code==100){ if(res.code==100){
this.$router.push({path:'/order/orderPayment',query:{step:1,batchcode:res.data.batchcode}}) this.$router.push({path:'/order/orderPayment',query:{step:1,batchcode:res.data.batchcode,type:0}})
this.$emit('confirm',res.data) this.$emit('confirm',res.data)
}else{ }else{
this.$message.error(res.msg) this.$message.error(res.msg)

2
src/components/page/Order/orderPayment.vue

@ -31,7 +31,7 @@ export default {
}, },
methods:{ methods:{
submit(){ submit(){
this.$router.push({path:'/order/orderPendingPay',query:{step:1,batchcode:this.$route.query.batchcode}}) this.$router.push({path:'/order/orderPendingPay',query:{step:1,batchcode:this.$route.query.batchcode,type:0}})
} }
} }
} }

Loading…
Cancel
Save