|
@@ -1,17 +1,21 @@
|
|
<template>
|
|
<template>
|
|
- <view class="nav-bar">
|
|
|
|
|
|
+ <view class="nav-bar" :style="{ paddingTop: 12 + BarHeight + 'px' }">
|
|
<view class="go-back">
|
|
<view class="go-back">
|
|
<u-icon name="arrow-left" :color="color" size="32" @click="goBack"></u-icon>
|
|
<u-icon name="arrow-left" :color="color" size="32" @click="goBack"></u-icon>
|
|
</view>
|
|
</view>
|
|
<view class="nav-title" :style="{color:color}">
|
|
<view class="nav-title" :style="{color:color}">
|
|
{{ title }}
|
|
{{ title }}
|
|
</view>
|
|
</view>
|
|
|
|
+ <view class="go-back">
|
|
|
|
+
|
|
|
|
+ </view>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
</template>
|
|
<script>
|
|
<script>
|
|
export default {
|
|
export default {
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
|
|
+ BarHeight:'',
|
|
goBack(){
|
|
goBack(){
|
|
uni.navigateBack()
|
|
uni.navigateBack()
|
|
}
|
|
}
|
|
@@ -21,6 +25,12 @@ export default {
|
|
title: "",
|
|
title: "",
|
|
color:''
|
|
color:''
|
|
},
|
|
},
|
|
|
|
+ mounted(){
|
|
|
|
+ // #ifdef APP-PLUS
|
|
|
|
+ let systemInfo = uni.getSystemInfoSync();
|
|
|
|
+ this.BarHeight = systemInfo.statusBarHeight;
|
|
|
|
+ // #endif
|
|
|
|
+ }
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|
|
@@ -34,13 +44,16 @@ export default {
|
|
font-weight: 700;
|
|
font-weight: 700;
|
|
line-height: 26px;
|
|
line-height: 26px;
|
|
display: flex;
|
|
display: flex;
|
|
- justify-content: center;
|
|
|
|
|
|
+ // justify-content: center;
|
|
align-items: center;
|
|
align-items: center;
|
|
position: relative;
|
|
position: relative;
|
|
.go-back{
|
|
.go-back{
|
|
- position: absolute;
|
|
|
|
- top: 24rpx;
|
|
|
|
- left: 32rpx;
|
|
|
|
|
|
+ width: 32.61px;
|
|
|
|
+ height: 26px;
|
|
|
|
+ }
|
|
|
|
+ .nav-title{
|
|
|
|
+ flex: 1;
|
|
|
|
+ text-align: center;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</style>
|
|
</style>
|