安全性问题处理:添加页面访问校验组件修改 --提交人:阳华祥

This commit is contained in:
yang.huaxiang
2020-11-16 14:04:00 +08:00
parent e3deb46104
commit bbb87b761f

View File

@@ -10,14 +10,25 @@
>
<van-tabs v-model="active" @click="clickTable">
<van-tab>
<template #title>密码校验 </template>
<template #title>密码校验</template>
<div class="p10 fs14">
<p>为保护客户隐私数据安全请您授权访问请在下面输入框输入登录密码</p>
<van-field v-model="checkModel.pwd" clearable type="password" label="密码:" name="密码" label-width="3em" placeholder="请输入密码" />
<p>为保护客户隐私数据安全请您授权访问请在下面输入框输入登录密码</p>
<van-field
minlength="6"
class="pt5 mt10"
style="border-top:1px solid #eaeaea"
v-model="checkModel.pwd"
clearable
type="password"
label="密码:"
name="密码"
label-width="3em"
placeholder="请输入密码"
/>
</div>
</van-tab>
<van-tab v-if="isShowSms">
<template #title>短信校验校验 </template>
<van-tab :disabled="isShowSms">
<template #title>短信校验</template>
<div>
<p class="p10 fs14">
为保护客户隐私数据安全请您授权访问短信验证码已发送至您手机号{{ checkModel.mobile | encryCheckModelMobile }}请您输入验证码以完成后续操作
@@ -62,7 +73,7 @@ export default {
data() {
return {
active: 0,
isShowSms: false,
isShowSms: true,
checkModel: {
pwd: null,
show: false,
@@ -118,7 +129,7 @@ export default {
if (!/^N{1}/.test(agentInfoRes.branchType)) {
this.checkModel.mobile = agentInfoRes.phoneNo
this.checkModel.show = true
this.isShowSms = true
this.isShowSms = false
} else {
// 已校验过 触发成功事件
this.checkModel.show = true