提交 dfc04e75 作者: wk

首页适配

父级 61a90863
......@@ -132,7 +132,7 @@
.wrap {
position: relative;
border-radius: 30rpx;
margin: -60rpx 30rpx 0 30rpx;
margin: 62px 30rpx 0 30rpx;
background-color: #3B73FE;
.swiper {
......
......@@ -11,7 +11,7 @@
</view>
</view>
</view>
<view :style="{height:statusBarHeight + titlebarHeight +'px'}"></view>
<!-- <view :style="{height:statusBarHeight + titlebarHeight +'px'}"></view> -->
</view>
</template>
......@@ -50,7 +50,7 @@
console.log(menu.bottom);
this.screenWidth = menu.left
//#endif
console.log(this.titlebarHeight);
console.log("标题高度", this.titlebarHeight);
},
methods: {
// 返回app列表页
......
......@@ -36,7 +36,9 @@
</view>
</view>
<view class="app-content" :style="{'top':statusBarHeight+250+'px'}">
<v-tabs :tabs="tabs" :scroll="true" :value="current" @change="tabChange"></v-tabs>
<view class="menu-content">
<v-tabs :tabs="tabs" :scroll="true" :value="current" @change="tabChange"></v-tabs>
</view>
<view class="app-group-content">
<view class="app-group-item" v-for="(item,index) in getMenuApps()" :key="index">
<view class="title">{{item.group_name||"其他"}}</view>
......@@ -430,7 +432,7 @@
<style lang="scss">
.content {
display: flex;
padding-bottom: 130rpx;
margin-bottom: 130rpx;
flex-direction: column;
.header-content {
......@@ -593,6 +595,10 @@
display: flex;
flex-direction: column;
.menu-content {
display: flex;
}
.app-group-content {
display: flex;
flex-direction: column;
......
......@@ -4,7 +4,7 @@
<image src="../../static/home-head.png" class="header-image"></image>
<navbar :title="title" :showBack="false"></navbar>
<!-- 天气 -->
<view class="weather-content" :style="{top:statusBarHeight+36+'px'}"
<view class="weather-content" :style="{top:statusBarHeight+36*heightScale+'px'}"
v-if="isCompShow('onepoint-weather','ydt-tq')">
<view class="temp-content" @click="toLinkOther">
<view class="temp">{{weather.temp}}</view>
......@@ -20,10 +20,8 @@
</view>
</view>
</view>
<!-- <view class="banner-content" :style="{top:statusBarHeight+116+'px'}"> -->
<ls-swiper :list="banners" imgKey="coverImg" :loop="true" :dots='true' :autoplay='true' height='142'
@clickItem="clickItem()" v-if="isCompShow('OnePointBanner','ydt-lbt')" />
<!-- </view> -->
</view>
<!-- 工地头条 -->
<view class=" top-new-content" @click="toLinkNew" v-if="isCompShow('OnePointNews','ydt-gdtt')&&role!='VISITOR'">
......@@ -157,7 +155,8 @@
project: {},
project_id: "",
changeRecords: [],
menus: []
menus: [],
heightScale: 1
}
},
onLoad() {
......@@ -168,6 +167,7 @@
} else {
this.statusBarHeight = info.statusBarHeight
}
this.heightScale = info.windowHeight / 730
let nowDate = new Date()
this.nowTime =
`${nowDate.getFullYear()}/${this.add0(nowDate.getMonth()+1)}/${this.add0(nowDate.getDate())}`
......@@ -848,7 +848,7 @@
display: flex;
top: 120rpx;
align-items: center;
padding: 32rpx 32rpx;
padding: 32rpx 32rpx 0 32rpx;
left: 0;
flex-direction: row;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
Please register or to comment