|
@@ -76,7 +76,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div style="margin-bottom: 8px;font-size: 16px">
|
|
|
- <el-alert title="请考生认真如实填写有关个人档案信息。其中的姓名、性别、身份证号,一旦确认即不可以随意更改。更改需要到自考办现场申请并需提交公安部门证明。" type="warning":closable="false">
|
|
|
+ <el-alert title="请考生认真如实填写有关个人档案信息。其中的姓名、证件号码,一旦确认即不可以随意更改。更改需要到自考办现场申请并需提交公安部门证明。" type="warning":closable="false">
|
|
|
</el-alert>
|
|
|
|
|
|
</div>
|
|
@@ -135,6 +135,7 @@
|
|
|
</el-row>
|
|
|
-->
|
|
|
<!-- v-if="isSFZ" -->
|
|
|
+ <!--
|
|
|
<el-row>
|
|
|
<el-col :span="24">
|
|
|
<el-form-item label="性别" prop="std_sex">
|
|
@@ -144,6 +145,47 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
+-->
|
|
|
+ <el-row>
|
|
|
+ <el-col :span="24">
|
|
|
+ <el-form-item label="地(市)" prop="std_city">
|
|
|
+ <el-select v-model="stdRegInfo.std_city" filterable placeholder="请选择地(市)" @change="countyChange">
|
|
|
+ <el-option v-for="item in cityArray" :label="item.city_code+' | '+item.city_name" :value="item.city_code"></el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+
|
|
|
+ <el-row>
|
|
|
+ <el-col :span="24">
|
|
|
+ <el-form-item label="区(县)" prop="std_county">
|
|
|
+ <el-select v-model="stdRegInfo.std_county" filterable placeholder="请选择区(县)">
|
|
|
+ <el-option v-for="item in countyArray" :label="item.country_code+' | '+item.country_name" :value="item.country_code"></el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+
|
|
|
+ <el-row>
|
|
|
+ <el-col :span="24">
|
|
|
+ <el-form-item label="手机号" prop="std_mobile">
|
|
|
+ <el-input v-model="stdRegInfo.std_mobile" placeholder="请填写手机号"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+
|
|
|
+ <el-row>
|
|
|
+ <el-col :span="24">
|
|
|
+ <el-form-item label="短信验证码" prop="code">
|
|
|
+ <input v-model="stdRegInfo.code" maxlength="6"
|
|
|
+ type="text" autocomplete="off" placeholder="请填写短信验证码" class="el-input__inner">
|
|
|
+ <a style="cursor:pointer; position: absolute;top: 2px;right: 15px;height: 80%;" href="javascript:void(0)" :disabled="secCountDown>0" @click="sendSmsForReg()">{{secCountDownInfo}}</a>
|
|
|
+
|
|
|
+
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+
|
|
|
<!--
|
|
|
<el-row v-if="isSFZ && stdRegInfo.cert_no.length ==18">
|
|
|
<el-col :span="24">
|
|
@@ -158,7 +200,7 @@
|
|
|
<el-row>
|
|
|
<el-col :span="24">
|
|
|
<el-form-item label="密码" prop="std_pass1">
|
|
|
- <el-input type="password" v-model="stdRegInfo.std_pass1" placeholder="密码必须包含字母、数字、特殊字符至少8个字符!"></el-input>
|
|
|
+ <el-input type="password" v-model="stdRegInfo.std_pass1" placeholder="密码必须包含字母、数字、特殊字符至少10个字符!"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
@@ -206,7 +248,7 @@
|
|
|
<el-row>
|
|
|
<el-col :span="24">
|
|
|
<el-form-item label="老准考证号">
|
|
|
- <el-input type="input" v-model="ticket_no_old"></el-input>
|
|
|
+ <el-input type="input" v-model="ticket_no_old" placeholder="请输入非十二位准考证号"></el-input>
|
|
|
</el-form-item>
|
|
|
<div style="width: 230px; position: absolute; left: 418px; top: 0px;">
|
|
|
<el-button type="primary" @click="check()">验证</el-button>
|
|
@@ -405,7 +447,7 @@
|
|
|
|
|
|
var validateConfirmPass = function(rule, value, callback) {
|
|
|
var this_ = window['Vue'];
|
|
|
- var regex = new RegExp('(?=.*[0-9])(?=.*[a-zA-Z])(?=.*[^a-zA-Z0-9]).{8,30}');
|
|
|
+ var regex = new RegExp('(?=.*[0-9])(?=.*[a-zA-Z])(?=.*[^a-zA-Z0-9]).{10,30}');
|
|
|
// var regex = /^[A-Za-z0-9]{8,20}$/;
|
|
|
// var regex = new RegExp("^(?![0-9]+$)(?![a-z]+$)(?![A-Z]+$)(?!([^(0-9a-zA-Z)])+$)^.{8,}$");
|
|
|
|
|
@@ -414,7 +456,7 @@
|
|
|
} else if (value !== this_.stdRegInfo.std_pass1) {
|
|
|
callback(new Error('两次输入密码不一致!'));
|
|
|
} else if (!regex.test(this_.stdRegInfo.std_pass1)) {
|
|
|
- callback(new Error('密码必须包含字母、数字、特殊字符至少8个字符!'));
|
|
|
+ callback(new Error('密码必须包含字母、数字、特殊字符至少10个字符!'));
|
|
|
// callback();
|
|
|
} else {
|
|
|
//密码复杂度检查
|
|
@@ -424,7 +466,7 @@
|
|
|
|
|
|
var validateConfirmPass1 = function(rule, value, callback) {
|
|
|
var this_ = window['Vue'];
|
|
|
- var regex = new RegExp('(?=.*[0-9])(?=.*[a-zA-Z])(?=.*[^a-zA-Z0-9]).{8,30}');
|
|
|
+ var regex = new RegExp('(?=.*[0-9])(?=.*[a-zA-Z])(?=.*[^a-zA-Z0-9]).{10,30}');
|
|
|
// var regex = /^[A-Za-z0-9]{8,20}$/;
|
|
|
// var regex = new RegExp("^(?![0-9]+$)(?![a-z]+$)(?![A-Z]+$)(?!([^(0-9a-zA-Z)])+$)^.{8,}$");
|
|
|
|
|
@@ -433,7 +475,7 @@
|
|
|
} else if (this_.stdRegInfo.std_pass2 && value !== this_.stdRegInfo.std_pass2) {
|
|
|
callback(new Error('两次输入密码不一致!'));
|
|
|
} else if (!regex.test(this_.stdRegInfo.std_pass1)) {
|
|
|
- callback(new Error('密码中必须包含字母、数字、特殊字符至少8个字符!'));
|
|
|
+ callback(new Error('密码中必须包含字母、数字、特殊字符至少10个字符!'));
|
|
|
// callback();
|
|
|
} else {
|
|
|
//密码复杂度检查
|
|
@@ -497,7 +539,8 @@
|
|
|
std_pass2: "",
|
|
|
cert_no: "",
|
|
|
std_sex: "",
|
|
|
-
|
|
|
+ std_city: "",
|
|
|
+ std_county: "",
|
|
|
|
|
|
std_eng_name: "",
|
|
|
political_status: "",
|
|
@@ -512,6 +555,7 @@
|
|
|
major_code: "",
|
|
|
major_name: "",
|
|
|
std_mobile: "",
|
|
|
+ code: "",
|
|
|
std_postcode: "",
|
|
|
std_address: "",
|
|
|
email: "",
|
|
@@ -536,14 +580,29 @@
|
|
|
{ validator: validateCertNo, trigger: ['blur', 'change'] },
|
|
|
],
|
|
|
std_sex: [
|
|
|
- { required: true, message: '请输入性别', trigger: 'blur' },
|
|
|
+ { required: true, message: '请选择性别', trigger: 'blur' },
|
|
|
+ ],
|
|
|
+ std_city: [
|
|
|
+ { required: true, message: '请选择地(市)', trigger: 'blur' },
|
|
|
+ ],
|
|
|
+ std_county: [
|
|
|
+ { required: true, message: '请选择区(县)', trigger: 'blur' },
|
|
|
+ ],
|
|
|
+ std_mobile: [
|
|
|
+ { required: true, message: '请选择区(县)', trigger: 'blur' },
|
|
|
+ ],
|
|
|
+ code: [
|
|
|
+ { required: true, message: '请选择区(县)', trigger: 'blur' },
|
|
|
],
|
|
|
// std_birth: [
|
|
|
// { required: true, message: '请输入出生日期', trigger: 'blur' },
|
|
|
// ]
|
|
|
},
|
|
|
sexArray: [],
|
|
|
-
|
|
|
+ cityArray: [],
|
|
|
+ countyArray: [],
|
|
|
+ secCountDown: 0,
|
|
|
+ secCountDownInfo:"发送验证码",
|
|
|
}
|
|
|
},
|
|
|
mounted: function() {
|
|
@@ -567,6 +626,14 @@
|
|
|
// })
|
|
|
|
|
|
this.sexArray = [{ dict_name: "StdSexType", dict_value: "1", dict_text: "男", dict_order: 1 },{ dict_name: "StdSexType", dict_value: "2", dict_text: "女", dict_order: 2 }];
|
|
|
+
|
|
|
+ ajaxRequest("",'/std/stdRegInfo/queryCity.htm',{},function(map){
|
|
|
+
|
|
|
+ if(map.success){
|
|
|
+ _this.cityArray = map.array;
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
this.loading = false;
|
|
|
|
|
|
// this.dialogVisible = true;
|
|
@@ -579,6 +646,67 @@
|
|
|
}, 500);
|
|
|
},
|
|
|
methods: {
|
|
|
+ sendSmsForReg: function(){
|
|
|
+ var _this = this;
|
|
|
+
|
|
|
+ if(!_this.stdRegInfo.std_mobile){
|
|
|
+ $.Pop("请填写手机号!", 'alert', function () {});
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ ajaxRequest("", '/std/sendSmsForReg.htm', {std_mobile:_this.stdRegInfo.std_mobile }, function (resp) {
|
|
|
+
|
|
|
+
|
|
|
+ if(resp.success==true){
|
|
|
+ _this.stdRegInfo.code = "";
|
|
|
+ _this.secCountDown = 60;
|
|
|
+ var int = setInterval(function(){
|
|
|
+ _this.secCountDown--;
|
|
|
+ if(_this.secCountDown == 0){
|
|
|
+ clearInterval(int);
|
|
|
+ //恢复 发送按钮
|
|
|
+ _this.secCountDownInfo = "发送验证码";
|
|
|
+ }else{
|
|
|
+ //倒计时提示
|
|
|
+ _this.secCountDownInfo = _this.secCountDown+"秒后可重新发送";
|
|
|
+ }
|
|
|
+ },1000);
|
|
|
+
|
|
|
+ $.Pop("验证码发送成功,请填写短信验证码!", 'alert', function () {});
|
|
|
+
|
|
|
+ }else if(resp.success==false && resp.errorMsg){
|
|
|
+ $.Pop(resp.errorMsg, 'alert', function () {});
|
|
|
+
|
|
|
+
|
|
|
+ }else{
|
|
|
+ $.Pop("验证码发送失败,请重新尝试!", 'alert', function () {});
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ //_this.freshImg();
|
|
|
+ //_this.validateCode = "";
|
|
|
+
|
|
|
+ })
|
|
|
+ },
|
|
|
+
|
|
|
+ countyChange:function(parent_id){
|
|
|
+
|
|
|
+ if(!parent_id) return;
|
|
|
+ let _this = this;
|
|
|
+
|
|
|
+ ajaxRequest("", '/std/stdRegInfo/queryCityCounty.htm', {std_city:parent_id}, function (resp) {
|
|
|
+ if (resp.success) {
|
|
|
+ _this.stdRegInfo.std_county='';
|
|
|
+
|
|
|
+ _this.countyArray = resp.array;
|
|
|
+ }
|
|
|
+
|
|
|
+ });
|
|
|
+ },
|
|
|
+
|
|
|
|
|
|
uploadIndentify:function(){
|
|
|
|
|
@@ -746,7 +874,72 @@
|
|
|
|
|
|
return;
|
|
|
}
|
|
|
+
|
|
|
+ if(!this.stdRegInfo.std_name){
|
|
|
+ $.Pop("请填写姓名!", 'alert', function () {});
|
|
|
+ return;
|
|
|
+ }else{
|
|
|
+ if(this.stdRegInfo.std_name.length>15){
|
|
|
+ $.Pop("请输入正确中文姓名且长度在15个字范围内!", 'alert', function () {});
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
+ var regEn =/^((?![\u3000-\u303F])[\u2E80-\uFE4F]|\·)*(?![\u3000-\u303F])[\u2E80-\uFE4F](\·)*$/;
|
|
|
+ if (!regEn.test(this.stdRegInfo.std_name)) {
|
|
|
+ $.Pop("请输入正确中文姓名且长度在15个字范围内!", 'alert', function () {});
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ if(!this.stdRegInfo.std_city){
|
|
|
+ $.Pop("请选择地(市)!", 'alert', function () {});
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
+ if(!this.stdRegInfo.std_county){
|
|
|
+ $.Pop("请选择区(县)!", 'alert', function () {});
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
+ if(!this.stdRegInfo.std_mobile){
|
|
|
+ $.Pop("请填写手机号!", 'alert', function () {});
|
|
|
+ return;
|
|
|
+ }else if(this.stdRegInfo.std_mobile.length != 11){
|
|
|
+ $.Pop("请填写11位手机号!", 'alert', function () {});
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
+ if(!this.stdRegInfo.code){
|
|
|
+ $.Pop("请填写短信验证码!", 'alert', function () {});
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
+ if(!this.stdRegInfo.std_pass1){
|
|
|
+ $.Pop("请填写密码!", 'alert', function () {});
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
+ if(!this.stdRegInfo.std_pass2){
|
|
|
+ $.Pop("请填写确认密码!", 'alert', function () {});
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
+ if (this.stdRegInfo.std_pass1 !== this.stdRegInfo.std_pass2) {
|
|
|
+ $.Pop("两次输入密码不一致!", 'alert', function () {});
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
+ var regex = new RegExp('(?=.*[0-9])(?=.*[a-zA-Z])(?=.*[^a-zA-Z0-9]).{10,30}');
|
|
|
+ if (!regex.test(this.stdRegInfo.std_pass1)) {
|
|
|
+ $.Pop('密码必须包含字母、数字、特殊字符至少10个字符!', 'alert', function () {});
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
this.$refs['stdRegInfo'].validate(function(valid) {
|
|
|
+
|
|
|
var this_ = window['Vue'];
|
|
|
if (valid) {
|
|
|
//clone对象
|
|
@@ -775,7 +968,7 @@
|
|
|
}
|
|
|
|
|
|
$('#sbt').hide();
|
|
|
- ajaxRequest("", '/std/stdRegInfo/reg.htm', stdRegInfo, function (resp) {
|
|
|
+ ajaxRequest("", '/std/stdRegInfo/regForApp.htm', stdRegInfo, function (resp) {
|
|
|
|
|
|
if (resp.success) {
|
|
|
$('#sbt').show();
|
|
@@ -881,11 +1074,10 @@
|
|
|
width: 50% !important
|
|
|
}
|
|
|
.el-input__icon{
|
|
|
- height:14px !important
|
|
|
+ height:25px !important
|
|
|
}
|
|
|
|
|
|
.el-icon-arrow-up{
|
|
|
- background: url(../image/icon/up.png) !important;
|
|
|
background-repeat: no-repeat !important;
|
|
|
margin-right: 2px !important;
|
|
|
background-position: center !important;
|