From 1c5052b45817c012acf0fa07f9c208cae4c555ee Mon Sep 17 00:00:00 2001 From: Wik-T <812952667@qq.com> Date: Fri, 3 Dec 2021 09:22:58 +0800 Subject: [PATCH] =?UTF-8?q?1.=E6=9B=B4=E6=8D=A2=E6=95=B0=E6=8D=AE=E4=BD=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- high-unionPay/pages/tabBar/home/home.vue | 27 +++++++++++++++++------- 1 file changed, 19 insertions(+), 8 deletions(-) diff --git a/high-unionPay/pages/tabBar/home/home.vue b/high-unionPay/pages/tabBar/home/home.vue index 68b4075..5972d4f 100644 --- a/high-unionPay/pages/tabBar/home/home.vue +++ b/high-unionPay/pages/tabBar/home/home.vue @@ -27,9 +27,6 @@ - - @@ -44,6 +41,11 @@ + + + + @@ -115,6 +117,9 @@ { 'title': '话费充值', 'imgData': 'phonePay1.png' + }, { + 'title': '石化码商', + 'imgData': 'petCoder.png' }, ], homeCateList: [{ @@ -132,7 +137,7 @@ }; }, onShow() { - let that = this; + let that = this; uni.getStorage({ key: "user", success(e) { @@ -185,7 +190,7 @@ if (res.return_code == '000000' && res.return_data) { let datas = res.return_data; uni.showModal({ - title: '优惠券领取', + title: '优惠券领取', content: '前往领取优惠券', success: (res) => { if (res.confirm) { @@ -218,7 +223,7 @@ upsdk.pluginReady(function() { upsdk.getLocationCity({ success: function(cityCd) { - app.globalData.cityId = cityCd; + app.globalData.cityId = cityCd; that.getCouponListArea(); }, fail: function(err) {} @@ -418,7 +423,13 @@ } if (item.title == '话费充值') { uni.navigateTo({ - url:'../../unionPay/recharge/recharge' + url: '../../unionPay/recharge/recharge' + }) + return; + } + if (item.title == '石化码商') { + uni.navigateTo({ + url: '/pages/goods/goods-list/goods-list?id=3' }) return; } @@ -751,7 +762,7 @@ flex-wrap: wrap; .category { - width: 25%; + width: 33.3%; margin-top: 50upx; display: flex; flex-wrap: wrap;