Commit ad6d858d authored by zhuang_cong's avatar zhuang_cong

update

parent d0641c0c
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<div class="bg-grey setup-con"> <div class="bg-grey setup-con">
<div class="setup-list"> <div class="setup-list">
<!-- <item-info label="登录密码" icon></item-info> --> <!-- <item-info label="登录密码" icon></item-info> -->
<item-info label="支付密码" icon @click.native="goTo('update-pay-pwd')" /> <item-info label="支付密码" icon @click.native="goToUpdatePwd" />
<!-- <item-info label="实名认证" icon @click.native="goTo('authentication')" /> --> <!-- <item-info label="实名认证" icon @click.native="goTo('authentication')" /> -->
<item-info <item-info
v-if="isApp" v-if="isApp"
...@@ -13,7 +13,11 @@ ...@@ -13,7 +13,11 @@
/> />
<!-- <item-info label="隐私协议" icon></item-info> --> <!-- <item-info label="隐私协议" icon></item-info> -->
<item-info label="关于" icon @click.native="goToAboutUs('about-us')"></item-info> <item-info
label="关于"
icon
@click.native="goToAboutUs('about-us')"
></item-info>
</div> </div>
<div class="login-out" @click="handleLogout">退出登录</div> <div class="login-out" @click="handleLogout">退出登录</div>
</div> </div>
...@@ -28,27 +32,33 @@ export default { ...@@ -28,27 +32,33 @@ export default {
return {}; return {};
}, },
computed: { computed: {
...mapState(["appVersion","accountInfo","appPlatform"]), ...mapState(["appVersion", "accountInfo", "appPlatform"]),
isApp() { isApp() {
return this.appPlatform === 'mall-ym' return this.appPlatform === "mall-ym";
} },
}, },
methods: { methods: {
...mapMutations(["clearAccountInfo"]), ...mapMutations(["clearAccountInfo"]),
handleLogout() { handleLogout() {
this.clearAccountInfo(); this.clearAccountInfo();
this.goHome(); this.goHome();
}, },
goTo(name) { goTo(name) {
this.$router.push({ name }); this.$router.push({ name });
}, },
goToAboutUs (name) { goToAboutUs(name) {
this.$router.push({ name }); this.$router.push({ name });
}, },
appUpdateApp() { appUpdateApp() {
this.updateApp() this.updateApp();
} },
goToUpdatePwd() {
let query = {};
if (!this.accountInfo.isPayPassword) {
query = { first: true, setup: 1 };
}
this.$router.push({ name: "update-pay-pwd", query });
},
}, },
}; };
</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