Commit 01c4794d authored by linxin's avatar linxin

add

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