kun 19/10/14 22:32
This commit is contained in:
@@ -462,7 +462,7 @@ export default {
|
||||
},
|
||||
/** 下一步 */
|
||||
btn(index) {
|
||||
let regd = /(\d3,4|\d{3,4}-|\s)?\d{8}/
|
||||
let regd = /^(\(\d{3,4}\)|\d{3,4}-|\s)?\d{7,14}$/
|
||||
let regs = /^(0|86|17951)?(13[0-9]|15[012356789]|166|17[3678]|18[0-9]|14[57])[0-9]{8}$/
|
||||
let s = this.sub;
|
||||
s = index;
|
||||
@@ -536,6 +536,10 @@ export default {
|
||||
},
|
||||
/** 保存和提交 */
|
||||
submit(index) {
|
||||
let regd = /^(\(\d{3,4}\)|\d{3,4}-|\s)?\d{7,14}$/
|
||||
let regs = /^(0|86|17951)?(13[0-9]|15[012356789]|166|17[3678]|18[0-9]|14[57])[0-9]{8}$/
|
||||
|
||||
|
||||
if (this.sub == 1) {
|
||||
if (this.prespo == '' || this.respoadd == '' || this.respopcode == '' ||
|
||||
this.respomail == '' || this.respopname == '' ||
|
||||
@@ -548,6 +552,12 @@ export default {
|
||||
) {
|
||||
alert('以上内容不可为空!')
|
||||
return
|
||||
} else if (!regd.test(this.respoophone) || !regd.test(this.respocophone)) {
|
||||
alert('请填写正确的电话号码!')
|
||||
return
|
||||
} if (!regs.test(this.respoptel) || !regs.test(this.respoctel)) {
|
||||
alert('请填写正确的手机号码!')
|
||||
return
|
||||
} else if (this.thff == false) {
|
||||
alert('请同意:申报单位承诺')
|
||||
return
|
||||
@@ -592,7 +602,7 @@ export default {
|
||||
plcode: _this.plcode,
|
||||
pname: _this.pname,
|
||||
poster: _this.poster,
|
||||
poffice_tel: _this.poffice_tel,
|
||||
respoophone: _this.poffice_tel,
|
||||
aphone: _this.aphone,
|
||||
cname: _this.cname,
|
||||
cpost: _this.cpost,
|
||||
|
||||
Reference in New Issue
Block a user