From d852bb7f176f9718f407762a9c4eef16eb0e4995 Mon Sep 17 00:00:00 2001 From: meo <18801474720@163.com> Date: Mon, 27 May 2019 11:24:49 +0800 Subject: [PATCH] =?UTF-8?q?[=E5=95=86=E6=88=B7=E8=AF=A6=E6=83=85][?= =?UTF-8?q?=E4=BF=AE=E6=94=B9]:[=E5=95=86=E6=88=B7=E8=AF=A6=E6=83=85?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=BF=94=E5=9B=9E=E9=A6=96=E9=A1=B5]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/banner/index.js | 6 ------ components/banner/index.wxml | 7 +------ pages/canvas/index.js | 6 ------ pages/coupon/detail/index.wxss | 1 - pages/index/searchbar/detail/index.js | 6 +++++- 5 files changed, 6 insertions(+), 20 deletions(-) diff --git a/components/banner/index.js b/components/banner/index.js index a72f773..e45e7cd 100644 --- a/components/banner/index.js +++ b/components/banner/index.js @@ -15,7 +15,6 @@ Component({ * 组件的初始数据 */ data: { - swiperCurrent: 0, bannerUrl: imgurl.banner.url }, @@ -24,11 +23,6 @@ Component({ */ ready() {}, methods: { - swiperChange: function(e) { - this.setData({ - swiperCurrent: e.detail.current - }); - }, gotobannerdetail: function(e) { console.log(e) if(e.currentTarget.dataset.data.type==2){ diff --git a/components/banner/index.wxml b/components/banner/index.wxml index 84ea8d4..3f2356c 100644 --- a/components/banner/index.wxml +++ b/components/banner/index.wxml @@ -1,14 +1,9 @@ - + - - - - - \ No newline at end of file diff --git a/pages/canvas/index.js b/pages/canvas/index.js index bfd6ef1..b25a259 100644 --- a/pages/canvas/index.js +++ b/pages/canvas/index.js @@ -384,11 +384,5 @@ Page({ } }, }) - }, - /** - * 用户点击右上角分享 - */ - onShareAppMessage: function () { - } }) \ No newline at end of file diff --git a/pages/coupon/detail/index.wxss b/pages/coupon/detail/index.wxss index 32e5e05..b99e7f5 100644 --- a/pages/coupon/detail/index.wxss +++ b/pages/coupon/detail/index.wxss @@ -28,7 +28,6 @@ button::after { .banner image { width: 100%; - height: 100%; } .dots { diff --git a/pages/index/searchbar/detail/index.js b/pages/index/searchbar/detail/index.js index 986fb98..dbefba9 100644 --- a/pages/index/searchbar/detail/index.js +++ b/pages/index/searchbar/detail/index.js @@ -35,7 +35,11 @@ Page({ showpost: false }) }, - + goback: function () { + wx.switchTab({ + url: '/pages/main/index', + }) + }, /** * 生命周期函数--监听页面加载 */