Skip to content
This repository has been archived by the owner on Nov 15, 2018. It is now read-only.

Commit

Permalink
fix: (#440) 增加注册协议显示开关
Browse files Browse the repository at this point in the history
  • Loading branch information
mutoe committed Jun 27, 2018
1 parent 763c7ff commit 7cabd7c
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/page/sign/signup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,11 @@
</div>
</main>
<footer>
<router-link to="/signup/protocol" class="register-protocol">
点击注册即代表同意《ThinkSNS+用户使用协议》
</router-link>
<template v-if="showProtocol">
<router-link to="/signup/protocol" class="register-protocol">
点击注册即代表同意《ThinkSNS+用户使用协议》
</router-link>
</template>
</footer>
</div>
</transition>
Expand Down Expand Up @@ -134,6 +136,9 @@ export default {
};
},
computed: {
showProtocol() {
return this.$store.state.CONFIG.registerSettings.showTerms;
},
codeText() {
return this.countdown > 0 ? `${this.countdown}s后重发` : "获取验证码";
},
Expand Down

0 comments on commit 7cabd7c

Please sign in to comment.