更新c端轮播循环
This commit is contained in:
parent
2d43f0c828
commit
79ddf9d6f6
|
@ -228,6 +228,7 @@
|
||||||
popboxshow: false,
|
popboxshow: false,
|
||||||
popboxtype: '兑换',
|
popboxtype: '兑换',
|
||||||
topImg: '',
|
topImg: '',
|
||||||
|
goodsShow:false,
|
||||||
goodsNum: false,
|
goodsNum: false,
|
||||||
exchangeCommity: {}, //兑换选择的商品
|
exchangeCommity: {}, //兑换选择的商品
|
||||||
bgcolor: '',
|
bgcolor: '',
|
||||||
|
@ -266,6 +267,7 @@
|
||||||
req.axiosPostproducts('/key/products', data).then(res => {
|
req.axiosPostproducts('/key/products', data).then(res => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
self.swiperDataList = res.data;
|
self.swiperDataList = res.data;
|
||||||
|
self.goodsShow=res.data.length>=3;
|
||||||
if (res.data&&res.data.length>0) {
|
if (res.data&&res.data.length>0) {
|
||||||
self.goodsNum = true;
|
self.goodsNum = true;
|
||||||
self.onSelected(res.data[0])
|
self.onSelected(res.data[0])
|
||||||
|
@ -276,7 +278,7 @@
|
||||||
centeredSlides: true,
|
centeredSlides: true,
|
||||||
observer: true,
|
observer: true,
|
||||||
observeParents: true,
|
observeParents: true,
|
||||||
loop: true,
|
loop: self.goodsShow,
|
||||||
onSlideChangeEnd: function (swiper) {
|
onSlideChangeEnd: function (swiper) {
|
||||||
let row = res.data[swiper.realIndex];
|
let row = res.data[swiper.realIndex];
|
||||||
self.onSelected(res.data[swiper.realIndex])
|
self.onSelected(res.data[swiper.realIndex])
|
||||||
|
|
Loading…
Reference in New Issue