|
|
@ -7,7 +7,7 @@ |
|
|
|
<view class="swiper-box"> |
|
|
|
<view class="swiper-box"> |
|
|
|
<swiper circular="true" autoplay="true" @change="swiperChange"> |
|
|
|
<swiper circular="true" autoplay="true" @change="swiperChange"> |
|
|
|
<swiper-item v-for="swiper in swiperList" :key="swiper.id"> |
|
|
|
<swiper-item v-for="swiper in swiperList" :key="swiper.id"> |
|
|
|
<image :src="imagewxUrl+swiper.img" @click="jumplottery(swiper)"></image> |
|
|
|
<image :src="imageUrl+swiper.imgData" @click="jumplottery(swiper)"></image> |
|
|
|
</swiper-item> |
|
|
|
</swiper-item> |
|
|
|
</swiper> |
|
|
|
</swiper> |
|
|
|
<view class="indicator"> |
|
|
|
<view class="indicator"> |
|
|
@ -21,12 +21,12 @@ |
|
|
|
<view class="category-list"> |
|
|
|
<view class="category-list"> |
|
|
|
<view class="category" v-for="(row, index) in categoryList" :key="index" @tap="jumphuafei(row)"> |
|
|
|
<view class="category" v-for="(row, index) in categoryList" :key="index" @tap="jumphuafei(row)"> |
|
|
|
<view class="img"> |
|
|
|
<view class="img"> |
|
|
|
<image :src="imagewxUrl+row.imgData"></image> |
|
|
|
<image :src="imageUrl+row.imgData"></image> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="text">{{ row.title }}</view> |
|
|
|
<view class="text">{{ row.title }}</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
<!-- 银联赠券 --> |
|
|
|
<view style="width: 91%;margin-left: 5%;" v-if='productList.length != 0' @click="goGoodsList(3)"> |
|
|
|
<view style="width: 91%;margin-left: 5%;" v-if='productList.length != 0' @click="goGoodsList(3)"> |
|
|
|
<image class="mart30 width100" mode="widthFix" :src="imagewxUrl+imgadres"></image> |
|
|
|
<image class="mart30 width100" mode="widthFix" :src="imagewxUrl+imgadres"></image> |
|
|
|
</view> |
|
|
|
</view> |
|
|
@ -43,8 +43,7 @@ |
|
|
|
</swiper> |
|
|
|
</swiper> |
|
|
|
|
|
|
|
|
|
|
|
<image mode="widthFix" style="margin-top: 30px;width: 90%;margin-left: 5%;" v-for="(row, index) in homeCateList" |
|
|
|
<image mode="widthFix" style="margin-top: 30px;width: 90%;margin-left: 5%;" v-for="(row, index) in homeCateList" |
|
|
|
:key="index" @click="jumphuafei(row)" :src="imagewxUrl+row.imgData"></image> |
|
|
|
:key="index" @click="jumphuafei(row)" :src="imageUrl+row.imgData"></image> |
|
|
|
<!-- 银联赠券 --> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<wybPopup ref="popup" type="center" height="850" width="600" radius="6" bgColor="" :showCloseIcon="true"> |
|
|
|
<wybPopup ref="popup" type="center" height="850" width="600" radius="6" bgColor="" :showCloseIcon="true"> |
|
|
|
<image class="popImg" :src="imageUrl+imgadres3" @click="jumpWeb"></image> |
|
|
|
<image class="popImg" :src="imageUrl+imgadres3" @click="jumpWeb"></image> |
|
|
@ -170,10 +169,7 @@ |
|
|
|
// if (app.globalData.cityName != '') { |
|
|
|
// if (app.globalData.cityName != '') { |
|
|
|
// this.city = app.globalData.cityName; |
|
|
|
// this.city = app.globalData.cityName; |
|
|
|
// this.getCouponListArea(); |
|
|
|
// this.getCouponListArea(); |
|
|
|
// this.getCouponListgold(); |
|
|
|
// this.getCouponListgold(); |
|
|
|
// this.getCmsContent(); |
|
|
|
|
|
|
|
// this.getCmsContentcmshome(); |
|
|
|
|
|
|
|
// this.getCmsContentcmsContent(); |
|
|
|
|
|
|
|
// } |
|
|
|
// } |
|
|
|
}, |
|
|
|
}, |
|
|
|
onLoad() { |
|
|
|
onLoad() { |
|
|
@ -223,8 +219,12 @@ |
|
|
|
upsdk.pluginReady(function() { |
|
|
|
upsdk.pluginReady(function() { |
|
|
|
upsdk.getLocationCity({ |
|
|
|
upsdk.getLocationCity({ |
|
|
|
success: function(cityCd) { |
|
|
|
success: function(cityCd) { |
|
|
|
app.globalData.cityId = cityCd; |
|
|
|
app.globalData.cityId = cityCd; |
|
|
|
that.getCouponListArea(); |
|
|
|
that.getCmsAactibity(); |
|
|
|
|
|
|
|
that.getCouponListArea(); |
|
|
|
|
|
|
|
that.getCmsContent(); |
|
|
|
|
|
|
|
that.getCmsContentcmshome(); |
|
|
|
|
|
|
|
that.getCmsContentcmsContent(); |
|
|
|
}, |
|
|
|
}, |
|
|
|
fail: function(err) {} |
|
|
|
fail: function(err) {} |
|
|
|
}); |
|
|
|
}); |
|
|
@ -251,7 +251,7 @@ |
|
|
|
getCmsContentcmsContent() { |
|
|
|
getCmsContentcmsContent() { |
|
|
|
let params = { |
|
|
|
let params = { |
|
|
|
regionId: app.globalData.cityId, |
|
|
|
regionId: app.globalData.cityId, |
|
|
|
categoryCode: 'CMS_HOME_CONTENT' |
|
|
|
categoryCode: 'CMS_UNIONPAY_IMG' |
|
|
|
} |
|
|
|
} |
|
|
|
getCmsContent(params).then(res => { |
|
|
|
getCmsContent(params).then(res => { |
|
|
|
if (res.return_code == '000000') { |
|
|
|
if (res.return_code == '000000') { |
|
|
@ -263,7 +263,7 @@ |
|
|
|
getCmsContentcmshome() { |
|
|
|
getCmsContentcmshome() { |
|
|
|
let params = { |
|
|
|
let params = { |
|
|
|
regionId: app.globalData.cityId, |
|
|
|
regionId: app.globalData.cityId, |
|
|
|
categoryCode: 'CMS_HOME_NAV' |
|
|
|
categoryCode: 'CMS_UNIONPAY_FAST' |
|
|
|
} |
|
|
|
} |
|
|
|
getCmsContent(params).then(res => { |
|
|
|
getCmsContent(params).then(res => { |
|
|
|
if (res.return_code == '000000') { |
|
|
|
if (res.return_code == '000000') { |
|
|
@ -276,7 +276,7 @@ |
|
|
|
getCmsContent() { |
|
|
|
getCmsContent() { |
|
|
|
let params = { |
|
|
|
let params = { |
|
|
|
regionId: app.globalData.cityId, |
|
|
|
regionId: app.globalData.cityId, |
|
|
|
categoryCode: 'CMS_WX_APPLETS_HOME_SLIDESHOW' |
|
|
|
categoryCode: 'CMS_UNIONPAY_BANNER' |
|
|
|
} |
|
|
|
} |
|
|
|
getCmsContent(params).then(res => { |
|
|
|
getCmsContent(params).then(res => { |
|
|
|
if (res.return_code == '000000') { |
|
|
|
if (res.return_code == '000000') { |
|
|
@ -284,12 +284,16 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
getCmsAactibity() { |
|
|
|
getCmsAactibity() { |
|
|
|
|
|
|
|
uni.showToast({ |
|
|
|
|
|
|
|
title:'加载中...' |
|
|
|
|
|
|
|
}) |
|
|
|
let params = { |
|
|
|
let params = { |
|
|
|
regionId: app.globalData.cityId, |
|
|
|
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 != '') { |
|
|
|
if (res.return_code == '000000' && res.return_data != '') { |
|
|
|
//弹窗首页广告 |
|
|
|
//弹窗首页广告 |
|
|
|
this.showPopup(); |
|
|
|
this.showPopup(); |
|
|
|