Browse Source

优化

master
ltlzx 4 years ago
parent
commit
78383bac9a
  1. 6
      src/components/page/Hoster/myOrder.vue
  2. 5
      src/components/page/Order/index.vue
  3. 6
      src/components/page/Purchaser/myOrder.vue

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

@ -92,7 +92,7 @@
<span v-else-if="item.status==11">已取消</span>
</div>
<div class="order_item_info_content_operation">
<p @click="goDetails(item.status,item.batchcode)">订单详情</p>
<p @click="goDetails(item.status,item.batchcode,item.type)">订单详情</p>
<p>下载合同</p>
</div>
</div>
@ -143,7 +143,7 @@ export default {
this.getData()
},
methods:{
goDetails(status,batchcode){
goDetails(status,batchcode,orderType){
let step,
type=1,
url='/order/sellorderPendingPay';
@ -163,7 +163,7 @@ export default {
url='/order/orderDetails'
type=2
}
this.$router.push({path:url,query:{step:step,batchcode:batchcode,type:type}})
this.$router.push({path:url,query:{step:step,batchcode:batchcode,type:type,orderType:orderType}})
},
changeSelect(index,type){
this.header_active=index

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

@ -30,11 +30,16 @@ export default{
}
},
created(){
let orderType=localStorage.getItem('orderType')
console.info(orderType)
this.step= parseInt(this.$route.query.step)
console.info(this.$route)
this.type=this.$route.query.type
if (this.$route.query.orderType) {
this.orderType=this.$route.query.orderType
localStorage.setItem('orderType',this.orderType)
}else if (orderType) {
this.orderType=orderType
}
},
methods:{

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

@ -94,7 +94,7 @@
<span v-else-if="item.status==11">已取消</span>
</div>
<div class="order_item_info_content_operation">
<p @click="goDetails(item.status,item.batchcode)">订单详情</p>
<p @click="goDetails(item.status,item.batchcode,item.type)">订单详情</p>
<p>下载合同</p>
</div>
</div>
@ -145,7 +145,7 @@ export default {
this.getData()
},
methods:{
goDetails(status,batchcode){
goDetails(status,batchcode,orderType){
let step,
type=0,
url='/order/orderPendingPay';
@ -163,7 +163,7 @@ export default {
url='/order/orderDetails'
type=2
}
this.$router.push({path:url,query:{step:step,batchcode:batchcode,type:type}})
this.$router.push({path:url,query:{step:step,batchcode:batchcode,type:type,orderType:orderType}})
},
changeSelect(index,type){
this.header_active=index

Loading…
Cancel
Save