Browse Source

[门店][修改][左侧高度]

tags/河北版C.8.1.01
hurui 5 years ago
parent
commit
c2345f16a0
3 changed files with 4 additions and 5 deletions
  1. +3
    -3
      pages/index/searchbar/index.js
  2. +1
    -1
      pages/index/searchbar/index.wxml
  3. +0
    -1
      pages/index/searchbar/index.wxss

+ 3
- 3
pages/index/searchbar/index.js View File

@@ -1,4 +1,4 @@
const navigationBarHeight = (getApp().statusBarHeight + 50) + 'px'
const navigationBarHeight = (getApp().statusBarHeight + 44) + 'px'
const Http = require("../../../utils/HttpBasics");
const imgurl = require("../../../utils/imgurl");
const config = require("../../../config/config");
@@ -56,9 +56,9 @@ Page({
let that = this;
wx.getSystemInfo({
success: function (res) {
console.log(res.windowHeight);
console.log(res.windowHeight, navigationBarHeight);
that.setData({
windowHeight: res.windowHeight
windowHeight: res.windowHeight + parseInt(navigationBarHeight)
})
},
})


+ 1
- 1
pages/index/searchbar/index.wxml View File

@@ -3,7 +3,7 @@
<view style="padding-top:{{navigationBarHeight}}">
<view class='under_line'></view>
<view style='float: left' class='left'>
<scroll-view scroll-y scroll-with-animation scroll-left="{{scrollLength}}" class='scrollY' style='height: {{windowHeight}}px;padding-top:{{navigationBarHeight}}'>
<scroll-view scroll-y scroll-with-animation scroll-left="{{scrollLength}}" class='scrollY' style='height: {{windowHeight}}px;top:{{navigationBarHeight}}'>
<view class='all clear'>
<block wx:for="{{lists}}" wx:key="{{index}}">
<view bindtap='jumpIndex' data-menuindex='{{item.id}}'>


+ 0
- 1
pages/index/searchbar/index.wxss View File

@@ -5,7 +5,6 @@
width: 134rpx;
position: fixed;
left: 0;
top: 0;
background:#F4F5F9;
}


Loading…
Cancel
Save