提交 6cc1d84a 编写于 作者: KK's avatar KK

第三方应用下隐藏正常标题

上级 44e03abf
......@@ -13,7 +13,7 @@
<ion-header>
<#if !view.isShowCaptionBar?? || view.isShowCaptionBar() == true>
<ion-toolbar class="ionoc-view-header">
<ion-toolbar v-show="titleStatus" class="ionoc-view-header">
<ion-buttons slot="start">
<ion-button v-show="isShowBackButton" @click="closeView">
<ion-icon name="chevron-back"></ion-icon>
......
......@@ -79,6 +79,7 @@
this.$store.commit('viewaction/createdView', { viewtag: this.viewtag, secondtag: secondtag });
this.viewtag = secondtag;
this.parseViewParam();
this.setViewTitleStatus();
<#if created_block??>${created_block}</#if>
}
......
......@@ -131,6 +131,13 @@ export default class ${srfclassname('${view.name}')}Base extends Vue {
*/
@Prop({ default: false }) protected isChildView?: boolean;
/**
* 标题状态
*
* @memberof ${srfclassname('${view.name}')}Base
*/
public titleStatus :boolean = true;
/**
* 视图导航上下文
*
......@@ -199,6 +206,18 @@ export default class ${srfclassname('${view.name}')}Base extends Vue {
this.parseViewParam();
}
/**
* 设置工具栏状态
*
* @memberof ${srfclassname('${view.name}')}Base
*/
public setViewTitleStatus(){
const thirdPartyName = this.$store.getters.getThirdPartyName();
if(thirdPartyName){
this.titleStatus = false;
}
}
/**
* 容器模型
*
......
......@@ -38,5 +38,28 @@ export default class App extends Vue {
return 'app-dark-blue-theme';
}
}
/**
* 设置第三方应用
*
* @readonly
* @memberof App
*/
public setThirdPartyPath(){
let name = this.$viewTool.getThirdPartyName();
if(name){
this.$router.app.$store.commit('setThirdPartyName',name);
}
}
/**
* 生命周期
*
* @readonly
* @memberof App
*/
public created(){
this.setThirdPartyPath();
}
}
</script>
\ No newline at end of file
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册