main
fanfan 6 months ago
parent cf507c446f
commit 51d8d13c1b
  1. 9
      pages/goods/detail.vue
  2. 5
      pages/goods/seckillDetail.vue

@ -14,7 +14,7 @@
<view class="swiper">
<swiper class="swiper" :circular="true" autoplay @change="changeSwiper">
<swiper-item v-for="(item,index) in goods.goods_images1" :key="index" @click="previewImage(index)">
<image :src="item" class="goodsImg"></image>
<image :src="item" style="width: 100%;height: 100%;object-fit: cover" class="goodsImg"></image>
</swiper-item>
</swiper>
<view class="dots" v-if="goods.goods_images && goods.goods_images.length> 0">
@ -395,7 +395,8 @@
</view>
<view class="shareWechat" v-if="shareType=='share'">
<view class="shareGoods">
<image :src="goods.goods_image" mode="heightFix" class="shareImg"></image>
<image :src="goods.goods_image" class="shareImg">
</image>
</view>
<view class="shareInfo">
<view class="shareGoodsInfo">
@ -669,7 +670,7 @@
let that = this
let params = {
goods_id: that.goods.goods_id,
sku_id: that.goods.skuList[0].id,
sku_id: that.goods.skuList[0] ? that.goods.skuList[0].id : '',
seckill_price: e.secondPrice,
sec_start_time: e.startTime,
sec_hour: e.sec_hour,
@ -2206,10 +2207,12 @@
height: 382rpx;
border-radius: 0rpx 0rpx 0rpx 0rpx;
opacity: 1;
overflow: hidden;
image {
width: 100%;
height: 100%;
object-fit: cover;
}
}

@ -14,7 +14,7 @@
<view class="swiper">
<swiper class="swiper" :circular="true" autoplay @change="changeSwiper">
<swiper-item v-for="(item,index) in goods.goods_images1" :key="index" @click="previewImage(index)">
<image :src="item" class="goodsImg"></image>
<image :src="item" style="width: 100%;height: 100%;object-fit: cover" class="goodsImg"></image>
</swiper-item>
</swiper>
<view class="dots" v-if="goods.goods_images && goods.goods_images.length> 0">
@ -326,7 +326,7 @@
</view>
<view class="shareWechat" v-if="shareType=='share'">
<view class="shareGoods">
<image :src="goods.goods_image" mode="heightFix" class="shareImg"></image>
<image :src="goods.goods_image" class="shareImg"></image>
</view>
<view class="shareInfo">
<view class="shareGoodsInfo">
@ -2112,6 +2112,7 @@
image {
width: 100%;
height: 100%;
object-fit: cover;
}
}

Loading…
Cancel
Save