订单跳转

zhc4dev
暖暖 2 years ago
parent fb1dfd16b1
commit 0159a0cd06
  1. 11
      ant-design-vue-jeecg/src/views/shopping/components/Order/placeOrder.vue
  2. 15
      ant-design-vue-jeecg/src/views/shopping/pages/gerenzhongxin.vue
  3. 23
      ant-design-vue-jeecg/src/views/shopping/pages/orderDetails.vue

@ -0,0 +1,11 @@
<template>
<div class="placeOrder">
下单页面
</div>
</template>
<style lang="less" scoped>
.placeOrder{
padding-top: 54px;
background-color: #F6F6F6;
}
</style>

@ -95,6 +95,7 @@
data() { data() {
return { return {
current: ['allorders'],// current: ['allorders'],//
key:'',//
allOrders1:[ allOrders1:[
{ {
id:1, id:1,
@ -154,12 +155,21 @@
openDetail(item) { openDetail(item) {
console.log('item') console.log('item')
console.log(item) console.log(item)
if(item.pay == false){
this.key = 'daizhifu'
}else if(item.pay == true && item.receipt == false){
this.key = 'daishouhuo'
}else if(item.receipt == true){
this.key = 'yiwancheng'
}
this.$router.push({ this.$router.push({
path: "/shopping/order", path: "/shopping/order",
query: { query: {
id: item.id, id: item.id,
orderNum: item.orderNum,
pay: item.pay, pay: item.pay,
receipt: item.receipt, receipt: item.receipt,
key:this.key,
}, },
}); });
}, },
@ -184,11 +194,6 @@
}, },
}; };
</script> </script>
<!--<style>-->
<!-- .gerenzhongxin .top .middle .router-link-exact-active.router-link-active {-->
<!-- border-bottom: 2px solid #000;-->
<!-- }-->
<!--</style>-->
<style lang="less" scoped> <style lang="less" scoped>
@import '../assets/common.css'; @import '../assets/common.css';
.bg{ .bg{

@ -19,7 +19,7 @@
<a class="c_333 f_12" v-if="this.model.receipt">查看发票详情</a> <a class="c_333 f_12" v-if="this.model.receipt">查看发票详情</a>
</div> </div>
<div class="steps"> <div class="steps">
<a-steps direction="vertical" size="small" :current="1"> <a-steps direction="vertical" size="small" :current="current">
<a-step title="提交订单" description="2022-12-24 12:23:00" > <a-step title="提交订单" description="2022-12-24 12:23:00" >
<a-icon slot="icon" type="container" /> <a-icon slot="icon" type="container" />
</a-step> </a-step>
@ -52,7 +52,7 @@
</div> </div>
<div class="r"> <div class="r">
<div class="title d-flex"> <div class="title d-flex">
<span class="f_20 c_333">订单号#6789086655<span class="line f_16 c_1B">|</span>2022-08-19</span> <span class="f_20 c_333">订单号#{{this.model.orderNum}}<span class="line f_16 c_1B">|</span>2022-08-19</span>
<div class="right d-flex f_16"><span>数量</span><span>价格</span><span>总计</span></div> <div class="right d-flex f_16"><span>数量</span><span>价格</span><span>总计</span></div>
</div> </div>
<div class="d-flex orderDiv"> <div class="d-flex orderDiv">
@ -131,8 +131,10 @@
components: { Header,Footer }, components: { Header,Footer },
data() { data() {
return { return {
current:0,//
model:{ model:{
id:'', id:'',
orderNum:'',
pay:false, pay:false,
receipt:false receipt:false
} }
@ -140,13 +142,20 @@
}, },
created() { created() {
this.model.id = this.$route.query.id this.model.id = this.$route.query.id
this.model.orderNum = this.$route.query.orderNum
this.model.pay = JSON.parse(this.$route.query.pay) this.model.pay = JSON.parse(this.$route.query.pay)
this.model.receipt = JSON.parse(this.$route.query.receipt) this.model.receipt = JSON.parse(this.$route.query.receipt)
console.log('this.model') switch (this.$route.query.key) {
console.log(this.model) case 'daizhifu':
}, this.current=0
methods: { break;
case 'daishouhuo':
this.current=4
break;
case 'yiwancheng':
this.current=6
break;
}
}, },
}; };
</script> </script>

Loading…
Cancel
Save