bug
This commit is contained in:
@@ -1,19 +1,22 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="AppCircle" :style="{paddingTop: (statusBarHeight + 110) + 'px'}">
|
<div class="AppCircle" :style="{paddingTop: (statusBarHeight + 110) + 'px'}">
|
||||||
<div class="header" :class="[isFixed ? 'header-active' : '']">
|
<div class="header">
|
||||||
<div class="status-bar" :style="{height: statusBarHeight + 'px'}"></div>
|
<div class="status-bar" :style="{height: statusBarHeight + 'px'}"></div>
|
||||||
<div class="nav-bar">
|
<div class="nav-bar" :style="{
|
||||||
|
height: '88rpx',
|
||||||
|
lineHeight: '88rpx'
|
||||||
|
}">
|
||||||
<h2>邻里互助</h2>
|
<h2>邻里互助</h2>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<div class="top">
|
||||||
<div class="top" :style="{top: (statusBarHeight + 44) + 'px'}">
|
<div class="left">
|
||||||
<div class="left">
|
<span @click="changeTab(0)" :class="{active:currIndex === 0}">广场</span>
|
||||||
<span @click="changeTab(0)" :class="{active:currIndex === 0}">广场</span>
|
<span @click="changeTab(1)" :class="{active:currIndex === 1}">社区</span>
|
||||||
<span @click="changeTab(1)" :class="{active:currIndex === 1}">社区</span>
|
</div>
|
||||||
</div>
|
<div class="right" @click="$linkTo('./MyPostList')" hover-class="text-hover">
|
||||||
<div class="right" @click="$linkTo('./MyPostList')" hover-class="text-hover">
|
<span>我的贴子</span>
|
||||||
<span>我的贴子</span>
|
<i v-if="total > 0">{{ total }}</i>
|
||||||
<i v-if="total > 0">{{ total }}</i>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="nav" v-if="topic.length">
|
<div class="nav" v-if="topic.length">
|
||||||
@@ -92,7 +95,7 @@
|
|||||||
isMore: false,
|
isMore: false,
|
||||||
current: 1,
|
current: 1,
|
||||||
isFixed: false,
|
isFixed: false,
|
||||||
statusBarHeight: 20,
|
statusBarHeight: uni.getSystemInfoSync().statusBarHeight,
|
||||||
total: 0
|
total: 0
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -292,8 +295,6 @@
|
|||||||
|
|
||||||
.nav-bar {
|
.nav-bar {
|
||||||
position: relative;
|
position: relative;
|
||||||
height: 88px;
|
|
||||||
line-height: 88px;
|
|
||||||
color: #000;
|
color: #000;
|
||||||
font-size: 32px;
|
font-size: 32px;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
@@ -459,7 +460,6 @@
|
|||||||
|
|
||||||
.top {
|
.top {
|
||||||
display: flex;
|
display: flex;
|
||||||
position: fixed;
|
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
top: 0;
|
top: 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user