Commit 54acd97e authored by lijiongliang's avatar lijiongliang

新增用户协议和隐私政策

parent 74c01926
......@@ -16,12 +16,16 @@
<active-form :formDate.sync="formData"></active-form>
</view>
</div>
<div class="login__read">
<view class="login__read">
<view>
<u-checkbox-group placement="row">
<u-checkbox :checked='checked' @change="changeBtn"></u-checkbox>
</u-checkbox-group>
已阅读并同意<span>友众挪车牌用户协议(含隐私政策)</span><span>友众用户注册协议</span><span>友众隐私政策</span><span>联通账号认证服务条款</span>并使用本机号码登录
</div>
</view>
<view>
已阅读并同意<span @click="goArticle(1)">《用户注册服务协议》</span><span @click="goArticle(2)">《京东挪车牌隐私权政策》</span>
</view>
</view>
<div>
<view class="subform" @click="sub">确认绑定</view>
</div>
......@@ -85,12 +89,30 @@ export default {
});
} else {
uni.showToast({
title: "请阅读并同意友众挪车牌用户协议",
title: "请阅读并同意《用户注册服务协议》和《京东挪车牌隐私权政策》",
icon: 'none',
duration: 2000,
});
}
},
// 跳转协议政策页面
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'
});
}
})
}
},
}
</script>
......@@ -157,11 +179,10 @@ export default {
font-weight: 500;
color: #666666;
line-height: 36rpx;
display: flex;
align-items: center;
span {
color: #444;
padding: 0 5rpx;
text-decoration: underline #444;
color: rgb(0, 81, 255);
}
}
}
......
......@@ -38,7 +38,7 @@
<u-checkbox-group placement="row">
<u-checkbox :checked='checked' @change="changeBtn"></u-checkbox>
</u-checkbox-group>
已阅读并同意 <span @click="goArticle(1)">《用户注册协议》</span><span @click="goArticle(2)">《友众隐私政策》</span>。若您的手机号未注册,将为您直接注册友众账号
已阅读并同意 <span @click="goArticle(1)">《用户注册服务协议》</span><span @click="goArticle(2)">《京东挪车牌隐私权政策》</span>。若您的手机号未注册,将为您直接注册友众账号
</div>
</div>
</view>
......@@ -72,7 +72,7 @@ export default {
//登录
checkLogin() {
uni.showToast({
title: "请先阅读并同意《友众用户注册协议》、《友众隐私政策》",
title: "请先阅读并同意《用户注册服务协议》、《京东挪车牌隐私权政策》",
icon: 'none',
duration: 2000,
});
......
......@@ -43,7 +43,17 @@
<div class="select__car" @click="goLoveCar">
从爱车选择 <image src="@/static/index/zhankai.png" alt="">
</div>
<div class="add__user">
<u-checkbox-group placement="row">
<u-checkbox :checked='checked' @change="changeBtn"></u-checkbox>
</u-checkbox-group>
请先阅读并同意<span @click="goArticle">《京东挪车牌隐私权政策》</span>
</div>
</div>
<div class="price__bottom">
<div class="price">
<div class="price__num">
......@@ -120,9 +130,13 @@ export default {
carId: '',
//免费挪车码
freeCode: {},
checked:false
};
},
methods: {
changeBtn() {
this.checked = !this.checked;
},
goLoveCar() {
uni.navigateTo({
url: '/pagesB/pages/move-car/loveCar?price=1'
......@@ -131,6 +145,14 @@ export default {
getCarCode() {
//跳转到获取挪车码页面
this.$refs.form1.validate().then(res => {
if (!this.checked) {
uni.showToast({
title: "请同意京东挪车牌隐私权政策",
icon: 'none',
duration: 2000,
});
return
}
if (!this.model1.carInfo.id) {
let opts = {
url: '/app/vehicleAdmin/add',
......@@ -180,6 +202,19 @@ export default {
}
})
},
// 跳转协议政策页面
goArticle(){
let opts = { url: '/app/user/ofPrivacy', method: 'get' };
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'
});
}
})
}
},
onReady() {
// 如果需要兼容微信小程序,并且校验规则中含有方法等,只能通过setRules方法设置规则
......@@ -329,6 +364,22 @@ export default {
}
}
.add__user {
display: flex;
font-size: 28rpx;
font-family: PingFang SC;
font-weight: 500;
color: #999999;
// padding-left: 20rpx;
margin-top: 40rpx;
margin-bottom: 60rpx;
span {
color: rgba(58, 134, 247, 1);
padding: 0 5rpx;
}
}
.price__bottom {
width: 100%;
height: 156rpx;
......
......@@ -31,7 +31,7 @@
<u-checkbox-group placement="row">
<u-checkbox :checked='checked' @change="changeBtn"></u-checkbox>
</u-checkbox-group>
勾选同意<span>《用户服务协议</span>
请先阅读并同意<span @click="goArticle">《京东挪车牌隐私权政策</span>
</div>
<div class="add__btn add__no__bind" @click="addCarInfo()">
完成
......@@ -122,7 +122,7 @@ export default {
this.$refs.form1.validate().then(res => {
if (!this.checked) {
uni.showToast({
title: "请同意用户协议",
title: "请同意京东挪车牌隐私权政策",
icon: 'none',
duration: 2000,
});
......@@ -148,6 +148,19 @@ export default {
uni.$u.toast('校验失败')
})
},
// 跳转协议政策页面
goArticle(){
let opts = { url: '/app/user/ofPrivacy', method: 'get' };
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'
});
}
})
}
},
onReady() {
// 如果需要兼容微信小程序,并且校验规则中含有方法等,只能通过setRules方法设置规则
......
......@@ -29,6 +29,13 @@
</div>
</div>
<div class="add__user">
<u-checkbox-group placement="row">
<u-checkbox :checked='checked' @change="changeBtn"></u-checkbox>
</u-checkbox-group>
请先阅读并同意<span @click="goArticle">《京东挪车牌隐私权政策》</span>
</div>
<div class="add__btn add__no__bind" @click="editCarInfo">
保存
</div>
......@@ -91,10 +98,14 @@ export default {
},
]
},
items: []
items: [],
checked:false
};
},
methods: {
changeBtn() {
this.checked = !this.checked;
},
goBack() {
uni.navigateBack({
delta: 1
......@@ -118,6 +129,14 @@ export default {
},
editCarInfo() {
this.$refs.form1.validate().then(res => {
if (!this.checked) {
uni.showToast({
title: "请同意京东挪车牌隐私权政策",
icon: 'none',
duration: 2000,
});
return
}
let opts = {
url: '/app/vehicleAdmin/edit',
method: 'put'
......@@ -161,6 +180,19 @@ export default {
delModal() {
this.deleteShow = true
},
// 跳转协议政策页面
goArticle(){
let opts = { url: '/app/user/ofPrivacy', method: 'get' };
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(option) {
this.id = option.id
......@@ -207,6 +239,21 @@ export default {
}
}
.add__user {
font-size: 28rpx;
font-family: PingFang SC;
font-weight: 500;
color: #999999;
padding-left: 40rpx;
margin-top: 30rpx;
margin-bottom: 60rpx;
span {
color: rgba(58, 134, 247, 1);
padding: 0 5rpx;
}
}
.add__btn {
width: 670rpx;
height: 76rpx;
......
......@@ -26,6 +26,13 @@
<car-number class="car__input" v-model="model1.carInfo.carNo"></car-number>
</div>
<active-form :formDate.sync="formData"></active-form>
<div class="add__user">
<u-checkbox-group placement="row">
<u-checkbox :checked='checked' @change="changeBtn"></u-checkbox>
</u-checkbox-group>
请先阅读并同意<span @click="goArticle">《京东挪车牌隐私权政策》</span>
</div>
</div>
<div class="view__btn view__no__bind" @click="confirmBinding">
确认绑定
......@@ -115,9 +122,13 @@ export default {
moveCodeInfo: {},
//选择车辆id
carId: '',
checked:false
}
},
methods: {
changeBtn() {
this.checked = !this.checked;
},
// 跳转到使用说明页面
gotoExplanation() {
uni.navigateTo({
......@@ -142,6 +153,14 @@ export default {
}
this.moveCodeInfo.carNo = this.model1.carInfo.carNo
this.moveCodeInfo.moveCode = this.moveCode
if (!this.checked) {
uni.showToast({
title: "请同意京东挪车牌隐私权政策",
icon: 'none',
duration: 2000,
});
return
}
let opts = {
url: '/app/moveCode/binding/',
method: 'put'
......@@ -212,6 +231,20 @@ export default {
color: #3A86F7;
}
.add__user {
font-size: 28rpx;
font-family: PingFang SC;
font-weight: 500;
color: #999999;
padding-left: 40rpx;
margin-bottom: 20rpx;
span {
color: rgba(58, 134, 247, 1);
padding: 0 5rpx;
}
}
.view__btn {
width: 670rpx;
height: 76rpx;
......
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