Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
campSite
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
杨梦雪
campSite
Commits
eddf45db
Commit
eddf45db
authored
Oct 22, 2021
by
杨梦雪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1111
parent
b6d0c2bf
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
252 additions
and
221 deletions
+252
-221
src/App.vue
src/App.vue
+28
-28
src/common/validator.js
src/common/validator.js
+75
-75
src/components/index/SignUp/ConfirmSignUp.vue
src/components/index/SignUp/ConfirmSignUp.vue
+35
-65
src/components/index/SignUp/referInfo.vue
src/components/index/SignUp/referInfo.vue
+63
-48
src/request/index/network.js
src/request/index/network.js
+4
-1
src/views/index/Index.vue
src/views/index/Index.vue
+12
-0
src/views/index/camp/SignUp.vue
src/views/index/camp/SignUp.vue
+1
-1
src/views/index/login/Reset.vue
src/views/index/login/Reset.vue
+5
-2
src/views/index/recruit/Index.vue
src/views/index/recruit/Index.vue
+29
-1
No files found.
src/App.vue
View file @
eddf45db
...
@@ -5,42 +5,42 @@
...
@@ -5,42 +5,42 @@
</
template
>
</
template
>
<
script
>
<
script
>
/* eslint-disable */
/* eslint-disable */
import
{
getCam
}
from
"
r/index/login
"
;
export
default
{
export
default
{
name
:
"
recruit
"
,
name
:
"
recruit
"
,
data
()
{
data
()
{
return
{};
return
{};
},
},
created
()
{
created
()
{
window
.
localStorage
.
setItem
(
//
window.localStorage.setItem(
"
index-identity
"
,
//
"index-identity",
"
c59086fdb37848e7a10765812d1da349
"
//
"c59086fdb37848e7a10765812d1da349"
);
//
);
this
.
getCam
();
//
this.getCam();
},
},
methods
:
{
methods
:
{
getCam
()
{
//
getCam() {
getCam
({}).
then
((
res
)
=>
{
//
getCam({}).then((res) => {
console
.
log
(
res
,
"
getCam
"
);
//
console.log(res, "getCam");
let
root
=
document
.
querySelector
(
"
:root
"
);
//
let root = document.querySelector(":root");
root
.
style
.
setProperty
(
"
--color
"
,
res
.
data
.
system_color
);
//
root.style.setProperty("--color", res.data.system_color);
root
.
style
.
setProperty
(
"
--bk_pic
"
,
res
.
data
.
background_picture
);
//当前营地的背景图
//
root.style.setProperty("--bk_pic", res.data.background_picture); //当前营地的背景图
//当前营地logo
//
//当前营地logo
window
.
localStorage
.
setItem
(
"
system_logo
"
,
res
.
data
.
system_logo
);
//
window.localStorage.setItem("system_logo", res.data.system_logo);
window
.
localStorage
.
setItem
(
//
window.localStorage.setItem(
"
doubt_code
"
,
//
"doubt_code",
res
.
data
.
fill_individual_Invitationcode
//
res.data.fill_individual_Invitationcode
);
//是否填写邀请码
//
); //是否填写邀请码
window
.
localStorage
.
setItem
(
//
window.localStorage.setItem(
"
doubt_info
"
,
//
"doubt_info",
res
.
data
.
fill_individual_information
//
res.data.fill_individual_information
);
//是否填写个人资料
//
); //是否填写个人资料
window
.
localStorage
.
setItem
(
//
window.localStorage.setItem(
"
doubt_check
"
,
//
"doubt_check",
res
.
data
.
audit_individual_information
//
res.data.audit_individual_information
);
//是否审核个人资料
//
); //是否审核个人资料
});
//
});
},
//
},
},
},
};
};
</
script
>
</
script
>
...
...
src/common/validator.js
View file @
eddf45db
...
@@ -98,4 +98,4 @@ export default {
...
@@ -98,4 +98,4 @@ export default {
},
},
}
}
src/components/index/SignUp/ConfirmSignUp.vue
View file @
eddf45db
...
@@ -6,11 +6,12 @@
...
@@ -6,11 +6,12 @@
top=
"0"
top=
"0"
:close-on-click-modal=
"false"
:close-on-click-modal=
"false"
@
open=
"confirm()"
@
open=
"confirm()"
@
close=
"cancelBtn()"
>
>
<div
class=
"pay_code"
>
<div
class=
"pay_code"
>
<div
v-if=
"isShowqr"
>
<div
v-if=
"isShowqr"
>
<
div
class=
"pay_time"
>
支付剩余时间
<span>
15分30秒
</span></div
>
<
!--
<div
class=
"pay_time"
>
支付剩余时间
<span>
15分30秒
</span></div>
--
>
<div>
¥
{{
has_amount
}}
</div>
<div
class=
"money"
>
¥
{{
has_amount
}}
</div>
<div
class=
"img_qr"
>
<div
class=
"img_qr"
>
<div
class=
"qrcode"
ref=
"qrCodeUrl"
></div>
<div
class=
"qrcode"
ref=
"qrCodeUrl"
></div>
</div>
</div>
...
@@ -26,7 +27,7 @@
...
@@ -26,7 +27,7 @@
<span
slot=
"footer"
class=
"dialog-footer"
>
<span
slot=
"footer"
class=
"dialog-footer"
>
<div
class=
"btn"
>
<div
class=
"btn"
>
<el-button
@
click=
"updateCode()"
>
刷新二维码
</el-button>
<el-button
@
click=
"updateCode()"
>
刷新二维码
</el-button>
<
el-button
class=
"cancel"
@
click=
"cancelBtn()"
>
取 消
</el-button
>
<
!--
<el-button
class=
"cancel"
@
click=
"cancelBtn()"
>
取 消
</el-button>
--
>
</div>
</div>
</span>
</span>
</el-dialog>
</el-dialog>
...
@@ -87,18 +88,18 @@ export default {
...
@@ -87,18 +88,18 @@ export default {
this
.
confirm
();
this
.
confirm
();
},
},
createQrCode
(
qrCode
)
{
createQrCode
(
qrCode
)
{
this
.
removeQr
();
var
qrcode
=
new
QRCode
(
this
.
$refs
.
qrCodeUrl
,
{
var
qrcode
=
new
QRCode
(
this
.
$refs
.
qrCodeUrl
,
{
text
:
qrCode
,
// 需要转换为二维码的内容
text
:
qrCode
,
// 需要转换为二维码的内容
width
:
1
2
0
,
width
:
1
4
0
,
height
:
1
2
0
,
height
:
1
4
0
,
colorDark
:
"
#000000
"
,
colorDark
:
"
#000000
"
,
colorLight
:
"
#ffffff
"
,
colorLight
:
"
#ffffff
"
,
correctLevel
:
QRCode
.
CorrectLevel
.
H
,
correctLevel
:
QRCode
.
CorrectLevel
.
H
,
});
});
},
},
// 确认,关闭弹框,修改父组件的值
// 删除二维码img标签
cancelBtn
()
{
removeQr
()
{
// 关闭时,删除二维码img标签
if
(
this
.
$refs
.
qrCodeUrl
)
{
if
(
this
.
$refs
.
qrCodeUrl
)
{
// 获取 父 标签下的所有子节点
// 获取 父 标签下的所有子节点
let
pObjs
=
this
.
$refs
.
qrCodeUrl
.
childNodes
;
let
pObjs
=
this
.
$refs
.
qrCodeUrl
.
childNodes
;
...
@@ -108,7 +109,11 @@ export default {
...
@@ -108,7 +109,11 @@ export default {
this
.
$refs
.
qrCodeUrl
.
removeChild
(
pObjs
[
i
]);
this
.
$refs
.
qrCodeUrl
.
removeChild
(
pObjs
[
i
]);
}
}
}
}
},
// 确认,关闭弹框,修改父组件的值
cancelBtn
()
{
// 关闭时,删除二维码img标签
this
.
removeQr
();
this
.
closeWebSocket
();
this
.
closeWebSocket
();
this
.
dialogVisible
=
false
;
this
.
dialogVisible
=
false
;
this
.
$emit
(
"
closeCFSUDialog
"
,
this
.
dialogVisible
,
false
);
this
.
$emit
(
"
closeCFSUDialog
"
,
this
.
dialogVisible
,
false
);
...
@@ -265,74 +270,39 @@ export default {
...
@@ -265,74 +270,39 @@ export default {
</
script
>
</
script
>
<
style
scoped
lang=
"scss"
>
<
style
scoped
lang=
"scss"
>
.btn
{
text-align
:
center
;
padding-bottom
:
24px
;
}
.el-button
{
width
:
200px
;
height
:
50px
;
background
:
var
(
--
color
);
border-radius
:
4px
;
opacity
:
0
.8
;
line-height
:
50px
;
text-align
:
center
;
color
:
#fff
;
font-size
:
16px
;
padding
:
0
;
}
.pay_code
{
.pay_code
{
text-align
:
center
;
text-align
:
center
;
:nth-child
(
1
)
{
font-size
:
14px
;
.money
{
font-weight
:
500
;
font-size
:
20px
;
color
:
#12141c
;
line-height
:
14px
;
span
{
font-size
:
13px
!
important
;
color
:
var
(
--
color
);
}
}
:nth-child
(
2
)
{
font-size
:
14px
;
font-weight
:
500
;
font-weight
:
500
;
color
:
var
(
--
color
);
color
:
var
(
--
color
);
line-height
:
24px
;
line-height
:
24px
;
}
}
:nth-child
(
4
)
{
font-size
:
14px
;
font-weight
:
500
;
color
:
#333333
;
line-height
:
16px
;
span
{
font-size
:
17px
!
important
;
color
:
#60194a
;
}
}
:nth-child
(
5
)
{
font-size
:
12px
;
font-weight
:
500
;
color
:
#666666
;
line-height
:
12px
;
}
}
}
// .info_2 {
// text-align: center;
// margin: 10px 0;
// line-height: 30px !important;
// .el-icon-warning {
// font-size: 30px;
// vertical-align: bottom;
// margin-right: 10px;
// color: #ee7602;
// }
// }
.img_qr
{
.img_qr
{
width
:
140px
;
width
:
140px
;
height
:
140px
;
height
:
140px
;
padding
:
10px
;
padding
:
10px
;
// border: 1px solid #000;
// border: 1px solid #000;
margin
:
0
auto
;
margin
:
0
auto
;
img
{
width
:
100%
;
height
:
120px
;
}
}
}
// ::v-deep .el-dialog__body {
// padding: 0 !important;
// }
// ::v-deep .el-icon-close:before {
// content: "";
// }
// ::v-deep .el-dialog__footer {
// padding: 30px 40px !important;
// text-align: center;
// .el-button {
// margin: 0 !important;
// }
// }
</
style
>
</
style
>
src/components/index/SignUp/referInfo.vue
View file @
eddf45db
...
@@ -205,6 +205,7 @@
...
@@ -205,6 +205,7 @@
v-model=
"referForm.school_city"
v-model=
"referForm.school_city"
clearable
clearable
placeholder=
"市"
placeholder=
"市"
@
change=
"changeCity($event)"
>
>
<el-option
<el-option
v-for=
"item in selectCitySchool"
v-for=
"item in selectCitySchool"
...
@@ -220,7 +221,7 @@
...
@@ -220,7 +221,7 @@
<el-form-item
label=
" "
prop=
"school"
>
<el-form-item
label=
" "
prop=
"school"
>
<el-select
v-model=
"referForm.school"
clearable
placeholder=
"中学"
>
<el-select
v-model=
"referForm.school"
clearable
placeholder=
"中学"
>
<el-option
<el-option
v-for=
"item in s
choolName
"
v-for=
"item in s
electSchoolList
"
:key=
"item.id"
:key=
"item.id"
:label=
"item.name"
:label=
"item.name"
:value=
"item.id"
:value=
"item.id"
...
@@ -230,20 +231,22 @@
...
@@ -230,20 +231,22 @@
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"中学联系人"
clearable
prop=
"school_contacts"
>
<el-form-item
label=
"中学联系人"
prop=
"school_contacts"
>
<el-input
<el-input
v-model=
"referForm.school_contacts"
v-model=
"referForm.school_contacts"
placeholder=
"填写中学联系人"
placeholder=
"填写中学联系人"
size=
"small"
size=
"small"
clearable
/>
/>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"中学联系电话"
clearable
prop=
"school_phone"
>
<el-form-item
label=
"中学联系电话"
prop=
"school_phone"
>
<el-input
<el-input
v-model=
"referForm.school_phone"
v-model=
"referForm.school_phone"
placeholder=
"填写中学联系电话"
placeholder=
"填写中学联系电话"
size=
"small"
size=
"small"
clearable
/>
/>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
...
@@ -310,7 +313,7 @@
...
@@ -310,7 +313,7 @@
</el-form-item>
</el-form-item>
<el-form-item
class=
"btn"
>
<el-form-item
class=
"btn"
>
<el-button
@
click=
"confirm
()
"
>
提交资料
</el-button>
<el-button
@
click=
"confirm"
>
提交资料
</el-button>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
</div>
</div>
...
@@ -327,7 +330,11 @@ import {
...
@@ -327,7 +330,11 @@ import {
getSchool
,
getSchool
,
}
from
"
r/index/signUp
"
;
}
from
"
r/index/signUp
"
;
import
{
upload
}
from
"
r/index/network
"
;
import
{
upload
}
from
"
r/index/network
"
;
import
validator
from
"
common/validator
"
;
import
{
validateid_card
,
validateEmail
,
validatePhone
,
}
from
"
common/validator
"
;
export
default
{
export
default
{
name
:
"
CheckForm
"
,
name
:
"
CheckForm
"
,
...
@@ -354,22 +361,21 @@ export default {
...
@@ -354,22 +361,21 @@ export default {
return
{
return
{
isUploading
:
false
,
// 图片上传蒙层
isUploading
:
false
,
// 图片上传蒙层
referForm
:
{
referForm
:
{
name
:
""
,
name
:
null
,
gender
:
""
,
gender
:
null
,
id_card
:
""
,
id_card
:
null
,
birthday
:
""
,
birthday
:
null
,
jiguan_code
:
undefined
,
jiguan_code
:
null
,
nation
:
""
,
nation
:
null
,
start_school_date
:
""
,
start_school_date
:
null
,
political_status
:
""
,
political_status
:
null
,
// phone: "",
// phone: null,
email
:
""
,
email
:
null
,
school_province
:
""
,
school_province
:
null
,
school_city
:
""
,
school_city
:
null
,
school
:
""
,
school
:
null
,
school_contacts
:
""
,
school_contacts
:
null
,
school_phone
:
""
,
school_phone
:
null
,
achievement_path
:
""
,
},
},
phone
:
""
,
phone
:
""
,
schoolName
:
[],
schoolName
:
[],
...
@@ -382,10 +388,9 @@ export default {
...
@@ -382,10 +388,9 @@ export default {
],
],
id_card
:
[
id_card
:
[
{
required
:
true
,
message
:
"
身份证号码不能为空!
"
,
trigger
:
"
blur
"
},
{
required
:
true
,
message
:
"
身份证号码不能为空!
"
,
trigger
:
"
blur
"
},
{
validator
:
validat
or
.
validat
eid_card
,
trigger
:
"
blur
"
},
{
validator
:
validateid_card
,
trigger
:
"
blur
"
},
],
],
birthday
:
[
birthday
:
[
// { required: true, message: "出生日期不能为空!", trigger: "change" },
{
{
required
:
true
,
required
:
true
,
validator
:
validateContent
,
validator
:
validateContent
,
...
@@ -402,7 +407,7 @@ export default {
...
@@ -402,7 +407,7 @@ export default {
{
{
required
:
true
,
required
:
true
,
message
:
"
高中入学年份不能为空!
"
,
message
:
"
高中入学年份不能为空!
"
,
trigger
:
"
blur
"
,
trigger
:
"
change
"
,
},
},
],
],
political_status
:
[
political_status
:
[
...
@@ -410,7 +415,7 @@ export default {
...
@@ -410,7 +415,7 @@ export default {
],
],
email
:
[
email
:
[
{
required
:
true
,
message
:
"
邮箱不能为空!
"
,
trigger
:
"
blur
"
},
{
required
:
true
,
message
:
"
邮箱不能为空!
"
,
trigger
:
"
blur
"
},
{
validator
:
validat
or
.
validat
eEmail
,
trigger
:
"
blur
"
},
{
validator
:
validateEmail
,
trigger
:
"
blur
"
},
],
],
school_province
:
[
school_province
:
[
{
{
...
@@ -434,15 +439,16 @@ export default {
...
@@ -434,15 +439,16 @@ export default {
],
],
school_phone
:
[
school_phone
:
[
{
required
:
true
,
message
:
"
手机号不能为空!
"
,
trigger
:
"
blur
"
},
{
required
:
true
,
message
:
"
手机号不能为空!
"
,
trigger
:
"
blur
"
},
{
validator
:
validat
or
.
validat
ePhone
,
trigger
:
"
blur
"
},
{
validator
:
validatePhone
,
trigger
:
"
blur
"
},
],
],
},
},
selectProvince
:
[],
selectProvince
:
[],
//省份
CityName
:
{},
CityName
:
{},
//根据省份筛选出所有城市的对象
selectCityJiguan
:
[],
selectCityJiguan
:
[],
//籍贯城市列表
selectCitySchool
:
[],
selectCitySchool
:
[],
//就读中学-城市列表
jgProvinceCode
:
""
,
selectSchoolList
:
[],
//就读中学-中学列表
jiguan_city
:
null
,
jgProvinceCode
:
""
,
//省份id
jiguan_city
:
""
,
//城市id(和省份id拼接)
yearArrs
:
[],
//生日涉及的近10年的年份
yearArrs
:
[],
//生日涉及的近10年的年份
monthArrs
:
[
monthArrs
:
[
"
01
"
,
"
01
"
,
...
@@ -501,8 +507,7 @@ export default {
...
@@ -501,8 +507,7 @@ export default {
fileList
:
[],
fileList
:
[],
resultPicture
:
""
,
resultPicture
:
""
,
dialogVisible
:
false
,
dialogVisible
:
false
,
disabled
:
false
,
disabled
:
false
,
//限制输入框
};
};
},
},
created
()
{
created
()
{
...
@@ -618,6 +623,16 @@ export default {
...
@@ -618,6 +623,16 @@ export default {
this
.
referForm
.
school
=
""
;
this
.
referForm
.
school
=
""
;
}
}
},
},
changeCity
(
value
)
{
let
selectSchool
=
[];
for
(
const
key
in
this
.
schoolName
)
{
if
(
this
.
schoolName
[
key
].
city_id
==
value
)
{
selectSchool
.
push
(
this
.
schoolName
[
key
]);
}
}
this
.
selectSchoolList
=
selectSchool
;
this
.
selectSchoolList
=
selectSchool
;
},
// 获取学校
// 获取学校
getSchool
()
{
getSchool
()
{
...
@@ -776,11 +791,12 @@ export default {
...
@@ -776,11 +791,12 @@ export default {
});
});
});
});
},
},
confirm
()
{
confirm
()
{
// this.$refs["referRef"].validate((valid) => {
this
.
$refs
[
"
referRef
"
].
validate
((
valid
)
=>
{
// console.log(2222)
console
.
log
(
valid
);
// if (!valid) return;
if
(
!
valid
)
return
;
console
.
log
(
"
11
"
,
valid
);
// return;
setAccount
(
this
.
referForm
).
then
((
res
)
=>
{
setAccount
(
this
.
referForm
).
then
((
res
)
=>
{
console
.
log
(
res
,
"
setAccount
"
);
console
.
log
(
res
,
"
setAccount
"
);
if
(
res
.
data
.
code
!=
200
)
{
if
(
res
.
data
.
code
!=
200
)
{
...
@@ -789,9 +805,8 @@ export default {
...
@@ -789,9 +805,8 @@ export default {
this
.
$emit
(
"
getstatus
"
,
res
.
data
.
status
);
this
.
$emit
(
"
getstatus
"
,
res
.
data
.
status
);
this
.
$message
.
success
(
"
提交审核成功
"
);
this
.
$message
.
success
(
"
提交审核成功
"
);
this
.
$router
.
push
(
"
/signUp/check
"
);
this
.
$router
.
push
(
"
/signUp/check
"
);
});
});
//
});
});
},
},
},
},
};
};
...
...
src/request/index/network.js
View file @
eddf45db
...
@@ -109,6 +109,7 @@ export function request(config) {
...
@@ -109,6 +109,7 @@ export function request(config) {
const
getCam
=
'
/web/auth/getCam
'
;
const
getCam
=
'
/web/auth/getCam
'
;
const
registerCode
=
'
/web/code/registerCode
'
;
const
registerCode
=
'
/web/code/registerCode
'
;
const
passwordCode
=
'
/web/code/passwordCode
'
;
const
passwordCode
=
'
/web/code/passwordCode
'
;
const
changePassCode
=
'
/web/auth/changePassCode
'
;
const
loginOut
=
'
/web/auth/loginOut
'
;
const
loginOut
=
'
/web/auth/loginOut
'
;
console
.
log
(
config
)
console
.
log
(
config
)
if
(
if
(
...
@@ -117,7 +118,9 @@ export function request(config) {
...
@@ -117,7 +118,9 @@ export function request(config) {
config
.
url
.
indexOf
(
passMsgOld
)
!=
-
1
||
config
.
url
.
indexOf
(
passMsgOld
)
!=
-
1
||
config
.
url
.
indexOf
(
getCam
)
!=
-
1
||
config
.
url
.
indexOf
(
getCam
)
!=
-
1
||
config
.
url
.
indexOf
(
registerCode
)
!=
-
1
||
config
.
url
.
indexOf
(
registerCode
)
!=
-
1
||
config
.
url
.
indexOf
(
passwordCode
)
!=
-
1
config
.
url
.
indexOf
(
changePassCode
)
!=
-
1
||
config
.
url
.
indexOf
(
passwordCode
)
!=
-
1
||
config
.
url
.
indexOf
(
loginOut
)
!=
-
1
)
{
)
{
return
config
return
config
}
}
...
...
src/views/index/Index.vue
View file @
eddf45db
...
@@ -13,12 +13,24 @@
...
@@ -13,12 +13,24 @@
/* eslint-disable */
/* eslint-disable */
import
Header
from
"
../../components/index/Header
"
;
import
Header
from
"
../../components/index/Header
"
;
import
Footer
from
"
../../components/index/Footer
"
;
import
Footer
from
"
../../components/index/Footer
"
;
export
default
{
export
default
{
name
:
"
index-index
"
,
name
:
"
index-index
"
,
components
:
{
components
:
{
Header
,
Header
,
Footer
,
Footer
,
},
},
data
()
{
return
{};
},
created
()
{
console
.
log
(
'
created
'
)
},
methods
:
{
},
};
};
</
script
>
</
script
>
<
style
lang=
"scss"
>
<
style
lang=
"scss"
>
...
...
src/views/index/camp/SignUp.vue
View file @
eddf45db
...
@@ -76,7 +76,7 @@ export default {
...
@@ -76,7 +76,7 @@ export default {
// 点击邀请码下一步传来的status
// 点击邀请码下一步传来的status
statuss
(
val
)
{
statuss
(
val
)
{
console
.
log
(
val
,
"
val
"
);
console
.
log
(
val
,
"
val
"
);
this
.
statuss
=
val
;
//
this.statuss = val;
// this.signUpInit();
// this.signUpInit();
},
},
...
...
src/views/index/login/Reset.vue
View file @
eddf45db
...
@@ -32,7 +32,7 @@
...
@@ -32,7 +32,7 @@
<span
class=
"code"
v-show=
"show"
@
click=
"getCode"
<span
class=
"code"
v-show=
"show"
@
click=
"getCode"
>
获取验证码
</span
>
获取验证码
</span
>
>
<span
v-show=
"!show"
class=
"count"
>
{{
co
unt
}}
s
</span>
<span
v-show=
"!show"
class=
"count"
>
{{
co
deTime
}}
s
</span>
</div>
</div>
</el-form-item>
</el-form-item>
<el-form-item
prop=
"password"
>
<el-form-item
prop=
"password"
>
...
@@ -86,6 +86,7 @@
...
@@ -86,6 +86,7 @@
import
{
passwordCode
}
from
"
r/index/register
"
;
import
{
passwordCode
}
from
"
r/index/register
"
;
import
{
changePassCode
}
from
"
r/index/login
"
;
import
{
changePassCode
}
from
"
r/index/login
"
;
import
{
mobileCheck
}
from
"
@/common/utils.js
"
;
import
{
mobileCheck
}
from
"
@/common/utils.js
"
;
import
{
parseTime
}
from
"
common/utils
"
;
export
default
{
export
default
{
name
:
"
index-reset
"
,
name
:
"
index-reset
"
,
...
@@ -103,6 +104,7 @@ export default {
...
@@ -103,6 +104,7 @@ export default {
count
:
""
,
count
:
""
,
timer
:
null
,
timer
:
null
,
isShowPwd
:
true
,
// 控制密码显示隐藏
isShowPwd
:
true
,
// 控制密码显示隐藏
codeTime
:
''
,
//手机验证码倒计时时间
resetForm
:
{
resetForm
:
{
phone
:
""
,
phone
:
""
,
code
:
""
,
code
:
""
,
...
@@ -210,11 +212,12 @@ export default {
...
@@ -210,11 +212,12 @@ export default {
passwordCode
({
passwordCode
({
phone
:
this
.
resetForm
.
phone
,
phone
:
this
.
resetForm
.
phone
,
}).
then
((
res
)
=>
{
}).
then
((
res
)
=>
{
console
.
log
(
res
);
console
.
log
(
res
,
'
passwordCode
'
);
if
(
res
.
data
.
code
!=
200
)
{
if
(
res
.
data
.
code
!=
200
)
{
return
this
.
$message
.
error
(
res
.
data
.
message
);
return
this
.
$message
.
error
(
res
.
data
.
message
);
}
}
this
.
$message
.
success
(
res
.
data
.
message
);
this
.
$message
.
success
(
res
.
data
.
message
);
this
.
codeTime
=
parseTime
(
res
.
data
.
data
.
now
)
});
});
},
},
...
...
src/views/index/recruit/Index.vue
View file @
eddf45db
...
@@ -49,18 +49,46 @@
...
@@ -49,18 +49,46 @@
/* eslint-disable */
/* eslint-disable */
import
Header
from
"
@/components/index/Header.vue
"
;
import
Header
from
"
@/components/index/Header.vue
"
;
import
Footer
from
"
@/components/index/Footer.vue
"
;
import
Footer
from
"
@/components/index/Footer.vue
"
;
import
{
getCam
}
from
"
r/index/login
"
;
export
default
{
export
default
{
name
:
"
recruit
"
,
name
:
"
recruit
"
,
data
()
{
data
()
{
return
{};
return
{};
},
},
created
(){
created
(){
window
.
localStorage
.
setItem
(
"
index-identity
"
,
"
c59086fdb37848e7a10765812d1da349
"
);
this
.
getCam
();
},
},
methods
:
{
methods
:
{
toLogin
()
{
toLogin
()
{
this
.
$router
.
replace
({
name
:
"
index-login
"
});
this
.
$router
.
replace
({
name
:
"
index-login
"
});
},
},
getCam
()
{
getCam
({}).
then
((
res
)
=>
{
console
.
log
(
res
,
"
getCam
"
);
let
root
=
document
.
querySelector
(
"
:root
"
);
root
.
style
.
setProperty
(
"
--color
"
,
res
.
data
.
system_color
);
root
.
style
.
setProperty
(
"
--bk_pic
"
,
res
.
data
.
background_picture
);
//当前营地的背景图
//当前营地logo
window
.
localStorage
.
setItem
(
"
system_logo
"
,
res
.
data
.
system_logo
);
window
.
localStorage
.
setItem
(
"
doubt_code
"
,
res
.
data
.
fill_individual_Invitationcode
);
//是否填写邀请码
window
.
localStorage
.
setItem
(
"
doubt_info
"
,
res
.
data
.
fill_individual_information
);
//是否填写个人资料
window
.
localStorage
.
setItem
(
"
doubt_check
"
,
res
.
data
.
audit_individual_information
);
//是否审核个人资料
});
},
},
},
components
:
{
components
:
{
Header
,
Header
,
...
...
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