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();