|
@@ -30,6 +30,10 @@
|
|
</view>
|
|
</view>
|
|
<!-- 解决fixed定位后导航栏塌陷的问题 -->
|
|
<!-- 解决fixed定位后导航栏塌陷的问题 -->
|
|
<view class="u-navbar-placeholder" v-if="isFixed && !immersive" :style="{ width: '100%', height: Number(navbarHeight) + statusBarHeight + 'px' }"></view>
|
|
<view class="u-navbar-placeholder" v-if="isFixed && !immersive" :style="{ width: '100%', height: Number(navbarHeight) + statusBarHeight + 'px' }"></view>
|
|
|
|
+
|
|
|
|
+ <u-alert-tips type="warning" v-if="descriptionShow" :show-icon="true" :description="description"></u-alert-tips>
|
|
|
|
+
|
|
|
|
+
|
|
</view>
|
|
</view>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -67,6 +71,7 @@
|
|
export default {
|
|
export default {
|
|
name: "u-navbar",
|
|
name: "u-navbar",
|
|
props: {
|
|
props: {
|
|
|
|
+
|
|
// 导航栏高度,单位px,非rpx
|
|
// 导航栏高度,单位px,非rpx
|
|
height: {
|
|
height: {
|
|
type: [String, Number],
|
|
type: [String, Number],
|
|
@@ -166,6 +171,8 @@
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
|
|
+ description:'',
|
|
|
|
+ descriptionShow:false,
|
|
menuButtonInfo: menuButtonInfo,
|
|
menuButtonInfo: menuButtonInfo,
|
|
statusBarHeight: systemInfo.statusBarHeight
|
|
statusBarHeight: systemInfo.statusBarHeight
|
|
};
|
|
};
|
|
@@ -222,7 +229,26 @@
|
|
// #endif
|
|
// #endif
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- created() {},
|
|
|
|
|
|
+ created() {
|
|
|
|
+ console.log('aaaa')
|
|
|
|
+ let routes = getCurrentPages(); // 获取当前打开过的页面路由数组
|
|
|
|
+ let curRoute = routes[routes.length - 1].route
|
|
|
|
+ console.log(curRoute);
|
|
|
|
+ var message =this.carhelp.getConfig().message
|
|
|
|
+ if(message){
|
|
|
|
+ var list=JSON.parse(message);
|
|
|
|
+ for(var i in list){
|
|
|
|
+ if(list[i].name=='*'){
|
|
|
|
+ this.descriptionShow=true;
|
|
|
|
+ this.description=list[i].value;
|
|
|
|
+ }
|
|
|
|
+ if(list[i].name==curRoute){
|
|
|
|
+ this.descriptionShow=true;
|
|
|
|
+ this.description=list[i].value;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
methods: {
|
|
methods: {
|
|
goBack() {
|
|
goBack() {
|
|
//console.log("修复bug, 刷新后不能返回问题")
|
|
//console.log("修复bug, 刷新后不能返回问题")
|