From e34520a3a8f44802a72c32441b46c8374436b049 Mon Sep 17 00:00:00 2001 From: shenyuan Date: Thu, 23 Feb 2023 14:18:17 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E8=AE=A2=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/shopping/pages/placeOrder.vue | 113 ++++++++++-------- 1 file changed, 60 insertions(+), 53 deletions(-) diff --git a/ant-design-vue-jeecg/src/views/shopping/pages/placeOrder.vue b/ant-design-vue-jeecg/src/views/shopping/pages/placeOrder.vue index a48b62be..4052f89c 100644 --- a/ant-design-vue-jeecg/src/views/shopping/pages/placeOrder.vue +++ b/ant-design-vue-jeecg/src/views/shopping/pages/placeOrder.vue @@ -21,30 +21,30 @@
- + - + - + - + - + - + - + @@ -53,40 +53,29 @@
- 订单号#{{this.model.orderNum}}|2022-08-19 + 订单号#{{this.model.orderNum}}|{{this.model.orderTime}}
数量价格总计

配送至

- -

河南省

-

驻马店市 驿城区

-

黄淮学院南校区学府花园26号楼3602

-

463000默认地址

-
- -

河南省

-

驻马店市 驿城区

-

黄淮学院南校区学府花园26号楼3602

-

463000

+ overflow: hidden;" v-for="(item,index) in addrList" :key="index" @click="chooseAddr(item)" > +

{{item.addr1}}

+

{{item.addr2}}

+

463000默认地址

-

已发货

-

您的订单已经发出。

-

尊享免费配送,您的物流单号:

-

4263882788397

+ + + +
@@ -124,7 +113,10 @@
-
返回
+
+ 返回 + 提交 +
@@ -140,34 +132,48 @@ return { current:0,//目前步骤条在第几步 model:{ - id:'', - orderNum:'', - pay:false, - receipt:false - } + id:'',//订单id + orderNum:'1111111',//订单编号 + orderTime:'2022-08-19',//下单时间 + pay:false,//是否已支付 + // receipt:false + }, + addrList:[//地址列表 + { + id:1, + addr1:'河南省 驻马店市 驿城区', + addr2:'黄淮学院南校区学府花园26号楼3602', + flag:true//是否默认地址 + }, + { + id:2, + addr1:'河南省 驻马店市 驿城区', + addr2:'黄淮学院南校区学府花园26号楼3601', + flag:false + } + ] }; }, - created() { - // 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.receipt = JSON.parse(this.$route.query.receipt) - // switch (this.$route.query.key) { - // case 'daizhifu': - // this.current=0 - // break; - // case 'daishouhuo': - // this.current=4 - // break; - // case 'yiwancheng': - // this.current=6 - // break; - // } + methods:{ + chooseAddr(item){ + console.log(item) + }, + handleBack(){ + this.$router.push({ + path: "/shopping/ClothDetail", + query: { + // id: item.id, + }, + }); + } + }, + mounted() { + }, }; @@ -315,6 +321,7 @@ height: 56px; background: #1B1B1B; line-height: 56px; + margin-right: 20px; } &:hover{ color: red;