diff --git a/pages/info/postProductInfo/index.js b/pages/info/postProductInfo/index.js index fdc8505..0c6d2ad 100644 --- a/pages/info/postProductInfo/index.js +++ b/pages/info/postProductInfo/index.js @@ -751,6 +751,12 @@ Page({ }) console.log(e, this.data.swiperCurrent) }, + changeSwiperCurrent (e) { + let index = e.currentTarget.dataset.index + this.setData({ + swiperCurrent: index + }) + }, /** * 生命周期函数--监听页面初次渲染完成 diff --git a/pages/info/postProductInfo/index.wxml b/pages/info/postProductInfo/index.wxml index 7fb2e06..3f7deb1 100644 --- a/pages/info/postProductInfo/index.wxml +++ b/pages/info/postProductInfo/index.wxml @@ -3,7 +3,7 @@