소스 검색

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

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;


불러오는 중...
취소
저장