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
Hide 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
>
<div
id=
"app"
>
<router-view/>
<router-view
/>
</div>
</
template
>
<
script
>
import
{
getCam
}
from
"
r/index/login
"
;
export
default
{
name
:
"
recruit
"
,
data
()
{
return
{};
},
created
()
{
this
.
getCam
();
},
methods
:
{
getCam
()
{
getCam
({}).
then
((
res
)
=>
{
console
.
log
(
res
,
"
getCam
"
);
let
root
=
document
.
querySelector
(
"
:root
"
);
root
.
style
.
setProperty
(
"
--color
"
,
res
.
data
.
system_color
);
root
.
style
.
setProperty
(
"
--bk_pic
"
,
res
.
data
.
background_picture
);
//当前营地的背景图
window
.
localStorage
.
setItem
(
'
bk_pic
'
,
res
.
data
.
background_picture
)
//当前营地logo
window
.
localStorage
.
setItem
(
"
system_logo
"
,
res
.
data
.
system_logo
);
window
.
localStorage
.
setItem
(
"
doubt_code
"
,
res
.
data
.
fill_individual_Invitationcode
);
//是否填写邀请码
window
.
localStorage
.
setItem
(
"
doubt_info
"
,
res
.
data
.
fill_individual_information
);
//是否填写个人资料
window
.
localStorage
.
setItem
(
"
doubt_check
"
,
res
.
data
.
audit_individual_information
);
//是否审核个人资料
});
},
/* eslint-disable */
import
{
getCam
}
from
"
r/index/login
"
;
export
default
{
name
:
"
recruit
"
,
data
()
{
return
{};
},
created
()
{
this
.
getCam
();
},
methods
:
{
getCam
()
{
getCam
({}).
then
((
res
)
=>
{
console
.
log
(
res
,
"
getCam
"
);
let
root
=
document
.
querySelector
(
"
:root
"
);
root
.
style
.
setProperty
(
"
--color
"
,
res
.
data
.
system_color
);
root
.
style
.
setProperty
(
"
--bk_pic
"
,
res
.
data
.
background_picture
);
//当前营地的背景图
window
.
localStorage
.
setItem
(
"
bk_pic
"
,
res
.
data
.
background_picture
);
//当前营地logo
window
.
localStorage
.
setItem
(
"
system_logo
"
,
res
.
data
.
system_logo
);
window
.
localStorage
.
setItem
(
"
doubt_code
"
,
res
.
data
.
fill_individual_Invitationcode
);
//是否填写邀请码
window
.
localStorage
.
setItem
(
"
doubt_info
"
,
res
.
data
.
fill_individual_information
);
//是否填写个人资料
window
.
localStorage
.
setItem
(
"
doubt_check
"
,
res
.
data
.
audit_individual_information
);
//是否审核个人资料
});
},
};
},
};
</
script
>
<
style
lang=
"scss"
>
@import
"a/scss/index"
;
// @import "~a/css/base.css";
#app
{
font-family
:
Avenir
,
Helvetica
,
Arial
,
sans-serif
;
-webkit-font-smoothing
:
antialiased
;
-moz-osx-font-smoothing
:
grayscale
;
position
:
relative
;
height
:
100vh
;
background
:
#fff
;
background
:
#f8f8f8
;
}
//滚动条的宽度
::-webkit-scrollbar
{
width
:
12px
;
height
:
12px
;
}
//滚动条的滑块
::-webkit-scrollbar-thumb
{
background-color
:
#cccccc
;
border-radius
:
4px
;
}
@import
"a/scss/index"
;
// @import "~a/css/base.css";
#app
{
font-family
:
Avenir
,
Helvetica
,
Arial
,
sans-serif
;
-webkit-font-smoothing
:
antialiased
;
-moz-osx-font-smoothing
:
grayscale
;
position
:
relative
;
height
:
100vh
;
background
:
#fff
;
background
:
#f8f8f8
;
}
//滚动条的宽度
::-webkit-scrollbar
{
width
:
12px
;
height
:
12px
;
}
//滚动条的滑块
::-webkit-scrollbar-thumb
{
background-color
:
#cccccc
;
border-radius
:
4px
;
}
.el-dropdown-menu
{
.el-dropdown-menu__item
{
padding
:
0
26
px
!
important
;
.el-dropdown-menu
{
.el-dropdown-menu__item
{
padding
:
0
30
px
!
important
;
&
:hover
{
color
:
#ffffff
!
important
;
background-color
:
var
(
--
color
)
!
important
;
}
&
:hover
{
color
:
#ffffff
!
important
;
background-color
:
var
(
--
color
)
!
important
;
}
i
{
font-size
:
19px
;
}
}
}
.el-message-box
{
width
:
360px
!
important
;
.el-message-box
{
width
:
360px
!
important
;
.el-message-box__header
{
.el-message-box__title
{
color
:
red
;
}
.el-message-box__close
{
&
:hover
{
color
:
var
(
--
color
);
}
.el-message-box__header
{
.el-message-box__title
{
color
:
red
;
}
.el-message-box__close
{
&
:hover
{
color
:
var
(
--
color
);
}
}
}
.el-button
{
&
:nth-child
(
1
)
:hover
{
color
:
#fff
;
background-color
:
var
(
--
color
);
border-color
:
var
(
--
color
);
opacity
:
0
.6
;
}
&
:nth-child
(
2
)
{
.el-button
{
&
:nth-child
(
1
)
:hover
{
color
:
#fff
;
background-color
:
var
(
--
color
);
border-color
:
var
(
--
color
);
opacity
:
0
.6
;
}
&
:nth-child
(
2
)
{
color
:
#fff
;
background-color
:
var
(
--
color
);
border-color
:
var
(
--
color
);
&
:hover
{
color
:
#fff
;
background-color
:
var
(
--
color
);
border-color
:
var
(
--
color
);
&
:hover
{
color
:
#fff
;
background-color
:
var
(
--
color
);
border-color
:
var
(
--
color
);
opacity
:
0
.9
;
}
opacity
:
0
.9
;
}
}
}
}
</
style
>
src/components/breadcrumb.vue
View file @
f524d5a6
...
...
@@ -131,7 +131,7 @@ export default {
font-family
:
PingFang
SC
;
}
.
img
{
img
{
margin
:
0
15px
0
10px
;
}
}
...
...
src/components/index/SignUp/Header.vue
View file @
f524d5a6
...
...
@@ -12,7 +12,9 @@
<i
class=
"el-icon-arrow-down el-icon--right"
></i>
</div>
<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>
</div>
...
...
@@ -63,10 +65,10 @@ export default {
window
.
localStorage
.
removeItem
(
"
has_amount
"
);
window
.
localStorage
.
removeItem
(
"
campsite_id
"
);
window
.
localStorage
.
removeItem
(
"
order_no
"
);
window
.
localStorage
.
removeItem
(
"
campindex_type
"
);
this
.
$store
.
state
.
token
=
""
;
// 使用编程式导航跳转到登录页面
this
.
$router
.
replace
({
name
:
"
recruit
"
});
this
.
$router
.
push
({
name
:
"
recruit
"
});
},
// 点击图片跳转到招生简章页面
toRecruit
()
{
...
...
@@ -83,8 +85,9 @@ export default {
window
.
localStorage
.
removeItem
(
"
has_amount
"
);
window
.
localStorage
.
removeItem
(
"
campsite_id
"
);
window
.
localStorage
.
removeItem
(
"
order_no
"
);
window
.
localStorage
.
removeItem
(
"
campindex_type
"
);
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 {
return
this
.
$message
.
info
(
"
chaochushuliamng
"
);
}
},
uploadSuccess
(
res
,
file
)
{
// console.log(res, "111");
uploadSuccess
(
res
,
file
,
fileList
)
{
console
.
log
(
res
,
"
res
"
);
console
.
log
(
file
,
"
file
"
);
console
.
log
(
fileList
,
"
fileList
"
);
this
.
referForm
.
achievementPath
=
res
;
this
.
fileList
[
0
]
=
{
this
.
fileList
=
{
name
:
file
.
name
,
url
:
res
,
};
...
...
@@ -726,6 +728,9 @@ export default {
savefile
:
res
.
data
.
config
.
savefile
,
};
this
.
fileList
.
push
(
obj
);
// this.fileList = fileList
console
.
log
(
this
.
fileList
,
"
this.fileList
"
);
window
.
localStorage
.
setItem
(
"
sign_up_file_
"
+
window
.
localStorage
.
getItem
(
"
phone
"
),
...
...
@@ -931,6 +936,10 @@ export default {
//去除upload组件过渡效果 css
.el-upload-list__item
{
transition
:
none
!
important
;
.is-ready
{
display
:
none
;
}
div
{
height
:
100%
;
}
...
...
src/components/index/SignUp/success.vue
View file @
f524d5a6
...
...
@@ -8,7 +8,7 @@
</div>
<div
class=
"btn"
>
<el-button
>
下载录取通知书
</el-button>
<el-button
@
click=
"handleDownload"
>
下载录取通知书
</el-button>
</div>
</div>
...
...
@@ -23,27 +23,22 @@
<
script
>
/* eslint-disable */
import
{
getCam
}
from
"
r/index/login
"
;
import
{
getCam
}
from
"
r/index/login
"
;
export
default
{
name
:
"
Sucess
"
,
data
()
{
return
{
pdf_address
:
''
,
};
},
created
()
{
return
{};
},
created
()
{},
methods
:
{
getCam
()
{
getCam
({}).
then
((
res
)
=>
{
console
.
log
(
res
,
"
getCam
"
);
this
.
pdf_address
=
res
.
data
.
pdf_address
});
},
handleDownload
()
{
getCam
({}).
then
((
res
)
=>
{
console
.
log
(
res
,
"
getCam
"
);
window
.
location
.
href
=
res
.
data
.
pdf_address
;
});
},
},
};
</
script
>
...
...
src/views/index/camp/Index.vue
View file @
f524d5a6
...
...
@@ -28,7 +28,7 @@
</div>
<div
class=
"camp_right"
ref=
"rightBox"
>
<router-view
@
get
Type=
"getType
"
/>
<router-view
@
get
Status=
"getStatus
"
/>
</div>
</div>
</div>
...
...
@@ -72,17 +72,14 @@ export default {
],
campindex_type
:
""
,
index_
type
:
""
,
index_
status
:
""
,
};
},
watch
:
{
type
(
val
)
{
window
.
localStorage
.
setItem
(
"
campindex_type
"
,
val
);
},
getType
(
val
)
{
console
.
log
(
val
,
"
index_type
"
);
this
.
index_type
=
val
;
},
},
created
()
{
window
.
localStorage
.
setItem
(
"
campindex_type
"
,
0
);
...
...
@@ -97,10 +94,16 @@ export default {
window
.
removeEventListener
(
"
resize
"
,
this
.
onResize
,
true
);
},
methods
:
{
getStatus
(
val
)
{
console
.
log
(
val
,
"
index_type
"
);
this
.
index_status
=
val
;
this
.
ToSignUp
()
},
ToSignUp
(
index
)
{
this
.
campindex_type
=
index
;
if
(
this
.
campindex_type
==
0
)
{
this
.
$router
.
push
(
"
/signUp/
:index_type
"
);
this
.
$router
.
push
(
"
/signUp/
"
+
this
.
index_status
);
// this.$router.replace({name: "index-signUp"});
}
else
if
(
this
.
campindex_type
==
1
)
{
this
.
$router
.
push
(
"
/homework
"
);
...
...
@@ -169,61 +172,61 @@ export default {
display
:
flex
;
flex-flow
:
row
;
.camp_left
{
position
:
relative
;
width
:
22%
;
.camp_left
{
position
:
relative
;
width
:
22%
;
max-width
:
280px
;
min-width
:
200px
;
height
:
300px
;
background-color
:
#ffffff
;
border-radius
:
8px
;
padding
:
20px
0
;
margin-right
:
25px
;
.camp_left_box
{
padding-inline-start
:
0
!
important
;
}
&
.is-fixed
{
position
:
fixed
;
top
:
104px
;
/*width: 14.4%;*/
max-width
:
280px
;
min-width
:
200px
;
height
:
300px
;
background-color
:
#ffffff
;
border-radius
:
8px
;
padding
:
20px
0
;
margin
:
0
;
&
.is-fixed
{
position
:
fixed
;
top
:
104px
;
/*width: 14.4%;*/
max-width
:
280px
;
min-width
:
216px
;
}
&
.is-absolute
{
position
:
absolute
;
bottom
:
0
;
width
:
100%
;
}
min-width
:
216px
;
}
li
{
position
:
relative
;
padding
:
0
23px
;
height
:
44px
;
line-height
:
44px
;
margin
:
10px
0
;
font-size
:
15px
;
list-style
:
none
;
&
.is-absolute
{
position
:
absolute
;
bottom
:
0
;
width
:
100%
;
}
}
img
{
vertical-align
:
middle
;
margin
:
-3px
8px
0
0
;
width
:
20px
;
}
li
{
position
:
relative
;
padding
:
0
23px
;
height
:
44px
;
line-height
:
44px
;
margin
:
10px
0
;
font-size
:
15px
;
list-style
:
none
;
img
{
vertical-align
:
middle
;
margin
:
-3px
8px
0
0
;
width
:
20px
;
}
&
.active
,
&
:hover
{
cursor
:
pointer
;
background-color
:
#f8f8f8
;
}
&
.active
,
&
:hover
{
cursor
:
pointer
;
background-color
:
#f8f8f8
;
}
}
}
.camp_right
{
flex
:
1
;
border-radius
:
8px
;
background-color
:
#ffffff
;
}
.camp_right
{
flex
:
1
;
border-radius
:
8px
;
background-color
:
#ffffff
;
}
}
</
style
>
src/views/index/camp/SignUp.vue
View file @
f524d5a6
...
...
@@ -159,7 +159,7 @@ export default {
}
else
if
(
this
.
status
==
6
)
{
this
.
type
=
"
success
"
;
}
this
.
$emit
(
"
get
Type
"
,
this
.
type
)
this
.
$emit
(
"
get
Status
"
,
this
.
type
)
// console.log(this.status)
//审核报名资料状态
...
...
src/views/index/recruit/Index.vue
View file @
f524d5a6
...
...
@@ -59,7 +59,7 @@
"
index-identity
"
,
"
c59086fdb37848e7a10765812d1da349
"
);
//
this.getCam();
this
.
getCam
();
},
methods
:
{
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