|
|
|
@ -65,6 +65,24 @@ |
|
|
|
|
</view> |
|
|
|
|
</swiper-item> |
|
|
|
|
</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" |
|
|
|
|
:key="index" @click="jumphuafei(row)" :src="imageUrl+row.imgData"></image> |
|
|
|
|
<!-- 赠券 --> |
|
|
|
@ -137,6 +155,7 @@ |
|
|
|
|
imgadres: 'headzq.png', |
|
|
|
|
imgadres1: 'jbhed.png', |
|
|
|
|
imgadres2: 'jt.png', |
|
|
|
|
imgadres5: 'unionarea.png', |
|
|
|
|
imgadres3: '', |
|
|
|
|
imgadres4: 'cusservice.png', |
|
|
|
|
webUrl: '', |
|
|
|
@ -157,6 +176,8 @@ |
|
|
|
|
productListleg: '', |
|
|
|
|
goldproductList: [], |
|
|
|
|
goldproductListleg: '', |
|
|
|
|
unioncardproductList: [], |
|
|
|
|
unioncardproductListleg: '', |
|
|
|
|
loadingText: '正在加载...', |
|
|
|
|
pageNum: 1, |
|
|
|
|
pageSize: 6, |
|
|
|
@ -175,6 +196,7 @@ |
|
|
|
|
this.city = app.globalData.cityName; |
|
|
|
|
this.getCouponListArea(); |
|
|
|
|
this.getCouponListgold(); |
|
|
|
|
this.getunioncardCouponListgold(); |
|
|
|
|
this.getCmsContent(); |
|
|
|
|
this.getCmsContentcmshome(); |
|
|
|
|
this.getCmsContentcmsContent(); |
|
|
|
@ -261,6 +283,7 @@ |
|
|
|
|
app.globalData.cityId = '500000'; |
|
|
|
|
this.getCouponListArea(); |
|
|
|
|
this.getCouponListgold(); |
|
|
|
|
this.getunioncardCouponListgold(); |
|
|
|
|
this.getCmsContent(); |
|
|
|
|
this.getCmsAactibity(); |
|
|
|
|
this.getCmsContentcmshome(); |
|
|
|
@ -275,6 +298,7 @@ |
|
|
|
|
app.globalData.cityId = '500000'; |
|
|
|
|
this.getCouponListArea(); |
|
|
|
|
this.getCouponListgold(); |
|
|
|
|
this.getunioncardCouponListgold(); |
|
|
|
|
this.getCmsContent(); |
|
|
|
|
this.getCmsAactibity(); |
|
|
|
|
this.getCmsContentcmshome(); |
|
|
|
@ -505,6 +529,7 @@ |
|
|
|
|
if (res.return_data.result.addressComponent.adcode) { |
|
|
|
|
that.getCouponListArea(); |
|
|
|
|
that.getCouponListgold(); |
|
|
|
|
this.getunioncardCouponListgold(); |
|
|
|
|
that.getCmsContent(); |
|
|
|
|
that.getCmsAactibity(); |
|
|
|
|
that.getCmsContentcmshome(); |
|
|
|
@ -606,6 +631,28 @@ |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
//工会卡卡券列表 |
|
|
|
|
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) { |
|
|
|
|
this.currentSwiper = event.detail.current; |
|
|
|
@ -1135,7 +1182,7 @@ |
|
|
|
|
background-color: #FFFFFF; |
|
|
|
|
border-bottom: solid 2upx #f6f6f6; |
|
|
|
|
display: flex; |
|
|
|
|
justify-content: space-between; |
|
|
|
|
justify-content: flex-start; |
|
|
|
|
flex-wrap: wrap; |
|
|
|
|
|
|
|
|
|
.category { |
|
|
|
|