| @@ -12,6 +12,7 @@ Page({ | |||||
| merchantVoList:[], | merchantVoList:[], | ||||
| indexId: 0, | indexId: 0, | ||||
| businessId:0, | businessId:0, | ||||
| windowHeight:"", | |||||
| page:1, | page:1, | ||||
| isFirstPage:false, | isFirstPage:false, | ||||
| isLastPage:false, | isLastPage:false, | ||||
| @@ -42,16 +43,20 @@ Page({ | |||||
| * 生命周期函数--监听页面加载 | * 生命周期函数--监听页面加载 | ||||
| */ | */ | ||||
| onLoad: function (options) { | onLoad: function (options) { | ||||
| let that = this; | |||||
| that.getBussiness(); | |||||
| that.getList(1, 0); | |||||
| }, | |||||
| onShow(){ | |||||
| let that = this; | let that = this; | ||||
| wx.getSystemInfo({ | wx.getSystemInfo({ | ||||
| success: function (res) { | success: function (res) { | ||||
| console.log(res.windowHeight); | |||||
| that.setData({ | that.setData({ | ||||
| winHeight: res.windowHeight | |||||
| }); | |||||
| } | |||||
| }); | |||||
| that.getBussiness(); | |||||
| that.getList(1, 0); | |||||
| windowHeight: res.windowHeight | |||||
| }) | |||||
| }, | |||||
| }) | |||||
| }, | }, | ||||
| getBussiness:function(){ | getBussiness:function(){ | ||||
| let that = this; | let that = this; | ||||
| @@ -1,7 +1,7 @@ | |||||
| <!-- 左侧滚动栏 --> | <!-- 左侧滚动栏 --> | ||||
| <view class='under_line'></view> | <view class='under_line'></view> | ||||
| <view style='float: left' class='left'> | <view style='float: left' class='left'> | ||||
| <scroll-view scroll-y scroll-with-animation scroll-left="{{scrollLength}}" class='scrollY' style='height: {{winHeight}}px'> | |||||
| <scroll-view scroll-y scroll-with-animation scroll-left="{{scrollLength}}" class='scrollY' style='height: {{windowHeight}}px'> | |||||
| <view class='all clear'> | <view class='all clear'> | ||||
| <block wx:for="{{lists}}" wx:key="{{index}}"> | <block wx:for="{{lists}}" wx:key="{{index}}"> | ||||
| <view bindtap='jumpIndex' data-menuindex='{{item.id}}'> | <view bindtap='jumpIndex' data-menuindex='{{item.id}}'> | ||||
| @@ -6,6 +6,7 @@ | |||||
| position: fixed; | position: fixed; | ||||
| left: 0; | left: 0; | ||||
| top: 0; | top: 0; | ||||
| background:#F4F5F9; | |||||
| } | } | ||||
| .text-style { | .text-style { | ||||
| @@ -356,8 +357,7 @@ page { | |||||
| margin-top: 200rpx!important; | margin-top: 200rpx!important; | ||||
| } | } | ||||
| .all{ | .all{ | ||||
| padding-bottom: 80rpx; | |||||
| background: #F4F5F9; | |||||
| /* background: #F4F5F9; */ | |||||
| } | } | ||||
| .shopVoList{ | .shopVoList{ | ||||
| display: flex!important; | display: flex!important; | ||||