Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
W
web-site
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张冬
web-site
Commits
af82f3c7
Commit
af82f3c7
authored
Sep 28, 2020
by
吴冠
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化注册
parent
cbdbdd33
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
12 deletions
+20
-12
examine.vue
pages/login/examine.vue
+20
-12
No files found.
pages/login/examine.vue
View file @
af82f3c7
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
<el-step
title=
"审核"
></el-step>
<el-step
title=
"审核"
></el-step>
</el-steps>
</el-steps>
<!-- 注册 -->
<!-- 注册 -->
<div
class=
"register"
v-if=
"active ==
0
"
>
<div
class=
"register"
v-if=
"active ==
1
"
>
<div
class=
"company"
>
<div
class=
"company"
>
<h4>
单位信息
</h4>
<h4>
单位信息
</h4>
<el-form
ref=
"form"
:model=
"form"
label-width=
"1.4rem"
:rules=
"rules"
>
<el-form
ref=
"form"
:model=
"form"
label-width=
"1.4rem"
:rules=
"rules"
>
...
@@ -397,19 +397,19 @@
...
@@ -397,19 +397,19 @@
</div>
</div>
<!-- 完善 -->
<!-- 完善 -->
<div
class=
"perfect content"
v-if=
"active ==
1
"
>
<div
class=
"perfect content"
v-if=
"active ==
0
"
>
<div
class=
"flex-between perfect-head"
>
<div
class=
"flex-between perfect-head"
>
<div
class=
"t2 flex"
>
<div
class=
"t2 flex"
>
<div>
单位名称:
</div>
<div>
单位名称:
</div>
<div>
腾讯
</div>
<div>
{{
cpName
}}
</div>
</div>
</div>
<div
class=
"t2 flex"
>
<div
class=
"t2 flex"
>
<div>
注册角色:
</div>
<div>
注册角色:
</div>
<div>
供应商
</div>
<div>
{{
regName
}}
</div>
</div>
</div>
<div
class=
"t2 flex"
>
<div
class=
"t2 flex"
>
<div>
行政区域:
</div>
<div>
行政区域:
</div>
<div>
浙江省 杭州市 滨江区
</div>
<div>
{{
area
}}
</div>
</div>
</div>
</div>
</div>
<el-form
<el-form
...
@@ -809,8 +809,7 @@ export default {
...
@@ -809,8 +809,7 @@ export default {
);
);
let
a
=
value
.
replace
(
reg
,
""
);
let
a
=
value
.
replace
(
reg
,
""
);
console
.
log
(
a
+
"--------------"
);
console
.
log
(
a
+
"--------------"
);
this
.
perfectForm
.
legalPersonPhone
=
a
;
this
.
adminform
.
phonenumber
=
a
this
.
adminform
.
phonenumber
=
a
;
return
callback
(
new
Error
(
"您的输入有误,请重新输入!"
));
return
callback
(
new
Error
(
"您的输入有误,请重新输入!"
));
}
else
{
}
else
{
...
@@ -826,6 +825,7 @@ export default {
...
@@ -826,6 +825,7 @@ export default {
var
reg
=
new
RegExp
(
var
reg
=
new
RegExp
(
"^[A-z。?!,、 ; : “ ” ‘ ’ ( ) 《 》 〈 〉 【 】 『 』 「 」 ﹃ ﹄ 〔 〕 … — ~ ﹏ ¥.]"
"^[A-z。?!,、 ; : “ ” ‘ ’ ( ) 《 》 〈 〉 【 】 『 』 「 」 ﹃ ﹄ 〔 〕 … — ~ ﹏ ¥.]"
);
);
console
.
log
(
value
+
'+++++++++++++++'
)
let
a
=
value
.
replace
(
reg
,
""
);
let
a
=
value
.
replace
(
reg
,
""
);
console
.
log
(
a
+
"--------------"
);
console
.
log
(
a
+
"--------------"
);
this
.
adminform
.
idNumber
=
a
;
this
.
adminform
.
idNumber
=
a
;
...
@@ -837,12 +837,13 @@ export default {
...
@@ -837,12 +837,13 @@ export default {
};
};
//统一社会代码
//统一社会代码
let
validateRealSHid
=
(
rule
,
value
,
callback
)
=>
{
let
validateRealSHid
=
(
rule
,
value
,
callback
)
=>
{
const
realnameReg
=
/^
[
_IOZSVa-z
\W]{2}\d{6}[^
_IOZSVa-z
\W]{10}
$/g
;
const
realnameReg
=
/^
[
A-Z0-9
]
+$/
;
/* setTimeout(() => { */
/* setTimeout(() => { */
if
(
!
realnameReg
.
test
(
value
))
{
if
(
!
realnameReg
.
test
(
value
))
{
var
reg
=
new
RegExp
(
var
reg
=
new
RegExp
(
"^[a-z。?!,、 ; : “ ” ‘ ’ ( ) 《 》 〈 〉 【 】 『 』 「 」 ﹃ ﹄ 〔 〕 … — ~ ﹏ ¥.]"
"^[a-z。?!,、 ; : “ ” ‘ ’ ( ) 《 》 〈 〉 【 】 『 』 「 」 ﹃ ﹄ 〔 〕 … — ~ ﹏ ¥.]"
);
);
let
a
=
value
.
replace
(
reg
,
""
);
let
a
=
value
.
replace
(
reg
,
""
);
console
.
log
(
a
+
"--------------"
);
console
.
log
(
a
+
"--------------"
);
this
.
perfectForm
.
socialCode
=
a
;
this
.
perfectForm
.
socialCode
=
a
;
...
@@ -869,7 +870,7 @@ export default {
...
@@ -869,7 +870,7 @@ export default {
/* }, 1000); */
/* }, 1000); */
};
};
let
validateRealPrice
=
(
rule
,
value
,
callback
)
=>
{
let
validateRealPrice
=
(
rule
,
value
,
callback
)
=>
{
const
realnameReg
=
/^
[
1-9
]{1}[
0-9
]{9}
|^
[
1-9
]{1}[
0-9
]{6}\.[
0-9
]{1,2}
/
;
const
realnameReg
=
/^
[
0-9
]
+
(
.
[
0-9
]{2})?
$
/
;
/* setInterval(() => { */
/* setInterval(() => { */
if
(
!
realnameReg
.
test
(
value
))
{
if
(
!
realnameReg
.
test
(
value
))
{
var
reg
=
new
RegExp
(
var
reg
=
new
RegExp
(
...
@@ -888,6 +889,9 @@ export default {
...
@@ -888,6 +889,9 @@ export default {
this.flag = true; */
this.flag = true; */
return
{
return
{
cpName
:
""
,
regName
:
''
,
area
:
''
,
Verification
:
true
,
Verification
:
true
,
timer
:
60
,
timer
:
60
,
centerDialogVisible
:
false
,
centerDialogVisible
:
false
,
...
@@ -903,7 +907,7 @@ export default {
...
@@ -903,7 +907,7 @@ export default {
flag
:
true
,
//该值变化,就会触发刷新
flag
:
true
,
//该值变化,就会触发刷新
code
:
""
,
//刷新后的验证码
code
:
""
,
//刷新后的验证码
active
:
0
,
active
:
0
,
checked
:
fals
e
,
checked
:
tru
e
,
adminform
:
{
adminform
:
{
name
:
""
,
name
:
""
,
idNumber
:
""
,
idNumber
:
""
,
...
@@ -1112,7 +1116,7 @@ export default {
...
@@ -1112,7 +1116,7 @@ export default {
},
},
{
{
validator
:
validateRealSHid
,
validator
:
validateRealSHid
,
}
,
}
],
],
companyNature
:
[
companyNature
:
[
{
{
...
@@ -1238,7 +1242,7 @@ export default {
...
@@ -1238,7 +1242,7 @@ export default {
const
valid1
=
await
this
.
$refs
[
"adminform"
].
validate
();
const
valid1
=
await
this
.
$refs
[
"adminform"
].
validate
();
if
(
valid
&&
valid1
)
{
if
(
valid
&&
valid1
)
{
let
checked
=
this
.
checked
;
let
checked
=
this
.
checked
;
if
(
checked
)
{
if
(
!
checked
)
{
this
.
$message
.
error
(
"请勾选协议"
);
this
.
$message
.
error
(
"请勾选协议"
);
}
else
{
}
else
{
let
message
=
{};
let
message
=
{};
...
@@ -1247,6 +1251,10 @@ export default {
...
@@ -1247,6 +1251,10 @@ export default {
const
{
msg
,
code
,
data
}
=
await
verifyPhone
(
message
);
const
{
msg
,
code
,
data
}
=
await
verifyPhone
(
message
);
if
(
code
===
200
)
{
if
(
code
===
200
)
{
this
.
active
++
;
this
.
active
++
;
this
.
perfectForm
.
legalPersonPhone
=
this
.
adminform
.
phonenumber
this
.
cpName
=
this
.
form
.
companyName
this
.
regname
=
this
.
form
.
type
this
.
area
=
this
.
form
.
provinceId
+
this
.
form
.
cityId
+
this
.
form
.
districtId
}
else
{
}
else
{
this
.
$message
.
error
(
msg
);
this
.
$message
.
error
(
msg
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment