Selaa lähdekoodia

[商户详情][修改]:[商户详情修改返回首页]

tags/江西版6.1.0
meo 6 vuotta sitten
vanhempi
commit
d852bb7f17
5 muutettua tiedostoa jossa 6 lisäystä ja 20 poistoa
  1. +0
    -6
      components/banner/index.js
  2. +1
    -6
      components/banner/index.wxml
  3. +0
    -6
      pages/canvas/index.js
  4. +0
    -1
      pages/coupon/detail/index.wxss
  5. +5
    -1
      pages/index/searchbar/detail/index.js

+ 0
- 6
components/banner/index.js Näytä tiedosto

@@ -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){


+ 1
- 6
components/banner/index.wxml Näytä tiedosto

@@ -1,14 +1,9 @@
<view wx:if="{{list.length>0}}" class="index-slide-view">
<swiper class="index-slide" bindchange="swiperChange" autoplay="true" circular="false" current="{{swiperCurrent}}">
<swiper class="index-slide" autoplay="true" circular="false">
<block wx:for="{{list}}" wx:key="unique">
<swiper-item>
<image data-id="{{item.id}}" data-data="{{item}}" mode='widthFix' bindtap='gotobannerdetail' src="{{item.coverImg}}" class="index-slide-image" />
</swiper-item>
</block>
</swiper>
<view class="dots">
<block wx:for="{{list}}" wx:key="unique">
<view class="dot{{index == swiperCurrent ? ' active' : ''}}"></view>
</block>
</view>
</view>

+ 0
- 6
pages/canvas/index.js Näytä tiedosto

@@ -384,11 +384,5 @@ Page({
}
},
})
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {

}
})

+ 0
- 1
pages/coupon/detail/index.wxss Näytä tiedosto

@@ -28,7 +28,6 @@ button::after {

.banner image {
width: 100%;
height: 100%;
}

.dots {


+ 5
- 1
pages/index/searchbar/detail/index.js Näytä tiedosto

@@ -35,7 +35,11 @@ Page({
showpost: false
})
},

goback: function () {
wx.switchTab({
url: '/pages/main/index',
})
},
/**
* 生命周期函数--监听页面加载
*/


Ladataan…
Peruuta
Tallenna