|
|
@ -9,7 +9,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="imageUrl+swiper.imgData" ></image> |
|
|
|
<image :src="imageUrl+swiper.imgData"></image> |
|
|
|
</swiper-item> |
|
|
|
</swiper-item> |
|
|
|
</swiper> |
|
|
|
</swiper> |
|
|
|
<view class="indicator"> |
|
|
|
<view class="indicator"> |
|
|
@ -30,8 +30,7 @@ |
|
|
|
|
|
|
|
|
|
|
|
<view class="info mart10"> |
|
|
|
<view class="info mart10"> |
|
|
|
<view class="price" v-if="row.payType != 1"> |
|
|
|
<view class="price" v-if="row.payType != 1"> |
|
|
|
<image style="width: 15px;height: 15px;vertical-align: sub;" |
|
|
|
<image style="width: 15px;height: 15px;vertical-align: sub;" src="../../../static/img/jfx.png"> |
|
|
|
src="../../../static/img/jfx.png"> |
|
|
|
|
|
|
|
</image> {{ row.discountPrice*100}} |
|
|
|
</image> {{ row.discountPrice*100}} |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="price" v-else> |
|
|
|
<view class="price" v-else> |
|
|
@ -39,9 +38,15 @@ |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<!-- v-if="product.discountPrice !== product.salesPrice" --> |
|
|
|
<!-- v-if="product.discountPrice !== product.salesPrice" --> |
|
|
|
<view class="slogan" v-if="row.discountPrice !== row.salesPrice"> |
|
|
|
<view class="slogan" v-if="row.discountPrice !== row.salesPrice"> |
|
|
|
<image v-if="row.payType != 1" style="width: 15px;height: 15px;vertical-align: sub;" |
|
|
|
<!-- <image v-if="row.payType != 1" style="width: 15px;height: 15px;vertical-align: sub;" |
|
|
|
|
|
|
|
src="../../../static/img/jfh.png"> |
|
|
|
|
|
|
|
</image>{{ row.salesPrice*100}} <text v-else>¥</text>{{row.salesPrice}} --> |
|
|
|
|
|
|
|
<view v-if="row.payType != 1"> |
|
|
|
|
|
|
|
<image style="width: 15px;height: 15px;vertical-align: sub;" |
|
|
|
src="../../../static/img/jfh.png"> |
|
|
|
src="../../../static/img/jfh.png"> |
|
|
|
</image> <text v-else>¥</text>{{ row.salesPrice*100}} |
|
|
|
</image>{{ row.salesPrice*100}} |
|
|
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
<view v-else>¥{{ row.salesPrice}}</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
@ -62,7 +67,7 @@ |
|
|
|
return { |
|
|
|
return { |
|
|
|
goodsList: [], |
|
|
|
goodsList: [], |
|
|
|
imagewxUrl: app.globalData.imageWxImg, |
|
|
|
imagewxUrl: app.globalData.imageWxImg, |
|
|
|
imgadres:'noorder.png', |
|
|
|
imgadres: 'noorder.png', |
|
|
|
imageUrl: app.globalData.imgUrl, |
|
|
|
imageUrl: app.globalData.imgUrl, |
|
|
|
// 轮播图片 |
|
|
|
// 轮播图片 |
|
|
|
swiperList: [{ |
|
|
|
swiperList: [{ |
|
|
@ -82,7 +87,7 @@ |
|
|
|
isNoMoreData: false, |
|
|
|
isNoMoreData: false, |
|
|
|
typeId: '', |
|
|
|
typeId: '', |
|
|
|
couponName: '', |
|
|
|
couponName: '', |
|
|
|
brandid : '', |
|
|
|
brandid: '', |
|
|
|
goodtyid: '' |
|
|
|
goodtyid: '' |
|
|
|
}; |
|
|
|
}; |
|
|
|
}, |
|
|
|
}, |
|
|
@ -106,6 +111,13 @@ |
|
|
|
this.getCmsContent('CMS_WX_APPLETS_GOODS_LIST'); |
|
|
|
this.getCmsContent('CMS_WX_APPLETS_GOODS_LIST'); |
|
|
|
} |
|
|
|
} |
|
|
|
if (option.id == 3) { |
|
|
|
if (option.id == 3) { |
|
|
|
|
|
|
|
uni.setNavigationBarTitle({ |
|
|
|
|
|
|
|
title: '中石化码列表' |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
this.getCouponListArea(); |
|
|
|
|
|
|
|
this.getCmsContent('CMS_WX_APPLETS_GOODS_LIST'); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if (option.id == 4) { |
|
|
|
uni.setNavigationBarTitle({ |
|
|
|
uni.setNavigationBarTitle({ |
|
|
|
title: '优选商品' |
|
|
|
title: '优选商品' |
|
|
|
}); |
|
|
|
}); |
|
|
@ -149,7 +161,6 @@ |
|
|
|
let pagenum = this.pageNum; |
|
|
|
let pagenum = this.pageNum; |
|
|
|
let params = { |
|
|
|
let params = { |
|
|
|
regionId: app.globalData.cityId, |
|
|
|
regionId: app.globalData.cityId, |
|
|
|
// regionId: '510000', |
|
|
|
|
|
|
|
pageNum: pagenum, |
|
|
|
pageNum: pagenum, |
|
|
|
pageSize: this.pageSize, |
|
|
|
pageSize: this.pageSize, |
|
|
|
displayArea: this.typeId, |
|
|
|
displayArea: this.typeId, |
|
|
@ -206,9 +217,9 @@ |
|
|
|
this.pageSize = 10; |
|
|
|
this.pageSize = 10; |
|
|
|
this.isNoMoreData = false; |
|
|
|
this.isNoMoreData = false; |
|
|
|
this.goodsList = []; |
|
|
|
this.goodsList = []; |
|
|
|
if(this.typeId == 3){ |
|
|
|
if (this.typeId == 4) { |
|
|
|
this.getBrandCouponList(); |
|
|
|
this.getBrandCouponList(); |
|
|
|
}else{ |
|
|
|
} else { |
|
|
|
this.getCouponListArea(); |
|
|
|
this.getCouponListArea(); |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|