Commit 852d62f7 by 袁晓帅

Merge branch 'develop' of http://gitlab.maxrocky.com/html/jinmao-community-platform into develop

parents cb063e4f 978a72d6
......@@ -177,9 +177,9 @@ export default {
this.showAlert('请输入新密码~')
return false
}
var reg = /^[0-9a-zA-Z]+$/
if (this.formData.newPassword && (this.formData.newPassword.length < 6 || !reg.test(this.formData.newPassword))) {
this.showAlert('新密码不能少于6位数并且不能输入中文~')
var reg = /^1[0-9]+[a-zA-Z]+[0-9a-zA-Z]*|[a-zA-Z]+[0-9]+[0-9a-zA-Z]*/
if (this.formData.newPassword && (this.formData.newPassword.length < 10 || !reg.test(this.formData.newPassword))) {
this.showAlert('新密码不能少于10位数的字母、数字组合,且不能输入中文~')
return false
}
if (!this.formData.confirmPassword) {
......
......@@ -155,7 +155,7 @@ export default {
}),
created () {
this.projectId = window.sessionStorage.getItem('projectId')
this.projectId = 'beijing61'
// this.projectId = 'beijing61'
this.height = (document.documentElement.clientHeight - 270 ) + 'px'
this.getTypeList(this.projectId)
this.getData()
......
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