完善登录版本逻辑
This commit is contained in:
@@ -76,7 +76,7 @@
|
||||
|
||||
<span style="width: 100%;margin-top: 15px;">密码</span>
|
||||
|
||||
<el-input class="input" style="flex: 1; margin-right: 10px;margin-top: 5px;" maxlength="6" placeholder="请输入密码"
|
||||
<el-input class="input" style="flex: 1; margin-right: 10px;margin-top: 5px;" placeholder="8至16位大小写字母和数字的组合"
|
||||
v-model="registerInfo.password" show-password />
|
||||
|
||||
<span style="width: 100%;margin-top: 15px;">验证码</span>
|
||||
@@ -123,9 +123,9 @@
|
||||
<img src="../../assets/images/company_icon.png" style="width: 25px; height: 25px;
|
||||
margin-left: 10px;margin-right: 10px;" />
|
||||
<span style="flex: 1;margin-right: 10px;">{{item.orgName}}</span>
|
||||
<img v-show="item.type=='1'" src="../../assets/images/overdue.png" style=" height: 100%;" />
|
||||
<img v-show="item.type=='3'" src="../../assets/images/overdue.png" style=" height: 100%;" />
|
||||
<img v-show="item.type=='2'" src="../../assets/images/experience.png" style=" height: 100%;" />
|
||||
<img v-show="item.type=='3'" src="../../assets/images/formal.png" style=" height: 100%;" />
|
||||
<img v-show="item.type=='1'" src="../../assets/images/formal.png" style=" height: 100%;" />
|
||||
|
||||
</div>
|
||||
|
||||
@@ -221,6 +221,7 @@
|
||||
registerInfo: {
|
||||
mobile: '',
|
||||
userSid: "",
|
||||
password: "",
|
||||
sourceSid: 'd936f1ba-03c3-11ec-bf08-48452053aa33', // wms 资源sid
|
||||
},
|
||||
loginForm: {
|
||||
@@ -454,6 +455,16 @@
|
||||
},
|
||||
registerStep1() {
|
||||
|
||||
var passwordreg = /^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9]).{8,16}$/
|
||||
|
||||
if (!passwordreg.test(this.registerInfo.password)) {
|
||||
this.$message({
|
||||
message: '密码格式错误,必须为8至16位大小写字母和数字的组合',
|
||||
type: 'warning'
|
||||
})
|
||||
return
|
||||
}
|
||||
|
||||
if (!this.check) {
|
||||
this.$message({
|
||||
message: '请阅读并同意《宇信通服务协议》与《隐私协议》',
|
||||
@@ -554,7 +565,8 @@
|
||||
|
||||
var params = {
|
||||
userSid: this.registerInfo.userSid,
|
||||
orgSid: item.orgSid
|
||||
orgSid: item.orgSid,
|
||||
sourceSid: 'd936f1ba-03c3-11ec-bf08-48452053aa33', // wms 资源sid
|
||||
}
|
||||
|
||||
selOrganization(params).then((response) => {
|
||||
|
||||
Reference in New Issue
Block a user