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
f524d5a6
Commit
f524d5a6
authored
Oct 28, 2021
by
杨梦雪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
111
parent
87af904c
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
181 additions
and
169 deletions
+181
-169
src/App.vue
src/App.vue
+91
-89
src/components/breadcrumb.vue
src/components/breadcrumb.vue
+1
-1
src/components/index/SignUp/Header.vue
src/components/index/SignUp/Header.vue
+7
-4
src/components/index/SignUp/referInfo.vue
src/components/index/SignUp/referInfo.vue
+12
-3
src/components/index/SignUp/success.vue
src/components/index/SignUp/success.vue
+10
-15
src/views/index/camp/Index.vue
src/views/index/camp/Index.vue
+58
-55
src/views/index/camp/SignUp.vue
src/views/index/camp/SignUp.vue
+1
-1
src/views/index/recruit/Index.vue
src/views/index/recruit/Index.vue
+1
-1
No files found.
src/App.vue
View file @
f524d5a6
<
template
>
<
template
>
<div
id=
"app"
>
<div
id=
"app"
>
<router-view/>
<router-view
/>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
/* eslint-disable */
import
{
getCam
}
from
"
r/index/login
"
;
import
{
getCam
}
from
"
r/index/login
"
;
export
default
{
export
default
{
name
:
"
recruit
"
,
name
:
"
recruit
"
,
data
()
{
data
()
{
return
{};
return
{};
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
let
root
=
document
.
querySelector
(
"
:root
"
);
let
root
=
document
.
querySelector
(
"
:root
"
);
root
.
style
.
setProperty
(
"
--color
"
,
res
.
data
.
system_color
);
root
.
style
.
setProperty
(
"
--color
"
,
res
.
data
.
system_color
);
root
.
style
.
setProperty
(
"
--bk_pic
"
,
res
.
data
.
background_picture
);
//当前营地的背景图
root
.
style
.
setProperty
(
"
--bk_pic
"
,
res
.
data
.
background_picture
);
//当前营地的背景图
window
.
localStorage
.
setItem
(
'
bk_pic
'
,
res
.
data
.
background_picture
)
window
.
localStorage
.
setItem
(
"
bk_pic
"
,
res
.
data
.
background_picture
);
//当前营地logo
//当前营地logo
window
.
localStorage
.
setItem
(
"
system_logo
"
,
res
.
data
.
system_logo
);
window
.
localStorage
.
setItem
(
"
system_logo
"
,
res
.
data
.
system_logo
);
window
.
localStorage
.
setItem
(
window
.
localStorage
.
setItem
(
...
@@ -39,12 +39,12 @@
...
@@ -39,12 +39,12 @@
});
});
},
},
},
},
};
};
</
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
;
...
@@ -52,46 +52,48 @@
...
@@ -52,46 +52,48 @@
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
26
px
!
important
;
padding
:
0
30
px
!
important
;
&
:hover
{
&
:hover
{
color
:
#ffffff
!
important
;
color
:
#ffffff
!
important
;
background-color
:
var
(
--
color
)
!
important
;
background-color
:
var
(
--
color
)
!
important
;
}
}
i
{
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
);
}
}
}
}
}
}
.el-button
{
.el-button
{
&
:nth-child
(
1
)
:hover
{
&
:nth-child
(
1
)
:hover
{
color
:
#fff
;
color
:
#fff
;
background-color
:
var
(
--
color
);
background-color
:
var
(
--
color
);
border-color
:
var
(
--
color
);
border-color
:
var
(
--
color
);
...
@@ -109,5 +111,5 @@
...
@@ -109,5 +111,5 @@
}
}
}
}
}
}
}
}
</
style
>
</
style
>
src/components/breadcrumb.vue
View file @
f524d5a6
...
@@ -131,7 +131,7 @@ export default {
...
@@ -131,7 +131,7 @@ export default {
font-family
:
PingFang
SC
;
font-family
:
PingFang
SC
;
}
}
.
img
{
img
{
margin
:
0
15px
0
10px
;
margin
:
0
15px
0
10px
;
}
}
}
}
...
...
src/components/index/SignUp/Header.vue
View file @
f524d5a6
...
@@ -12,7 +12,9 @@
...
@@ -12,7 +12,9 @@
<i
class=
"el-icon-arrow-down el-icon--right"
></i>
<i
class=
"el-icon-arrow-down el-icon--right"
></i>
</div>
</div>
<el-dropdown-menu
slot=
"dropdown"
>
<el-dropdown-menu
slot=
"dropdown"
>
<el-dropdown-item
command=
"1"
>
退出
</el-dropdown-item>
<el-dropdown-item
command=
"1"
>
<i
class=
"el-icon-switch-button"
></i>
退出
</el-dropdown-item
>
</el-dropdown-menu>
</el-dropdown-menu>
</el-dropdown>
</el-dropdown>
</div>
</div>
...
@@ -63,10 +65,10 @@ export default {
...
@@ -63,10 +65,10 @@ export default {
window
.
localStorage
.
removeItem
(
"
has_amount
"
);
window
.
localStorage
.
removeItem
(
"
has_amount
"
);
window
.
localStorage
.
removeItem
(
"
campsite_id
"
);
window
.
localStorage
.
removeItem
(
"
campsite_id
"
);
window
.
localStorage
.
removeItem
(
"
order_no
"
);
window
.
localStorage
.
removeItem
(
"
order_no
"
);
window
.
localStorage
.
removeItem
(
"
campindex_type
"
);
this
.
$store
.
state
.
token
=
""
;
this
.
$store
.
state
.
token
=
""
;
// 使用编程式导航跳转到登录页面
// 使用编程式导航跳转到登录页面
this
.
$router
.
replace
({
name
:
"
recruit
"
});
this
.
$router
.
push
({
name
:
"
recruit
"
});
},
},
// 点击图片跳转到招生简章页面
// 点击图片跳转到招生简章页面
toRecruit
()
{
toRecruit
()
{
...
@@ -83,8 +85,9 @@ export default {
...
@@ -83,8 +85,9 @@ export default {
window
.
localStorage
.
removeItem
(
"
has_amount
"
);
window
.
localStorage
.
removeItem
(
"
has_amount
"
);
window
.
localStorage
.
removeItem
(
"
campsite_id
"
);
window
.
localStorage
.
removeItem
(
"
campsite_id
"
);
window
.
localStorage
.
removeItem
(
"
order_no
"
);
window
.
localStorage
.
removeItem
(
"
order_no
"
);
window
.
localStorage
.
removeItem
(
"
campindex_type
"
);
this
.
$store
.
state
.
token
=
""
;
this
.
$store
.
state
.
token
=
""
;
this
.
$router
.
replace
({
name
:
"
recruit
"
});
this
.
$router
.
push
({
name
:
"
recruit
"
});
},
},
},
},
};
};
...
...
src/components/index/SignUp/referInfo.vue
View file @
f524d5a6
...
@@ -669,10 +669,12 @@ export default {
...
@@ -669,10 +669,12 @@ export default {
return
this
.
$message
.
info
(
"
chaochushuliamng
"
);
return
this
.
$message
.
info
(
"
chaochushuliamng
"
);
}
}
},
},
uploadSuccess
(
res
,
file
)
{
uploadSuccess
(
res
,
file
,
fileList
)
{
// console.log(res, "111");
console
.
log
(
res
,
"
res
"
);
console
.
log
(
file
,
"
file
"
);
console
.
log
(
fileList
,
"
fileList
"
);
this
.
referForm
.
achievementPath
=
res
;
this
.
referForm
.
achievementPath
=
res
;
this
.
fileList
[
0
]
=
{
this
.
fileList
=
{
name
:
file
.
name
,
name
:
file
.
name
,
url
:
res
,
url
:
res
,
};
};
...
@@ -726,6 +728,9 @@ export default {
...
@@ -726,6 +728,9 @@ export default {
savefile
:
res
.
data
.
config
.
savefile
,
savefile
:
res
.
data
.
config
.
savefile
,
};
};
this
.
fileList
.
push
(
obj
);
this
.
fileList
.
push
(
obj
);
// this.fileList = fileList
console
.
log
(
this
.
fileList
,
"
this.fileList
"
);
console
.
log
(
this
.
fileList
,
"
this.fileList
"
);
window
.
localStorage
.
setItem
(
window
.
localStorage
.
setItem
(
"
sign_up_file_
"
+
window
.
localStorage
.
getItem
(
"
phone
"
),
"
sign_up_file_
"
+
window
.
localStorage
.
getItem
(
"
phone
"
),
...
@@ -931,6 +936,10 @@ export default {
...
@@ -931,6 +936,10 @@ export default {
//去除upload组件过渡效果 css
//去除upload组件过渡效果 css
.el-upload-list__item
{
.el-upload-list__item
{
transition
:
none
!
important
;
transition
:
none
!
important
;
.is-ready
{
display
:
none
;
}
div
{
div
{
height
:
100%
;
height
:
100%
;
}
}
...
...
src/components/index/SignUp/success.vue
View file @
f524d5a6
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
</div>
</div>
<div
class=
"btn"
>
<div
class=
"btn"
>
<el-button
>
下载录取通知书
</el-button>
<el-button
@
click=
"handleDownload"
>
下载录取通知书
</el-button>
</div>
</div>
</div>
</div>
...
@@ -23,25 +23,20 @@
...
@@ -23,25 +23,20 @@
<
script
>
<
script
>
/* eslint-disable */
/* eslint-disable */
import
{
getCam
}
from
"
r/index/login
"
;
import
{
getCam
}
from
"
r/index/login
"
;
export
default
{
export
default
{
name
:
"
Sucess
"
,
name
:
"
Sucess
"
,
data
()
{
data
()
{
return
{
return
{};
pdf_address
:
''
,
};
},
created
()
{
},
},
created
()
{},
methods
:
{
methods
:
{
getCam
()
{
handleDownload
()
{
getCam
({}).
then
((
res
)
=>
{
getCam
({}).
then
((
res
)
=>
{
console
.
log
(
res
,
"
getCam
"
);
console
.
log
(
res
,
"
getCam
"
);
this
.
pdf_address
=
res
.
data
.
pdf_address
window
.
location
.
href
=
res
.
data
.
pdf_address
;
});
});
},
},
},
},
...
...
src/views/index/camp/Index.vue
View file @
f524d5a6
...
@@ -28,7 +28,7 @@
...
@@ -28,7 +28,7 @@
</div>
</div>
<div
class=
"camp_right"
ref=
"rightBox"
>
<div
class=
"camp_right"
ref=
"rightBox"
>
<router-view
@
get
Type=
"getType
"
/>
<router-view
@
get
Status=
"getStatus
"
/>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -72,17 +72,14 @@ export default {
...
@@ -72,17 +72,14 @@ export default {
],
],
campindex_type
:
""
,
campindex_type
:
""
,
index_
type
:
""
,
index_
status
:
""
,
};
};
},
},
watch
:
{
watch
:
{
type
(
val
)
{
type
(
val
)
{
window
.
localStorage
.
setItem
(
"
campindex_type
"
,
val
);
window
.
localStorage
.
setItem
(
"
campindex_type
"
,
val
);
},
},
getType
(
val
)
{
console
.
log
(
val
,
"
index_type
"
);
this
.
index_type
=
val
;
},
},
},
created
()
{
created
()
{
window
.
localStorage
.
setItem
(
"
campindex_type
"
,
0
);
window
.
localStorage
.
setItem
(
"
campindex_type
"
,
0
);
...
@@ -97,10 +94,16 @@ export default {
...
@@ -97,10 +94,16 @@ export default {
window
.
removeEventListener
(
"
resize
"
,
this
.
onResize
,
true
);
window
.
removeEventListener
(
"
resize
"
,
this
.
onResize
,
true
);
},
},
methods
:
{
methods
:
{
getStatus
(
val
)
{
console
.
log
(
val
,
"
index_type
"
);
this
.
index_status
=
val
;
this
.
ToSignUp
()
},
ToSignUp
(
index
)
{
ToSignUp
(
index
)
{
this
.
campindex_type
=
index
;
this
.
campindex_type
=
index
;
if
(
this
.
campindex_type
==
0
)
{
if
(
this
.
campindex_type
==
0
)
{
this
.
$router
.
push
(
"
/signUp/
:index_type
"
);
this
.
$router
.
push
(
"
/signUp/
"
+
this
.
index_status
);
// this.$router.replace({name: "index-signUp"});
// this.$router.replace({name: "index-signUp"});
}
else
if
(
this
.
campindex_type
==
1
)
{
}
else
if
(
this
.
campindex_type
==
1
)
{
this
.
$router
.
push
(
"
/homework
"
);
this
.
$router
.
push
(
"
/homework
"
);
...
@@ -169,7 +172,6 @@ export default {
...
@@ -169,7 +172,6 @@ export default {
display
:
flex
;
display
:
flex
;
flex-flow
:
row
;
flex-flow
:
row
;
.camp_left
{
.camp_left
{
position
:
relative
;
position
:
relative
;
width
:
22%
;
width
:
22%
;
...
@@ -179,8 +181,10 @@ export default {
...
@@ -179,8 +181,10 @@ export default {
background-color
:
#ffffff
;
background-color
:
#ffffff
;
border-radius
:
8px
;
border-radius
:
8px
;
padding
:
20px
0
;
padding
:
20px
0
;
margin
:
0
;
margin-right
:
25px
;
.camp_left_box
{
padding-inline-start
:
0
!
important
;
}
&
.is-fixed
{
&
.is-fixed
{
position
:
fixed
;
position
:
fixed
;
top
:
104px
;
top
:
104px
;
...
@@ -194,6 +198,7 @@ export default {
...
@@ -194,6 +198,7 @@ export default {
bottom
:
0
;
bottom
:
0
;
width
:
100%
;
width
:
100%
;
}
}
}
li
{
li
{
position
:
relative
;
position
:
relative
;
...
@@ -214,7 +219,6 @@ export default {
...
@@ -214,7 +219,6 @@ export default {
&
:hover
{
&
:hover
{
cursor
:
pointer
;
cursor
:
pointer
;
background-color
:
#f8f8f8
;
background-color
:
#f8f8f8
;
}
}
}
}
}
}
...
@@ -224,6 +228,5 @@ export default {
...
@@ -224,6 +228,5 @@ export default {
border-radius
:
8px
;
border-radius
:
8px
;
background-color
:
#ffffff
;
background-color
:
#ffffff
;
}
}
}
}
}
</
style
>
</
style
>
src/views/index/camp/SignUp.vue
View file @
f524d5a6
...
@@ -159,7 +159,7 @@ export default {
...
@@ -159,7 +159,7 @@ export default {
}
else
if
(
this
.
status
==
6
)
{
}
else
if
(
this
.
status
==
6
)
{
this
.
type
=
"
success
"
;
this
.
type
=
"
success
"
;
}
}
this
.
$emit
(
"
get
Type
"
,
this
.
type
)
this
.
$emit
(
"
get
Status
"
,
this
.
type
)
// console.log(this.status)
// console.log(this.status)
//审核报名资料状态
//审核报名资料状态
...
...
src/views/index/recruit/Index.vue
View file @
f524d5a6
...
@@ -59,7 +59,7 @@
...
@@ -59,7 +59,7 @@
"
index-identity
"
,
"
index-identity
"
,
"
c59086fdb37848e7a10765812d1da349
"
"
c59086fdb37848e7a10765812d1da349
"
);
);
//
this.getCam();
this
.
getCam
();
},
},
methods
:
{
methods
:
{
toLogin
()
{
toLogin
()
{
...
...
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