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
c3a42c5b
Commit
c3a42c5b
authored
Sep 13, 2023
by
wuwangwolihui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
营地2.0-公共修改
parent
0d584e81
Changes
14
Show whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
214 additions
and
137 deletions
+214
-137
src/App.vue
src/App.vue
+82
-75
src/components/Footer.vue
src/components/Footer.vue
+2
-2
src/components/Header.vue
src/components/Header.vue
+83
-15
src/components/index/Header.vue
src/components/index/Header.vue
+5
-2
src/router/index.js
src/router/index.js
+5
-9
src/store/index.js
src/store/index.js
+1
-1
src/store/mutations.js
src/store/mutations.js
+4
-1
src/views/base/Index.vue
src/views/base/Index.vue
+3
-4
src/views/base/login/Index.vue
src/views/base/login/Index.vue
+2
-2
src/views/base/login/Login.vue
src/views/base/login/Login.vue
+10
-13
src/views/base/myInfo/index.vue
src/views/base/myInfo/index.vue
+3
-3
src/views/index/Info/Index.vue
src/views/index/Info/Index.vue
+3
-3
src/views/index/camp/Index.vue
src/views/index/camp/Index.vue
+3
-3
src/views/index/recruit/Index.vue
src/views/index/recruit/Index.vue
+8
-4
No files found.
src/App.vue
View file @
c3a42c5b
...
@@ -4,18 +4,19 @@
...
@@ -4,18 +4,19 @@
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
/* eslint-disable */
/* eslint-disable */
export
default
{
export
default
{
name
:
"
app
"
,
name
:
"
app
"
,
data
()
{
data
()
{
return
{
isRouterAlive
:
true
return
{
isRouterAlive
:
true
};
};
},
},
created
()
{
created
()
{
this
.
$store
.
commit
(
'
setActiveIndex
'
,
this
.
$route
.
path
)
this
.
$store
.
commit
(
'
setActiveIndex
'
,
this
.
$route
.
path
)
},
},
methods
:
{
methods
:
{
reload
()
{
reload
()
{
this
.
isRouterAlive
=
false
this
.
isRouterAlive
=
false
this
.
$nextTick
(()
=>
(
this
.
isRouterAlive
=
true
))
this
.
$nextTick
(()
=>
(
this
.
isRouterAlive
=
true
))
}
}
...
@@ -25,12 +26,12 @@ export default {
...
@@ -25,12 +26,12 @@ export default {
this
.
$store
.
commit
(
'
setActiveIndex
'
,
val
)
this
.
$store
.
commit
(
'
setActiveIndex
'
,
val
)
}
}
}
}
};
};
</
script
>
</
script
>
<
style
lang=
"scss"
>
<
style
lang=
"scss"
>
@import
"a/scss/index"
;
@import
"a/scss/index"
;
// @import "~a/css/base.css";
// @import "~a/css/base.css";
#app
{
#app
{
font-family
:
Avenir
,
Helvetica
,
Arial
,
sans-serif
;
font-family
:
Avenir
,
Helvetica
,
Arial
,
sans-serif
;
-webkit-font-smoothing
:
antialiased
;
-webkit-font-smoothing
:
antialiased
;
-moz-osx-font-smoothing
:
grayscale
;
-moz-osx-font-smoothing
:
grayscale
;
...
@@ -38,19 +39,21 @@ export default {
...
@@ -38,19 +39,21 @@ export default {
height
:
100vh
;
height
:
100vh
;
background
:
#fff
;
background
:
#fff
;
// background: #f8f8f8;
// background: #f8f8f8;
}
}
//滚动条的宽度
::-webkit-scrollbar
{
//滚动条的宽度
::-webkit-scrollbar
{
width
:
12px
;
width
:
12px
;
height
:
12px
;
height
:
12px
;
}
}
//滚动条的滑块
::-webkit-scrollbar-thumb
{
//滚动条的滑块
::-webkit-scrollbar-thumb
{
background-color
:
#cccccc
;
background-color
:
#cccccc
;
border-radius
:
4px
;
border-radius
:
4px
;
}
}
.el-dropdown-menu
{
.el-dropdown-menu
{
.el-dropdown-menu__item
{
.el-dropdown-menu__item
{
padding
:
0
30px
!
important
;
padding
:
0
30px
!
important
;
...
@@ -58,19 +61,21 @@ export default {
...
@@ -58,19 +61,21 @@ export default {
color
:
#ffffff
!
important
;
color
:
#ffffff
!
important
;
background-color
:
var
(
--
color
)
!
important
;
background-color
:
var
(
--
color
)
!
important
;
}
}
i
{
i
{
font-size
:
19px
;
font-size
:
19px
;
}
}
}
}
}
}
.el-message-box
{
.el-message-box
{
width
:
360px
!
important
;
width
:
360px
!
important
;
.el-message-box__header
{
.el-message-box__header
{
.el-message-box__title
{
.el-message-box__title
{
color
:
red
;
color
:
red
;
}
}
.el-message-box__close
{
.el-message-box__close
{
&
:hover
{
&
:hover
{
color
:
var
(
--
color
);
color
:
var
(
--
color
);
...
@@ -85,10 +90,12 @@ export default {
...
@@ -85,10 +90,12 @@ export default {
border-color
:
var
(
--
color
);
border-color
:
var
(
--
color
);
opacity
:
0
.6
;
opacity
:
0
.6
;
}
}
&
:nth-child
(
2
)
{
&
:nth-child
(
2
)
{
color
:
#fff
;
color
:
#fff
;
background-color
:
var
(
--
color
);
background-color
:
var
(
--
color
);
border-color
:
var
(
--
color
);
border-color
:
var
(
--
color
);
&
:hover
{
&
:hover
{
color
:
#fff
;
color
:
#fff
;
background-color
:
var
(
--
color
);
background-color
:
var
(
--
color
);
...
@@ -97,5 +104,5 @@ export default {
...
@@ -97,5 +104,5 @@ export default {
}
}
}
}
}
}
}
}
</
style
>
</
style
>
src/components/
base/
Footer.vue
→
src/components/Footer.vue
View file @
c3a42c5b
...
@@ -16,11 +16,11 @@
...
@@ -16,11 +16,11 @@
</div>
</div>
<div
class=
"contact_qr"
>
<div
class=
"contact_qr"
>
<div
class=
"contact_qr_item"
>
<div
class=
"contact_qr_item"
>
<img
src=
"../
../
assets/img/footer/service.png"
/>
<img
src=
"../assets/img/footer/service.png"
/>
<div
class=
"name"
>
大中衔接人才培养
</div>
<div
class=
"name"
>
大中衔接人才培养
</div>
</div>
</div>
<div
class=
"contact_qr_item"
>
<div
class=
"contact_qr_item"
>
<img
src=
"../
../
assets/img/footer/wb.png"
/>
<img
src=
"../assets/img/footer/wb.png"
/>
<div
class=
"name"
>
大中贯通人才培养
</div>
<div
class=
"name"
>
大中贯通人才培养
</div>
</div>
</div>
</div>
</div>
...
...
src/components/
base/
Header.vue
→
src/components/Header.vue
View file @
c3a42c5b
...
@@ -2,7 +2,8 @@
...
@@ -2,7 +2,8 @@
<div
class=
"Header"
>
<div
class=
"Header"
>
<div
class=
"H_content com-container"
>
<div
class=
"H_content com-container"
>
<div
class=
"image"
>
<div
class=
"image"
>
<img
alt=
""
src=
"../../assets/img/logo_base.png"
/>
<img
v-if=
"type==1"
src=
"../assets/img/logo_base.png"
alt=
""
/>
<img
v-if=
"type==2"
:src=
"system_logo"
alt=
""
@
click=
"toRecruit"
/>
</div>
</div>
<div
class=
"right"
>
<div
class=
"right"
>
<el-menu
:default-active=
"$store.state.activeIndex"
@
select=
"handleSelect"
class=
"el-menu-demo"
<el-menu
:default-active=
"$store.state.activeIndex"
@
select=
"handleSelect"
class=
"el-menu-demo"
...
@@ -16,11 +17,6 @@
...
@@ -16,11 +17,6 @@
@
click=
"toLogin"
@
click=
"toLogin"
@
mouseenter=
"onMouserEnter(false)"
@
mouseenter=
"onMouserEnter(false)"
>
登录 | 注册
</span>
>
登录 | 注册
</span>
<!--
<span-->
<!-- @mouseenter="onMouserEnter(true)"-->
<!-- :class="isHover ? 'is-hover' : ''"-->
<!-- @click="toRegister"-->
<!-- > 注册
</span>
-->
</div>
</div>
<div
class=
"alreadyLogin"
v-else
>
<div
class=
"alreadyLogin"
v-else
>
<el-dropdown
@
command=
"handleCommand"
trigger=
"click"
>
<el-dropdown
@
command=
"handleCommand"
trigger=
"click"
>
...
@@ -48,16 +44,24 @@
...
@@ -48,16 +44,24 @@
export
default
{
export
default
{
name
:
"
Header
"
,
name
:
"
Header
"
,
props
:
{
typeFu
:
[
String
,
Number
],
},
data
()
{
data
()
{
return
{
return
{
type
:
this
.
typeFu
,
// 1-baseHeader 2-indexHeader
isHover
:
true
,
isHover
:
true
,
isLogin
:
false
,
isLogin
:
false
,
phone
:
''
,
phone
:
''
,
system_logo
:
''
,
};
};
},
},
created
()
{
created
()
{
this
.
isLogin
=
!!
localStorage
.
getItem
(
"
index-token-all
"
);
this
.
isLogin
=
!!
localStorage
.
getItem
(
"
index-token-all
"
);
this
.
phone
=
localStorage
.
getItem
(
"
index-phone-all
"
)
||
""
;
this
.
phone
=
localStorage
.
getItem
(
"
index-phone-all
"
)
||
""
;
console
.
log
(
this
.
type
)
let
code
=
this
.
$store
.
state
.
indexIdentity
;
this
.
system_logo
=
localStorage
.
getItem
(
"
system_logo
"
+
code
)
||
""
;
},
},
methods
:
{
methods
:
{
// 导航栏操作
// 导航栏操作
...
@@ -79,11 +83,24 @@
...
@@ -79,11 +83,24 @@
},
},
// 去注册
// 去注册
toRegister
()
{
toRegister
()
{
if
(
this
.
type
==
1
)
{
this
.
$router
.
push
(
"
/baseRegister
"
);
this
.
$router
.
push
(
"
/baseRegister
"
);
}
else
if
(
this
.
type
==
2
)
{
let
code
=
this
.
$store
.
state
.
indexIdentity
;
this
.
$router
.
push
(
"
/register?code=
"
+
code
);
}
},
},
// 去登录页
// 去登录页
toLogin
()
{
toLogin
()
{
if
(
this
.
type
==
1
)
{
this
.
$router
.
push
(
"
/baseLogin
"
);
this
.
$router
.
push
(
"
/baseLogin
"
);
if
(
this
.
$route
.
fullPath
!=
'
/baseLogin
'
)
{
this
.
$store
.
commit
(
'
setFullPath
'
,
this
.
$route
.
fullPath
);
}
}
else
if
(
this
.
type
==
2
)
{
let
code
=
this
.
$store
.
state
.
indexIdentity
;
this
.
$router
.
push
(
"
/login?code=
"
+
code
);
}
},
},
// 退出登录
// 退出登录
async
logout
()
{
async
logout
()
{
...
@@ -93,21 +110,72 @@
...
@@ -93,21 +110,72 @@
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
)
{
// 清除所有缓存
// 清除所有缓存
window
.
localStorage
.
clear
();
window
.
localStorage
.
clear
();
this
.
isLogin
=
false
;
this
.
isLogin
=
false
;
this
.
$message
.
success
(
'
退出成功
'
);
}
else
if
(
this
.
type
==
2
)
{
this
.
reload
()
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
)
{
await
this
.
$router
.
replace
({
path
:
"
/login
"
,
query
:
{
code
:
code
,
},
});
}
else
{
await
this
.
$router
.
replace
(
"
/
"
+
code
);
}
}
this
.
$message
.
success
(
"
退出成功
"
);
await
logout
({});
await
logout
({});
},
},
// 鼠标移入事件
onMouserEnter
(
val
)
{
onMouserEnter
(
val
)
{
this
.
isHover
=
val
;
this
.
isHover
=
val
;
},
},
// 点击图片跳转到招生简章页面
toRecruit
()
{
// 清除本地缓存除了大学logo
let
code
=
this
.
$store
.
state
.
indexIdentity
;
this
.
$router
.
replace
(
"
/
"
+
code
);
},
},
},
watch
:
{
typeFu
(
val
)
{
console
.
log
(
val
)
this
.
type
=
val
;
}
}
};
};
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
...
...
src/components/index/Header.vue
View file @
c3a42c5b
...
@@ -92,7 +92,6 @@ export default {
...
@@ -92,7 +92,6 @@ export default {
if
(
confirmResult
!==
"
confirm
"
)
if
(
confirmResult
!==
"
confirm
"
)
return
this
.
$message
.
info
(
"
您取消了退出
"
);
return
this
.
$message
.
info
(
"
您取消了退出
"
);
// 清除本地缓存除了大学logo
// 清除本地缓存除了大学logo
// window.localStorage.clear();]
this
.
reload
()
this
.
reload
()
let
code
=
this
.
$store
.
state
.
indexIdentity
;
let
code
=
this
.
$store
.
state
.
indexIdentity
;
window
.
localStorage
.
removeItem
(
"
doubt_code
"
+
code
);
window
.
localStorage
.
removeItem
(
"
doubt_code
"
+
code
);
...
@@ -128,7 +127,6 @@ export default {
...
@@ -128,7 +127,6 @@ export default {
this
.
reload
()
this
.
reload
()
console
.
log
(
this
.
$store
.
state
.
human
)
console
.
log
(
this
.
$store
.
state
.
human
)
if
(
this
.
$store
.
state
.
human
==
1
)
{
if
(
this
.
$store
.
state
.
human
==
1
)
{
console
.
log
(
222
)
await
this
.
$router
.
replace
({
await
this
.
$router
.
replace
({
path
:
"
/login
"
,
path
:
"
/login
"
,
query
:
{
query
:
{
...
@@ -145,6 +143,11 @@ export default {
...
@@ -145,6 +143,11 @@ export default {
},
},
onMouserEnter
(
val
)
{
onMouserEnter
(
val
)
{
this
.
isHover
=
val
;
this
.
isHover
=
val
;
},
// 点击图片跳转到招生简章页面
toRecruit
()
{
// 清除本地缓存除了大学logo
let
code
=
this
.
$store
.
state
.
indexIdentity
;
this
.
$router
.
replace
(
"
/
"
+
code
);
},
},
},
},
};
};
...
...
src/router/index.js
View file @
c3a42c5b
...
@@ -10,7 +10,7 @@ import indexHome from './base/home';
...
@@ -10,7 +10,7 @@ import indexHome from './base/home';
import
indexActive
from
'
./base/active
'
;
import
indexActive
from
'
./base/active
'
;
import
indexCamp
from
'
./index/camp
'
import
indexCamp
from
'
./index/camp
'
import
personalInfo
from
'
./index/personalInfo
'
import
personalInfo
from
'
./index/personalInfo
'
import
{
getCam
,
getCamInfo
}
from
"
r/index/login
"
;
import
{
getCam
,
getCamInfo
}
from
"
r/index/login
"
;
import
{
Message
}
from
'
element-ui
'
;
import
{
Message
}
from
'
element-ui
'
;
Vue
.
prototype
.
$message
=
Message
;
Vue
.
prototype
.
$message
=
Message
;
...
@@ -199,21 +199,17 @@ function checkCam(code, cb) {
...
@@ -199,21 +199,17 @@ function checkCam(code, cb) {
}
}
router
.
beforeEach
((
to
,
from
,
next
)
=>
{
router
.
beforeEach
((
to
,
from
,
next
)
=>
{
console
.
log
(
to
)
let
toLogin
=
"
/login
"
,
let
toLogin
=
"
/login
"
,
toBaseLogin
=
"
/baseLogin
"
,
toBaseLogin
=
"
/baseLogin
"
,
toRegister
=
"
/register
"
,
toRegister
=
"
/register
"
,
toBaseRegister
=
"
/baseRegister
"
,
toBaseRegister
=
"
/baseRegister
"
,
toReset
=
"
/reset
"
,
toReset
=
"
/reset
"
,
toBaseReset
=
"
/baseReset
"
,
toBaseReset
=
"
/baseReset
"
,
toHome
=
"
/home
"
,
toHome
=
"
/home
"
,
toActive
=
"
/active
"
;
toActive
=
"
/active
"
,
let
toInfo
;
toInfo
=
"
/myInfo
"
;
toInfo
=
"
/myInfo
"
;
let
code
=
false
;
let
code
=
false
;
document
.
title
=
to
.
meta
.
title
;
document
.
title
=
to
.
meta
.
title
;
console
.
log
(
to
.
path
)
if
(
to
.
path
==
toLogin
||
to
.
path
==
toRegister
||
to
.
path
==
toReset
)
{
if
(
to
.
path
==
toLogin
||
to
.
path
==
toRegister
||
to
.
path
==
toReset
)
{
// code = to.params.code ? to.params.code : to.query.code;
// code = to.params.code ? to.params.code : to.query.code;
// checkCam(code, (res) => {
// checkCam(code, (res) => {
...
@@ -228,7 +224,7 @@ router.beforeEach((to, from, next) => {
...
@@ -228,7 +224,7 @@ router.beforeEach((to, from, next) => {
// }
// }
// });
// });
return
next
();
return
next
();
}
else
if
(
to
.
path
==
toBaseLogin
||
to
.
path
==
toBaseRegister
||
to
.
path
==
toBaseReset
||
to
.
path
==
'
/myInfo
'
||
to
.
path
==
toHome
||
to
.
path
==
toActive
||
to
.
path
.
indexOf
(
toActive
)
!=
-
1
)
{
}
else
if
(
to
.
path
==
toBaseLogin
||
to
.
path
==
toBaseRegister
||
to
.
path
==
toBaseReset
||
to
.
path
==
'
/myInfo
'
||
to
.
path
==
toHome
||
to
.
path
==
toActive
||
to
.
path
.
indexOf
(
toActive
)
!=
-
1
)
{
return
next
();
return
next
();
}
else
if
(
to
.
name
==
"
recruit
"
)
{
}
else
if
(
to
.
name
==
"
recruit
"
)
{
code
=
to
.
params
.
code
;
code
=
to
.
params
.
code
;
...
...
src/store/index.js
View file @
c3a42c5b
...
@@ -9,7 +9,7 @@ Vue.use(Vuex)
...
@@ -9,7 +9,7 @@ Vue.use(Vuex)
let
state
=
{
let
state
=
{
// 上一页地址
// 上一页地址
previousPage
:
"
"
,
fullPath
:
localStorage
.
getItem
(
"
index-fullPath
"
)
||
"
/
"
,
// 数据
// 数据
data
:
[],
data
:
[],
token
:
''
,
token
:
''
,
...
...
src/store/mutations.js
View file @
c3a42c5b
...
@@ -8,7 +8,6 @@ export default {
...
@@ -8,7 +8,6 @@ export default {
setData
(
state
,
city
)
{
setData
(
state
,
city
)
{
state
.
data
=
city
;
state
.
data
=
city
;
},
},
login
(
state
)
{
login
(
state
)
{
state
.
isLogin
=
"
1
"
;
state
.
isLogin
=
"
1
"
;
localStorage
.
setItem
(
"
isLogin
"
,
"
1
"
);
localStorage
.
setItem
(
"
isLogin
"
,
"
1
"
);
...
@@ -23,4 +22,8 @@ export default {
...
@@ -23,4 +22,8 @@ export default {
state
.
activeIndex
=
key
;
state
.
activeIndex
=
key
;
window
.
localStorage
.
setItem
(
'
index-active-path
'
,
key
);
window
.
localStorage
.
setItem
(
'
index-active-path
'
,
key
);
},
},
setFullPath
(
state
,
path
){
state
.
fullPath
=
path
;
window
.
localStorage
.
setItem
(
'
index-fullPath
'
,
path
);
},
};
};
src/views/base/Index.vue
View file @
c3a42c5b
<
template
>
<
template
>
<el-container>
<el-container>
<el-header
height=
"80px"
>
<el-header
height=
"80px"
>
<Header></Header>
<Header
:typeFu=
"1"
></Header>
</el-header>
</el-header>
<el-container>
<el-container>
<router-view
:key=
"$route.name"
style=
"flex: 1;"
></router-view>
<router-view
:key=
"$route.name"
style=
"flex: 1;"
></router-view>
...
@@ -16,9 +16,8 @@
...
@@ -16,9 +16,8 @@
</el-container>
</el-container>
</
template
>
</
template
>
<
script
>
<
script
>
import
Header
from
"
../../components/base/Header
"
;
import
Header
from
"
../../components/Header
"
;
import
Footer
from
"
../../components/base/Footer
"
;
import
Footer
from
"
../../components/Footer
"
;
export
default
{
export
default
{
name
:
"
index-index
"
,
name
:
"
index-index
"
,
...
...
src/views/base/login/Index.vue
View file @
c3a42c5b
<
template
>
<
template
>
<div
class=
"login-index"
>
<div
class=
"login-index"
>
<Header></Header>
<Header
:typeFu=
"1"
></Header>
<div
class=
"big-right"
>
<div
class=
"big-right"
>
<div
class=
"info-box"
>
<div
class=
"info-box"
>
<router-view/>
<router-view/>
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
</
template
>
</
template
>
<
script
>
<
script
>
/* eslint-disable */
/* eslint-disable */
import
Header
from
"
@/components/
base/
Header.vue
"
;
import
Header
from
"
@/components/Header.vue
"
;
export
default
{
export
default
{
name
:
"
loginBase
"
,
name
:
"
loginBase
"
,
...
...
src/views/base/login/Login.vue
View file @
c3a42c5b
...
@@ -203,7 +203,6 @@
...
@@ -203,7 +203,6 @@
intervalHandle
(
startTime
,
endTime
)
{
intervalHandle
(
startTime
,
endTime
)
{
// 时间差
// 时间差
const
timeLag
=
intervalTime
(
startTime
,
endTime
);
const
timeLag
=
intervalTime
(
startTime
,
endTime
);
console
.
log
(
timeLag
);
if
(
!
this
.
timer
)
{
if
(
!
this
.
timer
)
{
this
.
count
=
timeLag
-
1
;
this
.
count
=
timeLag
-
1
;
this
.
showCode
=
false
;
this
.
showCode
=
false
;
...
@@ -236,12 +235,7 @@
...
@@ -236,12 +235,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)
window
.
localStorage
.
setItem
(
"
login_code_time
"
,
res
.
data
.
data
.
now
*
1000
);
let
code
=
this
.
$store
.
state
.
indexIdentity
;
window
.
localStorage
.
setItem
(
"
login_code_time
"
,
res
.
data
.
data
.
now
*
1000
);
this
.
intervalHandle
(
new
Date
(),
res
.
data
.
data
.
now
*
1000
);
this
.
intervalHandle
(
new
Date
(),
res
.
data
.
data
.
now
*
1000
);
});
});
},
},
...
@@ -288,12 +282,13 @@
...
@@ -288,12 +282,13 @@
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("登录成功");请访问正确的营地链接地址
this
.
$message
.
success
(
"
登录成功
"
);
window
.
localStorage
.
setItem
(
"
index-token-all
"
,
res
.
data
.
token
);
window
.
localStorage
.
setItem
(
"
index-token-all
"
,
res
.
data
.
token
);
window
.
localStorage
.
setItem
(
"
index-phone-all
"
,
this
.
loginForm
.
phone
);
window
.
localStorage
.
setItem
(
"
index-phone-all
"
,
this
.
loginForm
.
phone
);
window
.
localStorage
.
setItem
(
"
email
"
,
res
.
data
.
email
);
window
.
localStorage
.
setItem
(
"
email
"
,
res
.
data
.
email
);
// this.$router.replace("/myInfo");]
let
fullPath
=
this
.
$store
.
state
.
fullPath
;
this
.
$router
.
go
(
-
1
);
this
.
$router
.
push
(
fullPath
);
this
.
$store
.
commit
(
'
setFullPath
'
,
'
/
'
);
});
});
});
});
},
},
...
@@ -302,10 +297,10 @@
...
@@ -302,10 +297,10 @@
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
@media
screen
and
(
max-width
:
1500px
)
{
@media
screen
and
(
max-width
:
1500px
)
{
.container
{
.container
{
height
:
300px
!
important
;
height
:
300px
!
important
;
padding
:
30px
37px
70px
37px
!
important
;
padding
:
30px
37px
70px
37px
!
important
;
.title_Login
{
.title_Login
{
margin
:
0
!
important
;
margin
:
0
!
important
;
...
@@ -322,6 +317,7 @@
...
@@ -322,6 +317,7 @@
::v-deep
.el-form
{
::v-deep
.el-form
{
margin-top
:
25px
!
important
;
margin-top
:
25px
!
important
;
.el-form-item
{
.el-form-item
{
/*margin-bottom: 25px !important;*/
/*margin-bottom: 25px !important;*/
...
@@ -343,7 +339,8 @@
...
@@ -343,7 +339,8 @@
/*margin-top:10px !important;*/
/*margin-top:10px !important;*/
height
:
50px
!
important
;
height
:
50px
!
important
;
line-height
:
50px
!
important
;
line-height
:
50px
!
important
;
}}
}
}
}
}
}
}
}
}
...
...
src/views/base/myInfo/index.vue
View file @
c3a42c5b
<
template
>
<
template
>
<div
class=
"camp-index"
>
<div
class=
"camp-index"
>
<el-header
height=
"104px"
>
<el-header
height=
"104px"
>
<Header></Header>
<Header
:typeFu=
"1"
></Header>
<div
class=
"bg-top"
></div>
<div
class=
"bg-top"
></div>
</el-header>
</el-header>
<div
class=
"com-container"
>
<div
class=
"com-container"
>
...
@@ -39,8 +39,8 @@
...
@@ -39,8 +39,8 @@
<
script
>
<
script
>
/* eslint-disable */
/* eslint-disable */
import
Header
from
"
@/components/
base/
Header.vue
"
;
import
Header
from
"
@/components/Header.vue
"
;
import
Footer
from
"
@/components/
base/
Footer.vue
"
;
import
Footer
from
"
@/components/Footer.vue
"
;
import
svg1
from
'
@/assets/img/signUp/icon.svg
'
;
import
svg1
from
'
@/assets/img/signUp/icon.svg
'
;
import
signUpList
from
'
../myInfo/signUp.vue
'
;
import
signUpList
from
'
../myInfo/signUp.vue
'
;
...
...
src/views/index/Info/Index.vue
View file @
c3a42c5b
<
template
>
<
template
>
<div
class=
"camp-index"
>
<div
class=
"camp-index"
>
<el-header
height=
"104px"
>
<el-header
height=
"104px"
>
<Header></Header>
<Header
:typeFu=
"2"
></Header>
<!--
<div
class=
"bg-top"
></div>
-->
<!--
<div
class=
"bg-top"
></div>
-->
<div
class=
"bg-top"
>
<div
class=
"bg-top"
>
<el-breadcrumb
separator=
"/"
>
<el-breadcrumb
separator=
"/"
>
...
@@ -52,8 +52,8 @@
...
@@ -52,8 +52,8 @@
<
script
>
<
script
>
/* eslint-disable */
/* eslint-disable */
import
Header
from
"
@/components/
index/Homework/
Header.vue
"
;
import
Header
from
"
@/components/Header.vue
"
;
import
Footer
from
"
@/components/
index/
Footer.vue
"
;
import
Footer
from
"
@/components/Footer.vue
"
;
import
svg1
from
"
@/assets/img/signUp/icon.svg
"
;
import
svg1
from
"
@/assets/img/signUp/icon.svg
"
;
import
svg2
from
"
@/assets/img/signUp/icon-1.svg
"
;
import
svg2
from
"
@/assets/img/signUp/icon-1.svg
"
;
import
personalInfo
from
"
v/index/Info/personalInfo
"
;
import
personalInfo
from
"
v/index/Info/personalInfo
"
;
...
...
src/views/index/camp/Index.vue
View file @
c3a42c5b
<
template
>
<
template
>
<div
class=
"camp-index"
>
<div
class=
"camp-index"
>
<el-header
height=
"104px"
>
<el-header
height=
"104px"
>
<Header></Header>
<Header
:typeFu=
"2"
></Header>
<div
class=
"bg-top"
></div>
<div
class=
"bg-top"
></div>
</el-header>
</el-header>
<div
class=
"com-container"
>
<div
class=
"com-container"
>
...
@@ -70,8 +70,8 @@
...
@@ -70,8 +70,8 @@
<
script
>
<
script
>
/* eslint-disable */
/* eslint-disable */
import
Header
from
"
@/components/
index/SignUp/
Header.vue
"
;
import
Header
from
"
@/components/Header.vue
"
;
import
Footer
from
"
@/components/
index/
Footer.vue
"
;
import
Footer
from
"
@/components/Footer.vue
"
;
import
svg1
from
"
@/assets/img/signUp/icon.svg
"
;
import
svg1
from
"
@/assets/img/signUp/icon.svg
"
;
import
svg2
from
"
@/assets/img/signUp/icon-1.svg
"
;
import
svg2
from
"
@/assets/img/signUp/icon-1.svg
"
;
import
svg3
from
"
@/assets/img/signUp/icon-2.svg
"
;
import
svg3
from
"
@/assets/img/signUp/icon-2.svg
"
;
...
...
src/views/index/recruit/Index.vue
View file @
c3a42c5b
<
template
>
<
template
>
<div
class=
"recruit"
>
<div
class=
"recruit"
>
<el-header
height=
"104px"
>
<el-header
height=
"104px"
>
<Header></Header>
<Header
:typeFu=
"2"
></Header>
<div
class=
"notify flex"
v-if=
"$store.state.isDisplay_num == 1"
>
<div
class=
"notify flex"
v-if=
"$store.state.isDisplay_num == 1"
>
<div
class=
"flex"
>
<div
class=
"flex"
>
<img
class=
"notify_img"
src=
"../../../assets/img/notify.png"
alt=
""
/>
<img
class=
"notify_img"
src=
"../../../assets/img/notify.png"
alt=
""
/>
...
@@ -44,7 +44,7 @@
...
@@ -44,7 +44,7 @@
</p>
</p>
</div>
-->
</div>
-->
<div
class=
"btn"
>
<div
class=
"btn"
v-if=
"info.name"
>
<el-button
@
click=
"toLogin()"
>
立即报名
</el-button>
<el-button
@
click=
"toLogin()"
>
立即报名
</el-button>
</div>
</div>
</div>
</div>
...
@@ -54,8 +54,8 @@
...
@@ -54,8 +54,8 @@
<
script
>
<
script
>
/* eslint-disable */
/* eslint-disable */
import
Header
from
"
@/components/
index/
Header.vue
"
;
import
Header
from
"
@/components/Header.vue
"
;
import
Footer
from
"
@/components/
index/
Footer.vue
"
;
import
Footer
from
"
@/components/Footer.vue
"
;
import
{
getCamInfo
}
from
"
r/index/login
"
;
import
{
getCamInfo
}
from
"
r/index/login
"
;
import
{
setLogs
}
from
"
@/common/utils
"
;
import
{
setLogs
}
from
"
@/common/utils
"
;
import
{
Notification
}
from
"
element-ui
"
;
import
{
Notification
}
from
"
element-ui
"
;
...
@@ -106,6 +106,9 @@
...
@@ -106,6 +106,9 @@
}
}
.recruit
{
.recruit
{
min-height
:
100%
;
display
:
flex
;
flex-flow
:
column
;
font-family
:
PingFang
SC
;
font-family
:
PingFang
SC
;
.el-header
{
.el-header
{
...
@@ -134,6 +137,7 @@
...
@@ -134,6 +137,7 @@
}
}
.content
{
.content
{
flex
:
1
;
.title
{
.title
{
padding
:
170px
0
20px
0
;
padding
:
170px
0
20px
0
;
font-size
:
34px
;
font-size
:
34px
;
...
...
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