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
279944cb
Commit
279944cb
authored
Sep 15, 2023
by
wuwangwolihui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
营地2.0-整合修改
parent
6ddceae6
Changes
31
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
31 changed files
with
2690 additions
and
2528 deletions
+2690
-2528
src/components/Header.vue
src/components/Header.vue
+10
-38
src/components/index/Header.vue
src/components/index/Header.vue
+7
-9
src/components/index/Homework/Header.vue
src/components/index/Homework/Header.vue
+1
-3
src/components/index/SignUp/ConfirmSignUp.vue
src/components/index/SignUp/ConfirmSignUp.vue
+264
-263
src/components/index/SignUp/Header.vue
src/components/index/SignUp/Header.vue
+1
-3
src/components/index/SignUp/pass.vue
src/components/index/SignUp/pass.vue
+171
-175
src/components/index/SignUp/paying.vue
src/components/index/SignUp/paying.vue
+865
-862
src/components/index/SignUp/referInfo.vue
src/components/index/SignUp/referInfo.vue
+8
-11
src/request/base/active.js
src/request/base/active.js
+1
-1
src/request/base/login.js
src/request/base/login.js
+1
-1
src/request/base/register.js
src/request/base/register.js
+1
-4
src/request/index/certificate.js
src/request/index/certificate.js
+2
-4
src/request/index/homework.js
src/request/index/homework.js
+2
-4
src/request/index/info.js
src/request/index/info.js
+23
-25
src/request/index/login.js
src/request/index/login.js
+2
-6
src/request/index/network.js
src/request/index/network.js
+6
-65
src/request/index/pay.js
src/request/index/pay.js
+2
-4
src/request/index/register.js
src/request/index/register.js
+2
-4
src/request/index/signUp.js
src/request/index/signUp.js
+2
-4
src/request/network.js
src/request/network.js
+308
-0
src/router/index.js
src/router/index.js
+3
-6
src/store/mutations.js
src/store/mutations.js
+13
-0
src/views/base/login/Register.vue
src/views/base/login/Register.vue
+1
-2
src/views/base/login/Reset.vue
src/views/base/login/Reset.vue
+2
-4
src/views/index/Info/personalInfo.vue
src/views/index/Info/personalInfo.vue
+3
-4
src/views/index/camp/SignUp.vue
src/views/index/camp/SignUp.vue
+7
-14
src/views/index/camp/homework/refer.vue
src/views/index/camp/homework/refer.vue
+12
-53
src/views/index/login/Login.vue
src/views/index/login/Login.vue
+336
-318
src/views/index/login/Register.vue
src/views/index/login/Register.vue
+334
-335
src/views/index/login/Reset.vue
src/views/index/login/Reset.vue
+299
-304
src/views/index/recruit/Index.vue
src/views/index/recruit/Index.vue
+1
-2
No files found.
src/components/Header.vue
View file @
279944cb
...
@@ -69,12 +69,12 @@
...
@@ -69,12 +69,12 @@
},
},
// 下拉菜单操作
// 下拉菜单操作
handleCommand
(
command
)
{
handleCommand
(
command
)
{
if
(
command
==
2
)
{
this
.
logout
();
}
if
(
command
==
1
)
{
if
(
command
==
1
)
{
this
.
toCenter
();
this
.
toCenter
();
}
}
if
(
command
==
2
)
{
this
.
logout
();
}
},
},
// 去个人中心
// 去个人中心
toCenter
()
{
toCenter
()
{
...
@@ -107,42 +107,13 @@
...
@@ -107,42 +107,13 @@
closeOnClickModal
:
false
,
closeOnClickModal
:
false
,
type
:
"
warning
"
,
type
:
"
warning
"
,
}).
catch
((
err
)
=>
err
);
}).
catch
((
err
)
=>
err
);
if
(
confirmResult
!==
"
confirm
"
)
if
(
confirmResult
!==
"
confirm
"
)
{
return
this
.
$message
.
info
(
"
您取消了退出
"
);
return
this
.
$message
.
info
(
"
您取消了退出
"
);
// 清除本地缓存除了大学logo
}
if
(
this
.
type
==
1
)
{
// 清除本地缓存 除了特殊缓存
// 清除所有缓存
this
.
$store
.
commit
(
'
removeLocalStorage
'
);
window
.
localStorage
.
clear
();
if
(
this
.
type
==
2
)
{
this
.
isLogin
=
false
;
}
else
if
(
this
.
type
==
2
)
{
// this.reload()
let
code
=
this
.
$store
.
state
.
indexIdentity
;
let
code
=
this
.
$store
.
state
.
indexIdentity
;
window
.
localStorage
.
removeItem
(
"
doubt_code
"
+
code
);
window
.
localStorage
.
removeItem
(
"
doubt_info
"
+
code
);
window
.
localStorage
.
removeItem
(
"
doubt_check
"
+
code
);
window
.
localStorage
.
removeItem
(
"
camp_name
"
+
code
);
window
.
localStorage
.
removeItem
(
"
system_color
"
+
code
);
window
.
localStorage
.
removeItem
(
"
system_logo
"
+
code
);
window
.
localStorage
.
removeItem
(
"
has_amount
"
+
code
);
window
.
localStorage
.
removeItem
(
"
campsite_id
"
+
code
);
window
.
localStorage
.
removeItem
(
"
order_no
"
+
code
);
window
.
localStorage
.
removeItem
(
"
campindex_type
"
+
code
);
window
.
localStorage
.
removeItem
(
"
bk_pic
"
+
code
);
window
.
localStorage
.
removeItem
(
"
examine_status
"
+
code
);
window
.
localStorage
.
removeItem
(
"
examine_reason
"
+
code
);
window
.
localStorage
.
removeItem
(
"
sign_up_file_18355151517
"
+
window
.
localStorage
.
getItem
(
"
phone
"
+
code
)
+
code
);
window
.
localStorage
.
removeItem
(
"
schoolName
"
+
code
);
window
.
localStorage
.
removeItem
(
"
camp_statement
"
+
code
);
window
.
localStorage
.
removeItem
(
"
transfer_account
"
+
code
);
window
.
localStorage
.
removeItem
(
"
payee
"
+
code
);
window
.
localStorage
.
removeItem
(
"
bank_first
"
+
code
);
window
.
localStorage
.
removeItem
(
"
bank_idcard
"
+
code
);
window
.
localStorage
.
removeItem
(
"
bank_info
"
+
window
.
localStorage
.
getItem
(
"
phone
"
+
code
)
+
code
);
window
.
localStorage
.
removeItem
(
"
index-token-all
"
);
window
.
localStorage
.
removeItem
(
"
index-phone-all
"
);
this
.
isLogin
=
false
;
// this.reload()
if
(
this
.
$store
.
state
.
human
==
1
)
{
if
(
this
.
$store
.
state
.
human
==
1
)
{
await
this
.
$router
.
replace
({
await
this
.
$router
.
replace
({
path
:
"
/login
"
,
path
:
"
/login
"
,
...
@@ -154,8 +125,9 @@
...
@@ -154,8 +125,9 @@
await
this
.
$router
.
replace
(
"
/
"
+
code
);
await
this
.
$router
.
replace
(
"
/
"
+
code
);
}
}
}
}
this
.
isLogin
=
false
;
this
.
$message
.
success
(
"
退出成功
"
);
this
.
$message
.
success
(
"
退出成功
"
);
await
logout
({});
//
await logout({});
},
},
// 鼠标移入事件
// 鼠标移入事件
onMouserEnter
(
val
)
{
onMouserEnter
(
val
)
{
...
...
src/components/index/Header.vue
View file @
279944cb
...
@@ -52,14 +52,12 @@ export default {
...
@@ -52,14 +52,12 @@ export default {
"
system_logo
"
+
this
.
$store
.
state
.
indexIdentity
"
system_logo
"
+
this
.
$store
.
state
.
indexIdentity
),
),
isLogin
:
false
,
isLogin
:
false
,
phone
:
window
.
localStorage
.
getItem
(
phone
:
window
.
localStorage
.
getItem
(
"
index-phone-all
"
),
"
phone
"
+
this
.
$store
.
state
.
indexIdentity
),
};
};
},
},
created
()
{
created
()
{
let
code
=
this
.
$store
.
state
.
indexIdentity
;
let
code
=
this
.
$store
.
state
.
indexIdentity
;
this
.
isLogin
=
!!
localStorage
.
getItem
(
"
index-token
"
+
code
);
this
.
isLogin
=
!!
localStorage
.
getItem
(
"
index-token
-all
"
);
},
},
methods
:
{
methods
:
{
toLogin
()
{
toLogin
()
{
...
@@ -97,8 +95,8 @@ export default {
...
@@ -97,8 +95,8 @@ export default {
window
.
localStorage
.
removeItem
(
"
doubt_code
"
+
code
);
window
.
localStorage
.
removeItem
(
"
doubt_code
"
+
code
);
window
.
localStorage
.
removeItem
(
"
doubt_info
"
+
code
);
window
.
localStorage
.
removeItem
(
"
doubt_info
"
+
code
);
window
.
localStorage
.
removeItem
(
"
doubt_check
"
+
code
);
window
.
localStorage
.
removeItem
(
"
doubt_check
"
+
code
);
window
.
localStorage
.
removeItem
(
"
index-token
"
+
code
);
window
.
localStorage
.
removeItem
(
"
index-token
-all
"
);
window
.
localStorage
.
removeItem
(
"
phone
"
+
code
);
window
.
localStorage
.
removeItem
(
"
index-phone-all
"
);
window
.
localStorage
.
removeItem
(
"
camp_name
"
+
code
);
window
.
localStorage
.
removeItem
(
"
camp_name
"
+
code
);
window
.
localStorage
.
removeItem
(
"
system_color
"
+
code
);
window
.
localStorage
.
removeItem
(
"
system_color
"
+
code
);
window
.
localStorage
.
removeItem
(
"
system_logo
"
+
code
);
window
.
localStorage
.
removeItem
(
"
system_logo
"
+
code
);
...
@@ -110,8 +108,8 @@ export default {
...
@@ -110,8 +108,8 @@ export default {
window
.
localStorage
.
removeItem
(
"
examine_status
"
+
code
);
window
.
localStorage
.
removeItem
(
"
examine_status
"
+
code
);
window
.
localStorage
.
removeItem
(
"
examine_reason
"
+
code
);
window
.
localStorage
.
removeItem
(
"
examine_reason
"
+
code
);
window
.
localStorage
.
removeItem
(
window
.
localStorage
.
removeItem
(
"
sign_up_file_
18355151517
"
+
"
sign_up_file_
"
+
window
.
localStorage
.
getItem
(
"
phone
"
+
code
)
+
window
.
localStorage
.
getItem
(
"
index-phone-all
"
)
+
code
code
);
);
window
.
localStorage
.
removeItem
(
"
schoolName
"
+
code
);
window
.
localStorage
.
removeItem
(
"
schoolName
"
+
code
);
...
@@ -121,7 +119,7 @@ export default {
...
@@ -121,7 +119,7 @@ export default {
window
.
localStorage
.
removeItem
(
"
bank_first
"
+
code
);
window
.
localStorage
.
removeItem
(
"
bank_first
"
+
code
);
window
.
localStorage
.
removeItem
(
"
bank_idcard
"
+
code
);
window
.
localStorage
.
removeItem
(
"
bank_idcard
"
+
code
);
window
.
localStorage
.
removeItem
(
window
.
localStorage
.
removeItem
(
"
bank_info
"
+
window
.
localStorage
.
getItem
(
"
phone
"
+
code
)
+
code
"
bank_info
"
+
window
.
localStorage
.
getItem
(
"
index-phone-all
"
)
+
code
);
);
this
.
isLogin
=
false
;
this
.
isLogin
=
false
;
this
.
reload
()
this
.
reload
()
...
...
src/components/index/Homework/Header.vue
View file @
279944cb
...
@@ -30,9 +30,7 @@ export default {
...
@@ -30,9 +30,7 @@ export default {
name
:
"
Header
"
,
name
:
"
Header
"
,
data
()
{
data
()
{
return
{
return
{
phone
:
window
.
localStorage
.
getItem
(
phone
:
window
.
localStorage
.
getItem
(
"
index-phone-all
"
),
"
phone
"
+
this
.
$store
.
state
.
indexIdentity
),
system_logo
:
window
.
localStorage
.
getItem
(
system_logo
:
window
.
localStorage
.
getItem
(
"
system_logo
"
+
this
.
$store
.
state
.
indexIdentity
"
system_logo
"
+
this
.
$store
.
state
.
indexIdentity
),
),
...
...
src/components/index/SignUp/ConfirmSignUp.vue
View file @
279944cb
<
template
>
<
template
>
<el-dialog
<el-dialog
title=
"微信支付"
title=
"微信支付"
:visible.sync=
"dialogVisible"
:visible.sync=
"dialogVisible"
...
@@ -36,11 +36,12 @@
...
@@ -36,11 +36,12 @@
</
template
>
</
template
>
<
script
>
<
script
>
/* eslint-disable */
/* eslint-disable */
import
{
getWxConfig
}
from
"
r/index/pay
"
;
import
{
getWxConfig
}
from
"
r/index/pay
"
;
import
{
SERVER_WS_URL
}
from
"
config/server
"
;
import
{
SERVER_WS_URL
}
from
"
config/server
"
;
import
QRCode
from
"
qrcodejs2
"
;
import
QRCode
from
"
qrcodejs2
"
;
export
default
{
export
default
{
name
:
"
ConfirmSignUp
"
,
name
:
"
ConfirmSignUp
"
,
props
:
{
props
:
{
confirmSignUpDialogFu
:
Boolean
,
confirmSignUpDialogFu
:
Boolean
,
...
@@ -61,9 +62,7 @@ export default {
...
@@ -61,9 +62,7 @@ export default {
};
};
},
},
created
()
{
created
()
{
this
.
token
=
window
.
localStorage
.
getItem
(
this
.
token
=
window
.
localStorage
.
getItem
(
"
index-token-all
"
);
"
index-token
"
+
this
.
$store
.
state
.
indexIdentity
);
this
.
has_amount
=
window
.
localStorage
.
getItem
(
this
.
has_amount
=
window
.
localStorage
.
getItem
(
"
has_amount
"
+
this
.
$store
.
state
.
indexIdentity
"
has_amount
"
+
this
.
$store
.
state
.
indexIdentity
);
);
...
@@ -71,7 +70,7 @@ export default {
...
@@ -71,7 +70,7 @@ export default {
methods
:
{
methods
:
{
async
confirm
()
{
async
confirm
()
{
// console.log(SERVER_WS_URL);
// console.log(SERVER_WS_URL);
let
{
data
:
res
}
=
await
getWxConfig
({
let
{
data
:
res
}
=
await
getWxConfig
({
pay_type
:
3
,
pay_type
:
3
,
});
});
// console.log(res);
// console.log(res);
...
@@ -138,7 +137,7 @@ export default {
...
@@ -138,7 +137,7 @@ export default {
}
else
{
}
else
{
let
code
=
this
.
$store
.
state
.
indexIdentity
;
let
code
=
this
.
$store
.
state
.
indexIdentity
;
if
(
!
this
.
token
||
this
.
token
==
""
)
{
if
(
!
this
.
token
||
this
.
token
==
""
)
{
this
.
token
=
window
.
localStorage
.
getItem
(
"
index-token
"
+
code
);
this
.
token
=
window
.
localStorage
.
getItem
(
"
index-token-all
"
);
}
}
let
token
=
this
.
token
;
let
token
=
this
.
token
;
const
wssURL
=
SERVER_WS_URL
+
"
/order?token=
"
+
token
+
"
&channel=pc
"
;
const
wssURL
=
SERVER_WS_URL
+
"
/order?token=
"
+
token
+
"
&channel=pc
"
;
...
@@ -280,15 +279,16 @@ export default {
...
@@ -280,15 +279,16 @@ export default {
this
.
dialogVisible
=
this
.
confirmSignUpDialogFu
;
this
.
dialogVisible
=
this
.
confirmSignUpDialogFu
;
},
},
},
},
};
};
</
script
>
</
script
>
<
style
scoped
lang=
"scss"
>
<
style
scoped
lang=
"scss"
>
.btn
{
.btn
{
text-align
:
center
;
text-align
:
center
;
padding-bottom
:
24px
;
padding-bottom
:
24px
;
}
}
.el-button
{
.el-button
{
width
:
200px
;
width
:
200px
;
height
:
50px
;
height
:
50px
;
background
:
var
(
--
color
);
background
:
var
(
--
color
);
...
@@ -299,8 +299,9 @@ export default {
...
@@ -299,8 +299,9 @@ export default {
color
:
#fff
;
color
:
#fff
;
font-size
:
16px
;
font-size
:
16px
;
padding
:
0
;
padding
:
0
;
}
}
.pay_code
{
.pay_code
{
text-align
:
center
;
text-align
:
center
;
.money
{
.money
{
...
@@ -309,13 +310,13 @@ export default {
...
@@ -309,13 +310,13 @@ export default {
color
:
var
(
--
color
);
color
:
var
(
--
color
);
line-height
:
24px
;
line-height
:
24px
;
}
}
}
}
.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
;
}
}
</
style
>
</
style
>
src/components/index/SignUp/Header.vue
View file @
279944cb
...
@@ -33,9 +33,7 @@ export default {
...
@@ -33,9 +33,7 @@ export default {
name
:
"
Header
"
,
name
:
"
Header
"
,
data
()
{
data
()
{
return
{
return
{
phone
:
window
.
localStorage
.
getItem
(
phone
:
window
.
localStorage
.
getItem
(
"
index-phone-all
"
),
"
phone
"
+
this
.
$store
.
state
.
indexIdentity
),
system_logo
:
window
.
localStorage
.
getItem
(
system_logo
:
window
.
localStorage
.
getItem
(
"
system_logo
"
+
this
.
$store
.
state
.
indexIdentity
"
system_logo
"
+
this
.
$store
.
state
.
indexIdentity
),
),
...
...
src/components/index/SignUp/pass.vue
View file @
279944cb
...
@@ -15,20 +15,21 @@
...
@@ -15,20 +15,21 @@
</div>
</div>
<div
v-if=
"this.examine_status == 2"
>
同学你好,你的申请材料未能通过审核。原因是:
{{
this
.
examine_reason
}}
</div>
<div
v-if=
"this.examine_status == 2"
>
同学你好,你的申请材料未能通过审核。原因是:
{{
this
.
examine_reason
}}
</div>
<div
class=
"btn"
v-show=
"this.examine_status == 2"
>
<div
class=
"btn"
v-show=
"this.examine_status == 2"
>
<el-button
@
click=
"Lasting()"
>
上一步
</el-button>
<el-button
@
click=
"Lasting()"
>
上一步
</el-button>
</div>
</div>
<div
class=
"btn"
v-show=
"this.examine_status == 1"
>
<div
class=
"btn"
v-show=
"this.examine_status == 1"
>
<el-button
@
click=
"paying()"
>
下一步
</el-button>
<el-button
@
click=
"paying()"
>
下一步
</el-button>
</div>
</div>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
/* eslint-disable */
/* eslint-disable */
import
{
signUpInit
,
signBack
}
from
"
r/index/signUp
"
;
import
{
signUpInit
,
signBack
}
from
"
r/index/signUp
"
;
export
default
{
export
default
{
name
:
"
Pass
"
,
name
:
"
Pass
"
,
data
()
{
data
()
{
return
{
return
{
...
@@ -149,15 +150,8 @@ export default {
...
@@ -149,15 +150,8 @@ export default {
window
.
localStorage
.
setItem
(
"
campsite_id
"
+
code
,
res
.
data
.
campsite_id
);
window
.
localStorage
.
setItem
(
"
campsite_id
"
+
code
,
res
.
data
.
campsite_id
);
window
.
localStorage
.
setItem
(
"
order_no
"
+
code
,
res
.
data
.
order_no
);
window
.
localStorage
.
setItem
(
"
order_no
"
+
code
,
res
.
data
.
order_no
);
this
.
examine_status
=
res
.
data
.
examine_status
;
this
.
examine_status
=
res
.
data
.
examine_status
;
window
.
localStorage
.
setItem
(
window
.
localStorage
.
setItem
(
"
examine_status
"
+
code
,
res
.
data
.
examine_status
);
//返回错误原因
"
examine_status
"
+
code
,
window
.
localStorage
.
setItem
(
"
examine_reason
"
+
code
,
res
.
data
.
examine_reason
);
//资料审核状态
res
.
data
.
examine_status
);
//返回错误原因
window
.
localStorage
.
setItem
(
"
examine_reason
"
+
code
,
res
.
data
.
examine_reason
);
//资料审核状态
// window.localStorage.setItem("achievement_path", res.data.achievement_path); //上传的图片
const
aPath
=
res
.
data
.
achievement_path
;
const
aPath
=
res
.
data
.
achievement_path
;
if
(
aPath
)
{
if
(
aPath
)
{
let
arr
=
aPath
.
split
(
"
,
"
);
let
arr
=
aPath
.
split
(
"
,
"
);
...
@@ -169,44 +163,44 @@ export default {
...
@@ -169,44 +163,44 @@ export default {
return
obj
;
return
obj
;
});
});
const
code
=
this
.
$store
.
state
.
indexIdentity
;
const
code
=
this
.
$store
.
state
.
indexIdentity
;
window
.
localStorage
.
setItem
(
window
.
localStorage
.
setItem
(
"
sign_up_file_
"
+
window
.
localStorage
.
getItem
(
"
index-phone-all
"
),
JSON
.
stringify
(
fileList
));
//上传的图片
"
sign_up_file_
"
+
window
.
localStorage
.
getItem
(
"
phone
"
+
code
),
JSON
.
stringify
(
fileList
)
);
//上传的图片
}
}
});
});
},
},
},
},
};
};
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
@import
"a/scss/btn"
;
@import
"a/scss/btn"
;
@import
"a/scss/index"
;
@import
"a/scss/index"
;
@import
"a/style"
;
@import
"a/style"
;
@font-face
{
@font-face
{
font-family
:
"icomoon"
;
font-family
:
"icomoon"
;
src
:
url("../../../assets/fonts/icomoon.eot?dcunb6")
;
src
:
url("../../../assets/fonts/icomoon.eot?dcunb6")
;
src
:
url("../../../assets/fonts/icomoon.eot?dcunb6#iefix")
src
:
url("../../../assets/fonts/icomoon.eot?dcunb6#iefix")
format
(
"embedded-opentype"
)
,
format
(
"embedded-opentype"
)
,
url("../../../assets/fonts/icomoon.ttf?dcunb6")
format
(
"truetype"
)
,
url("../../../assets/fonts/icomoon.ttf?dcunb6")
format
(
"truetype"
)
,
url("../../../assets/fonts/icomoon.woff?dcunb6")
format
(
"woff"
)
,
url("../../../assets/fonts/icomoon.woff?dcunb6")
format
(
"woff"
)
,
url("../../../assets/fonts/icomoon.svg?dcunb6#icomoon")
format
(
"svg"
);
url("../../../assets/fonts/icomoon.svg?dcunb6#icomoon")
format
(
"svg"
);
font-weight
:
normal
;
font-weight
:
normal
;
font-style
:
normal
;
font-style
:
normal
;
font-display
:
block
;
font-display
:
block
;
}
}
.btn
{
.btn
{
padding-bottom
:
0
!
important
;
padding-bottom
:
0
!
important
;
}
}
.pass
{
.pass
{
padding
:
0
56px
65px
56px
;
padding
:
0
56px
65px
56px
;
.p_content
{
.p_content
{
i
{
i
{
font-size
:
100px
;
font-size
:
100px
;
color
:
var
(
--
color
);
color
:
var
(
--
color
);
}
}
div
{
div
{
text-align
:
center
;
text-align
:
center
;
font-size
:
16px
;
font-size
:
16px
;
...
@@ -214,12 +208,14 @@ export default {
...
@@ -214,12 +208,14 @@ export default {
color
:
#666666
;
color
:
#666666
;
line-height
:
18px
;
line-height
:
18px
;
}
}
:nth-child
(
2
)
{
:nth-child
(
2
)
{
margin
:
24px
0
;
margin
:
24px
0
;
}
}
:nth-child
(
3
)
{
:nth-child
(
3
)
{
margin
:
0
0
50px
0
;
margin
:
0
0
50px
0
;
}
}
}
}
}
}
</
style
>
</
style
>
src/components/index/SignUp/paying.vue
View file @
279944cb
This diff is collapsed.
Click to expand it.
src/components/index/SignUp/referInfo.vue
View file @
279944cb
...
@@ -654,7 +654,7 @@
...
@@ -654,7 +654,7 @@
</div>
</div>
</el-col>
</el-col>
<!-- 自我介绍 -->
<!-- 自我介绍 -->
<el-col
:span=
"12"
v-show=
"configJson.introduceMyself == 1"
>
<el-col
:span=
"12"
v-show=
"configJson.introduceMyself == 1"
>
<el-form-item
<el-form-item
prop=
"introduce"
prop=
"introduce"
label=
"自我介绍"
label=
"自我介绍"
...
@@ -1388,11 +1388,11 @@
...
@@ -1388,11 +1388,11 @@
},
},
created
()
{
created
()
{
const
code
=
this
.
$store
.
state
.
indexIdentity
;
const
code
=
this
.
$store
.
state
.
indexIdentity
;
this
.
referForm
.
phone
=
window
.
localStorage
.
getItem
(
"
phone
"
+
code
);
//本地取用户手机号
this
.
referForm
.
phone
=
window
.
localStorage
.
getItem
(
"
index-phone-all
"
);
//本地取用户手机号
this
.
referForm
.
email
=
window
.
localStorage
.
getItem
(
"
email
"
+
code
);
//本地取用户邮箱
this
.
referForm
.
email
=
window
.
localStorage
.
getItem
(
"
email
"
+
code
);
//本地取用户邮箱
// console.log(this.referForm.email, " this.referForm.email");
// console.log(this.referForm.email, " this.referForm.email");
let
signUpFile
=
window
.
localStorage
.
getItem
(
let
signUpFile
=
window
.
localStorage
.
getItem
(
"
sign_up_file_
"
+
window
.
localStorage
.
getItem
(
"
phone
"
+
code
)
+
code
"
sign_up_file_
"
+
window
.
localStorage
.
getItem
(
"
index-phone-all
"
)
+
code
);
);
// console.log(signUpFile);
// console.log(signUpFile);
if
(
signUpFile
&&
JSON
.
parse
(
signUpFile
).
length
>
0
)
{
if
(
signUpFile
&&
JSON
.
parse
(
signUpFile
).
length
>
0
)
{
...
@@ -1737,8 +1737,7 @@
...
@@ -1737,8 +1737,7 @@
this
.
schoolName
=
res
.
data
.
school_list
;
this
.
schoolName
=
res
.
data
.
school_list
;
// console.log( this.schoolName)
// console.log( this.schoolName)
let
code
=
this
.
$store
.
state
.
indexIdentity
;
let
code
=
this
.
$store
.
state
.
indexIdentity
;
window
.
localStorage
.
setItem
(
window
.
localStorage
.
setItem
(
"
schoolName
"
+
code
,
"
schoolName
"
+
code
,
JSON
.
stringify
(
res
.
data
.
list
)
JSON
.
stringify
(
res
.
data
.
list
)
);
);
for
(
let
key
in
this
.
schoolName
)
{
for
(
let
key
in
this
.
schoolName
)
{
...
@@ -1850,9 +1849,8 @@
...
@@ -1850,9 +1849,8 @@
};
};
this
.
fileList
.
push
(
obj
);
this
.
fileList
.
push
(
obj
);
let
code
=
this
.
$store
.
state
.
indexIdentity
;
let
code
=
this
.
$store
.
state
.
indexIdentity
;
window
.
localStorage
.
setItem
(
window
.
localStorage
.
setItem
(
"
sign_up_file_
"
+
"
sign_up_file_
"
+
+
window
.
localStorage
.
getItem
(
"
index-phone-all
"
)
+
+
window
.
localStorage
.
getItem
(
"
phone
"
+
code
)
+
code
,
code
,
JSON
.
stringify
(
this
.
fileList
)
JSON
.
stringify
(
this
.
fileList
)
);
);
...
@@ -1900,9 +1898,8 @@
...
@@ -1900,9 +1898,8 @@
if
(
item
.
url
==
file
.
url
)
{
if
(
item
.
url
==
file
.
url
)
{
this
.
fileList
.
splice
(
idx
,
1
);
this
.
fileList
.
splice
(
idx
,
1
);
let
code
=
this
.
$store
.
state
.
indexIdentity
;
let
code
=
this
.
$store
.
state
.
indexIdentity
;
window
.
localStorage
.
setItem
(
window
.
localStorage
.
setItem
(
"
sign_up_file_
"
+
"
sign_up_file_
"
+
window
.
localStorage
.
getItem
(
"
index-phone-all
"
)
+
window
.
localStorage
.
getItem
(
"
phone
"
+
code
)
+
code
,
code
,
JSON
.
stringify
(
this
.
fileList
)
JSON
.
stringify
(
this
.
fileList
)
);
);
...
...
src/request/base/active.js
View file @
279944cb
/* eslint-disable */
/* eslint-disable */
import
{
request
}
from
'
./network
'
;
import
{
request
}
from
'
.
.
/network
'
;
// 获取label列表-搜索模块
// 获取label列表-搜索模块
export
function
LabelType
(
data
)
{
export
function
LabelType
(
data
)
{
...
...
src/request/base/login.js
View file @
279944cb
/* eslint-disable */
/* eslint-disable */
import
{
request
}
from
'
./network
'
import
{
request
}
from
'
.
.
/network
'
// 登录
// 登录
export
function
login
(
data
)
{
export
function
login
(
data
)
{
...
...
src/request/base/register.js
View file @
279944cb
/* eslint-disable */
/* eslint-disable */
import
{
request
}
from
'
../network
'
;
import
{
request
}
from
'
./network
'
// 通过邮箱验证码注册
// 通过邮箱验证码注册
export
function
registerEmailCode
(
data
)
{
export
function
registerEmailCode
(
data
)
{
...
...
src/request/index/certificate.js
View file @
279944cb
/* eslint-disable */
/* eslint-disable */
import
{
import
{
request
}
from
'
../network
'
;
request
import
store
from
'
@/store
'
;
}
from
'
./network
'
import
store
from
'
@/store
'
// 添加地址
// 添加地址
...
...
src/request/index/homework.js
View file @
279944cb
/* eslint-disable */
/* eslint-disable */
import
{
import
{
request
}
from
'
../network
'
;
request
import
store
from
'
@/store
'
;
}
from
'
./network
'
import
store
from
'
@/store
'
// 获取营地作业列表
// 获取营地作业列表
...
...
src/request/index/info.js
View file @
279944cb
/* eslint-disable */
/* eslint-disable */
import
{
import
{
request
}
from
'
../network
'
;
request
import
store
from
'
@/store
'
;
}
from
'
./network
'
import
store
from
'
@/store
'
// 获取资料(个人信息)
// 获取资料(个人信息)
export
function
getAccountInfo
(
data
)
{
export
function
getAccountInfo
(
data
)
{
data
[
'
identity
'
]
=
store
.
state
.
indexIdentity
;
data
[
'
identity
'
]
=
store
.
state
.
indexIdentity
;
return
request
({
return
request
({
method
:
'
post
'
,
method
:
'
post
'
,
url
:
'
/web/signUp/getAccountInfo
'
,
url
:
'
/web/signUp/getAccountInfo
'
,
data
data
})
})
}
}
// 保存个人资料
export
function
setAccountInfo
(
data
)
{
// 保存个人资料
export
function
setAccountInfo
(
data
)
{
data
[
'
identity
'
]
=
store
.
state
.
indexIdentity
;
data
[
'
identity
'
]
=
store
.
state
.
indexIdentity
;
return
request
({
return
request
({
method
:
'
post
'
,
method
:
'
post
'
,
url
:
'
/web/signUp/setAccountInfo
'
,
url
:
'
/web/signUp/setAccountInfo
'
,
data
data
})
})
}
}
\ No newline at end of file
src/request/index/login.js
View file @
279944cb
/* eslint-disable */
/* eslint-disable */
import
{
import
{
request
}
from
'
../network
'
;
request
import
store
from
'
@/store
'
;
}
from
'
./network
'
import
store
from
'
@/store
'
//登录前获取营地主题
//登录前获取营地主题
export
function
getCam
(
code
)
{
export
function
getCam
(
code
)
{
...
...
src/request/index/network.js
View file @
279944cb
...
@@ -15,7 +15,6 @@ import {
...
@@ -15,7 +15,6 @@ import {
}
from
'
element-ui
'
}
from
'
element-ui
'
import
router
from
'
@/router
'
import
router
from
'
@/router
'
const
instance
=
axios
.
create
({
const
instance
=
axios
.
create
({
baseURL
:
DEVELOPMENT_SERVER_URL
,
baseURL
:
DEVELOPMENT_SERVER_URL
,
timeout
:
60000
,
timeout
:
60000
,
...
@@ -105,8 +104,7 @@ export function request(config) {
...
@@ -105,8 +104,7 @@ export function request(config) {
const
changePassCode
=
'
/web/auth/changePassCode
'
;
const
changePassCode
=
'
/web/auth/changePassCode
'
;
const
loginOut
=
'
/web/auth/loginOut
'
;
const
loginOut
=
'
/web/auth/loginOut
'
;
const
setLog
=
'
/web/auth/setLog
'
;
const
setLog
=
'
/web/auth/setLog
'
;
if
(
if
((
config
.
url
.
indexOf
(
loginUrl
)
!=
-
1
&&
config
.
url
.
indexOf
(
loginOut
)
==
-
1
)
||
(
config
.
url
.
indexOf
(
loginUrl
)
!=
-
1
&&
config
.
url
.
indexOf
(
loginOut
)
==
-
1
)
||
config
.
url
.
indexOf
(
setAccountInfo
)
!=
-
1
||
config
.
url
.
indexOf
(
setAccountInfo
)
!=
-
1
||
config
.
url
.
indexOf
(
passMsgOld
)
!=
-
1
||
config
.
url
.
indexOf
(
passMsgOld
)
!=
-
1
||
config
.
url
.
indexOf
(
getCam
)
!=
-
1
||
config
.
url
.
indexOf
(
getCam
)
!=
-
1
||
...
@@ -116,15 +114,10 @@ export function request(config) {
...
@@ -116,15 +114,10 @@ export function request(config) {
config
.
url
.
indexOf
(
passwordEmailCode
)
!=
-
1
||
config
.
url
.
indexOf
(
passwordEmailCode
)
!=
-
1
||
config
.
url
.
indexOf
(
changePassCode
)
!=
-
1
||
config
.
url
.
indexOf
(
changePassCode
)
!=
-
1
||
config
.
url
.
indexOf
(
passwordCode
)
!=
-
1
||
config
.
url
.
indexOf
(
passwordCode
)
!=
-
1
||
config
.
url
.
indexOf
(
setLog
)
!=
-
1
config
.
url
.
indexOf
(
setLog
)
!=
-
1
)
{
)
{
return
config
return
config
}
}
// const token = localStorage.getItem('index-token' + store.state.indexIdentity)
const
token
=
localStorage
.
getItem
(
'
index-token-all
'
);
const
token
=
localStorage
.
getItem
(
'
index-token-all
'
);
if
(
token
)
{
if
(
token
)
{
config
.
headers
.
token
=
token
;
config
.
headers
.
token
=
token
;
}
else
{
}
else
{
...
@@ -189,34 +182,9 @@ export function request(config) {
...
@@ -189,34 +182,9 @@ export function request(config) {
return
return
}
}
if
(
res
.
data
.
code
==
400023
)
{
if
(
res
.
data
.
code
==
400023
)
{
console
.
log
(
res
)
let
code
=
store
.
state
.
indexIdentity
;
let
isLogout
=
res
.
config
.
url
==
'
/web/auth/loginOut
'
;
let
isLogout
=
res
.
config
.
url
==
'
/web/auth/loginOut
'
;
window
.
localStorage
.
removeItem
(
"
doubt_code
"
+
code
);
// 清除本地缓存 除了特殊缓存
window
.
localStorage
.
removeItem
(
"
doubt_info
"
+
code
);
store
.
commit
(
'
removeLocalStorage
'
);
window
.
localStorage
.
removeItem
(
"
doubt_check
"
+
code
);
window
.
localStorage
.
removeItem
(
"
camp_name
"
+
code
);
window
.
localStorage
.
removeItem
(
"
system_color
"
+
code
);
window
.
localStorage
.
removeItem
(
"
system_logo
"
+
code
);
window
.
localStorage
.
removeItem
(
"
has_amount
"
+
code
);
window
.
localStorage
.
removeItem
(
"
campsite_id
"
+
code
);
window
.
localStorage
.
removeItem
(
"
order_no
"
+
code
);
window
.
localStorage
.
removeItem
(
"
campindex_type
"
+
code
);
window
.
localStorage
.
removeItem
(
"
bk_pic
"
+
code
);
window
.
localStorage
.
removeItem
(
"
examine_status
"
+
code
);
window
.
localStorage
.
removeItem
(
"
examine_reason
"
+
code
);
window
.
localStorage
.
removeItem
(
"
sign_up_file_18355151517
"
+
window
.
localStorage
.
getItem
(
"
phone
"
+
code
)
+
code
);
window
.
localStorage
.
removeItem
(
"
schoolName
"
+
code
);
window
.
localStorage
.
removeItem
(
"
restet_code_time
"
+
code
);
window
.
localStorage
.
removeItem
(
"
camp_statement
"
+
code
)
window
.
localStorage
.
removeItem
(
"
transfer_account
"
+
code
);
window
.
localStorage
.
removeItem
(
"
payee
"
+
code
);
window
.
localStorage
.
removeItem
(
"
bank_first
"
+
code
);
window
.
localStorage
.
removeItem
(
"
bank_idcard
"
+
code
);
window
.
localStorage
.
removeItem
(
"
bank_info
"
+
window
.
localStorage
.
getItem
(
"
phone
"
+
code
)
+
code
);
window
.
localStorage
.
removeItem
(
"
index-token-all
"
);
window
.
localStorage
.
removeItem
(
"
index-phone-all
"
);
router
.
push
({
router
.
push
({
path
:
'
/
'
+
store
.
state
.
indexIdentity
,
path
:
'
/
'
+
store
.
state
.
indexIdentity
,
})
})
...
@@ -229,35 +197,8 @@ export function request(config) {
...
@@ -229,35 +197,8 @@ export function request(config) {
return
return
}
}
if
(
res
.
data
.
code
==
400003
)
{
if
(
res
.
data
.
code
==
400003
)
{
let
code
=
this
.
$store
.
state
.
indexIdentity
;
// 清除本地缓存 除了特殊缓存
window
.
localStorage
.
removeItem
(
"
doubt_code
"
+
code
);
store
.
commit
(
'
removeLocalStorage
'
);
window
.
localStorage
.
removeItem
(
"
doubt_info
"
+
code
);
window
.
localStorage
.
removeItem
(
"
doubt_check
"
+
code
);
window
.
localStorage
.
removeItem
(
"
camp_name
"
+
code
);
window
.
localStorage
.
removeItem
(
"
system_color
"
+
code
);
window
.
localStorage
.
removeItem
(
"
system_logo
"
+
code
);
window
.
localStorage
.
removeItem
(
"
has_amount
"
+
code
);
window
.
localStorage
.
removeItem
(
"
campsite_id
"
+
code
);
window
.
localStorage
.
removeItem
(
"
order_no
"
+
code
);
window
.
localStorage
.
removeItem
(
"
campindex_type
"
+
code
);
window
.
localStorage
.
removeItem
(
"
bk_pic
"
+
code
);
window
.
localStorage
.
removeItem
(
"
examine_status
"
+
code
);
window
.
localStorage
.
removeItem
(
"
examine_reason
"
+
code
);
window
.
localStorage
.
removeItem
(
"
sign_up_file_18355151517
"
+
window
.
localStorage
.
getItem
(
"
phone
"
+
code
)
+
code
);
window
.
localStorage
.
removeItem
(
"
schoolName
"
+
code
);
window
.
localStorage
.
removeItem
(
"
transfer_account
"
+
code
);
window
.
localStorage
.
removeItem
(
"
payee
"
+
code
);
window
.
localStorage
.
removeItem
(
"
bank_first
"
+
code
);
window
.
localStorage
.
removeItem
(
"
bank_idcard
"
+
code
);
window
.
localStorage
.
removeItem
(
"
bank_info
"
+
window
.
localStorage
.
getItem
(
"
phone
"
+
code
)
+
code
);
window
.
localStorage
.
removeItem
(
"
index-token-all
"
);
window
.
localStorage
.
removeItem
(
"
index-phone-all
"
);
router
.
push
({
router
.
push
({
path
:
'
/login
'
,
path
:
'
/login
'
,
query
:
{
query
:
{
...
...
src/request/index/pay.js
View file @
279944cb
/* eslint-disable */
/* eslint-disable */
import
{
import
{
request
}
from
'
../network
'
;
request
import
store
from
'
@/store
'
;
}
from
'
./network
'
import
store
from
'
@/store
'
// 报名初始化
// 报名初始化
...
...
src/request/index/register.js
View file @
279944cb
/* eslint-disable */
/* eslint-disable */
import
{
import
{
request
}
from
'
../network
'
;
request
import
store
from
'
@/store
'
;
}
from
'
./network
'
import
store
from
'
@/store
'
// 通过邮箱验证码注册
// 通过邮箱验证码注册
export
function
registerEmailCode
(
data
)
{
export
function
registerEmailCode
(
data
)
{
...
...
src/request/index/signUp.js
View file @
279944cb
/* eslint-disable */
/* eslint-disable */
import
{
import
{
request
}
from
'
../network
'
;
request
import
store
from
'
@/store
'
;
}
from
'
./network
'
import
store
from
'
@/store
'
// 报名初始化
// 报名初始化
export
function
signUpInit
(
data
)
{
export
function
signUpInit
(
data
)
{
...
...
src/request/network.js
0 → 100644
View file @
279944cb
/* eslint-disable */
import
axios
from
'
axios
'
import
store
from
'
@/store
'
import
qs
from
'
qs
'
import
{
tansParams
}
from
'
@/store/common.js
'
import
{
SERVER_URL
,
DEVELOPMENT_SERVER_URL
}
from
'
@/config/server
'
import
{
Notification
,
Message
,
Loading
}
from
'
element-ui
'
import
router
from
'
@/router
'
const
instance
=
axios
.
create
({
baseURL
:
DEVELOPMENT_SERVER_URL
,
timeout
:
60000
,
method
:
"
post
"
,
headers
:
{
"
Content-Type
"
:
"
application/x-www-form-urlencoded
"
,
},
withCredentials
:
false
,
});
instance
.
interceptors
.
request
.
use
(
(
config
)
=>
{
if
(
config
.
method
===
"
post
"
&&
!
config
.
notQs
)
{
config
.
data
=
qs
.
stringify
(
config
.
data
);
}
if
(
config
.
url
.
indexOf
(
SERVER_URL
)
===
-
1
)
{
config
.
headers
[
"
Content-Type
"
]
=
"
multipart/form-data
"
;
}
else
{
config
.
headers
[
"
Content-Type
"
]
=
"
application/x-www-form-urlencoded
"
;
}
// 调用接口请求添加token认证信息
const
token
=
localStorage
.
getItem
(
'
index-token-all
'
);
config
.
headers
.
token
=
token
if
(
token
)
config
.
headers
.
authorization
=
token
;
return
config
;
},
(
error
)
=>
{
return
Promise
.
reject
(
error
);
}
);
export
default
instance
;
// 正在进行中的请求列表
const
reqList
=
[]
/**
* 阻止重复请求
* @param {array} reqList - 请求缓存列表
* @param {string} url - 当前请求地址
* @param {function} cancel - 请求中断函数
* @param {string} errorMessage - 请求中断时需要显示的错误信息
*/
const
stopRepeatRequest
=
function
(
reqList
,
url
,
cancel
,
errorMessage
)
{
const
errorMsg
=
errorMessage
||
''
for
(
let
i
=
0
;
i
<
reqList
.
length
;
i
++
)
{
if
(
reqList
[
i
]
===
url
)
{
// cancel(errorMsg);
return
}
}
reqList
.
push
(
url
)
}
/**
* 允许某个请求可以继续进行
* @param {array} reqList 全部请求列表
* @param {string} url 请求地址
*/
const
allowRequest
=
function
(
reqList
,
url
)
{
for
(
let
i
=
0
;
i
<
reqList
.
length
;
i
++
)
{
if
(
reqList
[
i
]
===
url
)
{
reqList
.
splice
(
i
,
1
)
break
}
}
}
let
loadingInstance
=
null
export
function
request
(
config
)
{
const
instance
=
axios
.
create
({
baseURL
:
process
.
env
.
NODE_ENV
===
'
development
'
?
DEVELOPMENT_SERVER_URL
:
SERVER_URL
,
timeout
:
60
*
1000
})
instance
.
interceptors
.
request
.
use
(
(
config
)
=>
{
const
loginUrl
=
'
/web/auth/login
'
;
const
setAccountInfo
=
'
/web/register/setAccountInfo
'
;
const
passMsgOld
=
'
/web/auth/changePassOld
'
;
const
getCam
=
'
/web/auth/getCam
'
;
const
LoginCode
=
'
/web/code/loginCode
'
;
const
registerCode
=
'
/web/code/registerCode
'
;
const
registerEmailCode
=
'
web/code/registerEmailCode
'
;
const
passwordEmailCode
=
'
web/code/passwordEmailCode
'
;
const
passwordCode
=
'
/web/code/passwordCode
'
;
const
changePassCode
=
'
/web/auth/changePassCode
'
;
const
loginOut
=
'
/web/auth/loginOut
'
;
const
setLog
=
'
/web/auth/setLog
'
;
const
LabelType
=
'
/activity/labelType
'
;
const
HotList
=
'
/activityCenter/hotList
'
;
const
GetActiveInfo
=
'
/activityCenter/detail/
'
;
if
((
config
.
url
.
indexOf
(
loginUrl
)
!=
-
1
&&
config
.
url
.
indexOf
(
loginOut
)
==
-
1
)
||
config
.
url
.
indexOf
(
setAccountInfo
)
!=
-
1
||
config
.
url
.
indexOf
(
passMsgOld
)
!=
-
1
||
config
.
url
.
indexOf
(
getCam
)
!=
-
1
||
config
.
url
.
indexOf
(
LoginCode
)
!=
-
1
||
config
.
url
.
indexOf
(
registerCode
)
!=
-
1
||
config
.
url
.
indexOf
(
registerEmailCode
)
!=
-
1
||
config
.
url
.
indexOf
(
passwordEmailCode
)
!=
-
1
||
config
.
url
.
indexOf
(
changePassCode
)
!=
-
1
||
config
.
url
.
indexOf
(
passwordCode
)
!=
-
1
||
config
.
url
.
indexOf
(
setLog
)
!=
-
1
||
config
.
url
.
indexOf
(
LabelType
)
!=
-
1
||
config
.
url
.
indexOf
(
HotList
)
!=
-
1
||
config
.
url
.
indexOf
(
GetActiveInfo
)
!=
-
1
)
{
return
config
}
const
token
=
localStorage
.
getItem
(
'
index-token-all
'
);
if
(
token
)
{
config
.
headers
.
token
=
token
;
}
else
{
router
.
push
({
path
:
'
/login
'
,
query
:
{
redirect
:
router
.
currentRoute
.
fullPath
}
// 从哪个页面跳转
})
const
error
=
new
Error
(
'
请登录!
'
)
return
Promise
.
reject
(
error
)
}
let
cancel
// 设置cancelToken对象
config
.
cancelToken
=
new
axios
.
CancelToken
(
function
(
c
)
{
cancel
=
c
})
if
(
config
.
url
.
indexOf
(
'
/web/config/getUniversity
'
)
==
-
1
&&
config
.
url
.
indexOf
(
'
/web/config/getProfession
'
)
==
-
1
)
{
// 阻止重复请求。当上个请求未完成时,相同的请求不会进行
stopRepeatRequest
(
reqList
,
config
.
url
,
cancel
,
`
${
config
.
url
}
请求被中断`
)
}
if
(
config
.
hasLoading
)
{
const
loadingText
=
config
.
loadingText
?
config
.
loadingText
:
'
请求中
'
loadingInstance
=
Loading
.
service
({
lock
:
true
,
fullscreen
:
true
,
text
:
loadingText
,
background
:
'
rgba(0, 0, 0, 0.25)
'
})
}
return
config
},
(
error
)
=>
{
return
Promise
.
reject
(
error
)
}
)
instance
.
interceptors
.
response
.
use
(
(
res
)
=>
{
if
(
res
.
data
.
code
==
400034
||
res
.
data
.
code
==
400035
||
// res.data.code == 400001 ||
res
.
data
.
code
==
400002
||
res
.
data
.
code
==
400003
)
{
router
.
push
({
path
:
'
/
'
+
store
.
state
.
indexIdentity
,
})
Notification
({
message
:
res
.
data
.
message
,
duration
:
1000
,
});
return
}
if
(
res
.
data
.
code
==
400023
)
{
let
isLogout
=
res
.
config
.
url
==
'
/web/auth/loginOut
'
;
// 清除本地缓存 除了特殊缓存
store
.
commit
(
'
removeLocalStorage
'
);
router
.
push
({
path
:
'
/
'
+
store
.
state
.
indexIdentity
,
})
if
(
!
isLogout
)
{
Notification
({
message
:
res
.
data
.
message
,
duration
:
3000
,
});
}
return
}
if
(
res
.
data
.
code
==
400003
)
{
// 清除本地缓存 除了特殊缓存
store
.
commit
(
'
removeLocalStorage
'
);
router
.
push
({
path
:
'
/login
'
,
query
:
{
redirect
:
router
.
currentRoute
.
fullPath
}
// 从哪个页面跳转
})
}
loadingInstance
&&
loadingInstance
.
close
()
setTimeout
(()
=>
{
allowRequest
(
reqList
,
res
.
config
.
url
)
},
1000
)
return
res
},
(
error
)
=>
{
console
.
log
(
error
,
'
err
'
)
Message
.
closeAll
()
if
(
error
.
message
==
'
请登录!
'
)
{
router
.
push
({
path
:
"
/login?code=
"
+
store
.
state
.
indexIdentity
,
})
}
if
(
error
.
response
.
status
==
404
)
{
Notification
({
message
:
"
营地报名已关闭
"
,
duration
:
3000
,
});
}
if
(
axios
.
isCancel
(
error
))
{
console
.
log
(
error
.
message
)
}
else
{
// 增加延迟,相同请求不得在短时间内重复发送
setTimeout
(()
=>
{
console
.
log
(
error
)
allowRequest
(
reqList
,
error
.
config
.
url
)
},
1000
)
}
loadingInstance
&&
loadingInstance
.
close
()
return
Promise
.
reject
(
error
)
}
)
return
instance
(
config
)
}
/**
* axios:upload 文件上传方法
* @param url
* @param data
* @returns {Promise}
*/
export
function
upload
(
url
,
data
=
{})
{
return
new
Promise
((
resolve
,
reject
)
=>
{
axios
.
post
(
url
,
data
).
then
(
(
response
)
=>
{
resolve
(
response
);
},
(
err
)
=>
{
reject
(
err
);
}
);
});
}
// 通用下载方法
export
function
download
(
url
,
params
,
filename
)
{
console
.
log
(
url
,
params
,
filename
)
return
instance
.
post
(
url
,
params
,
{
transformRequest
:
[
params
=>
{
return
tansParams
(
params
);
}
],
headers
:
{
"
Content-Type
"
:
"
application/x-www-form-urlencoded
"
},
responseType
:
"
blob
"
})
.
then
(
data
=>
{
const
content
=
data
;
const
blob
=
new
Blob
([
content
]);
if
(
"
download
"
in
document
.
createElement
(
"
a
"
))
{
const
elink
=
document
.
createElement
(
"
a
"
);
elink
.
download
=
filename
;
elink
.
style
.
display
=
"
none
"
;
elink
.
href
=
URL
.
createObjectURL
(
blob
);
document
.
body
.
appendChild
(
elink
);
elink
.
click
();
URL
.
revokeObjectURL
(
elink
.
href
);
document
.
body
.
removeChild
(
elink
);
}
else
{
navigator
.
msSaveBlob
(
blob
,
filename
);
}
})
.
catch
(
r
=>
{
console
.
error
(
r
);
});
}
// 合并多个请求
export
function
allRequest
(
arrRequest
)
{
return
axios
.
all
(
arrRequest
)
}
src/router/index.js
View file @
279944cb
...
@@ -153,16 +153,13 @@ function checkCam(code, cb) {
...
@@ -153,16 +153,13 @@ function checkCam(code, cb) {
window
.
localStorage
.
setItem
(
"
bk_pic
"
+
code
,
res
.
data
.
background_picture
);
window
.
localStorage
.
setItem
(
"
bk_pic
"
+
code
,
res
.
data
.
background_picture
);
//当前营地logo
//当前营地logo
window
.
localStorage
.
setItem
(
"
system_logo
"
+
code
,
res
.
data
.
system_logo
);
window
.
localStorage
.
setItem
(
"
system_logo
"
+
code
,
res
.
data
.
system_logo
);
window
.
localStorage
.
setItem
(
window
.
localStorage
.
setItem
(
"
doubt_code
"
+
code
,
"
doubt_code
"
+
code
,
res
.
data
.
fill_individual_Invitationcode
res
.
data
.
fill_individual_Invitationcode
);
//是否填写邀请码
);
//是否填写邀请码
window
.
localStorage
.
setItem
(
window
.
localStorage
.
setItem
(
"
doubt_info
"
+
code
,
"
doubt_info
"
+
code
,
res
.
data
.
fill_individual_information
res
.
data
.
fill_individual_information
);
//是否填写个人资料
);
//是否填写个人资料
window
.
localStorage
.
setItem
(
window
.
localStorage
.
setItem
(
"
doubt_check
"
+
code
,
"
doubt_check
"
+
code
,
res
.
data
.
audit_individual_information
res
.
data
.
audit_individual_information
);
//是否审核个人资料
);
//是否审核个人资料
// 判断使用微信二维码付款/上传转账截图
// 判断使用微信二维码付款/上传转账截图
...
...
src/store/mutations.js
View file @
279944cb
...
@@ -31,4 +31,17 @@ export default {
...
@@ -31,4 +31,17 @@ export default {
state
.
fullPath
=
path
;
state
.
fullPath
=
path
;
window
.
localStorage
.
setItem
(
'
index-fullPath
'
,
path
);
window
.
localStorage
.
setItem
(
'
index-fullPath
'
,
path
);
},
},
removeLocalStorage
(
state
){
for
(
let
key
in
window
.
localStorage
)
{
if
(
key
.
indexOf
(
'
email
'
)
==
-
1
&&
key
.
indexOf
(
'
multiform
'
)
==
-
1
&&
key
.
indexOf
(
'
register_code_time
'
)
==
-
1
&&
key
.
indexOf
(
'
restet_code_phone
'
)
==
-
1
&&
key
.
indexOf
(
'
restet_code_time
'
)
==
-
1
&&
key
.
indexOf
(
'
index-active-path
'
)
==
-
1
&&
key
.
indexOf
(
'
index-fullPath
'
)
==
-
1
)
{
window
.
localStorage
.
removeItem
(
key
);
}
}
},
};
};
src/views/base/login/Register.vue
View file @
279944cb
...
@@ -265,8 +265,7 @@
...
@@ -265,8 +265,7 @@
this
.
$message
.
success
(
res
.
data
.
message
);
this
.
$message
.
success
(
res
.
data
.
message
);
this
.
codeTime
=
res
.
data
.
data
.
now
*
1000
;
this
.
codeTime
=
res
.
data
.
data
.
now
*
1000
;
// console.log(this.codeTime)
// console.log(this.codeTime)
window
.
localStorage
.
setItem
(
window
.
localStorage
.
setItem
(
"
register_code_time
"
,
"
register_code_time
"
,
res
.
data
.
data
.
now
*
1000
res
.
data
.
data
.
now
*
1000
);
);
this
.
intervalHandle
(
new
Date
(),
res
.
data
.
data
.
now
*
1000
);
this
.
intervalHandle
(
new
Date
(),
res
.
data
.
data
.
now
*
1000
);
...
...
src/views/base/login/Reset.vue
View file @
279944cb
...
@@ -263,8 +263,7 @@
...
@@ -263,8 +263,7 @@
this
.
$message
.
success
(
res
.
data
.
message
);
this
.
$message
.
success
(
res
.
data
.
message
);
this
.
codeTime
=
res
.
data
.
data
.
now
*
1000
;
this
.
codeTime
=
res
.
data
.
data
.
now
*
1000
;
// console.log(this.codeTime)
// console.log(this.codeTime)
window
.
localStorage
.
setItem
(
window
.
localStorage
.
setItem
(
"
restet_code_time
"
,
"
restet_code_time
"
,
res
.
data
.
data
.
now
*
1000
res
.
data
.
data
.
now
*
1000
);
);
this
.
intervalHandle
(
new
Date
(),
res
.
data
.
data
.
now
*
1000
);
this
.
intervalHandle
(
new
Date
(),
res
.
data
.
data
.
now
*
1000
);
...
@@ -288,8 +287,7 @@
...
@@ -288,8 +287,7 @@
}
}
this
.
$message
.
success
(
res
.
data
.
message
);
this
.
$message
.
success
(
res
.
data
.
message
);
// token存储
// token存储
window
.
localStorage
.
setItem
(
window
.
localStorage
.
setItem
(
"
restet_code_phone
"
,
"
restet_code_phone
"
,
this
.
resetForm
.
phone
this
.
resetForm
.
phone
);
);
this
.
$router
.
replace
(
"
/baseLogin
"
);
this
.
$router
.
replace
(
"
/baseLogin
"
);
...
...
src/views/index/Info/personalInfo.vue
View file @
279944cb
...
@@ -534,11 +534,11 @@ export default {
...
@@ -534,11 +534,11 @@ export default {
mounted
()
{},
mounted
()
{},
created
()
{
created
()
{
const
code
=
this
.
$store
.
state
.
indexIdentity
;
const
code
=
this
.
$store
.
state
.
indexIdentity
;
this
.
referForm
.
phone
=
window
.
localStorage
.
getItem
(
"
phone
"
+
code
);
//本地取用户手机号
this
.
referForm
.
phone
=
window
.
localStorage
.
getItem
(
"
index-phone-all
"
);
//本地取用户手机号
this
.
referForm
.
email
=
window
.
localStorage
.
getItem
(
"
email
"
+
code
);
//本地取用户邮箱
this
.
referForm
.
email
=
window
.
localStorage
.
getItem
(
"
email
"
+
code
);
//本地取用户邮箱
console
.
log
(
this
.
referForm
.
email
,
"
this.referForm.email
"
);
console
.
log
(
this
.
referForm
.
email
,
"
this.referForm.email
"
);
let
signUpFile
=
window
.
localStorage
.
getItem
(
let
signUpFile
=
window
.
localStorage
.
getItem
(
"
sign_up_file_
"
+
window
.
localStorage
.
getItem
(
"
phone
"
+
code
)
+
code
"
sign_up_file_
"
+
window
.
localStorage
.
getItem
(
"
index-phone-all
"
)
+
code
);
);
// console.log(signUpFile);
// console.log(signUpFile);
if
(
signUpFile
&&
JSON
.
parse
(
signUpFile
).
length
>
0
)
{
if
(
signUpFile
&&
JSON
.
parse
(
signUpFile
).
length
>
0
)
{
...
@@ -791,8 +791,7 @@ export default {
...
@@ -791,8 +791,7 @@ export default {
if
(
res
.
data
.
code
===
200
)
{
if
(
res
.
data
.
code
===
200
)
{
this
.
schoolName
=
res
.
data
.
school_list
;
this
.
schoolName
=
res
.
data
.
school_list
;
let
code
=
this
.
$store
.
state
.
indexIdentity
;
let
code
=
this
.
$store
.
state
.
indexIdentity
;
window
.
localStorage
.
setItem
(
window
.
localStorage
.
setItem
(
"
schoolName
"
+
code
,
"
schoolName
"
+
code
,
JSON
.
stringify
(
res
.
data
.
list
)
JSON
.
stringify
(
res
.
data
.
list
)
);
);
for
(
let
key
in
this
.
schoolName
)
{
for
(
let
key
in
this
.
schoolName
)
{
...
...
src/views/index/camp/SignUp.vue
View file @
279944cb
...
@@ -208,8 +208,7 @@
...
@@ -208,8 +208,7 @@
);
);
if
(
!
camp_statement
)
{
if
(
!
camp_statement
)
{
this
.
dialogVisible
=
true
;
//营地通知列表弹窗
this
.
dialogVisible
=
true
;
//营地通知列表弹窗
window
.
localStorage
.
setItem
(
window
.
localStorage
.
setItem
(
"
camp_statement
"
+
this
.
$store
.
state
.
indexIdentity
,
"
camp_statement
"
+
this
.
$store
.
state
.
indexIdentity
,
"
1
"
"
1
"
);
);
}
}
...
@@ -354,15 +353,12 @@
...
@@ -354,15 +353,12 @@
window
.
localStorage
.
setItem
(
"
has_amount
"
+
code
,
res
.
data
.
has_amount
);
window
.
localStorage
.
setItem
(
"
has_amount
"
+
code
,
res
.
data
.
has_amount
);
window
.
localStorage
.
setItem
(
"
campsite_id
"
+
code
,
res
.
data
.
campsite_id
);
window
.
localStorage
.
setItem
(
"
campsite_id
"
+
code
,
res
.
data
.
campsite_id
);
window
.
localStorage
.
setItem
(
"
order_no
"
+
code
,
res
.
data
.
order_no
);
window
.
localStorage
.
setItem
(
"
order_no
"
+
code
,
res
.
data
.
order_no
);
window
.
localStorage
.
setItem
(
window
.
localStorage
.
setItem
(
"
examine_status
"
+
code
,
"
examine_status
"
+
code
,
res
.
data
.
examine_status
res
.
data
.
examine_status
);
//返回错误原因
);
//返回错误原因
window
.
localStorage
.
setItem
(
window
.
localStorage
.
setItem
(
"
examine_reason
"
+
code
,
"
examine_reason
"
+
code
,
res
.
data
.
examine_reason
res
.
data
.
examine_reason
);
//资料审核状态
);
//资料审核状态
// window.localStorage.setItem("achievement_path", res.data.achievement_path); //上传的图片
const
aPath
=
res
.
data
.
achievement_path
;
const
aPath
=
res
.
data
.
achievement_path
;
if
(
aPath
)
{
if
(
aPath
)
{
let
arr
=
aPath
.
split
(
"
,
"
);
let
arr
=
aPath
.
split
(
"
,
"
);
...
@@ -374,9 +370,8 @@
...
@@ -374,9 +370,8 @@
return
obj
;
return
obj
;
});
});
// let code = this.$store.state.indexIdentity;
// let code = this.$store.state.indexIdentity;
window
.
localStorage
.
setItem
(
window
.
localStorage
.
setItem
(
"
sign_up_file_
"
+
"
sign_up_file_
"
+
window
.
localStorage
.
getItem
(
"
index-phone-all
"
)
+
window
.
localStorage
.
getItem
(
"
phone
"
+
code
)
+
code
,
code
,
JSON
.
stringify
(
fileList
)
JSON
.
stringify
(
fileList
)
);
//上传的图片
);
//上传的图片
...
@@ -397,13 +392,11 @@
...
@@ -397,13 +392,11 @@
// console.log(fileList)
// console.log(fileList)
// console.log(JSON.stringify(fileList))
// console.log(JSON.stringify(fileList))
// let code = this.$store.state.indexIdentity;
// let code = this.$store.state.indexIdentity;
window
.
localStorage
.
setItem
(
window
.
localStorage
.
setItem
(
"
bank_info
"
+
window
.
localStorage
.
getItem
(
"
index-phone-all
"
)
+
code
,
"
bank_info
"
+
window
.
localStorage
.
getItem
(
"
phone
"
+
code
)
+
code
,
JSON
.
stringify
(
fileList
)
JSON
.
stringify
(
fileList
)
);
//上传的图片
);
//上传的图片
}
else
{
}
else
{
window
.
localStorage
.
setItem
(
window
.
localStorage
.
setItem
(
"
bank_info
"
+
window
.
localStorage
.
getItem
(
"
index-phone-all
"
)
+
code
,
"
bank_info
"
+
window
.
localStorage
.
getItem
(
"
phone
"
+
code
)
+
code
,
"
[]
"
"
[]
"
);
);
}
}
...
...
src/views/index/camp/homework/refer.vue
View file @
279944cb
...
@@ -271,7 +271,7 @@
...
@@ -271,7 +271,7 @@
console
.
log
(
value
,
"
value
"
);
console
.
log
(
value
,
"
value
"
);
// let code = this.$store.state.indexIdentity;
// let code = this.$store.state.indexIdentity;
// this.formData.stu_enclosure_url = window.localStorage.getItem(
// this.formData.stu_enclosure_url = window.localStorage.getItem(
// "student_file_" + window.localStorage.getItem("
phone" + code
) + code
// "student_file_" + window.localStorage.getItem("
index-phone-all"
) + code
// );
// );
// console.log(
// console.log(
// this.stu_fileList,' this.stu_fileList'
// this.stu_fileList,' this.stu_fileList'
...
@@ -327,12 +327,10 @@
...
@@ -327,12 +327,10 @@
};
};
},
},
created
()
{
created
()
{
// console.log(this.formData.stu_enclosure_url);
let
code
=
this
.
$store
.
state
.
indexIdentity
;
let
code
=
this
.
$store
.
state
.
indexIdentity
;
let
stu_fileListoss
=
window
.
localStorage
.
getItem
(
let
stu_fileListoss
=
window
.
localStorage
.
getItem
(
"
student_file_
"
+
window
.
localStorage
.
getItem
(
"
phone
"
+
code
)
+
code
"
student_file_
"
+
window
.
localStorage
.
getItem
(
"
index-phone-all
"
)
+
code
);
);
console
.
log
(
stu_fileListoss
);
if
(
stu_fileListoss
&&
JSON
.
parse
(
stu_fileListoss
).
length
>
0
)
{
if
(
stu_fileListoss
&&
JSON
.
parse
(
stu_fileListoss
).
length
>
0
)
{
this
.
stu_fileListoss
=
JSON
.
parse
(
stu_fileListoss
);
this
.
stu_fileListoss
=
JSON
.
parse
(
stu_fileListoss
);
}
}
...
@@ -352,7 +350,6 @@
...
@@ -352,7 +350,6 @@
//老师作业展示
//老师作业展示
getTeachList
()
{
getTeachList
()
{
let
url
=
this
.
enclosure_urls
;
let
url
=
this
.
enclosure_urls
;
// console.log(this.enclosure_urls);
if
(
this
.
enclosure_urls
)
{
if
(
this
.
enclosure_urls
)
{
let
arr
=
url
.
split
(
"
,
"
);
let
arr
=
url
.
split
(
"
,
"
);
arr
.
forEach
((
item
)
=>
{
arr
.
forEach
((
item
)
=>
{
...
@@ -368,16 +365,7 @@
...
@@ -368,16 +365,7 @@
},
},
// 下载老师附件
// 下载老师附件
downloadStuFile
(
url
)
{
downloadStuFile
(
url
)
{
// this.download(
// "http://api.campcenter.cn/web/download/downloadTeacherWork",
// {
// enclosure_url: url,
// identity: this.$store.state.indexIdentity
// },
// ""
// );
downloadTeacherWork
({
enclosure_url
:
url
}).
then
((
res
)
=>
{
downloadTeacherWork
({
enclosure_url
:
url
}).
then
((
res
)
=>
{
// console.log(res, "res");
if
(
res
.
data
.
code
!=
200
)
{
if
(
res
.
data
.
code
!=
200
)
{
return
this
.
$message
.
error
(
res
.
data
.
message
);
return
this
.
$message
.
error
(
res
.
data
.
message
);
}
}
...
@@ -394,7 +382,6 @@
...
@@ -394,7 +382,6 @@
// 下载老师评分结果
// 下载老师评分结果
downloadScoreFile
(
url
)
{
downloadScoreFile
(
url
)
{
downloadTeacherWork
({
enclosure_url
:
url
}).
then
((
res
)
=>
{
downloadTeacherWork
({
enclosure_url
:
url
}).
then
((
res
)
=>
{
// console.log(res, "res");
if
(
res
.
data
.
code
!=
200
)
{
if
(
res
.
data
.
code
!=
200
)
{
return
this
.
$message
.
error
(
res
.
data
.
message
);
return
this
.
$message
.
error
(
res
.
data
.
message
);
}
}
...
@@ -410,13 +397,8 @@
...
@@ -410,13 +397,8 @@
},
},
// 学生作业回显
// 学生作业回显
getStudentWork
(
student_status
)
{
getStudentWork
(
student_status
)
{
// console.log(student_status, "student_status");
let
stu_work_num
=
this
.
work_nums
;
let
stu_work_num
=
this
.
work_nums
;
// console.log(stu_work_num);
// console.log(this.formData);
// return
getStudentWork
({
teacher_id
:
stu_work_num
}).
then
((
res
)
=>
{
getStudentWork
({
teacher_id
:
stu_work_num
}).
then
((
res
)
=>
{
// console.log(res, "getStudentWork");
if
(
res
.
data
.
code
!=
200
)
{
if
(
res
.
data
.
code
!=
200
)
{
return
this
.
$message
.
error
(
res
.
data
.
message
);
return
this
.
$message
.
error
(
res
.
data
.
message
);
}
}
...
@@ -424,10 +406,8 @@
...
@@ -424,10 +406,8 @@
if
(
student_status
==
1
)
{
if
(
student_status
==
1
)
{
// 学生已提交
// 学生已提交
this
.
formData
.
stu_answer
=
res
.
data
.
data
.
stu_answer
;
this
.
formData
.
stu_answer
=
res
.
data
.
data
.
stu_answer
;
// console.log(this.formData);
//学生的已经提交的相关附件
//学生的已经提交的相关附件
this
.
formData
.
stu_enclosure_url
=
res
.
data
.
data
.
stu_enclosure_url
;
this
.
formData
.
stu_enclosure_url
=
res
.
data
.
data
.
stu_enclosure_url
;
console
.
log
(
this
.
formData
.
stu_enclosure_url
)
let
gotfileList
=
res
.
data
.
data
.
work
;
let
gotfileList
=
res
.
data
.
data
.
work
;
if
(
gotfileList
)
{
if
(
gotfileList
)
{
this
.
stu_fileList
=
gotfileList
.
map
((
item
)
=>
{
this
.
stu_fileList
=
gotfileList
.
map
((
item
)
=>
{
...
@@ -438,14 +418,11 @@
...
@@ -438,14 +418,11 @@
type
:
item
.
type
,
type
:
item
.
type
,
};
};
});
});
//
this
.
fileList
=
gotfileList
.
map
((
item
)
=>
{
this
.
fileList
=
gotfileList
.
map
((
item
)
=>
{
return
{
return
{
url_open
:
item
.
url_open
,
url_open
:
item
.
url_open
,
};
};
});
});
console
.
log
(
this
.
stu_fileList
);
console
.
log
(
this
.
fileList
);
}
}
this
.
$forceUpdate
();
this
.
$forceUpdate
();
}
else
if
(
student_status
==
2
)
{
}
else
if
(
student_status
==
2
)
{
...
@@ -464,11 +441,9 @@
...
@@ -464,11 +441,9 @@
}
}
this
.
score
=
res
.
data
.
data
.
score
;
//老师评分
this
.
score
=
res
.
data
.
data
.
score
;
//老师评分
this
.
teacher_commment
=
res
.
data
.
data
.
teacher_commment
;
//老师评语
this
.
teacher_commment
=
res
.
data
.
data
.
teacher_commment
;
//老师评语
// console.log(res.data.data.teacher_commment, " this.teacher_commment");
let
scoreFileList
=
res
.
data
.
data
.
teacher_url
;
let
scoreFileList
=
res
.
data
.
data
.
teacher_url
;
if
(
scoreFileList
)
{
if
(
scoreFileList
)
{
let
arr
=
scoreFileList
.
split
(
"
,
"
);
let
arr
=
scoreFileList
.
split
(
"
,
"
);
// console.log(arr, "arr");
this
.
tea_scoreFileList
=
arr
.
map
((
item
)
=>
{
this
.
tea_scoreFileList
=
arr
.
map
((
item
)
=>
{
return
{
return
{
name
:
item
.
split
(
"
workforstudent/
"
)[
1
],
name
:
item
.
split
(
"
workforstudent/
"
)[
1
],
...
@@ -486,7 +461,7 @@
...
@@ -486,7 +461,7 @@
cancelBtnTrue
()
{
cancelBtnTrue
()
{
let
code
=
this
.
$store
.
state
.
indexIdentity
;
let
code
=
this
.
$store
.
state
.
indexIdentity
;
window
.
localStorage
.
removeItem
(
window
.
localStorage
.
removeItem
(
"
student_file_
"
+
window
.
localStorage
.
getItem
(
"
phone
"
+
code
)
+
code
"
student_file_
"
+
window
.
localStorage
.
getItem
(
"
index-phone-all
"
)
+
code
);
);
this
.
stu_fileList
=
[];
this
.
stu_fileList
=
[];
this
.
stu_fileListoss
=
""
;
this
.
stu_fileListoss
=
""
;
...
@@ -501,10 +476,9 @@
...
@@ -501,10 +476,9 @@
cancelBtn
()
{
cancelBtn
()
{
let
code
=
this
.
$store
.
state
.
indexIdentity
;
let
code
=
this
.
$store
.
state
.
indexIdentity
;
window
.
localStorage
.
removeItem
(
window
.
localStorage
.
removeItem
(
"
student_file_
"
+
window
.
localStorage
.
getItem
(
"
phone
"
+
code
)
+
code
"
student_file_
"
+
window
.
localStorage
.
getItem
(
"
index-phone-all
"
)
+
code
);
);
this
.
stu_fileList
=
[];
this
.
stu_fileList
=
[];
this
.
stu_fileListoss
=
""
;
this
.
stu_fileListoss
=
""
;
this
.
teaFileList
=
[];
this
.
teaFileList
=
[];
this
.
dialogVisible
=
false
;
this
.
dialogVisible
=
false
;
...
@@ -520,10 +494,7 @@
...
@@ -520,10 +494,7 @@
},
},
uploadPicture
(
params
)
{
uploadPicture
(
params
)
{
this
.
isUploading
=
true
;
this
.
isUploading
=
true
;
// console.log("已经准备好上传图片", params);
this
.
file
=
params
.
file
;
this
.
file
=
params
.
file
;
// console.log(this.file, "1111");
console
.
log
(
this
.
file
,
"
1111
"
);
let
raw
=
params
.
file
;
let
raw
=
params
.
file
;
let
image
=
{
let
image
=
{
name
:
raw
.
name
,
name
:
raw
.
name
,
...
@@ -542,7 +513,6 @@
...
@@ -542,7 +513,6 @@
teacher_id
:
this
.
work_nums
,
teacher_id
:
this
.
work_nums
,
})
})
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
// console.log(res, "开始上传图片");
if
(
res
.
data
.
code
===
200
)
{
if
(
res
.
data
.
code
===
200
)
{
let
oss_url
=
res
.
data
.
config
.
host
;
let
oss_url
=
res
.
data
.
config
.
host
;
let
filename
=
res
.
data
.
config
.
file
;
let
filename
=
res
.
data
.
config
.
file
;
...
@@ -555,12 +525,10 @@
...
@@ -555,12 +525,10 @@
formData
.
append
(
"
callback
"
,
res
.
data
.
config
.
callback
);
formData
.
append
(
"
callback
"
,
res
.
data
.
config
.
callback
);
formData
.
append
(
"
success_action_status
"
,
200
);
formData
.
append
(
"
success_action_status
"
,
200
);
formData
.
append
(
"
file
"
,
file
);
formData
.
append
(
"
file
"
,
file
);
// console.log(formData);
this
.
upload
(
oss_url
,
formData
)
this
.
upload
(
oss_url
,
formData
)
.
then
((
ress
)
=>
{
.
then
((
ress
)
=>
{
console
.
log
(
ress
,
"
ress
"
);
console
.
log
(
ress
,
"
ress
"
);
if
(
ress
.
data
.
code
!=
200
)
{
if
(
ress
.
data
.
code
!=
200
)
{
// console.log(ress, "ress");
this
.
isUploading
=
false
;
this
.
isUploading
=
false
;
return
this
.
$message
.
error
(
ress
.
data
.
message
);
return
this
.
$message
.
error
(
ress
.
data
.
message
);
}
}
...
@@ -572,27 +540,20 @@
...
@@ -572,27 +540,20 @@
savefile
:
res
.
data
.
config
.
savefile
,
savefile
:
res
.
data
.
config
.
savefile
,
name
:
res
.
data
.
config
.
savefile
.
split
(
"
/work/
"
)[
1
],
name
:
res
.
data
.
config
.
savefile
.
split
(
"
/work/
"
)[
1
],
};
};
console
.
log
(
this
.
stu_fileList
,
"
this.stu_fileList
"
);
this
.
stu_fileList
.
push
(
obj
);
this
.
stu_fileList
.
push
(
obj
);
this
.
fileList
.
push
(
obj
);
this
.
fileList
.
push
(
obj
);
console
.
log
(
this
.
fileList
,
'
this.fileList
'
)
this
.
stu_fileListoss
=
this
.
stu_fileList
this
.
stu_fileListoss
=
this
.
stu_fileList
.
map
((
item
)
=>
{
.
map
((
item
)
=>
{
return
item
.
url_open
;
return
item
.
url_open
;
})
})
.
join
(
"
,
"
);
.
join
(
"
,
"
);
console
.
log
(
this
.
stu_fileListoss
,
"
stu_fileListoss
"
);
// this.formData.stu_enclosure_url = this.stu_fileListoss;
let
code
=
this
.
$store
.
state
.
indexIdentity
;
let
code
=
this
.
$store
.
state
.
indexIdentity
;
console
.
log
(
typeof
(
this
.
stu_fileListoss
))
window
.
localStorage
.
setItem
(
"
student_file_
"
+
window
.
localStorage
.
setItem
(
+
window
.
localStorage
.
getItem
(
"
index-phone-all
"
)
+
"
student_file_
"
+
+
window
.
localStorage
.
getItem
(
"
phone
"
+
code
)
+
code
,
code
,
JSON
.
stringify
(
this
.
stu_fileListoss
)
JSON
.
stringify
(
this
.
stu_fileListoss
)
);
);
console
.
log
(
'
student_file_
'
)
this
.
isUploading
=
false
;
this
.
isUploading
=
false
;
})
})
.
catch
((
err
)
=>
{
.
catch
((
err
)
=>
{
...
@@ -606,7 +567,6 @@
...
@@ -606,7 +567,6 @@
})
})
.
catch
((
err
)
=>
{
.
catch
((
err
)
=>
{
this
.
isUploading
=
false
;
this
.
isUploading
=
false
;
// console.log(err);
});
});
},
},
// 下载证明资料图片
// 下载证明资料图片
...
@@ -640,7 +600,7 @@
...
@@ -640,7 +600,7 @@
if
(
item
.
url_open
==
file
.
url_open
)
{
if
(
item
.
url_open
==
file
.
url_open
)
{
this
.
stu_fileList
.
splice
(
idx
,
1
);
this
.
stu_fileList
.
splice
(
idx
,
1
);
// this.fileList.splice(idx, 1);
// this.fileList.splice(idx, 1);
console
.
log
(
this
.
fileList
);
console
.
log
(
this
.
fileList
);
let
code
=
this
.
$store
.
state
.
indexIdentity
;
let
code
=
this
.
$store
.
state
.
indexIdentity
;
this
.
stu_fileListoss
=
this
.
stu_fileList
this
.
stu_fileListoss
=
this
.
stu_fileList
.
map
(
function
(
item
,
index
)
{
.
map
(
function
(
item
,
index
)
{
...
@@ -650,9 +610,8 @@
...
@@ -650,9 +610,8 @@
console
.
log
(
this
.
stu_fileListoss
);
console
.
log
(
this
.
stu_fileListoss
);
console
.
log
(
this
.
stu_fileList
);
console
.
log
(
this
.
stu_fileList
);
this
.
$message
.
success
(
res
.
data
.
message
);
this
.
$message
.
success
(
res
.
data
.
message
);
window
.
localStorage
.
setItem
(
window
.
localStorage
.
setItem
(
"
student_file_
"
+
"
student_file_
"
+
window
.
localStorage
.
getItem
(
"
index-phone-all
"
)
+
window
.
localStorage
.
getItem
(
"
phone
"
+
code
)
+
code
,
code
,
this
.
stu_fileListoss
this
.
stu_fileListoss
);
);
...
@@ -698,10 +657,10 @@
...
@@ -698,10 +657,10 @@
.
substring
(
url
.
lastIndexOf
(
"
.
"
)
+
1
,
url
.
length
)
.
substring
(
url
.
lastIndexOf
(
"
.
"
)
+
1
,
url
.
length
)
.
split
(
"
?
"
)[
0
];
.
split
(
"
?
"
)[
0
];
let
isWord
=
onlineViewType
.
find
((
type
)
=>
type
===
fileTypeName
);
let
isWord
=
onlineViewType
.
find
((
type
)
=>
type
===
fileTypeName
);
console
.
log
(
isWord
,
'
isWord
'
)
console
.
log
(
isWord
,
'
isWord
'
)
if
(
isWord
==
'
ppt
'
||
isWord
==
'
pptx
'
)
{
if
(
isWord
==
'
ppt
'
||
isWord
==
'
pptx
'
)
{
url
=
"
http://view.officeapps.live.com/op/view.aspx?src=
"
+
url
;
url
=
"
http://view.officeapps.live.com/op/view.aspx?src=
"
+
url
;
}
else
{
}
else
{
url
=
url
;
url
=
url
;
}
}
window
.
open
(
url
,
"
_blank
"
);
window
.
open
(
url
,
"
_blank
"
);
...
...
src/views/index/login/Login.vue
View file @
279944cb
<
template
>
<
template
>
<div
class=
"container"
>
<div
class=
"container"
>
<div
class=
"title_Login"
>
<div
class=
"title_Login"
>
<div
v-if=
"changeLogin == 1"
>
<div
v-if=
"changeLogin == 1"
>
...
@@ -79,7 +79,7 @@
...
@@ -79,7 +79,7 @@
:prop=
"changeLogin == 2 ? 'code' : ''"
:prop=
"changeLogin == 2 ? 'code' : ''"
ref=
"code"
ref=
"code"
>
>
<img
class=
"img_l"
src=
"@/assets/img/reset/code.png"
alt=
""
/>
<img
class=
"img_l"
src=
"@/assets/img/reset/code.png"
alt=
""
/>
<el-input
<el-input
v-model=
"loginForm.code"
v-model=
"loginForm.code"
placeholder=
"请输入短信验证码"
placeholder=
"请输入短信验证码"
...
@@ -110,13 +110,13 @@
...
@@ -110,13 +110,13 @@
</
template
>
</
template
>
<
script
>
<
script
>
/* eslint-disable */
/* eslint-disable */
import
Cookie
from
"
js-cookie
"
;
import
Cookie
from
"
js-cookie
"
;
import
{
login
,
loginCode
}
from
"
r/index/login
"
;
import
{
login
,
loginCode
}
from
"
r/index/login
"
;
import
{
mobileCheck
}
from
"
@/common/utils.js
"
;
import
{
mobileCheck
}
from
"
@/common/utils.js
"
;
import
{
intervalTime
}
from
"
store/time
"
;
import
{
intervalTime
}
from
"
store/time
"
;
export
default
{
export
default
{
name
:
"
index-login
"
,
name
:
"
index-login
"
,
data
()
{
data
()
{
return
{
return
{
...
@@ -135,7 +135,7 @@ export default {
...
@@ -135,7 +135,7 @@ export default {
loginFormRules
:
{
loginFormRules
:
{
// 对手机号进行校验
// 对手机号进行校验
phone
:
[
phone
:
[
{
required
:
true
,
message
:
"
请输入手机号
"
,
trigger
:
"
blur
"
},
{
required
:
true
,
message
:
"
请输入手机号
"
,
trigger
:
"
blur
"
},
{
{
validator
:
function
(
rule
,
value
,
callback
)
{
validator
:
function
(
rule
,
value
,
callback
)
{
if
(
mobileCheck
(
value
)
===
false
)
{
if
(
mobileCheck
(
value
)
===
false
)
{
...
@@ -182,8 +182,8 @@ export default {
...
@@ -182,8 +182,8 @@ export default {
],
],
// 对验证码进行校验
// 对验证码进行校验
code
:
[
code
:
[
{
required
:
true
,
message
:
"
请输入验证码
"
,
trigger
:
"
blur
"
},
{
required
:
true
,
message
:
"
请输入验证码
"
,
trigger
:
"
blur
"
},
{
min
:
6
,
max
:
20
,
message
:
"
请输入正确的验证码
"
,
trigger
:
"
blur
"
},
{
min
:
6
,
max
:
20
,
message
:
"
请输入正确的验证码
"
,
trigger
:
"
blur
"
},
],
],
},
},
changeLogin
:
2
,
changeLogin
:
2
,
...
@@ -298,14 +298,13 @@ export default {
...
@@ -298,14 +298,13 @@ export default {
// 跳转到报名
// 跳转到报名
const
code
=
this
.
$store
.
state
.
indexIdentity
;
const
code
=
this
.
$store
.
state
.
indexIdentity
;
// token存储
// token存储
window
.
localStorage
.
setItem
(
"
index-token
"
+
code
,
res
.
data
.
token
);
window
.
localStorage
.
setItem
(
"
index-token-all
"
,
res
.
data
.
token
);
window
.
localStorage
.
setItem
(
"
phone
"
+
code
,
this
.
loginForm
.
phone
);
window
.
localStorage
.
setItem
(
"
index-phone-all
"
,
this
.
loginForm
.
phone
);
window
.
localStorage
.
setItem
(
"
email
"
+
code
,
res
.
data
.
email
);
window
.
localStorage
.
setItem
(
"
email
"
+
code
,
res
.
data
.
email
);
// 报名信息
// 报名信息
window
.
localStorage
.
setItem
(
"
camp_name
"
+
code
,
res
.
data
.
cam
.
name
);
window
.
localStorage
.
setItem
(
"
camp_name
"
+
code
,
res
.
data
.
cam
.
name
);
//获取主题色
//获取主题色
window
.
localStorage
.
setItem
(
window
.
localStorage
.
setItem
(
"
system_color
"
+
code
,
"
system_color
"
+
code
,
res
.
data
.
cam
.
system_color
res
.
data
.
cam
.
system_color
);
);
this
.
$router
.
replace
(
"
/signUp/examInfo?code=
"
+
code
);
this
.
$router
.
replace
(
"
/signUp/examInfo?code=
"
+
code
);
...
@@ -313,14 +312,15 @@ export default {
...
@@ -313,14 +312,15 @@ export default {
});
});
},
},
},
},
};
};
</
script
>
</
script
>
<
style
scoped
lang=
"scss"
>
<
style
scoped
lang=
"scss"
>
.flex
{
.flex
{
display
:
flex
;
display
:
flex
;
}
}
.container
{
.container
{
height
:
440px
;
height
:
440px
;
background
:
#ffffff
;
background
:
#ffffff
;
box-shadow
:
0px
1px
18px
0px
rgba
(
0
,
0
,
0
,
0
.06
);
box-shadow
:
0px
1px
18px
0px
rgba
(
0
,
0
,
0
,
0
.06
);
...
@@ -328,10 +328,12 @@ export default {
...
@@ -328,10 +328,12 @@ export default {
padding
:
40px
60px
;
padding
:
40px
60px
;
margin-top
:
0
;
margin-top
:
0
;
overflow
:
hidden
;
overflow
:
hidden
;
.title_Login
{
.title_Login
{
position
:
relative
;
position
:
relative
;
margin
:
19px
0
0
0
;
margin
:
19px
0
0
0
;
text-align
:
center
;
text-align
:
center
;
.title
{
.title
{
height
:
20px
;
height
:
20px
;
font-size
:
16px
;
font-size
:
16px
;
...
@@ -340,6 +342,7 @@ export default {
...
@@ -340,6 +342,7 @@ export default {
line-height
:
20px
;
line-height
:
20px
;
text-align
:
right
;
text-align
:
right
;
}
}
.change_login
{
.change_login
{
font-size
:
22px
;
font-size
:
22px
;
margin-top
:
32px
;
margin-top
:
32px
;
...
@@ -350,12 +353,15 @@ export default {
...
@@ -350,12 +353,15 @@ export default {
.el-form
{
.el-form
{
margin-top
:
60px
;
margin-top
:
60px
;
.el-form-item
{
.el-form-item
{
position
:
relative
;
position
:
relative
;
margin-bottom
:
30px
;
margin-bottom
:
30px
;
&
:last-child
{
&
:last-child
{
margin
:
0
;
margin
:
0
;
}
}
.phoneCode
{
.phoneCode
{
position
:
absolute
;
position
:
absolute
;
z-index
:
999
;
z-index
:
999
;
...
@@ -370,6 +376,7 @@ export default {
...
@@ -370,6 +376,7 @@ export default {
color
:
var
(
--
color
);
color
:
var
(
--
color
);
}
}
}
}
img
.img_l
{
img
.img_l
{
position
:
absolute
;
position
:
absolute
;
left
:
25px
;
left
:
25px
;
...
@@ -377,6 +384,7 @@ export default {
...
@@ -377,6 +384,7 @@ export default {
transform
:
translate
(
-50%
,
-50%
);
transform
:
translate
(
-50%
,
-50%
);
z-index
:
1000
;
z-index
:
1000
;
}
}
img
.img_r
{
img
.img_r
{
position
:
absolute
;
position
:
absolute
;
right
:
15px
;
right
:
15px
;
...
@@ -384,6 +392,7 @@ export default {
...
@@ -384,6 +392,7 @@ export default {
transform
:
translate
(
0
,
-50%
);
transform
:
translate
(
0
,
-50%
);
z-index
:
1000
;
z-index
:
1000
;
}
}
::v-deep
.el-input__inner
{
::v-deep
.el-input__inner
{
height
:
50px
;
height
:
50px
;
line-height
:
50px
;
line-height
:
50px
;
...
@@ -392,13 +401,16 @@ export default {
...
@@ -392,13 +401,16 @@ export default {
color
:
#4d4d4d
;
color
:
#4d4d4d
;
border
:
0
;
border
:
0
;
border-bottom
:
2px
solid
#d9d9d9
;
border-bottom
:
2px
solid
#d9d9d9
;
&
:focus
{
&
:focus
{
border-bottom-color
:
var
(
--
color
);
border-bottom-color
:
var
(
--
color
);
}
}
}
}
::v-deep
.el-form-item__error
{
::v-deep
.el-form-item__error
{
color
:
#e0823d
;
color
:
#e0823d
;
}
}
.el-button
{
.el-button
{
width
:
100%
;
width
:
100%
;
height
:
60px
;
height
:
60px
;
...
@@ -414,11 +426,13 @@ export default {
...
@@ -414,11 +426,13 @@ export default {
border
:
none
;
border
:
none
;
}
}
}
}
.box
{
.box
{
height
:
18px
;
height
:
18px
;
// display: block;
// display: block;
display
:
flex
;
display
:
flex
;
flex-direction
:
column
;
flex-direction
:
column
;
.fl
{
.fl
{
float
:
right
;
float
:
right
;
height
:
18px
;
height
:
18px
;
...
@@ -426,11 +440,13 @@ export default {
...
@@ -426,11 +440,13 @@ export default {
color
:
#999999
;
color
:
#999999
;
margin-top
:
-10px
;
margin-top
:
-10px
;
cursor
:
pointer
;
cursor
:
pointer
;
&
:hover
{
&
:hover
{
color
:
var
(
--
color
);
color
:
var
(
--
color
);
text-decoration
:
underline
;
text-decoration
:
underline
;
}
}
}
}
.fr
{
.fr
{
float
:
left
;
float
:
left
;
height
:
18px
;
height
:
18px
;
...
@@ -438,11 +454,13 @@ export default {
...
@@ -438,11 +454,13 @@ export default {
color
:
#999999
;
color
:
#999999
;
margin-top
:
-10px
;
margin-top
:
-10px
;
cursor
:
pointer
;
cursor
:
pointer
;
&
:hover
{
&
:hover
{
color
:
var
(
--
color
);
color
:
var
(
--
color
);
text-decoration
:
underline
;
text-decoration
:
underline
;
}
}
}
}
.fc
{
.fc
{
font-size
:
4px
;
font-size
:
4px
;
float
:
right
;
float
:
right
;
...
@@ -458,5 +476,5 @@ export default {
...
@@ -458,5 +476,5 @@ export default {
}
}
}
}
}
}
}
}
</
style
>
</
style
>
src/views/index/login/Register.vue
View file @
279944cb
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
class=
"demo-registerForm"
class=
"demo-registerForm"
>
>
<el-form-item
prop=
"phone"
>
<el-form-item
prop=
"phone"
>
<img
class=
"img_l"
src=
"@/assets/img/reset/username.png"
alt=
""
/>
<img
class=
"img_l"
src=
"@/assets/img/reset/username.png"
alt=
""
/>
<el-input
<el-input
v-model=
"registerForm.phone"
v-model=
"registerForm.phone"
placeholder=
"请输入手机号"
placeholder=
"请输入手机号"
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
></el-input>
></el-input>
</el-form-item>
-->
</el-form-item>
-->
<el-form-item
prop=
"code"
>
<el-form-item
prop=
"code"
>
<img
class=
"img_l"
src=
"@/assets/img/reset/code.png"
alt=
""
/>
<img
class=
"img_l"
src=
"@/assets/img/reset/code.png"
alt=
""
/>
<el-input
<el-input
v-model=
"registerForm.code"
v-model=
"registerForm.code"
placeholder=
"请输入短信验证码"
placeholder=
"请输入短信验证码"
...
@@ -61,7 +61,7 @@
...
@@ -61,7 +61,7 @@
</div>
</div>
</el-form-item>
</el-form-item>
<el-form-item
prop=
"password"
>
<el-form-item
prop=
"password"
>
<img
class=
"img_l"
src=
"@/assets/img/reset/password.png"
alt=
""
/>
<img
class=
"img_l"
src=
"@/assets/img/reset/password.png"
alt=
""
/>
<el-input
<el-input
v-model=
"registerForm.password"
v-model=
"registerForm.password"
maxlength=
"20"
maxlength=
"20"
...
@@ -84,7 +84,7 @@
...
@@ -84,7 +84,7 @@
/>
-->
/>
-->
</el-form-item>
</el-form-item>
<el-form-item
prop=
"rq_password"
>
<el-form-item
prop=
"rq_password"
>
<img
class=
"img_l"
src=
"@/assets/img/reset/password.png"
alt=
""
/>
<img
class=
"img_l"
src=
"@/assets/img/reset/password.png"
alt=
""
/>
<el-input
<el-input
v-model=
"registerForm.rq_password"
v-model=
"registerForm.rq_password"
placeholder=
"请再次输入登录密码"
placeholder=
"请再次输入登录密码"
...
@@ -106,19 +106,19 @@
...
@@ -106,19 +106,19 @@
</
template
>
</
template
>
<
script
>
<
script
>
/* eslint-disable */
/* eslint-disable */
// 请求接口
// 请求接口
import
{
import
{
registerCode
,
registerCode
,
setAccountInfo
,
setAccountInfo
,
registerEmailCode
,
registerEmailCode
,
}
from
"
r/index/register
"
;
}
from
"
r/index/register
"
;
import
{
mobileCheck
,
checkStrong
}
from
"
@/common/utils.js
"
;
import
{
mobileCheck
,
checkStrong
}
from
"
@/common/utils.js
"
;
import
validator
from
"
common/validator
"
;
import
validator
from
"
common/validator
"
;
import
{
intervalTime
}
from
"
store/time
"
;
import
{
intervalTime
}
from
"
store/time
"
;
export
default
{
export
default
{
name
:
"
index-register
"
,
name
:
"
index-register
"
,
data
()
{
data
()
{
const
pwdCheck
=
async
(
rule
,
value
,
callback
)
=>
{
const
pwdCheck
=
async
(
rule
,
value
,
callback
)
=>
{
...
@@ -148,7 +148,7 @@ export default {
...
@@ -148,7 +148,7 @@ export default {
registerRules
:
{
registerRules
:
{
// 对手机号进行校验
// 对手机号进行校验
phone
:
[
phone
:
[
{
required
:
true
,
message
:
"
请输入手机号
"
,
trigger
:
"
blur
"
},
{
required
:
true
,
message
:
"
请输入手机号
"
,
trigger
:
"
blur
"
},
{
{
validator
:
function
(
rule
,
value
,
callback
)
{
validator
:
function
(
rule
,
value
,
callback
)
{
if
(
mobileCheck
(
value
)
===
false
)
{
if
(
mobileCheck
(
value
)
===
false
)
{
...
@@ -170,8 +170,8 @@ export default {
...
@@ -170,8 +170,8 @@ export default {
// ],
// ],
// 对验证码进行校验
// 对验证码进行校验
code
:
[
code
:
[
{
required
:
true
,
message
:
"
请输入验证码
"
,
trigger
:
"
blur
"
},
{
required
:
true
,
message
:
"
请输入验证码
"
,
trigger
:
"
blur
"
},
{
min
:
6
,
max
:
20
,
message
:
"
请输入正确的验证码
"
,
trigger
:
"
blur
"
},
{
min
:
6
,
max
:
20
,
message
:
"
请输入正确的验证码
"
,
trigger
:
"
blur
"
},
],
],
// 对密码进行校验
// 对密码进行校验
password
:
[
password
:
[
...
@@ -208,7 +208,7 @@ export default {
...
@@ -208,7 +208,7 @@ export default {
],
],
// 对密码进行校验
// 对密码进行校验
rq_password
:
[
rq_password
:
[
{
required
:
true
,
message
:
"
请输入确认密码
"
,
trigger
:
"
blur
"
},
{
required
:
true
,
message
:
"
请输入确认密码
"
,
trigger
:
"
blur
"
},
{
{
validator
:
pwdCheck
,
validator
:
pwdCheck
,
trigger
:
"
blur
"
,
trigger
:
"
blur
"
,
...
@@ -276,8 +276,7 @@ export default {
...
@@ -276,8 +276,7 @@ export default {
this
.
codeTime
=
res
.
data
.
data
.
now
*
1000
;
this
.
codeTime
=
res
.
data
.
data
.
now
*
1000
;
// console.log(this.codeTime)
// console.log(this.codeTime)
let
code
=
this
.
$store
.
state
.
indexIdentity
;
let
code
=
this
.
$store
.
state
.
indexIdentity
;
window
.
localStorage
.
setItem
(
window
.
localStorage
.
setItem
(
"
register_code_time
"
+
code
,
"
register_code_time
"
+
code
,
res
.
data
.
data
.
now
*
1000
res
.
data
.
data
.
now
*
1000
);
);
this
.
intervalHandle
(
new
Date
(),
res
.
data
.
data
.
now
*
1000
);
this
.
intervalHandle
(
new
Date
(),
res
.
data
.
data
.
now
*
1000
);
...
@@ -302,14 +301,13 @@ export default {
...
@@ -302,14 +301,13 @@ export default {
// this.$message.success(res.data.message);
// this.$message.success(res.data.message);
let
code
=
this
.
$store
.
state
.
indexIdentity
;
let
code
=
this
.
$store
.
state
.
indexIdentity
;
// token存储
// token存储
window
.
localStorage
.
setItem
(
"
index-token
"
+
code
,
res
.
data
.
token
);
window
.
localStorage
.
setItem
(
"
index-token-all
"
,
res
.
data
.
token
);
window
.
localStorage
.
setItem
(
"
phone
"
+
code
,
this
.
registerForm
.
phone
);
window
.
localStorage
.
setItem
(
"
index-phone-all
"
,
this
.
registerForm
.
phone
);
// window.localStorage.setItem("email" + code, this.registerForm.email);
// window.localStorage.setItem("email" + code, this.registerForm.email);
// 报名信息
// 报名信息
window
.
localStorage
.
setItem
(
"
camp_name
"
+
code
,
res
.
data
.
cam
.
name
);
window
.
localStorage
.
setItem
(
"
camp_name
"
+
code
,
res
.
data
.
cam
.
name
);
//获取主题色
//获取主题色
window
.
localStorage
.
setItem
(
window
.
localStorage
.
setItem
(
"
system_color
"
+
code
,
"
system_color
"
+
code
,
res
.
data
.
cam
.
system_color
res
.
data
.
cam
.
system_color
);
);
...
@@ -320,12 +318,12 @@ export default {
...
@@ -320,12 +318,12 @@ export default {
});
});
},
},
},
},
};
};
</
script
>
</
script
>
<
style
scoped
lang=
"scss"
>
<
style
scoped
lang=
"scss"
>
// 注册输入
// 注册输入
.container
{
.container
{
background
:
#ffffff
;
background
:
#ffffff
;
box-shadow
:
0px
1px
18px
0px
rgba
(
0
,
0
,
0
,
0
.06
);
box-shadow
:
0px
1px
18px
0px
rgba
(
0
,
0
,
0
,
0
.06
);
border-radius
:
8px
;
border-radius
:
8px
;
...
@@ -442,6 +440,7 @@ export default {
...
@@ -442,6 +440,7 @@ export default {
color
:
#999999
;
color
:
#999999
;
margin-top
:
-10px
;
margin-top
:
-10px
;
cursor
:
pointer
;
cursor
:
pointer
;
&
:hover
{
&
:hover
{
color
:
var
(
--
color
);
color
:
var
(
--
color
);
text-decoration
:
underline
;
text-decoration
:
underline
;
...
@@ -449,23 +448,23 @@ export default {
...
@@ -449,23 +448,23 @@ export default {
}
}
}
}
}
}
}
}
@media
screen
and
(
max-width
:
1601px
)
{
@media
screen
and
(
max-width
:
1601px
)
{
.container
{
.container
{
right
:
18%
;
right
:
18%
;
}
}
}
}
@media
screen
and
(
max-width
:
1501px
)
{
@media
screen
and
(
max-width
:
1501px
)
{
.container
{
.container
{
right
:
16%
;
right
:
16%
;
}
}
}
}
@media
screen
and
(
max-width
:
1401px
)
{
@media
screen
and
(
max-width
:
1401px
)
{
.container
{
.container
{
right
:
14%
;
right
:
14%
;
}
}
}
}
</
style
>
</
style
>
src/views/index/login/Reset.vue
View file @
279944cb
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
class=
"demo-resetForm"
class=
"demo-resetForm"
>
>
<el-form-item
prop=
"phone"
>
<el-form-item
prop=
"phone"
>
<img
class=
"img_l"
src=
"@/assets/img/reset/username.png"
alt=
""
/>
<img
class=
"img_l"
src=
"@/assets/img/reset/username.png"
alt=
""
/>
<el-input
<el-input
v-model=
"resetForm.phone"
v-model=
"resetForm.phone"
placeholder=
"请输入手机号"
placeholder=
"请输入手机号"
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
></el-input>
></el-input>
</el-form-item>
-->
</el-form-item>
-->
<el-form-item
prop=
"code"
>
<el-form-item
prop=
"code"
>
<img
class=
"img_l"
src=
"@/assets/img/reset/code.png"
alt=
""
/>
<img
class=
"img_l"
src=
"@/assets/img/reset/code.png"
alt=
""
/>
<el-input
<el-input
v-model=
"resetForm.code"
v-model=
"resetForm.code"
placeholder=
"请输入短信验证码"
placeholder=
"请输入短信验证码"
...
@@ -58,7 +58,7 @@
...
@@ -58,7 +58,7 @@
</div>
</div>
</el-form-item>
</el-form-item>
<el-form-item
prop=
"password"
>
<el-form-item
prop=
"password"
>
<img
class=
"img_l"
src=
"@/assets/img/reset/password.png"
alt=
""
/>
<img
class=
"img_l"
src=
"@/assets/img/reset/password.png"
alt=
""
/>
<el-input
<el-input
v-model=
"resetForm.password"
v-model=
"resetForm.password"
maxlength=
"20"
maxlength=
"20"
...
@@ -81,7 +81,7 @@
...
@@ -81,7 +81,7 @@
/>
-->
/>
-->
</el-form-item>
</el-form-item>
<el-form-item
prop=
"rq_password"
>
<el-form-item
prop=
"rq_password"
>
<img
class=
"img_l"
src=
"@/assets/img/reset/password.png"
alt=
""
/>
<img
class=
"img_l"
src=
"@/assets/img/reset/password.png"
alt=
""
/>
<el-input
<el-input
v-model=
"resetForm.rq_password"
v-model=
"resetForm.rq_password"
placeholder=
"请再次输入新的登录密码"
placeholder=
"请再次输入新的登录密码"
...
@@ -102,15 +102,15 @@
...
@@ -102,15 +102,15 @@
</
template
>
</
template
>
<
script
>
<
script
>
/* eslint-disable */
/* eslint-disable */
// 请求接口
// 请求接口
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
{
intervalTime
}
from
"
store/time
"
;
import
{
intervalTime
}
from
"
store/time
"
;
import
validator
from
"
common/validator
"
;
import
validator
from
"
common/validator
"
;
export
default
{
export
default
{
name
:
"
index-reset
"
,
name
:
"
index-reset
"
,
data
()
{
data
()
{
const
pwdCheck
=
async
(
rule
,
value
,
callback
)
=>
{
const
pwdCheck
=
async
(
rule
,
value
,
callback
)
=>
{
...
@@ -138,7 +138,7 @@ export default {
...
@@ -138,7 +138,7 @@ export default {
resetRules
:
{
resetRules
:
{
// 对手机号进行校验
// 对手机号进行校验
phone
:
[
phone
:
[
{
required
:
true
,
message
:
"
请输入手机号
"
,
trigger
:
"
blur
"
},
{
required
:
true
,
message
:
"
请输入手机号
"
,
trigger
:
"
blur
"
},
{
{
validator
:
function
(
rule
,
value
,
callback
)
{
validator
:
function
(
rule
,
value
,
callback
)
{
if
(
mobileCheck
(
value
)
===
false
)
{
if
(
mobileCheck
(
value
)
===
false
)
{
...
@@ -160,8 +160,8 @@ export default {
...
@@ -160,8 +160,8 @@ export default {
// ],
// ],
// 对验证码进行校验
// 对验证码进行校验
code
:
[
code
:
[
{
required
:
true
,
message
:
"
请输入验证码
"
,
trigger
:
"
blur
"
},
{
required
:
true
,
message
:
"
请输入验证码
"
,
trigger
:
"
blur
"
},
{
min
:
6
,
max
:
20
,
message
:
"
请输入正确的验证码
"
,
trigger
:
"
blur
"
},
{
min
:
6
,
max
:
20
,
message
:
"
请输入正确的验证码
"
,
trigger
:
"
blur
"
},
],
],
// 对密码进行校验
// 对密码进行校验
password
:
[
password
:
[
...
@@ -198,7 +198,7 @@ export default {
...
@@ -198,7 +198,7 @@ export default {
],
],
// 对密码进行校验
// 对密码进行校验
rq_password
:
[
rq_password
:
[
{
required
:
true
,
message
:
"
请输入确认密码
"
,
trigger
:
"
blur
"
},
{
required
:
true
,
message
:
"
请输入确认密码
"
,
trigger
:
"
blur
"
},
{
{
validator
:
pwdCheck
,
validator
:
pwdCheck
,
trigger
:
"
blur
"
,
trigger
:
"
blur
"
,
...
@@ -266,8 +266,7 @@ export default {
...
@@ -266,8 +266,7 @@ export default {
this
.
codeTime
=
res
.
data
.
data
.
now
*
1000
;
this
.
codeTime
=
res
.
data
.
data
.
now
*
1000
;
// console.log(this.codeTime)
// console.log(this.codeTime)
let
code
=
this
.
$store
.
state
.
indexIdentity
;
let
code
=
this
.
$store
.
state
.
indexIdentity
;
window
.
localStorage
.
setItem
(
window
.
localStorage
.
setItem
(
"
restet_code_time
"
+
code
,
"
restet_code_time
"
+
code
,
res
.
data
.
data
.
now
*
1000
res
.
data
.
data
.
now
*
1000
);
);
this
.
intervalHandle
(
new
Date
(),
res
.
data
.
data
.
now
*
1000
);
this
.
intervalHandle
(
new
Date
(),
res
.
data
.
data
.
now
*
1000
);
...
@@ -292,22 +291,18 @@ export default {
...
@@ -292,22 +291,18 @@ export default {
this
.
$message
.
success
(
res
.
data
.
message
);
this
.
$message
.
success
(
res
.
data
.
message
);
// token存储
// token存储
let
code
=
this
.
$store
.
state
.
indexIdentity
;
let
code
=
this
.
$store
.
state
.
indexIdentity
;
// window.localStorage.setItem("index-token" + code, res.token);
window
.
localStorage
.
setItem
(
"
restet_code_phone
"
+
code
,
this
.
resetForm
.
phone
);
window
.
localStorage
.
setItem
(
"
restet_code_phone
"
+
code
,
this
.
resetForm
.
phone
);
this
.
$router
.
replace
(
"
/login?code=
"
+
code
);
this
.
$router
.
replace
(
"
/login?code=
"
+
code
);
});
});
});
});
},
},
},
},
};
};
</
script
>
</
script
>
<
style
scoped
lang=
"scss"
>
<
style
scoped
lang=
"scss"
>
// 注册输入
// 注册输入
.container
{
.container
{
background
:
#ffffff
;
background
:
#ffffff
;
box-shadow
:
0px
1px
18px
0px
rgba
(
0
,
0
,
0
,
0
.06
);
box-shadow
:
0px
1px
18px
0px
rgba
(
0
,
0
,
0
,
0
.06
);
border-radius
:
8px
;
border-radius
:
8px
;
...
@@ -432,23 +427,23 @@ export default {
...
@@ -432,23 +427,23 @@ export default {
}
}
}
}
}
}
}
}
@media
screen
and
(
max-width
:
1601px
)
{
@media
screen
and
(
max-width
:
1601px
)
{
.container
{
.container
{
right
:
18%
;
right
:
18%
;
}
}
}
}
@media
screen
and
(
max-width
:
1501px
)
{
@media
screen
and
(
max-width
:
1501px
)
{
.container
{
.container
{
right
:
16%
;
right
:
16%
;
}
}
}
}
@media
screen
and
(
max-width
:
1401px
)
{
@media
screen
and
(
max-width
:
1401px
)
{
.container
{
.container
{
right
:
14%
;
right
:
14%
;
}
}
}
}
</
style
>
</
style
>
src/views/index/recruit/Index.vue
View file @
279944cb
...
@@ -85,8 +85,7 @@
...
@@ -85,8 +85,7 @@
methods
:
{
methods
:
{
toLogin
()
{
toLogin
()
{
let
code
=
this
.
$store
.
state
.
indexIdentity
;
let
code
=
this
.
$store
.
state
.
indexIdentity
;
// console.log(window.localStorage.getItem("index-token"+code),'1111')
if
(
!
window
.
localStorage
.
getItem
(
"
index-token-all
"
))
{
if
(
!
window
.
localStorage
.
getItem
(
"
index-token
"
+
code
))
{
this
.
$router
.
push
(
"
/login?code=
"
+
code
);
this
.
$router
.
push
(
"
/login?code=
"
+
code
);
}
else
{
}
else
{
this
.
$router
.
push
(
"
/signUp/examInfo?code=
"
+
code
);
this
.
$router
.
push
(
"
/signUp/examInfo?code=
"
+
code
);
...
...
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