flx:新增进入勾选隐私政策
This commit is contained in:
parent
0bacb70abb
commit
eb01072325
@ -20,6 +20,12 @@
|
|||||||
<button type="primary" class="btn" @click="formSubmit">登录</button>
|
<button type="primary" class="btn" @click="formSubmit">登录</button>
|
||||||
</view>
|
</view>
|
||||||
</u-form>
|
</u-form>
|
||||||
|
<view class="ischecked">
|
||||||
|
<label class="radio">
|
||||||
|
<radio @click="isCheckedFn" :checked="isChecked" />
|
||||||
|
</label>
|
||||||
|
您已阅读并同意<a href="http://42.180.188.17:9809/privacy/detail/%E6%99%BA%E6%85%A7%E5%AE%89%E5%85%A8%E9%9A%90%E7%A7%81%E6%94%BF%E7%AD%96.html">《隐私政策》</a>
|
||||||
|
</view>
|
||||||
<view class="between">
|
<view class="between">
|
||||||
<view class="link" @click="forgetPassword">忘记密码</view>
|
<view class="link" @click="forgetPassword">忘记密码</view>
|
||||||
<!-- <view class="link" @click="goToPage">{{ type == "user" ? "用户账号注册" : "供应商账号注册" }}</view> -->
|
<!-- <view class="link" @click="goToPage">{{ type == "user" ? "用户账号注册" : "供应商账号注册" }}</view> -->
|
||||||
@ -54,7 +60,8 @@
|
|||||||
account: '',
|
account: '',
|
||||||
password: ''
|
password: ''
|
||||||
},
|
},
|
||||||
deptList: []
|
deptList: [],
|
||||||
|
isChecked: false,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@ -80,6 +87,9 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
|
isCheckedFn() {
|
||||||
|
this.isChecked = !this.isChecked;
|
||||||
|
},
|
||||||
getDeptList(data, status = false) {
|
getDeptList(data, status = false) {
|
||||||
// 获取改角色的部门
|
// 获取改角色的部门
|
||||||
let params = {
|
let params = {
|
||||||
@ -106,11 +116,11 @@
|
|||||||
})
|
})
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
this.showForm = false;
|
this.showForm = false;
|
||||||
this.deptList = res.result;
|
this.deptList = res.result;
|
||||||
if(this.deptList.length==1){
|
if (this.deptList.length == 1) {
|
||||||
this.clickDept(this.deptList[0]);
|
this.clickDept(this.deptList[0]);
|
||||||
}
|
}
|
||||||
console.log(res);
|
console.log(res);
|
||||||
@ -128,6 +138,10 @@
|
|||||||
title: "请输入密码",
|
title: "请输入密码",
|
||||||
icon: "none"
|
icon: "none"
|
||||||
})
|
})
|
||||||
|
if (!this.isChecked) return uni.showToast({
|
||||||
|
title: "请勾选隐私政策",
|
||||||
|
icon: "none"
|
||||||
|
})
|
||||||
if (valid) {
|
if (valid) {
|
||||||
// 验证成功
|
// 验证成功
|
||||||
let timestamp = Date.now();
|
let timestamp = Date.now();
|
||||||
@ -148,14 +162,14 @@
|
|||||||
let {
|
let {
|
||||||
accountType
|
accountType
|
||||||
} = res.result;
|
} = res.result;
|
||||||
if(res.result.expire){
|
if (res.result.expire) {
|
||||||
this.userInfo = {
|
this.userInfo = {
|
||||||
userId: res.result.userId,
|
userId: res.result.userId,
|
||||||
account: res.result.account,
|
account: res.result.account,
|
||||||
token: res.result.token,
|
token: res.result.token,
|
||||||
};
|
};
|
||||||
let that = this;
|
let that = this;
|
||||||
|
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
title: '提示',
|
title: '提示',
|
||||||
content: '密码有效期已超过90天,为确保您的账号安全,请重新修改密码!',
|
content: '密码有效期已超过90天,为确保您的账号安全,请重新修改密码!',
|
||||||
@ -164,7 +178,7 @@
|
|||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: `/pages/my/changePassword/changePassword?userInfo=${JSON.stringify(that.userInfo)}`,
|
url: `/pages/my/changePassword/changePassword?userInfo=${JSON.stringify(that.userInfo)}`,
|
||||||
});
|
});
|
||||||
|
|
||||||
} else if (res.cancel) {
|
} else if (res.cancel) {
|
||||||
console.log('用户点击取消');
|
console.log('用户点击取消');
|
||||||
}
|
}
|
||||||
@ -172,7 +186,7 @@
|
|||||||
});
|
});
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if (accountType == 5 || accountType == 6 || accountType == 10) {
|
if (accountType == 5 || accountType == 6 || accountType == 10) {
|
||||||
if (this.type == "user") {
|
if (this.type == "user") {
|
||||||
// 用户端
|
// 用户端
|
||||||
@ -278,6 +292,19 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
/deep/ uni-radio .uni-radio-input {
|
||||||
|
width: 36rpx;
|
||||||
|
height: 36rpx;
|
||||||
|
}
|
||||||
|
.ischecked {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
a {
|
||||||
|
text-decoration:none;
|
||||||
|
color: #5181F6;
|
||||||
|
}
|
||||||
|
|
||||||
.loginContent {
|
.loginContent {
|
||||||
padding: 80rpx 30rpx;
|
padding: 80rpx 30rpx;
|
||||||
|
|
||||||
@ -385,4 +412,4 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
@ -28,6 +28,12 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
<view class="ischecked">
|
||||||
|
<label class="radio">
|
||||||
|
<radio @click="isCheckedFn" :checked="isChecked" />
|
||||||
|
</label>
|
||||||
|
您已阅读并同意<a href="http://42.180.188.17:9809/privacy/detail/%E6%99%BA%E6%85%A7%E5%AE%89%E5%85%A8%E9%9A%90%E7%A7%81%E6%94%BF%E7%AD%96.html">《隐私政策》</a>
|
||||||
|
</view>
|
||||||
<view class="submit" @click="submit">同意协议并登录</view>
|
<view class="submit" @click="submit">同意协议并登录</view>
|
||||||
<!-- <view class="bottomTitle" @click="showModal=true">
|
<!-- <view class="bottomTitle" @click="showModal=true">
|
||||||
云服务器设置
|
云服务器设置
|
||||||
@ -69,6 +75,7 @@
|
|||||||
carNumber: ''
|
carNumber: ''
|
||||||
},
|
},
|
||||||
statusBarHeight:0,
|
statusBarHeight:0,
|
||||||
|
isChecked: false,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad() {
|
onLoad() {
|
||||||
@ -101,6 +108,9 @@
|
|||||||
delta: 1
|
delta: 1
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
isCheckedFn() {
|
||||||
|
this.isChecked = !this.isChecked;
|
||||||
|
},
|
||||||
submit() {
|
submit() {
|
||||||
// 登录
|
// 登录
|
||||||
console.log(this.url_config);
|
console.log(this.url_config);
|
||||||
@ -137,6 +147,10 @@
|
|||||||
type: 2
|
type: 2
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (!this.isChecked) return uni.showToast({
|
||||||
|
title: "请勾选隐私政策",
|
||||||
|
icon: "none"
|
||||||
|
})
|
||||||
personLogin(params).then(result => {
|
personLogin(params).then(result => {
|
||||||
console.log(result);
|
console.log(result);
|
||||||
if (result.code == 200) {
|
if (result.code == 200) {
|
||||||
@ -188,6 +202,20 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
/deep/ uni-radio .uni-radio-input {
|
||||||
|
width: 36rpx;
|
||||||
|
height: 36rpx;
|
||||||
|
}
|
||||||
|
.ischecked {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
margin-top: 20rpx;
|
||||||
|
margin-left: 30rpx;
|
||||||
|
}
|
||||||
|
a {
|
||||||
|
text-decoration:none;
|
||||||
|
color: #5181F6;
|
||||||
|
}
|
||||||
.content {
|
.content {
|
||||||
padding: 80rpx 30rpx;
|
padding: 80rpx 30rpx;
|
||||||
.title {
|
.title {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user