Commit e4597e59 authored by lijiongliang's avatar lijiongliang

新增用户协议和隐私政策

parent 276d7a36
<template>
<view id="article" v-html="content"></view>
</template>
<script>
export default {
data(){
return {
content:""
}
},
onLoad(e) {
// uni.setNavigationBarTitle({
// title:""
// })
let content = uni.getStorageSync("articelContent")
this.content = content
}
}
</script>
<style lang="scss">
#article{
padding:30rpx 30rpx 50rpx;
}
</style>
\ No newline at end of file
......@@ -38,7 +38,7 @@
<u-checkbox-group placement="row">
<u-checkbox :checked='checked' @change="changeBtn"></u-checkbox>
</u-checkbox-group>
已阅读并同意 <span>《用户注册协议》</span><span>《友众隐私政策》</span>。若您的手机号未注册,将为您直接注册友众账号
已阅读并同意 <span @click="goArticle(1)">《用户注册协议》</span><span @click="goArticle(2)">《友众隐私政策》</span>。若您的手机号未注册,将为您直接注册友众账号
</div>
</div>
</view>
......@@ -176,8 +176,6 @@ export default {
})
}
})
},
gotoIndex() {
let jumpUrl = this.superiorUrl
......@@ -215,6 +213,24 @@ export default {
url: '/pagesB/pages/move-car/scan?moveCode=' + that.scene
});
},
// 跳转协议政策页面
goArticle(index){
let opts = { url: '', method: 'get' };
if(index == 1){
opts.url = "/app/user/registerAgreement"
}else{
opts.url = "/app/user/ofPrivacy"
}
this.http.httpTokenRequest(opts, {}).then(res => {
if (res.data.code == 200) {
let data = res.data.msg
uni.setStorageSync("articelContent",data)
uni.navigateTo({
url: '/pages/binding/article'
});
}
})
}
},
onLoad(e) { //默认加载
let openid = uni.getStorageSync('openid');
......
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