| | |
| | | <view class="container"> |
| | | <top-bar selectedTitleIndex="shop" textColor="black" @changeTab="topBarChange" class="topBar"></top-bar> |
| | | <input type="text" v-show="false" v-model="flushDom" /> |
| | | <view class="search" :style="{marginTop: buttonHeight+10+'px',}"> |
| | | <view class="search" :style="{marginTop: buttonHeight+'px',}"> |
| | | <u-search class="nav-search" @blur='searchGoods' placeholder="搜索商品" :show-action="false"></u-search> |
| | | </view> |
| | | <scroll-view class="scrollContainer" :scroll-y="true" @scrolltolower="loadMoreData" > |
| | |
| | | async onLoad() { |
| | | // 获取状态栏高度 |
| | | const systemInfo = uni.getSystemInfoSync(); |
| | | this.buttonHeight = systemInfo.statusBarHeight +80; |
| | | this.buttonHeight = systemInfo.statusBarHeight +40; |
| | | console.log('-------------------------------->',this.buttonHeight) |
| | | await this.loadCategoryList(); |
| | | this.getGoodsParam.pageNumber = 1 |