Commit 833e33aa by Sendya

fix: account settings

parent 9fb94ecc
<template> <template>
<div> <a-list
主题色:{{ theme | themeFilter }} <a-switch defaultChecked @change='onChange'/> itemLayout="horizontal"
</div> :dataSource="data"
>
<a-list-item slot="renderItem" slot-scope="item, index" :key="index">
<a-list-item-meta>
<a slot="title" href="https://vuecomponent.github.io/ant-design-vue/">{{ item.title }}</a>
<span slot="description">
<span class="security-list-description">{{ item.description }}</span>
<span v-if="item.value"> : </span>
<span class="security-list-value">{{ item.value }}</span>
</span>
</a-list-item-meta>
<template v-if="item.actions">
<a slot="actions" @click="item.actions.callback">{{ item.actions.title }}</a>
</template>
</a-list-item>
</a-list>
</template> </template>
<script> <script>
...@@ -9,7 +25,11 @@ ...@@ -9,7 +25,11 @@
name: "Security", name: "Security",
data () { data () {
return { return {
theme: 'dark' theme: 'dark',
data: [
{ title: '主题色' , description: '设置全局主题色', value: this.theme, actions: { title: '修改', callback: () => { this.$message.info('This is a normal message'); } } },
]
} }
}, },
filters: { filters: {
......
...@@ -10,28 +10,23 @@ ...@@ -10,28 +10,23 @@
> >
<a-menu-item key="1"> <a-menu-item key="1">
<router-link :to="{ name: 'BaseSettings' }"> <router-link :to="{ name: 'BaseSettings' }">
<a-icon type="mail" />
基本设置 基本设置
</router-link> </router-link>
</a-menu-item> </a-menu-item>
<a-menu-item key="2"> <a-menu-item key="2">
<router-link :to="{ name: 'SecuritySettings' }"> <router-link :to="{ name: 'SecuritySettings' }">
<a-icon type="mail" />
安全设置 安全设置
</router-link> </router-link>
</a-menu-item> </a-menu-item>
<a-menu-item key="3"> <a-menu-item key="3">
<router-link :to="{ name: 'CustomSettings' }"> <router-link :to="{ name: 'CustomSettings' }">
<a-icon type="mail" />
个性化 个性化
</router-link> </router-link>
</a-menu-item> </a-menu-item>
<a-menu-item key="4"> <a-menu-item key="4">
<a-icon type="mail" />
账户绑定 账户绑定
</a-menu-item> </a-menu-item>
<a-menu-item key="5"> <a-menu-item key="5">
<a-icon type="mail" />
新消息通知 新消息通知
</a-menu-item> </a-menu-item>
</a-menu> </a-menu>
......
<template> <template>
<div> <a-list
222 itemLayout="horizontal"
</div> :dataSource="data"
>
<a-list-item slot="renderItem" slot-scope="item, index" :key="index">
<a-list-item-meta>
<a slot="title" href="https://vuecomponent.github.io/ant-design-vue/">{{ item.title }}</a>
<span slot="description">
<span class="security-list-description">{{ item.description }}</span>
<span v-if="item.value"> : </span>
<span class="security-list-value">{{ item.value }}</span>
</span>
</a-list-item-meta>
<template v-if="item.actions">
<a slot="actions" @click="item.actions.callback">{{ item.actions.title }}</a>
</template>
</a-list-item>
</a-list>
</template> </template>
<script> <script>
export default { export default {
name: "Security" data () {
return {
data: [
{ title: '账户密码' , description: '当前密码强度', value: '强', actions: { title: '修改', callback: () => { this.$message.info('This is a normal message'); } } },
{ title: '密保手机' , description: '已绑定手机', value: '138****8293', actions: { title: '修改', callback: () => { this.$message.success('This is a message of success'); } } },
{ title: '密保问题' , description: '未设置密保问题,密保问题可有效保护账户安全', value: '', actions: { title: '设置', callback: () => { this.$message.error('This is a message of error'); } } },
{ title: '备用邮箱' , description: '已绑定邮箱', value: 'ant***sign.com', actions: { title: '修改', callback: () => { this.$message.warning('This is message of warning'); } } },
{ title: 'MFA 设备' , description: '未绑定 MFA 设备,绑定后,可以进行二次确认', value: '', actions: { title: '绑定', callback: () => { this.$message.info('This is a normal message'); } } },
]
}
}
} }
</script> </script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment