Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
jz_Travel
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
zhengke
jz_Travel
Commits
573c511e
Commit
573c511e
authored
Apr 24, 2025
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
37a711a1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
14 deletions
+21
-14
searchCity.vue
pages/hotel/components/address/searchCity.vue
+3
-3
search.vue
pages/hotel/components/search.vue
+18
-11
No files found.
pages/hotel/components/address/searchCity.vue
View file @
573c511e
...
@@ -144,9 +144,9 @@
...
@@ -144,9 +144,9 @@
},
},
searchClose
()
{
searchClose
()
{
this
.
$emit
(
'searchClose'
)
this
.
$emit
(
'searchClose'
)
this
.
HotelList
=
[]
//
this.HotelList = []
this
.
KeyCityList
=
[]
//
this.KeyCityList = []
this
.
parameters
.
KeyWords
=
''
//
this.parameters.KeyWords = ''
},
},
lower
(
e
)
{
lower
(
e
)
{
// TODO: 滚动到了底部,实现翻页加载
// TODO: 滚动到了底部,实现翻页加载
...
...
pages/hotel/components/search.vue
View file @
573c511e
...
@@ -18,16 +18,16 @@
...
@@ -18,16 +18,16 @@
<view
class=
"days column justify-center"
>
<view
class=
"days column justify-center"
>
</view>
</view>
<view
style=
"width: 1px; flex: 1;position: relative;"
>
<view
style=
"width: 1px; flex: 1;position: relative;"
>
<u-search
placeholder=
"酒店"
v-model=
"parameters.KeyWords
2
"
<u-search
placeholder=
"酒店"
v-model=
"parameters.KeyWords"
input-align=
"left"
input-align=
"left"
:value=
"parameters.KeyWords
2
"
text-color=
"#111"
:value=
"parameters.KeyWords"
text-color=
"#111"
bg-color=
"rgba(0,0,0,0)"
bg-color=
"rgba(0,0,0,0)"
:show-action=
"false"
:show-action=
"false"
clearabled
clearabled
:disabled=
"parameters.KeyWords2==''"
disabled
@
clear=
"clearKeyWords()"
@
clear=
"clearKeyWords()"
style=
"font-size: 22rpx;"
></u-search>
style=
"font-size: 22rpx;"
></u-search>
<view
v-if=
"parameters.KeyWords2==''"
class=
"clickSearch"
@
click=
"clickSearchCity()"
>
<view
class=
"clickSearch"
@
click=
"clickSearchCity()"
>
<view>
0
</view>
<view>
0
</view>
</view>
</view>
</view>
</view>
...
@@ -359,8 +359,15 @@
...
@@ -359,8 +359,15 @@
searchClose
()
{
searchClose
()
{
this
.
showSearchCity
=
false
this
.
showSearchCity
=
false
this
.
showCityList
=
false
this
.
showCityList
=
false
this
.
clearKeyWords
()
if
(
this
.
parameters
.
hotelId
||
(
this
.
parameters
.
CityCode
!=
this
.
PopularCities
[
0
].
CityList
[
0
].
CityCode
)){
this
.
research
(
2
)
if
(
this
.
parameters
.
hotelId
)
this
.
parameters
.
hotelId
=
''
else
{
this
.
city
=
this
.
parameters
.
CityName
=
this
.
PopularCities
[
0
].
CityList
[
0
].
CityName
this
.
parameters
.
CityCode2
=
this
.
PopularCities
[
0
].
CityList
[
0
].
CityCode
this
.
parameters
.
CityCode
=
this
.
PopularCities
[
0
].
CityList
[
0
].
CityCode
}
this
.
research
(
12
)
}
},
},
searchKey
(
type
,
key
,
City
)
{
searchKey
(
type
,
key
,
City
)
{
if
(
type
==
1
)
{
if
(
type
==
1
)
{
...
@@ -371,14 +378,14 @@
...
@@ -371,14 +378,14 @@
}
else
if
(
type
==
2
)
{
}
else
if
(
type
==
2
)
{
this
.
parameters
.
KeyWords
=
null
this
.
parameters
.
KeyWords
=
null
this
.
parameters
.
CityCode
=
null
this
.
parameters
.
CityCode
=
null
//
this.parameters.KeyWords2 = City
this
.
parameters
.
KeyWords2
=
City
if
(
this
.
parameters
.
hotelId
!=
key
)
{
if
(
this
.
parameters
.
hotelId
!=
key
)
{
this
.
parameters
.
hotelId
=
key
this
.
parameters
.
hotelId
=
key
}
}
}
else
if
(
type
==
3
)
{
}
else
if
(
type
==
3
)
{
this
.
parameters
.
KeyWords
=
null
this
.
parameters
.
KeyWords
=
null
this
.
parameters
.
hotelId
=
null
this
.
parameters
.
hotelId
=
null
//
this.parameters.KeyWords2 = City
this
.
parameters
.
KeyWords2
=
City
if
(
this
.
parameters
.
CityCode
!=
key
)
{
if
(
this
.
parameters
.
CityCode
!=
key
)
{
this
.
city
=
this
.
parameters
.
CityName
=
City
this
.
city
=
this
.
parameters
.
CityName
=
City
this
.
parameters
.
CityCode2
=
key
this
.
parameters
.
CityCode2
=
key
...
@@ -387,10 +394,10 @@
...
@@ -387,10 +394,10 @@
}
}
this
.
showSearchCity
=
false
this
.
showSearchCity
=
false
this
.
showCityList
=
false
this
.
showCityList
=
false
this
.
parameters
.
pageIndex
=
1
this
.
research
(
11
)
this
.
research
(
11
)
if
(
type
==
3
){
this
.
getRegion
()
this
.
getRegion
()
}
},
},
// 关键字搜索弹出层
// 关键字搜索弹出层
clickSearchCity
(
type
)
{
clickSearchCity
(
type
)
{
...
...
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