Commit 01c4794d authored by linxin's avatar linxin

add

parent b9aa9eeb
Pipeline #4603 canceled with stages
......@@ -2,7 +2,7 @@
<h-view class="privacy public-style">
<h-header :proportion="[5,1,1]" class="bar-custom">
<div slot="left" class="h-header-btn" @click="$routeGo()">
<img src="@/assets/userBind/arrow.png" @click="$routeGo()">
<img src="@/assets/userBind/arrow.png">
<span>隐私政策</span>
</div>
</h-header>
......@@ -155,7 +155,7 @@
</p>
</h-content>
<bottom-tab v-if="buttonFlag">
<tab-button @click.native="$routeGo">不同意</tab-button>
<tab-button @click.native="privacyNo">不同意</tab-button>
<tab-button class="agreeBtn" @click.native="privacyAgree">同意</tab-button>
</bottom-tab>
</h-view>
......@@ -169,7 +169,14 @@ export default {
buttonFlag: this.$route.params.button,
}
},
activated () {
this.buttonFlag = this.$route.params.button
},
methods: {
privacyNo () {
window.localStorage.setItem('isReadPolicy', false)
this.$routeGo()
},
privacyAgree () {
window.localStorage.setItem('isReadPolicy', true)
this.$routeGo()
......
......@@ -538,7 +538,14 @@ export default {
if (index === 1) {
let width = window.localStorage.getItem('width')
let height = window.localStorage.getItem('height')
if (window.localStorage.isReadPolicy === 'false') {
window.localStorage.clear()
} else if (window.localStorage.isReadPolicy === 'true') {
window.localStorage.clear()
window.localStorage.setItem('isReadPolicy', true)
} else {
window.localStorage.clear()
}
window.localStorage.setItem('width', width)
window.localStorage.setItem('height', height)
vm.$router.push('/login')
......
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