From fcafb98ee0891c5ccd8b89faf4e8c04431053fe2 Mon Sep 17 00:00:00 2001 From: fanfan Date: Fri, 26 Apr 2024 15:52:55 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/goods/detail.vue | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/pages/goods/detail.vue b/pages/goods/detail.vue index b96ed17..688678c 100644 --- a/pages/goods/detail.vue +++ b/pages/goods/detail.vue @@ -101,8 +101,7 @@ - {{addressInfo.region?addressInfo.region.city:addressResult.city}}:{{stockValue}} + {{addressResult.city}}:{{stockValue}} @@ -140,7 +139,7 @@ - {{addressInfo.region?(addressInfo.region.province +'-'+addressInfo.region.city+'-'+addressInfo.region.region):(addressResult?addressResult.province +'-'+addressResult.city+'-'+addressResult.district:'全国')}} + {{addressResult?addressResult.province +'-'+addressResult.city+'-'+addressResult.district:'全国'}} @@ -573,12 +572,9 @@ goods_id: this.goodsId, num: this.selectNum }], - province: this.addressInfo.region ? this.addressInfo.region.province : (this.addressResult ? - this.addressResult.province : '江苏省'), - city: this.addressInfo.region ? this.addressInfo.region.city : (this.addressResult ? this - .addressResult.city : '南京市'), - district: this.addressInfo.region ? this.addressInfo.region.region : (this.addressResult ? this - .addressResult.district : '玄武区') + province: this.addressResult ?this.addressResult.province : '江苏省', + city: this.addressResult ? this.addressResult.city : '南京市', + district: this.addressResult ? this.addressResult.district : '玄武区' } let { status,