1.添加首页轮播 菜单 图片配置

master
杨杰 3 years ago
parent 6ca900b91d
commit dec989a7ca
  1. 28
      high-unionPay/pages/tabBar/home/home.vue

@ -7,7 +7,7 @@
<view class="swiper-box">
<swiper circular="true" autoplay="true" @change="swiperChange">
<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>
<view class="indicator">
@ -21,12 +21,12 @@
<view class="category-list">
<view class="category" v-for="(row, index) in categoryList" :key="index" @tap="jumphuafei(row)">
<view class="img">
<image :src="imagewxUrl+row.imgData"></image>
<image :src="imageUrl+row.imgData"></image>
</view>
<view class="text">{{ row.title }}</view>
</view>
</view>
<!-- 银联赠券 -->
<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>
</view>
@ -43,8 +43,7 @@
</swiper>
<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">
<image class="popImg" :src="imageUrl+imgadres3" @click="jumpWeb"></image>
@ -171,9 +170,6 @@
// this.city = app.globalData.cityName;
// this.getCouponListArea();
// this.getCouponListgold();
// this.getCmsContent();
// this.getCmsContentcmshome();
// this.getCmsContentcmsContent();
// }
},
onLoad() {
@ -224,7 +220,11 @@
upsdk.getLocationCity({
success: function(cityCd) {
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') {
@ -285,11 +285,15 @@
});
},
getCmsAactibity() {
uni.showToast({
title:'加载中...'
})
let params = {
regionId: app.globalData.cityId,
categoryCode: 'CMS_WX_APPLETS_HOME_ACTIVITY'
categoryCode: 'CMS_UNIONPAY_ALERT'
}
getCmsContent(params).then(res => {
uni.hideLoading();
if (res.return_code == '000000' && res.return_data != '') {
//广
this.showPopup();

Loading…
Cancel
Save