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;