Merge branch 'main'

main
wangdong 6 months ago
commit e29f8355e8
  1. 9
      pages/goods/detail.vue
  2. 5
      pages/goods/seckillDetail.vue

@ -14,7 +14,7 @@
<view class="swiper"> <view class="swiper">
<swiper class="swiper" :circular="true" autoplay @change="changeSwiper"> <swiper class="swiper" :circular="true" autoplay @change="changeSwiper">
<swiper-item v-for="(item,index) in goods.goods_images1" :key="index" @click="previewImage(index)"> <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-item>
</swiper> </swiper>
<view class="dots" v-if="goods.goods_images && goods.goods_images.length> 0"> <view class="dots" v-if="goods.goods_images && goods.goods_images.length> 0">
@ -407,7 +407,8 @@
</view> </view>
<view class="shareWechat" v-if="shareType=='share'"> <view class="shareWechat" v-if="shareType=='share'">
<view class="shareGoods"> <view class="shareGoods">
<image :src="goods.goods_image" mode="heightFix" class="shareImg"></image> <image :src="goods.goods_image" class="shareImg">
</image>
</view> </view>
<view class="shareInfo"> <view class="shareInfo">
<view class="shareGoodsInfo"> <view class="shareGoodsInfo">
@ -688,7 +689,7 @@
let that = this let that = this
let params = { let params = {
goods_id: that.goods.goods_id, 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, seckill_price: e.secondPrice,
sec_start_time: e.startTime, sec_start_time: e.startTime,
sec_hour: e.sec_hour, sec_hour: e.sec_hour,
@ -2280,10 +2281,12 @@
height: 382rpx; height: 382rpx;
border-radius: 0rpx 0rpx 0rpx 0rpx; border-radius: 0rpx 0rpx 0rpx 0rpx;
opacity: 1; opacity: 1;
overflow: hidden;
image { image {
width: 100%; width: 100%;
height: 100%; height: 100%;
object-fit: cover;
} }
} }

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

Loading…
Cancel
Save