diff --git a/pages.json b/pages.json index 9400577..8d51ba4 100644 --- a/pages.json +++ b/pages.json @@ -524,8 +524,8 @@ }, { "path": "seekadvicefrom/seekadvicefrom", "style": { - "navigationBarTitleText": "咨询医生", "enablePullDownRefresh": false, + "navigationStyle": "custom", "app-plus": { "softinputMode": "adjustResize" } diff --git a/pagesC/seekadvicefrom/seekadvicefrom.vue b/pagesC/seekadvicefrom/seekadvicefrom.vue index 9b64921..0b68456 100644 --- a/pagesC/seekadvicefrom/seekadvicefrom.vue +++ b/pagesC/seekadvicefrom/seekadvicefrom.vue @@ -6,6 +6,12 @@ --> + + + + {{title}} + + @@ -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;