Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
million
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
viitto
million
Commits
31cae090
Commit
31cae090
authored
Feb 20, 2023
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化首页样式
parent
a4e82aec
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
27 deletions
+25
-27
App.vue
src/App.vue
+3
-0
hor-big-one.vue
src/components/navs/hor-big-one.vue
+22
-27
No files found.
src/App.vue
View file @
31cae090
...
@@ -103,5 +103,8 @@ body.desktop .q-tree__node .q-focus-helper:after{
...
@@ -103,5 +103,8 @@ body.desktop .q-tree__node .q-focus-helper:after{
.q-checkbox__inner
{
.q-checkbox__inner
{
color
:
rgb
(
0
0
0
/
72%
)
!important
;
color
:
rgb
(
0
0
0
/
72%
)
!important
;
}
}
.q-menu
{
box-shadow
:
0px
0px
20px
0px
rgba
(
76
,
87
,
125
,
0.2
)
!important
}
/************************************ 重新Tree样式 END************************************/
/************************************ 重新Tree样式 END************************************/
</
style
>
</
style
>
src/components/navs/hor-big-one.vue
View file @
31cae090
...
@@ -52,11 +52,9 @@
...
@@ -52,11 +52,9 @@
.city
{
.city
{
width
:
129px
;
width
:
129px
;
height
:
69px
;
height
:
69px
;
border-radius
:
10px
;
background-size
:
cover
;
margin
:
11px
;
background-repeat
:
no-repeat
;
border
:
1px
solid
#eee
;
background-position
:
0%
0%
;
display
:
inline-block
;
position
:
relative
;
cursor
:
pointer
;
cursor
:
pointer
;
}
}
.city2
{
.city2
{
...
@@ -344,7 +342,7 @@ color: #EE4454;
...
@@ -344,7 +342,7 @@ color: #EE4454;
<span
slot=
"default"
class=
"flex item-center"
>
<span
slot=
"default"
class=
"flex item-center"
>
<i
class=
"iconfont icondingweixiao q-icon notranslate"
style=
"font-size: 14px; margin-right: 8px"
></i>
選擇目的地
<i
class=
"iconfont icondingweixiao q-icon notranslate"
style=
"font-size: 14px; margin-right: 8px"
></i>
選擇目的地
</span>
</span>
<q-menu
ref=
"address"
@
mouseenter=
"addressMenuEnter"
>
<q-menu
ref=
"address"
@
mouseenter=
"addressMenuEnter"
class=
"light-shadow"
>
<div
class=
"address-box flex"
>
<div
class=
"address-box flex"
>
<div
class=
"menu-box"
>
<div
class=
"menu-box"
>
<div
<div
...
@@ -365,34 +363,31 @@ color: #EE4454;
...
@@ -365,34 +363,31 @@ color: #EE4454;
</div>
</div>
</div>
</div>
<!-- 热门城市 -->
<!-- 热门城市 -->
<div
v-if=
"!selectedAreaId"
class=
"city-box"
>
<div
class=
"col bg-grey-2"
>
<div
v-for=
"item in selectedArea"
:key=
"item.Id"
>
<div
v-if=
"!selectedAreaId"
class=
"row q-pr-md"
>
<div
@
click=
"handleSelectArea(item)"
class=
"city"
>
<div
@
click=
"handleSelectArea(item)"
v-for=
"item in selectedArea"
class=
"q-mt-md q-ml-md"
:key=
"item.Id"
style=
"width:130px;height:70px;"
>
<img
class=
"city-img"
v-if=
"item.ImageList.length"
:src=
"item.ImageList[0]"
/>
<q-img
:src=
"item.ImageList[0]"
spinner-color=
"grey-2"
class=
"rounded-borders full-width full-height"
>
<div
class=
"city-name-box flex flex-center"
><div
class=
"city-name"
>
{{item.Name}}
</div></div>
<div
class=
"full-width full-height row items-center justify-center"
style=
"background:none;"
>
</div>
<div
style=
"background:rgba(0,0,0,.2);text-shadow: 2px 2px 5px rgb(0 0 0 / 50%);"
class=
"rounded-borders q-px-md q-py-xs text-white cursor-pointer"
>
{{item.Name}}
</div>
<
template
v-if=
"item.SubList"
>
<div
@
click=
"handleSelectArea(item2)"
class=
"city"
v-for=
"item2 in item.SubList"
:key=
"item2.Id"
>
<div>
<img
class=
"city-img"
v-if=
"item2.ImageList.length"
:src=
"item2.ImageList[0]"
/>
<div
class=
"city-name-box flex flex-center"
><div
class=
"city-name"
>
{{
item2
.
Name
}}
</div></div>
</div>
</div>
</div>
</q-img>
</
template
>
</div>
</div>
</div>
</div>
<div
v-else
class=
"city-box"
>
<div
v-else
class=
"city-box"
>
<div
class=
"row"
v-for=
"item in selectedArea"
:key=
"item.Id"
>
<div
class=
"flex"
v-for=
"item in selectedArea"
:key=
"item.Id"
>
<div
style=
"width:138px;"
>
<div
@
click=
"handleSelectArea(item)"
class=
"city2"
>
<div
@
click=
"handleSelectArea(item)"
class=
"q-py-xs q-px-md bg-grey-4 cursor-pointer text-black text-subtitle2 inline-block rounded-borders text-weight-bolder"
>
{{item.Name}}
{{item.Name}}
</div>
</div>
</div>
<div
class=
"flex flex-wrap"
style=
"width: 500px"
>
<div
class=
"col q-mt-sm"
>
<div
@
click=
"handleSelectArea(item2)"
class=
"city3"
v-for=
"item2 in item.SubList"
:key=
"item2.Id"
>
{{item2.Name}}
</div>
<div
class=
"row q-col-gutter-lg"
>
<div
@
click=
"handleSelectArea(item2)"
class=
"text-subtitle2 text-grey-9 cursor-pointer"
v-for=
"item2 in item.SubList"
:key=
"item2.Id"
>
{{item2.Name}}
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</q-menu>
</q-menu>
...
...
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