This commit is contained in:
2023-11-14 13:26:03 +08:00
parent 5b3844d839
commit 556ec8551e
2 changed files with 43 additions and 4 deletions

View File

@ -524,8 +524,8 @@
}, {
"path": "seekadvicefrom/seekadvicefrom",
"style": {
"navigationBarTitleText": "咨询医生",
"enablePullDownRefresh": false,
"navigationStyle": "custom",
"app-plus": {
"softinputMode": "adjustResize"
}

View File

@ -6,6 +6,12 @@
</view> -->
<!-- 聊天渲染列表 -->
<!-- scroll-y scroll-into-view="placeholder" scroll-top="500" scroll-with-animation -->
<u-navbar :is-back="false" :background="background" class="u-navbar">
<image src="@/static/fanhui.png" mode="" @tap="goprevious"></image>
<view class="navbartitle" @tap="goprevious">
{{title}}
</view>
</u-navbar>
<scroll-view scroll-y="true" :scroll-top='scrollTop' id="demo"
:style="'height:calc(100vh - '+ inputboxtop +'px)'" scroll-with-animation="true">
<view style="height: 85vh; padding-top: 200rpx;" @tap='touchend'>
@ -89,6 +95,9 @@
export default {
data() {
return {
background: {
backgroundColor: '#26A888',
},
baseurl: '',
title: '',
SOCKETURL: '',
@ -150,9 +159,9 @@
};
},
onReady() { //
uni.setNavigationBarTitle({
title: this.title,
});
// uni.setNavigationBarTitle({
// title: this.title,
// });
},
onLoad(options) {
this.baseurl = baseurl;
@ -296,6 +305,11 @@
oftenc(e) {
this.formData.content = e.title;
},
goprevious() {
uni.navigateBack({
delta: 1
})
},
//
expre(e) {
this.formData.content = !this.formData.content ? e : this.formData.content + e;
@ -531,6 +545,31 @@
}
.content {
::v-deep .u-navbar-placeholder {
background-color: #F7F5F5;
z-index: 999;
}
.u-navbar {
display: inline-block;
position: fixed;
top: 0;
z-index: 99999;
image {
margin: 0 4% 0 4%;
width: 20rpx;
height: 30rpx;
}
.navbartitle {
width: 31%;
font-size: 34rpx;
font-weight: 500;
color: #FFFFFF;
}
}
.input-box {
position: fixed;
bottom: 0;