新增小程序登录页权力和义务协议、新增被申请人权益告知书、证据清单功能
This commit is contained in:
+37
-7
@@ -20,6 +20,14 @@
|
||||
<view class="login-code">
|
||||
<image :src="codeUrl" @click="getCode" class="login-code-img"></image>
|
||||
</view>
|
||||
</view>
|
||||
<view class="ageen-read">
|
||||
<checkbox-group @change="handleAgreeChange">
|
||||
<checkbox value="agree"/>
|
||||
<text class="agreen-text">阅读并同意</text>
|
||||
<text @click="equityNotice" class="text-blue">《权益告知书》</text>
|
||||
</checkbox-group>
|
||||
|
||||
</view>
|
||||
<view class="action-btn">
|
||||
<button @click="handleLogin" class="login-btn cu-btn block bg-blue lg round">登录</button>
|
||||
@@ -51,7 +59,8 @@
|
||||
data() {
|
||||
return {
|
||||
codeUrl: "",
|
||||
captchaEnabled: true,
|
||||
captchaEnabled: true,
|
||||
|
||||
// 用户注册开关
|
||||
register: true,
|
||||
globalConfig: getApp().globalData.config,
|
||||
@@ -59,17 +68,27 @@
|
||||
username: "",
|
||||
password: "",
|
||||
code: "",
|
||||
uuid: ''
|
||||
}
|
||||
uuid: '',
|
||||
|
||||
},
|
||||
isSelectAgree:[]
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.getCode()
|
||||
},
|
||||
methods: {
|
||||
methods: {
|
||||
handleAgreeChange(e){
|
||||
this.isSelectAgree = e.detail.value
|
||||
},
|
||||
// 用户注册
|
||||
handleUserRegister() {
|
||||
this.$tab.redirectTo(`/pages/realName`)
|
||||
},
|
||||
// 权益告知书
|
||||
equityNotice(){
|
||||
//this.$tab.redirectTo(`/pages/personalInfoCollection`)
|
||||
this.$tab.navigateTo(`/pages/personalInfoCollection?title=权益告知书`)
|
||||
},
|
||||
// 隐私协议
|
||||
handlePrivacy() {
|
||||
@@ -92,9 +111,12 @@
|
||||
})
|
||||
},
|
||||
// 登录方法
|
||||
async handleLogin() {
|
||||
async handleLogin() {
|
||||
console.log(this.isSelectAgree,'xxxx')
|
||||
if (this.loginForm.username === "") {
|
||||
this.$modal.msgError("请输入您的账号")
|
||||
}else if(this.isSelectAgree.length < 1){
|
||||
this.$modal.msgError("请先阅读个人信息收集条款并同意")
|
||||
} else if (this.loginForm.password === "") {
|
||||
this.$modal.msgError("请输入您的密码")
|
||||
} else if (this.loginForm.code === "" && this.captchaEnabled) {
|
||||
@@ -121,7 +143,8 @@
|
||||
this.$store.dispatch('GetInfo').then(res => {
|
||||
this.$tab.reLaunch('/pages/work/index')
|
||||
})
|
||||
}
|
||||
},
|
||||
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -150,7 +173,7 @@
|
||||
}
|
||||
|
||||
.login-form-content {
|
||||
text-align: center;
|
||||
// text-align: center;
|
||||
margin: 20px auto;
|
||||
margin-top: 15%;
|
||||
width: 80%;
|
||||
@@ -201,6 +224,13 @@
|
||||
margin-left: 10px;
|
||||
width: 200rpx;
|
||||
}
|
||||
}
|
||||
.ageen-read{
|
||||
margin-top:65rpx;
|
||||
.agreen-text{
|
||||
padding-left:20rpx;
|
||||
color: #999;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user