还原斑斓图切换异常。

This commit is contained in:
JianWeie
2022-03-22 23:00:10 +08:00
parent c5a5d808b7
commit 294d3a1454

View File

@@ -11,7 +11,7 @@
</view>
</u-navbar>
<!--幻灯片-->
<u-swiper height="calc(750rpx * 6 / 6)" radius="0" :list="bannerList" :autoplay="autoplay" indicator indicatorMode="line" circular @click="clickImg"></u-swiper>
<u-swiper height="calc(750rpx * 6 / 6)" radius="0" :list="goodsInfo.album" :autoplay="autoplay" indicator indicatorMode="line" circular @click="clickImg"></u-swiper>
<!--限时秒杀-->
<view class="coreshop-limited-seckill-box coreshop-bg-red">
<text class="coreshop-text-price coreshop-font-20">{{ product.price || '0.00' }}</text>
@@ -425,7 +425,6 @@
goodsId: 0, // 商品id
goodsInfo: {}, // 商品详情
cartNums: 0, // 购物车数量
bannerList: [], // 幻灯片
product: {}, // 货品详情
shopRecommendData: [], // 本店推荐数据
otherRecommendData: [], // 其他数据
@@ -609,20 +608,11 @@
_this.goodsInfo = info;
if (_this.goodsInfo.album && _this.goodsInfo.video) {
var sw = [];
var videoObj = {
url: _this.goodsInfo.video,
poster: _this.goodsInfo.image
};
sw.push(videoObj);
for (var i = 0; i < _this.goodsInfo.album.length; i++) {
let img = {
url: _this.goodsInfo.album[i]
};
sw.push(img);
}
_this.bannerList = sw;
console.log(_this.bannerList);
_this.goodsInfo.album.unshift(videoObj);
_this.autoplay = false;
}