chore:H5的智能客服聊天页面上面导航栏自定义的删除
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="container" :style="wrapperPageStyle">
|
<view class="container" :style="wrapperPageStyle">
|
||||||
<!--自定义导航头部 -->
|
<!--自定义导航头部 - 只在微信小程序显示,H5端隐藏 -->
|
||||||
|
<!-- #ifdef MP-WEIXIN -->
|
||||||
<view class="custom-navbar" ref="pageHeader" v-if="showCustomNavbar">
|
<view class="custom-navbar" ref="pageHeader" v-if="showCustomNavbar">
|
||||||
<view class="header-left">
|
<view class="header-left">
|
||||||
<button class="back-btn" v-show="showBackButton" @click="goBack">
|
<button class="back-btn" v-show="showBackButton" @click="goBack">
|
||||||
@@ -10,6 +11,7 @@
|
|||||||
<view v-show="!showMenuButton" class="placeholder"></view>
|
<view v-show="!showMenuButton" class="placeholder"></view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
<!-- #endif -->
|
||||||
|
|
||||||
<!-- 聊天内容区域 -->
|
<!-- 聊天内容区域 -->
|
||||||
<view class="chat-content"
|
<view class="chat-content"
|
||||||
@@ -140,10 +142,21 @@ export default {
|
|||||||
return ``
|
return ``
|
||||||
},
|
},
|
||||||
wrapperChatContentStyle() {
|
wrapperChatContentStyle() {
|
||||||
|
// #ifdef H5
|
||||||
|
// H5端没有自定义导航栏,不需要paddingTop
|
||||||
|
return {
|
||||||
|
height: this.containerHeight,
|
||||||
|
paddingTop: '0'
|
||||||
|
}
|
||||||
|
// #endif
|
||||||
|
|
||||||
|
// #ifdef MP-WEIXIN
|
||||||
|
// 微信小程序端根据导航栏显示情况决定
|
||||||
return {
|
return {
|
||||||
height: this.containerHeight,
|
height: this.containerHeight,
|
||||||
paddingTop: this.showCustomNavbar ? '0' : (this.navBarHeight + 'px')
|
paddingTop: this.showCustomNavbar ? '0' : (this.navBarHeight + 'px')
|
||||||
}
|
}
|
||||||
|
// #endif
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user