作者 吴孟雨

添加团购banner接口

@@ -25,7 +25,14 @@ @@ -25,7 +25,14 @@
25 }] 25 }]
26 26
27 }, 27 },
28 - 28 + //获取banner
  29 + getBanner() {
  30 + let url = '/portal/Group/banner'
  31 + app.post(url, {}, {}).then((res) => {
  32 + console.log('获取banner',res)
  33 + this.setData({banner: res.info});
  34 + })
  35 + },
29 //tab切换 36 //tab切换
30 tabCharge(e) { 37 tabCharge(e) {
31 var index = e.currentTarget.dataset.current 38 var index = e.currentTarget.dataset.current
@@ -309,7 +316,7 @@ @@ -309,7 +316,7 @@
309 this.takeGroup() 316 this.takeGroup()
310 this.record() 317 this.record()
311 this.PayDetail() 318 this.PayDetail()
312 - 319 + this.getBanner()
313 320
314 }, 321 },
315 322
1 <!--pages/groupBuy/groupBuy.wxml--> 1 <!--pages/groupBuy/groupBuy.wxml-->
2 <view class='banner_img'> 2 <view class='banner_img'>
3 - <image src='../../../images/banner.jpg'></image> 3 + <!--<image src='../../../images/banner.jpg'></image>-->
  4 + <image src="{{banner}}" mode="aspectFill"></image>
4 </view> 5 </view>
5 <view class='title_box' bindtap='cardInfo'> 6 <view class='title_box' bindtap='cardInfo'>
6 <view class='title_content'>畅玩卡介绍</view> 7 <view class='title_content'>畅玩卡介绍</view>