From 79ddf9d6f651c7ac4f81b914d7b48133ac86c186 Mon Sep 17 00:00:00 2001 From: red-deng-deng <1924913374@qq.com> Date: Mon, 29 Nov 2021 20:36:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0c=E7=AB=AF=E8=BD=AE=E6=92=AD?= =?UTF-8?q?=E5=BE=AA=E7=8E=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- homepage.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/homepage.html b/homepage.html index ec374c8..f03a1a5 100644 --- a/homepage.html +++ b/homepage.html @@ -228,6 +228,7 @@ popboxshow: false, popboxtype: '兑换', topImg: '', + goodsShow:false, goodsNum: false, exchangeCommity: {}, //兑换选择的商品 bgcolor: '', @@ -266,6 +267,7 @@ req.axiosPostproducts('/key/products', data).then(res => { if (res.code == 200) { self.swiperDataList = res.data; + self.goodsShow=res.data.length>=3; if (res.data&&res.data.length>0) { self.goodsNum = true; self.onSelected(res.data[0]) @@ -276,7 +278,7 @@ centeredSlides: true, observer: true, observeParents: true, - loop: true, + loop: self.goodsShow, onSlideChangeEnd: function (swiper) { let row = res.data[swiper.realIndex]; self.onSelected(res.data[swiper.realIndex])