Commit f7bf6d7d by 严立

更新安全校验问题

parent 264e71c2

17.5 KB | W: | H:

16.3 KB | W: | H:

src/assets/logo@2x.png
src/assets/logo@2x.png
src/assets/logo@2x.png
src/assets/logo@2x.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -11,7 +11,6 @@ let output = {
},
isMoney: function (value) {
let regExp = new RegExp('^[0-9]+(.[0-9]{1,2})?$')
console.log('isMoney', regExp.test(value))
return regExp.test(value)
},
......
......@@ -84,9 +84,27 @@ let output = {
},
password: function (rule, value, callback) {
let funcRegExp = new RegExp(/[0-9a-z]+/, 'ig')
if (!funcRegExp.test(value)) {
let funcRegulation
let funcComplexity = 0
funcRegulation = /[0-9]+/ig
if (funcRegulation.test(value)) {
funcComplexity = funcComplexity + 1
}
funcRegulation = /[a-z]+/ig
if (funcRegulation.test(value)) {
funcComplexity = funcComplexity + 1
}
funcRegulation = /((?=[\x21-\x7e]+)[^A-Za-z0-9])/ig
if (funcRegulation.test(value)) {
funcComplexity = funcComplexity + 1
}
if (funcComplexity < 2) {
callback(new Error(rule.message))
return
}
callback()
},
......
......@@ -8,22 +8,22 @@
<img src="../assets/logo@2x.png" alt="">
</div>
<div>
<p>地址:厦门市思明区吕岭路1733号创想中心1801单元</p>
<p>地址:厦门市思明区创想中心A座1801单元</p>
<p>联系电话:0592-5859311</p>
</div>
</div>
<div class="other-link row">
<div class="other-link-item">
<span>采购服务</span>
<span>发布招标</span>
<span>发布招标采购信息</span>
<span>网上竞价</span>
<span>政策法规招标</span>
<span>其他采购服务</span>
</div>
<div class="other-link-item">
<span>供应商服务</span>
<span>供应商入驻</span>
<span>招标公告</span>
<span>竞价招标</span>
<span>招标采购信息推送</span>
<span>竞价采购</span>
</div>
<div class="other-link-item">
<span>招标资讯</span>
......
......@@ -9,7 +9,7 @@
<div class="about-us-info">
<p><span>厦门建发集团有限公司</span>系厦门市属国有企业,创立于1980年12月,经过三十多年的创新与变革,公司已发展成为注册资本65.5亿元、年营业收入超过2800亿元、资产总额超过2500亿元的大型实业投资企业集团,业务涵盖供应链运营、房地产开发、旅游酒店、会展业、医疗、投资等,排名2019年度《财富》"世界500强"第277位、2019中国企业500强第71位、中国服务业500强第39位。</p>
<p>今后集团将通过扩大现有核心产业的投资、适度增强现有新兴产业投资、积极对现有其他投资企业进行资本运作,并尝试一些新领域投资,将采取传统产业项目与高科技项目相结合、产业投资与战略投资、风险投资相结合、独立投资经营与合资合作相结合的策略,促进重点领域核心竞争力的形成与升级,实现投资收益的较大增长和核心产业品牌增值,促使集团稳步发展。</p>
<p><span>地址:厦门市思明区吕岭路1733号创想中心1801单元</span></p>
<p><span>地址:厦门市思明区创想中心A座1801单元</span></p>
<p><span>电话:0592-5859311</span></p>
</div>
<div class="about-us-amp">
......
......@@ -220,10 +220,10 @@
<div v-if="state === 7" class="register-info row">
<el-form ref="formPassword" key="formPassword" :model="formRegister" :rules="rule" label-width="160px">
<el-form-item label="登录密码:" prop="password">
<el-input v-model="formRegister.password" show-password maxlength="20" placeholder="6-20个字符,数字、英文字母及标点符号至少2种"></el-input>
<el-input v-model="formRegister.password" show-password minlength="8" maxlength="20" placeholder="8-20个字符,数字、英文字母及标点符号至少2种"></el-input>
</el-form-item>
<el-form-item label="确认密码:" prop="passwordRepeat">
<el-input v-model="formRegister.passwordRepeat" show-password maxlength="20" placeholder="再次输入登录密码"></el-input>
<el-input v-model="formRegister.passwordRepeat" show-password minlength="8" maxlength="20" placeholder="再次输入登录密码"></el-input>
</el-form-item>
<el-form-item label="联系人手机号:" prop="phone">
<el-input v-model="formRegister.phone" maxlength="11" placeholder="请输入联系人手机号"></el-input>
......@@ -390,11 +390,11 @@
],
password: [
{ required: true, message: '请设置登录密码', trigger: 'blur' },
{ min: 6, max:20, message: '6-20个字符,数字、英文字母及标点符号至少2种(除空格)', trigger: 'blur' },
{ min: 8, max:20, message: '8-20个字符,数字、英文字母及标点符号至少2种(除空格)', trigger: 'blur' },
{ validator: iRule.unSpace, message: '不能包含空格', trigger: 'blur'},
{ validator: iRule.unEmoji, message: '不能包含 emoji 表情', trigger: 'blur'},
{ validator: iRule.unChinese, message: '不能包含中文', trigger: 'blur'},
{ validator: iRule.password, message: '6-20个字符,数字、英文字母及标点符号至少2种(除空格)', trigger: 'blur'}
{ validator: iRule.password, message: '8-20个字符,数字、英文字母及标点符号至少2种(除空格)', trigger: 'blur'}
],
passwordRepeat: [
{ required: true, message: '请再次输入登录密码', trigger: 'blur' },
......@@ -680,7 +680,6 @@
for (let i = 0, l = funcKeys.length; i < l; i++) {
if (Object.prototype.toString.call(this.formRegister[funcKeys[i]]) === '[object String]') {
let funcValue = this.formRegister[funcKeys[i]].replace(funcRegular, '')
console.log(funcValue)
this.formRegister[funcKeys[i]] = funcValue
}
}
......
......@@ -161,10 +161,10 @@
<div v-if="state === 9" class="register-info row">
<el-form ref="formPassword" key="formPassword" :model="formRegister" :rules="rule" label-width="160px">
<el-form-item label="登录密码:" prop="password">
<el-input v-model="formRegister.password" show-password maxlength="20" placeholder="6-20个字符,数字、英文字母及标点符号至少2种"></el-input>
<el-input v-model="formRegister.password" show-password minlength="8" maxlength="20" placeholder="8-20个字符,数字、英文字母及标点符号至少2种"></el-input>
</el-form-item>
<el-form-item label="确认密码:" prop="passwordRepeat">
<el-input v-model="formRegister.passwordRepeat" show-password maxlength="20" placeholder="再次输入登录密码"></el-input>
<el-input v-model="formRegister.passwordRepeat" show-password minlength="8" maxlength="20" placeholder="再次输入登录密码"></el-input>
</el-form-item>
<el-form-item class="register-info-button row con-c">
<el-button type="primary" @click.prevent="onPrevious()">上一步</el-button>
......@@ -344,11 +344,11 @@
],
password: [
{ required: true, message: '请设置登录密码', trigger: 'blur' },
{ min: 6, max: 20, message: '6-20个字符,数字、英文字母及标点符号至少2种(除空格)', trigger: 'blur' },
{ min: 8, max: 20, message: '8-20个字符,数字、英文字母及标点符号至少2种(除空格)', trigger: 'blur' },
{ validator: iRule.unSpace, message: '不能包含空格', trigger: 'blur'},
{ validator: iRule.unEmoji, message: '不能包含 emoji 表情', trigger: 'blur'},
{ validator: iRule.unChinese, message: '不能包含中文', trigger: 'blur'},
{ validator: iRule.password, message: '6-20个字符,数字、英文字母及标点符号至少2种(除空格)', trigger: 'blur'}
{ validator: iRule.password, message: '8-20个字符,数字、英文字母及标点符号至少2种(除空格)', trigger: 'blur'}
],
passwordRepeat: [
{ required: true, message: '请再次输入登录密码', trigger: 'blur' },
......@@ -739,7 +739,6 @@
for (let i = 0, l = funcKeys.length; i < l; i++) {
if (Object.prototype.toString.call(this.formRegister[funcKeys[i]]) === '[object String]') {
let funcValue = this.formRegister[funcKeys[i]].replace(funcRegular, '')
console.log(funcValue)
this.formRegister[funcKeys[i]] = funcValue
}
}
......
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 sign in to comment