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
5f52c5f3
Commit
5f52c5f3
authored
Sep 11, 2023
by
杨梦雪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
登录注册
parent
282b789e
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
34 additions
and
24 deletions
+34
-24
src/components/base/Header.vue
src/components/base/Header.vue
+6
-6
src/request/base/login.js
src/request/base/login.js
+11
-4
src/views/base/home/Home.vue
src/views/base/home/Home.vue
+2
-2
src/views/base/login/Index.vue
src/views/base/login/Index.vue
+1
-1
src/views/base/myInfo/signUp.vue
src/views/base/myInfo/signUp.vue
+14
-11
No files found.
src/components/base/Header.vue
View file @
5f52c5f3
...
@@ -14,12 +14,12 @@
...
@@ -14,12 +14,12 @@
@
mouseenter=
"onMouserEnter(false)"
@
mouseenter=
"onMouserEnter(false)"
:class=
"isHover ? '' : 'is-hover'"
:class=
"isHover ? '' : 'is-hover'"
@
click=
"toLogin"
@
click=
"toLogin"
>
登录
</span>
>
登录
| 注册
</span>
<span
<!--
<span-->
@
mouseenter=
"onMouserEnter(true)"
<!-- @mouseenter="onMouserEnter(true)"-->
:class=
"isHover ? 'is-hover' : ''"
<!-- :class="isHover ? 'is-hover' : ''"-->
@
click=
"toRegister"
<!-- @click="toRegister"-->
>
注册
</span
>
<!-- > 注册
</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"
>
...
...
src/request/base/login.js
View file @
5f52c5f3
/* eslint-disable */
/* eslint-disable */
import
{
import
{
request
}
from
'
./network
'
request
}
from
'
./network
'
import
store
from
'
@/store
'
// 登录
// 登录
export
function
login
(
data
)
{
export
function
login
(
data
)
{
...
@@ -13,6 +10,16 @@ export function login(data) {
...
@@ -13,6 +10,16 @@ export function login(data) {
})
})
}
}
// 获取登录验证码
export
function
loginCode
(
data
)
{
return
request
({
method
:
'
post
'
,
url
:
'
/web/code/loginCode
'
,
params
:
data
})
}
// 退出
// 退出
export
function
logout
(
data
)
{
export
function
logout
(
data
)
{
return
request
({
return
request
({
...
...
src/views/base/home/Home.vue
View file @
5f52c5f3
...
@@ -246,7 +246,7 @@
...
@@ -246,7 +246,7 @@
.bannerImg
{
.bannerImg
{
img
{
img
{
width
:
100%
;
/*width: 100%;*/
height
:
inherit
;
height
:
inherit
;
}
}
}
}
...
@@ -464,7 +464,7 @@
...
@@ -464,7 +464,7 @@
.item_name
{
.item_name
{
display
:
flex
;
display
:
flex
;
align-items
:
end
;
align-items
:
flex-
end
;
}
}
.name
{
.name
{
...
...
src/views/base/login/Index.vue
View file @
5f52c5f3
...
@@ -40,7 +40,7 @@
...
@@ -40,7 +40,7 @@
min-width
:
1104px
;
min-width
:
1104px
;
background
:
#f8f8f8
;
background
:
#f8f8f8
;
min-height
:
100%
;
min-height
:
100%
;
width
:
100%
;
/*width: 100%;*/
.big-right
{
.big-right
{
height
:
calc
(
100%
-
80px
);
height
:
calc
(
100%
-
80px
);
...
...
src/views/base/myInfo/signUp.vue
View file @
5f52c5f3
...
@@ -6,13 +6,13 @@
...
@@ -6,13 +6,13 @@
</el-tab-pane>
</el-tab-pane>
<el-tab-pane
label=
"即将开营"
name=
"2"
>
<el-tab-pane
label=
"即将开营"
name=
"2"
>
<div
:key=
"index"
v-for=
"(item,index) in List"
class=
"campList"
>
<div
:key=
"index"
class=
"campList"
v-for=
"(item,index) in List"
>
<el-card
class=
"box-card"
>
<el-card
class=
"box-card"
>
<div
class=
"flex list_item"
>
<div
class=
"flex list_item"
>
<div
class=
"item_img"
>
<div
class=
"item_img"
>
<img
:src=
"item.url"
/>
<img
:src=
"item.url"
/>
</div>
</div>
<div
>
<div>
<div
class=
"item_title"
>
{{
item
.
name
}}
</div>
<div
class=
"item_title"
>
{{
item
.
name
}}
</div>
<div
class=
"item_tag"
>
{{
item
.
tag
}}
</div>
<div
class=
"item_tag"
>
{{
item
.
tag
}}
</div>
<div
class=
"item_time"
>
活动时间:
{{
item
.
time
}}
</div>
<div
class=
"item_time"
>
活动时间:
{{
item
.
time
}}
</div>
...
@@ -59,27 +59,30 @@
...
@@ -59,27 +59,30 @@
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.flex
{
.flex
{
display
:
flex
;
display
:
flex
;
}
}
.signUp
{
.signUp
{
margin
:
10px
80px
10px
31px
;
margin
:
10px
80px
10px
31px
;
.campList
{
.campList
{
margin
:
10px
0
;
margin
:
10px
0
;
.list_item
{
.item_img
{
.list_item
{
.item_img
{
width
:
30%
;
width
:
30%
;
margin-right
:
10%
;
margin-right
:
10%
;
img
{
img
{
width
:
100%
;
width
:
100%
;
}
}
}
}
.item_title
{
}
.item_title
{
}
}
}
}
}
}
}
</
style
>
</
style
>
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