浏览代码

[门店][修改]:[门店页面的修改]

tags/C.7.1.0
meo 6 年前
父节点
当前提交
af3a59868f
共有 3 个文件被更改,包括 14 次插入9 次删除
  1. +11
    -6
      pages/index/searchbar/index.js
  2. +1
    -1
      pages/index/searchbar/index.wxml
  3. +2
    -2
      pages/index/searchbar/index.wxss

+ 11
- 6
pages/index/searchbar/index.js 查看文件

@@ -12,6 +12,7 @@ Page({
merchantVoList:[],
indexId: 0,
businessId:0,
windowHeight:"",
page:1,
isFirstPage:false,
isLastPage:false,
@@ -42,16 +43,20 @@ Page({
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
let that = this;
that.getBussiness();
that.getList(1, 0);
},
onShow(){
let that = this;
wx.getSystemInfo({
success: function (res) {
console.log(res.windowHeight);
that.setData({
winHeight: res.windowHeight
});
}
});
that.getBussiness();
that.getList(1, 0);
windowHeight: res.windowHeight
})
},
})
},
getBussiness:function(){
let that = this;


+ 1
- 1
pages/index/searchbar/index.wxml 查看文件

@@ -1,7 +1,7 @@
<!-- 左侧滚动栏 -->
<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: {{winHeight}}px'>
<scroll-view scroll-y scroll-with-animation scroll-left="{{scrollLength}}" class='scrollY' style='height: {{windowHeight}}px'>
<view class='all clear'>
<block wx:for="{{lists}}" wx:key="{{index}}">
<view bindtap='jumpIndex' data-menuindex='{{item.id}}'>


+ 2
- 2
pages/index/searchbar/index.wxss 查看文件

@@ -6,6 +6,7 @@
position: fixed;
left: 0;
top: 0;
background:#F4F5F9;
}
.text-style {
@@ -356,8 +357,7 @@ page {
margin-top: 200rpx!important;
}
.all{
padding-bottom: 80rpx;
background: #F4F5F9;
/* background: #F4F5F9; */
}
.shopVoList{
display: flex!important;


正在加载...
取消
保存