Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
T
techbook
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
front-end-dev
techbook
Commits
2bcb1d24
Commit
2bcb1d24
authored
Aug 17, 2019
by
zhangyanni
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完善资料禁止重复提交
国旗样式修改
parent
e93425cf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
91 additions
and
25 deletions
+91
-25
common.scss
public/css/common.scss
+15
-0
completeInfoCmpt.vue
src/views/loginregister/pages/completeInfoCmpt.vue
+76
-25
No files found.
public/css/common.scss
View file @
2bcb1d24
...
...
@@ -377,6 +377,21 @@ h4{
.el-select-dropdown__item
.china
{
background-position
:
-1049px
0
;
}
.el-select-dropdown__item
.korea
{
background-position
:
-2787px
0
;
}
.el-select-dropdown__item
.america
{
background-position
:
-5241px
0
;
}
.el-select-dropdown__item
.israel
{
background-position
:
-2369px
0
;
}
.el-select-dropdown__item
.finland
{
background-position
:
-1621px
0
;
}
.el-select-dropdown__item
.russia
{
background-position
:
-4295px
0
;
}
//隐藏的input
.is-hidden
{
position
:
absolute
;
left
:
-10000px
;
top
:
-10000px
;
...
...
src/views/loginregister/pages/completeInfoCmpt.vue
View file @
2bcb1d24
...
...
@@ -12,8 +12,8 @@
</el-radio-group>
</el-form-item>
<p
style=
"margin-top: -17px;"
>
<span
class=
"description"
v-if=
""
>
主营业务在中国,有创新型技术/产品需求的行业头部企业,以新三板企业标准为最低参考
</span>
<span
class=
"description"
>
可提交项目,可自荐项目
</span>
<span
class=
"description"
v-if=
"
infoForm.type==0
"
>
主营业务在中国,有创新型技术/产品需求的行业头部企业,以新三板企业标准为最低参考
</span>
<span
class=
"description"
v-if=
"infoForm.type==1"
>
可提交项目,可自荐项目
</span>
</p>
<p
class=
"labelItem"
v-if=
"lang==1"
>
您的邮箱
</p>
<el-form-item
prop=
"email"
v-if=
"lang==1"
>
...
...
@@ -47,7 +47,7 @@
<vue-select
:options=
"options"
maxHeight=
"200px"
v-model
.
trim=
"infoForm.name"
placeholder=
"请填写推荐人姓名"
></vue-select>
</el-form-item>
<el-form-item>
<el-button
type=
"primary"
class=
"loginButton"
@
click=
"handleRegister('infoForm')"
>
完成注册
<el-button
type=
"primary"
class=
"loginButton"
:disabled=
"disabledFlag>0"
@
click=
"handleRegister('infoForm')"
>
完成注册
</el-button>
</el-form-item>
</el-form>
...
...
@@ -71,15 +71,15 @@
options
:[],
//推荐人
infoForm
:
{
channel
:
null
,
type
:
1
,
type
:
0
,
email
:
""
,
phone
:
""
,
name
:
""
,
refereesId
:
""
//推荐人姓名
},
typeList
:[
{
id
:
1
,
name
:
"找项目
"
},
{
id
:
0
,
name
:
"找客户
"
}
{
id
:
0
,
name
:
"找客户
"
},
{
id
:
1
,
name
:
"找项目
"
}
],
channelList
:[
{
id
:
1
,
name
:
"太库业务人员"
},
...
...
@@ -113,32 +113,67 @@
cityNo
:
"+49"
,
value
:
"2"
,
city
:
"deguo"
}]
},{
label
:
"South Korea(韩国)"
,
cityNo
:
"+82"
,
value
:
"3"
,
city
:
"korea"
},{
label
:
"Unites States(美国)"
,
cityNo
:
"+1"
,
value
:
"4"
,
city
:
"america"
},{
label
:
"Israel(以色列)"
,
cityNo
:
"+972"
,
value
:
"5"
,
city
:
"israel"
},{
label
:
"Finland(芬兰)"
,
cityNo
:
"+358"
,
value
:
"6"
,
city
:
"finland"
},{
label
:
"Russia(俄罗斯)"
,
cityNo
:
"+7"
,
value
:
"7"
,
city
:
"russia"
}],
disabledFlag
:
0
}
},
methods
:{
//完成注册
handleRegister
(
formName
){
const
that
=
this
;
console
.
log
(
this
.
flag
)
this
.
$refs
[
formName
].
validate
((
valid
)
=>
{
if
(
valid
)
{
that
.
infoForm
.
refereesId
=
that
.
infoForm
.
name
.
id
?
that
.
infoForm
.
name
.
id
:
""
;
let
params
=
{
channel
:
that
.
infoForm
.
channel
,
type
:
that
.
infoForm
.
type
,
email
:
that
.
infoForm
.
email
,
phone
:
that
.
infoForm
.
phone
?
publicFunc
.
getLabelByIdPublic
(
that
.
flag
,
that
.
cities
,
"cityNo"
,
"value"
)
+
that
.
infoForm
.
phone
:
""
,
name
:
that
.
infoForm
.
name
,
refereesId
:
that
.
infoForm
.
refereesId
//推荐人姓名
};
console
.
log
(
params
);
that
.
submitCompleteInfo
(
params
);
}
else
{
console
.
log
(
'error submit!!'
);
if
(
this
.
disabledFlag
==
0
){
this
.
disabledFlag
++
;
this
.
$refs
[
formName
].
validate
((
valid
)
=>
{
if
(
valid
)
{
that
.
infoForm
.
refereesId
=
that
.
infoForm
.
name
.
id
?
that
.
infoForm
.
name
.
id
:
""
;
let
params
=
{
channel
:
that
.
infoForm
.
channel
,
type
:
that
.
infoForm
.
type
,
email
:
that
.
infoForm
.
email
,
phone
:
that
.
infoForm
.
phone
?
publicFunc
.
getLabelByIdPublic
(
that
.
flag
,
that
.
cities
,
"cityNo"
,
"value"
)
+
that
.
infoForm
.
phone
:
""
,
name
:
that
.
infoForm
.
name
,
refereesId
:
that
.
infoForm
.
refereesId
//推荐人姓名
};
that
.
submitCompleteInfo
(
params
);
}
else
{
setTimeout
(
function
(){
that
.
disabledFlag
=
0
;
return
false
;
},
500
)
}
});
}
else
{
setTimeout
(
function
(){
that
.
disabledFlag
=
0
;
return
false
;
}
}
);
}
,
500
)
}
},
//提交完善资料
...
...
@@ -147,16 +182,32 @@
api
.
postCompleteInfoAxios
(
params
).
then
((
res
)
=>
{
if
(
res
.
code
==
0
){
that
.
$router
.
replace
(
"/successCmpt"
);
setTimeout
(
function
(){
that
.
disabledFlag
=
0
;
return
false
;
},
500
)
}
else
{
if
(
res
.
code
==
999
){
if
(
that
.
lang
==
1
)
that
.
$router
.
replace
(
"/mobileLoginCmpt"
);
else
that
.
$router
.
replace
(
"/emailLoginCmpt"
);
setTimeout
(
function
(){
that
.
disabledFlag
=
0
;
return
false
;
},
500
)
}
else
{
that
.
$message
.
error
(
res
.
msg
);
setTimeout
(
function
(){
that
.
disabledFlag
=
0
;
return
false
;
},
500
)
}
}
}).
catch
((
err
)
=>
{
that
.
$message
.
error
(
err
);
setTimeout
(
function
(){
that
.
disabledFlag
=
0
;
return
false
;
},
500
)
})
},
...
...
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