From b8ce0e7f0652aab9d9b0df9c5fbaebd924d31cc2 Mon Sep 17 00:00:00 2001
From: chenyc <501753378@qq.com>
Date: 星期日, 04 六月 2023 09:52:24 +0800
Subject: [PATCH] upbug

---
 src/views/jifenShangCheng/components/dizhi.vue |    4 ++++
 src/views/jifenShangCheng/index.vue            |    2 +-
 2 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/src/views/jifenShangCheng/components/dizhi.vue b/src/views/jifenShangCheng/components/dizhi.vue
index c8a2287..6e354d6 100644
--- a/src/views/jifenShangCheng/components/dizhi.vue
+++ b/src/views/jifenShangCheng/components/dizhi.vue
@@ -51,6 +51,7 @@
     const addressEditRef = ref<AddressEditInstance>()
     const chosenAddressId = ref(1)
     const addressInfo=ref({
+        code:'',
         id:0,
         name:'',
         addressDetail:'',
@@ -130,6 +131,7 @@
         console.log('用户信息')
         console.log(userInfo.patient)
         addressInfo.value={
+            code:'',
             id:0,
             name:userInfo.patient.patientInfo.patientName,
             addressDetail:userInfo.patient.patientInfo.patientAddress,
@@ -144,6 +146,7 @@
     const onEdit = (item:any, index:number) =>{
         console.log(item,index)
         addressInfo.value={
+            code:item.code,
             id:item.id,
             name:item.name,
             addressDetail:item.address,
@@ -160,6 +163,7 @@
         const pasm={
             addressArea: [form.city,form.county].toString(),
             id: addressInfo.value.id,
+            code:addressInfo.value.code,
             patientAddress: form.addressDetail,
             patientCode: userInfo.patient.patientInfo.code,
             patientIsDefault: form.isDefault===true?1:0,
diff --git a/src/views/jifenShangCheng/index.vue b/src/views/jifenShangCheng/index.vue
index b03180e..435ec2a 100644
--- a/src/views/jifenShangCheng/index.vue
+++ b/src/views/jifenShangCheng/index.vue
@@ -19,7 +19,7 @@
                         <!-- 订单 -->
                         <van-icon @click="openOrder" size="26px" name="balance-list-o" color="#67C23A" style="margin-top: 10px; margin-right: 20px;" />
                         <!-- 购物车 -->
-                        <van-icon @click="openGwc" size="26px" name="cart-circle-o" color="#F56C6C" style="margin-top: 10px;" />
+                        <van-icon @click="openGwc" size="26px" name="cart-circle-o" color="#F56C6C" :badge="gwcBadge" style="margin-top: 10px;" />
                     </div>
                     <div v-if="items.length > 0" style="border-left: 1px solid rgb(229, 226, 225); background: #f7f8fa;">
                         <van-card

--
Gitblit v1.8.0