iphone Xs Max 手机适配问题,主要是顶部,主要是顶部没法接受
- <!-- #ifdef APP-PLUS -->
- <!-- 固定在顶部的导航栏 -->
- <uni-nav-bar fixed="true" shadow="false" @click-right="addDevice" right-icon="plusempty" title="设备"></uni-nav-bar>
- <!-- 使用非原生导航栏后需要在页面顶部占位 -->
- <view style="height:80px;">...</view>
- <!-- #endif -->
- <!-- #ifdef APP-PLUS -->
- <scroll-view id="tab-bar" class="swiper-tab" scroll-x :scroll-left="scrollLeft" style="margin-top: 100upx;" v-if="tabBars.length > 0">
- <view v-for="(tab, index) in tabBars" :key="tab.area_id" :class="['swiper-tab-list',tabIndex==index ? 'active' : '']"
- id="'area_'+tab.area_id" :data-current="index" @tap.stop="tapTab(tab,index)">{{tab.area_name}}</view>
</scroll-view>
<view v-else-if="tabBars.length == 0 && isHostOnline" class="noData" style="height:calc(100% - 100upx);">
<view class="noDataBox" >
<view class="no-host-icon">
<image src="/static/img/index/noneHostIcon.png" mode="aspectFit"></image>
</view>
<view class="no-host-title">
暂无主机,请前往首页添加!
</view>
</view>
</view>