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