mirror of
http://git.coreshop.cn/jianweie/coreshoppro.git
synced 2026-03-24 18:17:22 +08:00
还原斑斓图切换异常。
This commit is contained in:
@@ -11,7 +11,7 @@
|
|||||||
</view>
|
</view>
|
||||||
</u-navbar>
|
</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">
|
<view class="coreshop-limited-seckill-box coreshop-bg-red">
|
||||||
<text class="coreshop-text-price coreshop-font-20">{{ product.price || '0.00' }}</text>
|
<text class="coreshop-text-price coreshop-font-20">{{ product.price || '0.00' }}</text>
|
||||||
@@ -425,7 +425,6 @@
|
|||||||
goodsId: 0, // 商品id
|
goodsId: 0, // 商品id
|
||||||
goodsInfo: {}, // 商品详情
|
goodsInfo: {}, // 商品详情
|
||||||
cartNums: 0, // 购物车数量
|
cartNums: 0, // 购物车数量
|
||||||
bannerList: [], // 幻灯片
|
|
||||||
product: {}, // 货品详情
|
product: {}, // 货品详情
|
||||||
shopRecommendData: [], // 本店推荐数据
|
shopRecommendData: [], // 本店推荐数据
|
||||||
otherRecommendData: [], // 其他数据
|
otherRecommendData: [], // 其他数据
|
||||||
@@ -609,20 +608,11 @@
|
|||||||
_this.goodsInfo = info;
|
_this.goodsInfo = info;
|
||||||
|
|
||||||
if (_this.goodsInfo.album && _this.goodsInfo.video) {
|
if (_this.goodsInfo.album && _this.goodsInfo.video) {
|
||||||
var sw = [];
|
|
||||||
var videoObj = {
|
var videoObj = {
|
||||||
url: _this.goodsInfo.video,
|
url: _this.goodsInfo.video,
|
||||||
poster: _this.goodsInfo.image
|
poster: _this.goodsInfo.image
|
||||||
};
|
};
|
||||||
sw.push(videoObj);
|
_this.goodsInfo.album.unshift(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.autoplay = false;
|
_this.autoplay = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user