|
|
@ -12,8 +12,8 @@ |
|
|
|
<!-- 商品主图轮播 --> |
|
|
|
<!-- 商品主图轮播 --> |
|
|
|
<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,index) in swiperList" :key="index"> |
|
|
|
<image mode="widthFix" :src="imageUrl+swiper"></image> |
|
|
|
<image mode="widthFix" :src="imageUrl+swiper" @click="perImage(swiper)"></image> |
|
|
|
</swiper-item> |
|
|
|
</swiper-item> |
|
|
|
</swiper> |
|
|
|
</swiper> |
|
|
|
<view class="indicator">{{currentSwiper+1}}/{{swiperList.length}}</view> |
|
|
|
<view class="indicator">{{currentSwiper+1}}/{{swiperList.length}}</view> |
|
|
@ -21,7 +21,7 @@ |
|
|
|
<!-- 标题 价格 --> |
|
|
|
<!-- 标题 价格 --> |
|
|
|
<view class="info-box goods-info"> |
|
|
|
<view class="info-box goods-info"> |
|
|
|
<view class="price" v-if="goodsData[0].payType == 1">¥{{goodsData[0].discountPrice}} <text |
|
|
|
<view class="price" v-if="goodsData[0].payType == 1">¥{{goodsData[0].discountPrice}} <text |
|
|
|
class="zprice font14 fcor666" |
|
|
|
class="zprice font14 fcor666" style="margin-left: 65px;" |
|
|
|
v-if="goodsData[0].discountPrice !=goodsData[0].salesPrice">¥{{goodsData[0].salesPrice}}</text> |
|
|
|
v-if="goodsData[0].discountPrice !=goodsData[0].salesPrice">¥{{goodsData[0].salesPrice}}</text> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view style="width: 100%;height: 30px;" v-else> |
|
|
|
<view style="width: 100%;height: 30px;" v-else> |
|
|
@ -86,7 +86,7 @@ |
|
|
|
<view class="description"> |
|
|
|
<view class="description"> |
|
|
|
<view class="title">———— 商品详情 ————</view> |
|
|
|
<view class="title">———— 商品详情 ————</view> |
|
|
|
<view class="content marb65"> |
|
|
|
<view class="content marb65"> |
|
|
|
<image mode="widthFix" class="width100" v-for="codes in couponDesc" :key="codes" :src="imageUrl+codes"> |
|
|
|
<image mode="widthFix" class="width100" v-for="codes in couponDesc" :key="codes" :src="imageUrl+codes" @click="perImage(codes)"> |
|
|
|
</image> |
|
|
|
</image> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
@ -189,6 +189,13 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
//查看大图 |
|
|
|
|
|
|
|
perImage(item) { |
|
|
|
|
|
|
|
uni.previewImage({ |
|
|
|
|
|
|
|
current: 0, //预览图片的下标 |
|
|
|
|
|
|
|
urls: [this.imageUrl+item] //预览图片的地址,必须要数组形式,如果不是数组形式就转换成数组形式就可以 |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
}, |
|
|
|
//商品跳转 |
|
|
|
//商品跳转 |
|
|
|
// toGoods(e) { |
|
|
|
// toGoods(e) { |
|
|
|
// console.log('=========='+e); |
|
|
|
// console.log('=========='+e); |
|
|
|