From dec989a7ca1629b0c18a80c52040289fce2f90cf Mon Sep 17 00:00:00 2001 From: Wik-T <812952667@qq.com> Date: Mon, 6 Dec 2021 21:18:46 +0800 Subject: [PATCH] =?UTF-8?q?1.=E6=B7=BB=E5=8A=A0=E9=A6=96=E9=A1=B5=E8=BD=AE?= =?UTF-8?q?=E6=92=AD=20=E8=8F=9C=E5=8D=95=20=E5=9B=BE=E7=89=87=E9=85=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 | 38 +++++++++++++----------- 1 file changed, 21 insertions(+), 17 deletions(-) diff --git a/high-unionPay/pages/tabBar/home/home.vue b/high-unionPay/pages/tabBar/home/home.vue index 5972d4f..664a623 100644 --- a/high-unionPay/pages/tabBar/home/home.vue +++ b/high-unionPay/pages/tabBar/home/home.vue @@ -7,7 +7,7 @@ - + @@ -21,12 +21,12 @@ - + {{ row.title }} - + @@ -43,8 +43,7 @@ - + :key="index" @click="jumphuafei(row)" :src="imageUrl+row.imgData"> @@ -170,10 +169,7 @@ // if (app.globalData.cityName != '') { // this.city = app.globalData.cityName; // this.getCouponListArea(); - // this.getCouponListgold(); - // this.getCmsContent(); - // this.getCmsContentcmshome(); - // this.getCmsContentcmsContent(); + // this.getCouponListgold(); // } }, onLoad() { @@ -223,8 +219,12 @@ upsdk.pluginReady(function() { upsdk.getLocationCity({ success: function(cityCd) { - app.globalData.cityId = cityCd; - that.getCouponListArea(); + app.globalData.cityId = cityCd; + that.getCmsAactibity(); + that.getCouponListArea(); + that.getCmsContent(); + that.getCmsContentcmshome(); + that.getCmsContentcmsContent(); }, fail: function(err) {} }); @@ -251,7 +251,7 @@ getCmsContentcmsContent() { let params = { regionId: app.globalData.cityId, - categoryCode: 'CMS_HOME_CONTENT' + categoryCode: 'CMS_UNIONPAY_IMG' } getCmsContent(params).then(res => { if (res.return_code == '000000') { @@ -263,7 +263,7 @@ getCmsContentcmshome() { let params = { regionId: app.globalData.cityId, - categoryCode: 'CMS_HOME_NAV' + categoryCode: 'CMS_UNIONPAY_FAST' } getCmsContent(params).then(res => { if (res.return_code == '000000') { @@ -276,7 +276,7 @@ getCmsContent() { let params = { regionId: app.globalData.cityId, - categoryCode: 'CMS_WX_APPLETS_HOME_SLIDESHOW' + categoryCode: 'CMS_UNIONPAY_BANNER' } getCmsContent(params).then(res => { if (res.return_code == '000000') { @@ -284,12 +284,16 @@ } }); }, - getCmsAactibity() { + getCmsAactibity() { + uni.showToast({ + title:'加载中...' + }) let params = { regionId: app.globalData.cityId, - categoryCode: 'CMS_WX_APPLETS_HOME_ACTIVITY' + categoryCode: 'CMS_UNIONPAY_ALERT' } - getCmsContent(params).then(res => { + getCmsContent(params).then(res => { + uni.hideLoading(); if (res.return_code == '000000' && res.return_data != '') { //弹窗首页广告 this.showPopup();