From 302d257580f0cbfca6a235d92591a72fef9a932d Mon Sep 17 00:00:00 2001 From: wangyaqi Date: Tue, 3 Sep 2019 16:14:27 +0800 Subject: [PATCH] =?UTF-8?q?update:=20=E6=96=B0=E5=A2=9EH5=E7=AB=AFtitleIma?= =?UTF-8?q?ge=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/platforms/h5/components/page/index.vue | 7 ++++++- src/platforms/h5/components/page/pageHead.vue | 20 +++++++++++++++++-- 2 files changed, 24 insertions(+), 3 deletions(-) diff --git a/src/platforms/h5/components/page/index.vue b/src/platforms/h5/components/page/index.vue index 344dfc18..146311b4 100644 --- a/src/platforms/h5/components/page/index.vue +++ b/src/platforms/h5/components/page/index.vue @@ -132,6 +132,10 @@ export default { default () { return {} } + }, + titleImage: { + type: String, + default: '' } }, data () { @@ -140,7 +144,8 @@ export default { backButton: !this.isQuit && !this.$route.meta.isQuit, // redirectTo,reLaunch时可能动态修改 meta.isQuit backgroundColor: this.navigationBarBackgroundColor, textColor: this.navigationBarTextStyle === 'black' ? '#000' : '#fff', - titleText: this.navigationBarTitleText, + titleText: this.navigationBarTitleText, + titleImage: this.titleImage, duration: '0', timingFunc: '' }, this.titleNView) diff --git a/src/platforms/h5/components/page/pageHead.vue b/src/platforms/h5/components/page/pageHead.vue index 6dba259f..32b4b577 100644 --- a/src/platforms/h5/components/page/pageHead.vue +++ b/src/platforms/h5/components/page/pageHead.vue @@ -41,8 +41,14 @@ > - {{ titleText }} + class="uni-loading"/> + +