|
|
@ -64,7 +64,25 @@ |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</swiper-item> |
|
|
|
</swiper-item> |
|
|
|
</swiper> |
|
|
|
</swiper> |
|
|
|
|
|
|
|
<!-- 工会卡专区 --> |
|
|
|
|
|
|
|
<view style="width: 90%;margin-left: 5%;" v-if='unioncardproductList.length != 0' @click="goGoodsList(5)"> |
|
|
|
|
|
|
|
<image class="mart30 width100" mode="widthFix" :src="imagewxUrl+imgadres5"></image> |
|
|
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
<swiper class="orange-content" :display-multiple-items="unioncardproductListleg" v-if='unioncardproductList.length != 0' |
|
|
|
|
|
|
|
next-margin="50rpx"> |
|
|
|
|
|
|
|
<swiper-item class="swiper-hed" v-for="(item,index) in unioncardproductList" :key="index" |
|
|
|
|
|
|
|
@click="toGoods(item.id)"> |
|
|
|
|
|
|
|
<view class="swiper-item" :data-id="item.id"> |
|
|
|
|
|
|
|
<image class="img" :src="imageUrl+item.couponImg" mode="aspectFit"></image> |
|
|
|
|
|
|
|
<view class="fotlt fcor333 font14 text1 mart10">{{item.couponName}}</view> |
|
|
|
|
|
|
|
<view class="subject fotct mart5"> |
|
|
|
|
|
|
|
<view class="subject fotct mart5">¥{{item.discountPrice}}</view> |
|
|
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
</swiper-item> |
|
|
|
|
|
|
|
</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="imageUrl+row.imgData"></image> |
|
|
|
:key="index" @click="jumphuafei(row)" :src="imageUrl+row.imgData"></image> |
|
|
|
<!-- 赠券 --> |
|
|
|
<!-- 赠券 --> |
|
|
@ -137,6 +155,7 @@ |
|
|
|
imgadres: 'headzq.png', |
|
|
|
imgadres: 'headzq.png', |
|
|
|
imgadres1: 'jbhed.png', |
|
|
|
imgadres1: 'jbhed.png', |
|
|
|
imgadres2: 'jt.png', |
|
|
|
imgadres2: 'jt.png', |
|
|
|
|
|
|
|
imgadres5: 'unionarea.png', |
|
|
|
imgadres3: '', |
|
|
|
imgadres3: '', |
|
|
|
imgadres4: 'cusservice.png', |
|
|
|
imgadres4: 'cusservice.png', |
|
|
|
webUrl: '', |
|
|
|
webUrl: '', |
|
|
@ -156,7 +175,9 @@ |
|
|
|
productList: [], |
|
|
|
productList: [], |
|
|
|
productListleg: '', |
|
|
|
productListleg: '', |
|
|
|
goldproductList: [], |
|
|
|
goldproductList: [], |
|
|
|
goldproductListleg: '', |
|
|
|
goldproductListleg: '', |
|
|
|
|
|
|
|
unioncardproductList: [], |
|
|
|
|
|
|
|
unioncardproductListleg: '', |
|
|
|
loadingText: '正在加载...', |
|
|
|
loadingText: '正在加载...', |
|
|
|
pageNum: 1, |
|
|
|
pageNum: 1, |
|
|
|
pageSize: 6, |
|
|
|
pageSize: 6, |
|
|
@ -174,7 +195,8 @@ |
|
|
|
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.getunioncardCouponListgold(); |
|
|
|
this.getCmsContent(); |
|
|
|
this.getCmsContent(); |
|
|
|
this.getCmsContentcmshome(); |
|
|
|
this.getCmsContentcmshome(); |
|
|
|
this.getCmsContentcmsContent(); |
|
|
|
this.getCmsContentcmsContent(); |
|
|
@ -261,6 +283,7 @@ |
|
|
|
app.globalData.cityId = '500000'; |
|
|
|
app.globalData.cityId = '500000'; |
|
|
|
this.getCouponListArea(); |
|
|
|
this.getCouponListArea(); |
|
|
|
this.getCouponListgold(); |
|
|
|
this.getCouponListgold(); |
|
|
|
|
|
|
|
this.getunioncardCouponListgold(); |
|
|
|
this.getCmsContent(); |
|
|
|
this.getCmsContent(); |
|
|
|
this.getCmsAactibity(); |
|
|
|
this.getCmsAactibity(); |
|
|
|
this.getCmsContentcmshome(); |
|
|
|
this.getCmsContentcmshome(); |
|
|
@ -274,7 +297,8 @@ |
|
|
|
app.globalData.cityName = '重庆市'; |
|
|
|
app.globalData.cityName = '重庆市'; |
|
|
|
app.globalData.cityId = '500000'; |
|
|
|
app.globalData.cityId = '500000'; |
|
|
|
this.getCouponListArea(); |
|
|
|
this.getCouponListArea(); |
|
|
|
this.getCouponListgold(); |
|
|
|
this.getCouponListgold(); |
|
|
|
|
|
|
|
this.getunioncardCouponListgold(); |
|
|
|
this.getCmsContent(); |
|
|
|
this.getCmsContent(); |
|
|
|
this.getCmsAactibity(); |
|
|
|
this.getCmsAactibity(); |
|
|
|
this.getCmsContentcmshome(); |
|
|
|
this.getCmsContentcmshome(); |
|
|
@ -504,7 +528,8 @@ |
|
|
|
// app.globalData.cityId = '500103'; |
|
|
|
// app.globalData.cityId = '500103'; |
|
|
|
if (res.return_data.result.addressComponent.adcode) { |
|
|
|
if (res.return_data.result.addressComponent.adcode) { |
|
|
|
that.getCouponListArea(); |
|
|
|
that.getCouponListArea(); |
|
|
|
that.getCouponListgold(); |
|
|
|
that.getCouponListgold(); |
|
|
|
|
|
|
|
this.getunioncardCouponListgold(); |
|
|
|
that.getCmsContent(); |
|
|
|
that.getCmsContent(); |
|
|
|
that.getCmsAactibity(); |
|
|
|
that.getCmsAactibity(); |
|
|
|
that.getCmsContentcmshome(); |
|
|
|
that.getCmsContentcmshome(); |
|
|
@ -605,6 +630,28 @@ |
|
|
|
this.productList = []; |
|
|
|
this.productList = []; |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
//工会卡卡券列表 |
|
|
|
|
|
|
|
getunioncardCouponListgold() { |
|
|
|
|
|
|
|
let params = { |
|
|
|
|
|
|
|
regionId: app.globalData.cityId, |
|
|
|
|
|
|
|
pageNum: this.pageNum, |
|
|
|
|
|
|
|
pageSize: this.pageSize, |
|
|
|
|
|
|
|
displayArea: 5 |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
getCouponList(params).then(res => { |
|
|
|
|
|
|
|
if (res.return_code == '000000' && res.return_data.list) { |
|
|
|
|
|
|
|
this.unioncardproductList = res.return_data.list; |
|
|
|
|
|
|
|
this.unioncardproductListleg = res.return_data.total; |
|
|
|
|
|
|
|
if (res.return_data.total > 4) { |
|
|
|
|
|
|
|
this.unioncardproductListleg = 4; |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
this.unioncardproductListleg = res.return_data.total; |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
this.unioncardproductList = []; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}) |
|
|
|
}, |
|
|
|
}, |
|
|
|
//轮播图指示器 |
|
|
|
//轮播图指示器 |
|
|
|
swiperChange(event) { |
|
|
|
swiperChange(event) { |
|
|
@ -1135,7 +1182,7 @@ |
|
|
|
background-color: #FFFFFF; |
|
|
|
background-color: #FFFFFF; |
|
|
|
border-bottom: solid 2upx #f6f6f6; |
|
|
|
border-bottom: solid 2upx #f6f6f6; |
|
|
|
display: flex; |
|
|
|
display: flex; |
|
|
|
justify-content: space-between; |
|
|
|
justify-content: flex-start; |
|
|
|
flex-wrap: wrap; |
|
|
|
flex-wrap: wrap; |
|
|
|
|
|
|
|
|
|
|
|
.category { |
|
|
|
.category { |
|
|
|