作者 吴孟雨

添加团购banner接口

... ... @@ -25,7 +25,14 @@
}]
},
//获取banner
getBanner() {
let url = '/portal/Group/banner'
app.post(url, {}, {}).then((res) => {
console.log('获取banner',res)
this.setData({banner: res.info});
})
},
//tab切换
tabCharge(e) {
var index = e.currentTarget.dataset.current
... ... @@ -309,7 +316,7 @@
this.takeGroup()
this.record()
this.PayDetail()
this.getBanner()
},
... ...
<!--pages/groupBuy/groupBuy.wxml-->
<view class='banner_img'>
<image src='../../../images/banner.jpg'></image>
<!--<image src='../../../images/banner.jpg'></image>-->
<image src="{{banner}}" mode="aspectFill"></image>
</view>
<view class='title_box' bindtap='cardInfo'>
<view class='title_content'>畅玩卡介绍</view>
... ...