From 377391120496ce352ae987190dbbbacd89ed7a03 Mon Sep 17 00:00:00 2001 From: "PC-20210316OUOY\\Administrator" <812952667@qq.com> Date: Sat, 17 Apr 2021 16:59:54 +0800 Subject: [PATCH] =?UTF-8?q?1.=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81=20?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=8C=BA=E5=9F=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/tabBar/category/category.vue | 3 +-- pages/tabBar/home/home.vue | 7 +++---- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/pages/tabBar/category/category.vue b/pages/tabBar/category/category.vue index ad406fd..3d33b79 100644 --- a/pages/tabBar/category/category.vue +++ b/pages/tabBar/category/category.vue @@ -113,8 +113,7 @@ success: function(res) { that.city = res.data.result.address_component.city.replace(/市/g, ''); - let a = res.data.result.ad_info.adcode.substring(5, '0'); - app.globalData.cityId = a + 0; + app.globalData.cityId = res.data.result.ad_info.adcode; // app.globalData.cityId = '500100'; that.getMerchantList(); uni.hideLoading() diff --git a/pages/tabBar/home/home.vue b/pages/tabBar/home/home.vue index f29fb63..397962a 100644 --- a/pages/tabBar/home/home.vue +++ b/pages/tabBar/home/home.vue @@ -53,7 +53,7 @@ 赠券专区 - + @@ -79,7 +79,7 @@ 金币专区 - + @@ -243,8 +243,7 @@ success: function(res) { that.city = res.data.result.address_component.city.replace(/市/g, ''); - let a = res.data.result.ad_info.adcode.substring(5, ''); - app.globalData.cityId = a + 0; + app.globalData.cityId = res.data.result.ad_info.adcode; // app.globalData.cityId = '500100'; that.getCouponListArea(); that.getCouponListgold();