From dfff5aedc8a94854b30bda8381aa09705a8b2378 Mon Sep 17 00:00:00 2001 From: xuechunyuan <17853500702@163.com> Date: Thu, 24 Aug 2023 16:32:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=8D=A2=E9=BB=98=E8=AE=A4=E6=94=B6?= =?UTF-8?q?=E8=B4=A7=E5=9C=B0=E5=9D=80=E5=8F=82=E6=95=B0=E5=90=8D=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/pages_zhentou/homePage/homePage.vue | 2 +- pages/pages_zhentou/myPage/myPage.vue | 2 ++ pages/pages_zhentou/order/confirmOrder.vue | 4 +++- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/pages/pages_zhentou/homePage/homePage.vue b/pages/pages_zhentou/homePage/homePage.vue index cb20759..c53ee23 100644 --- a/pages/pages_zhentou/homePage/homePage.vue +++ b/pages/pages_zhentou/homePage/homePage.vue @@ -47,7 +47,7 @@ let userInfo = uni.getStorageSync('userInfo'); if (userInfo) { this.userInfo = JSON.parse(userInfo); - console.log('home',userInfo) + // console.log('home',userInfo) if(this.userInfo.phone) { this.phone = this.userInfo.phone; this.hasPhone = true; diff --git a/pages/pages_zhentou/myPage/myPage.vue b/pages/pages_zhentou/myPage/myPage.vue index 9de82b4..2eff983 100644 --- a/pages/pages_zhentou/myPage/myPage.vue +++ b/pages/pages_zhentou/myPage/myPage.vue @@ -84,6 +84,8 @@ let _data = JSON.parse(res.data); if (_data.code == 200) { this.updateAvatar(_data.data.link); + }else if(_data.code == 401){ + this.doLogin(); } } }) diff --git a/pages/pages_zhentou/order/confirmOrder.vue b/pages/pages_zhentou/order/confirmOrder.vue index 7812fd5..a3dc38e 100644 --- a/pages/pages_zhentou/order/confirmOrder.vue +++ b/pages/pages_zhentou/order/confirmOrder.vue @@ -93,6 +93,8 @@ this.addressInfo = JSON.parse(address); uni.removeStorageSync('address'); console.log(this.addressInfo) + }else if(this.userInfo){ + this.queryAddress(); } }, methods: { @@ -169,7 +171,7 @@ consigneePhone: this.addressInfo.phone, province: this.addressInfo.province, city: this.addressInfo.city, - district: this.addressInfo.distrit, + district: this.addressInfo.area, address: this.addressInfo.address, isDefaultAddress: this.addressInfo.isDefault },