wangjiahai 2 years ago
parent
commit
aaf8c78299
  1. 10
      components/NavBar/NavBar.vue

10
components/NavBar/NavBar.vue

@ -31,12 +31,12 @@
<view class="_nav-real" :style="{'height':navHeight,'width':enableWidth}"> <view class="_nav-real" :style="{'height':navHeight,'width':enableWidth}">
<!-- 按键区域占用为不可用的宽度 --> <!-- 按键区域占用为不可用的宽度 -->
<view class="_navIcon" :style="{'width':disableWidth,'height':navHeight}"> <view class="_navIcon" :style="{'width':disableWidth,'height':navHeight}">
<image v-if="showIcon" src="../../static/wx_back.png" style="width: 23px;height: 23px;" <image v-if="!nativeNavNoRemove&&showIcon" src="../../static/wx_back.png"
@click="clickIcon"></image> style="width: 23px;height: 23px;" @click="clickIcon"></image>
</view> </view>
<!-- 标题布局 --> <!-- 标题布局 -->
<view class="_nav-title" :style="{'height':navHeight,'line-height':navHeight,'font-size':fontSize}"> <view class="_nav-title" :style="{'height':navHeight,'line-height':navHeight,'font-size':fontSize}">
{{navTitle}} {{nativeNavNoRemove?"":navTitle}}
</view> </view>
</view> </view>
</view> </view>
@ -103,7 +103,8 @@
enableWidth: 0, enableWidth: 0,
enableHeight: 0, enableHeight: 0,
fontSize: 0, fontSize: 0,
navStyle: 'left' navStyle: 'left',
nativeNavNoRemove: true,
}; };
}, },
mounted() { mounted() {
@ -131,6 +132,7 @@
this.enableWidth = navInfo.navBar.enableWidth + navInfo.unit this.enableWidth = navInfo.navBar.enableWidth + navInfo.unit
this.enableHeight = navInfo.navBar.enableHeight + navInfo.unit this.enableHeight = navInfo.navBar.enableHeight + navInfo.unit
this.fontSize = navInfo.navBar.fontSize + navInfo.unit this.fontSize = navInfo.navBar.fontSize + navInfo.unit
this.nativeNavNoRemove = navInfo.menuButton.nativeNavNoRemove
}, },
methods: { methods: {
/** /**

Loading…
Cancel
Save