| | |
| | | <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 |
| | |
| | | <view class="video-container"> |
| | | <!-- 视频加载 --> |
| | | <zero-loading v-show="videoLoading" type="circle" color="#0ebd57" text=""></zero-loading> |
| | | <view class="showLeft" @click="showDrawer('showLeft')" v-if="!showLeft"> |
| | | <view class="showLeft" @click="showDrawer('showLeft')" v-if="!showLeft" :style="{top: buttonHeight+'px'}"> |
| | | <uni-icons type="right" size="30"></uni-icons> |
| | | </view> |
| | | <!-- 视频列表 --> |
| | |
| | | </view> |
| | | </uni-popup> |
| | | <uni-drawer ref="showLeft" mode="left" width="120" :cus-style="true" height="80vh" |
| | | @change="change($event,'showLeft')" class="navigationLeft"> |
| | | @change="change($event,'showLeft')" class="navigationLeft" :drawerTop="buttonHeight"> |
| | | <scroll-view class="typeNavigation" :scroll-y="true" :show-scrollbar="false"> |
| | | <view class="typeNavigationItem" :class="{typeNavigationItemCheck:currentCategort ==item.id}" |
| | | @click="chooseCategory(item.id)" v-for="item in categoryList" :key="item.id"> |
| | |
| | | }, |
| | | data() { |
| | | return { |
| | | buttonHeight:0, |
| | | showLeft:false, |
| | | currentCategort: '', |
| | | categoryList: [], |
| | |
| | | this.startHidenTime = Date.now() |
| | | }, |
| | | onLoad() { |
| | | // 获取状态栏高度 |
| | | const systemInfo = uni.getSystemInfoSync(); |
| | | this.buttonHeight = systemInfo.statusBarHeight; |
| | | this.getKitchenTypeList(); |
| | | this.loadVideos(); |
| | | }, |
| | |
| | | |
| | | .showLeft { |
| | | display: flex; |
| | | top: 50rpx; |
| | | left: 0; |
| | | align-items: center; |
| | | justify-content: flex-start; |
| | |
| | | <template> |
| | | <view v-if="visibleSync" :class="{ 'uni-drawer--visible': showDrawer }" class="uni-drawer" @touchmove.stop.prevent="clear"> |
| | | <view class="uni-drawer__mask" :class="{ 'uni-drawer__mask--visible': showDrawer && mask }" @tap="close('mask')" /> |
| | | <view class="uni-drawer__content" :class="{'uni-drawer--right': rightMode,'uni-drawer--left': !rightMode, 'uni-drawer__content--visible': showDrawer,'custom-style':cusStyle}" :style="{width:drawerWidth+'px',maxHeight:drawerHeight,top:drawerTop+'rpx'}"> |
| | | <view class="uni-drawer__content" :class="{'uni-drawer--right': rightMode,'uni-drawer--left': !rightMode, 'uni-drawer__content--visible': showDrawer,'custom-style':cusStyle}" :style="{width:drawerWidth+'px',maxHeight:drawerHeight,top:drawerTop+'px'}"> |
| | | <slot /> |
| | | </view> |
| | | <!-- #ifdef H5 --> |