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

内置setting 组件调整(个人中心)

上级 de9a95d4
......@@ -9,7 +9,7 @@
</ion-header>
<div class="content">
<ion-list class="content-list">
<ion-item v-if="settingConfig.accountInformation">
<ion-item v-if="settingConfig.accountInformation" @click="userCenter">
<div class="content-list-item-content">
<div class="content-list-item-content-text">账号信息</div>
<div class="content-list-item-content-text">{{srfloginname}}</div>
......@@ -95,7 +95,7 @@ import { settingConfig } from './app-setting'
@Component({
components: {},
})
export default class AppRoundList extends Vue {
export default class AppSetting extends Vue {
public settingConfig = settingConfig;
......@@ -104,7 +104,7 @@ export default class AppRoundList extends Vue {
public thirdPartyName = this.$viewTool.getThirdPartyName();
/**
* created
* 生命周期
*/
public created() {
let appdata = this.$store.state.appdata;
......@@ -113,10 +113,6 @@ export default class AppRoundList extends Vue {
this.setViewTitleStatus();
}
activated(){
this.$viewTool.setViewTitleOfThirdParty("设置");
}
/**
* 标题状态
*
......@@ -124,6 +120,11 @@ export default class AppRoundList extends Vue {
*/
public titleStatus :boolean = true;
/**
* 设置标题状态
*
* @memberof ProductCloseMobEditViewBase
*/
public setViewTitleStatus(){
const thirdPartyName = this.$store.getters.getThirdPartyName();
if(thirdPartyName){
......@@ -174,14 +175,14 @@ export default class AppRoundList extends Vue {
}
/**
* clear
* 清除缓存
*/
public clear() {
}
/**
* changeTheme
* 主题切换
*/
public changeTheme() {
let changeTheme:any = this.$refs.changeTheme;
......@@ -190,6 +191,22 @@ export default class AppRoundList extends Vue {
}
}
/**
* 个人中心
*/
public userCenter(){
const { context, param } = this.$store.getters.getAppData();
let user :any = {}
if(context && context.srfuserid){
user[this.settingConfig.userEntityName] = context.srfuserid;
}
if(this.settingConfig.userCenterName){
this.$appmodal.openModal({viewname:this.settingConfig.userCenterName,title:""},user);
}else{
this.$notice.warning("用户自定义视图未配置")
}
}
}
</script>
<style lang="less">
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册