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
a56f8ade
Commit
a56f8ade
authored
Dec 31, 2025
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
2167f9c3
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
105 additions
and
62 deletions
+105
-62
search-top.vue
src/components/search_sf/search-top.vue
+5
-5
kkday.vue
src/components/searchdida/kkday.vue
+17
-4
SearchDida.vue
src/pages/SearchDida.vue
+1
-0
destination.vue
src/pages/didaHotel/destination.vue
+82
-53
No files found.
src/components/search_sf/search-top.vue
View file @
a56f8ade
...
...
@@ -390,7 +390,7 @@ export default {
watch
:
{
'$route'
:
{
handler
(
to
,
from
)
{
if
(
to
.
path
.
indexOf
(
'searchDida'
)
!=-
1
||
to
.
path
.
indexOf
(
'detailHotalDida'
)
!=-
1
){
if
(
to
.
path
.
indexOf
(
'search
dida'
)
!=-
1
||
to
.
path
.
indexOf
(
'search
Dida'
)
!=-
1
||
to
.
path
.
indexOf
(
'detailHotalDida'
)
!=-
1
){
this
.
getHotalHotList
()
}
else
{
var
jObj
=
JSON
.
parse
(
window
.
localStorage
.
getItem
(
'baseifo'
));
...
...
@@ -508,7 +508,7 @@ export default {
// urlName = `/search`
// }else if(urlType=='detailsVisa'){
// urlName = `/searchVisa`
// }else if(urlType=='
S
earchDida'||urlType=='searchDida'||urlType=='detailHotalDida'){
// }else if(urlType=='
s
earchDida'||urlType=='searchDida'||urlType=='detailHotalDida'){
// qsearchDate = date.formatDate(date.addToDate(new Date(), { days: 8 }), "YYYY/MM/DD")
// qsearchEndDate = date.formatDate(date.addToDate(new Date(), { days: 9 }), "YYYY/MM/DD")
// if(urlType=='detailHotalDida') urlName = `/searchDida`
...
...
@@ -520,7 +520,7 @@ export default {
urlName
=
"/planeticket"
;
}
else
if
(
currentUrl
.
includes
(
'/#/searchVisa'
)){
urlName
=
"/searchVisa"
;
}
else
if
(
currentUrl
.
includes
(
'/#/searchdida'
)
||
currentUrl
.
includes
(
'/#/detailHotalDida'
)){
}
else
if
(
currentUrl
.
includes
(
'/#/searchdida'
)
||
currentUrl
.
includes
(
'/#/
searchDida'
)
||
currentUrl
.
includes
(
'/#/
detailHotalDida'
)){
urlName
=
"/searchdida"
;
qsearchDate
=
date
.
formatDate
(
date
.
addToDate
(
new
Date
(),
{
days
:
8
}),
"YYYY/MM/DD"
)
qsearchEndDate
=
date
.
formatDate
(
date
.
addToDate
(
new
Date
(),
{
days
:
9
}),
"YYYY/MM/DD"
)
...
...
@@ -623,7 +623,7 @@ export default {
// urlName = `/search`
// }else if(urlType=='detailsVisa'){
// urlName = `/searchVisa`
// }else if(urlType=='
S
earchDida'||urlType=='searchDida'||urlType=='detailHotalDida'){
// }else if(urlType=='
s
earchDida'||urlType=='searchDida'||urlType=='detailHotalDida'){
// qsearchDate = date.formatDate(date.addToDate(new Date(), { days: 8 }), "YYYY/MM/DD")
// qsearchEndDate = date.formatDate(date.addToDate(new Date(), { days: 9 }), "YYYY/MM/DD")
// if(urlType=='detailHotalDida') urlName = `/searchDida`
...
...
@@ -635,7 +635,7 @@ export default {
urlName
=
"/planeticket"
;
}
else
if
(
currentUrl
.
includes
(
'/#/searchVisa'
)){
urlName
=
"/searchVisa"
;
}
else
if
(
currentUrl
.
includes
(
'/#/searchdida'
)){
}
else
if
(
currentUrl
.
includes
(
'/#/searchdida'
)
||
currentUrl
.
includes
(
'/#/searchDida'
)
||
currentUrl
.
includes
(
'/#/detailHotalDida'
)
){
urlName
=
"/searchdida"
;
qsearchDate
=
date
.
formatDate
(
date
.
addToDate
(
new
Date
(),
{
days
:
8
}),
"YYYY/MM/DD"
)
qsearchEndDate
=
date
.
formatDate
(
date
.
addToDate
(
new
Date
(),
{
days
:
9
}),
"YYYY/MM/DD"
)
...
...
src/components/searchdida/kkday.vue
View file @
a56f8ade
...
...
@@ -28,7 +28,7 @@
Type="1"
@change="changeMsg"
@changeCity="changCity"
@clear="
reset
Query">
</destination>
@clear="
clear
Query">
</destination>
<div
class=
"q-pt-sm cursor-pointer"
>
<div
v-show=
"regionList.length"
class=
"self-center no-outline text-s"
tabindex=
"0"
...
...
@@ -213,7 +213,7 @@
Type
=
"2"
@
change
=
"changeMsg"
@
changeCity
=
"changCity"
@
clear
=
"
reset
Query"
><
/destination
>
@
clear
=
"
clear
Query"
><
/destination
>
<
div
class
=
"q-pt-sm cursor-pointer"
>
<
div
v
-
show
=
"regionList.length"
class
=
"self-center no-outline text-s"
...
...
@@ -773,14 +773,27 @@ export default {
}
}
,
methods: {
clearQuery() {
this.msg.CityCode = ''
this.msg.CityCode2 = ''
this.msg.CityName = ''
this.msg.KeyWords = ''
this.msg.KeyWords2 = ''
this.msg.hotelId = ''
setTimeout(() => {
this.resetQuery()
}
, 200);
}
,
changCity(y){
this.msg.CityCode2 = y.CityCode
this.msg.CityCode = y.CityCode
this.resetQuery()
this.getRegion()
}
,
changeMsg(msg){
if(msg.KeyWords2)this.msg.KeyWords2 = msg.KeyWords2
if(msg.CityCode)this.msg.CityCode = msg.CityCode
this.msg.KeyWords2 = msg.KeyWords2?msg.KeyWords2:''
this.msg.CityCode = msg.CityCode?msg.CityCode:''
this.msg.hotelId = msg.hotelId?msg.hotelId:''
this.resetQuery()
}
,
clickHandler(e) {
...
...
src/pages/SearchDida.vue
View file @
a56f8ade
...
...
@@ -1469,6 +1469,7 @@ export default {
ChildAgeDetails
:
[],
ChildAgeTexts
:
[],
//儿童年龄
}],
hotelId
:
''
,
//酒店id
},
ShowType
:
0
,
//显示样式(0-豆腐格,1-列表)
//行程列表
...
...
src/pages/didaHotel/destination.vue
View file @
a56f8ade
...
...
@@ -3,7 +3,67 @@
<!--
<div
class=
"text-xxs absolute top-0 left-0 q-px-md"
style=
"color: rgba(5,32,50,.8);"
>
目的地
</div>
-->
<div
class=
""
>
<div
class=
"row items-center no-wrap"
>
<div
class=
""
>
<q-btn
dark-percentage
color=
"primary"
unelevated
style=
"
border-bottom-right-radius: 0;
border-top-right-radius: 0;
padding: 0"
:style=
"
{'height': Type>0?'46px':'40px'}"
@click="showCity"
>
<span
class=
"row items-center no-wrap overflow-hidden"
>
<i
v-if=
"!HotalMsg.CityName"
class=
"iconfont icondingweixiao text-s"
></i>
<span
class=
"text-xs text-no-wrap overflow-hidden col"
>
{{
HotalMsg
.
CityName
?
HotalMsg
.
CityName
:
'城市'
}}
</span>
</span>
</q-btn>
<q-popup-proxy
:offset=
"[0, 10]"
>
<div
class=
"row no-wrap"
id=
"cit"
>
<div
class=
"bg-grey-2"
style=
"border-right: 1px solid rgb(238, 238, 238);"
>
<div
v-for=
"(x,index) in CitiesList"
:key=
"index"
@
click=
"changeGName(x)"
class=
"GNameBox-l q-py-xs q-px-md text-xs cursor-pointer text-no-wrap"
:class=
"[GNameActive==x.GName?'active':'']"
>
{{
x
.
GName
}}
</div>
</div>
<div
class=
"col q-pa-sm"
:style=
"
{minWidth: Type==1?'':'400px'}">
<q-scroll-area
class=
"w-full"
style=
"height: 305px;"
:thumb-style=
"
{
right: '2px',
borderRadius: '5px',
backgroundColor: 'rgba(0, 0, 0, .1)',
width: '5px',
opacity: '0.75'
}"
:content-style="{
backgroundColor: 'rgba(0, 0, 0, 0)',
color: '#555'
}"
:content-active-style="{
backgroundColor: 'rgba(0, 0, 0, 0)',
color: 'black'
}">
<div
class=
"row wrap"
>
<div
class=
"CityNameBox-r col-2 text-center text-xxs
text-no-wrap q-pa-xs q-mr-xs q-mb-xs cursor-pointer
overflow-hidden text-ellipsis"
v-for=
"(y,index) in CityList"
:key=
"index"
:class=
"[HotalMsg.CityCode==y.CityCode?'active':'']"
@
click=
"changeCity(y)"
>
{{
y
.
CityName
}}
</div>
</div>
</q-scroll-area>
</div>
</div>
</q-popup-proxy>
</div>
<q-input
id=
"search_key"
v-model=
"HotalMsg.KeyWords2"
...
...
@@ -11,15 +71,14 @@
label=
"搜索目的地、酒店"
filled
dense
standout=
"
bg-grey-2
text-black"
standout=
"
col bg-grey-1
text-black"
@
input=
"searchInputHandler"
@
focus=
"searchFocusHandler"
@
focus
.
stop
=
"searchFocusHandler"
@
blur=
"searchBlurHandler"
@
keyup
.
enter=
"searchChangeHandler"
@
clear=
"clearHandler"
:loading=
"loading"
>
</q-input>
/>
</div>
<div>
<div>
...
...
@@ -63,49 +122,7 @@
</template>
</div>
</div>
<div
class=
"self-center no-outline text-xxs absolute bg-white overflow-hidden"
tabindex=
"0"
style=
"border-radius: 3px;
box-shadow: 0px 0px 20px 0px rgba(76, 87, 125, 0.2) !important;z-index: 2;"
:style=
"{width:Type==1?'100%':'500px',top:Type==2?'70px':'50px',left:Type==1?'0':Type==2?'17px':'30px'}"
v-show=
"showSplitPannel"
>
<div
class=
"row no-wrap"
id=
"cit"
>
<div
class=
"bg-grey-2"
style=
"border-right: 1px solid rgb(238, 238, 238);"
>
<div
v-for=
"(x,index) in CitiesList"
:key=
"index"
@
click=
"changeGName(x)"
class=
"GNameBox-l q-py-xs q-px-md text-xs cursor-pointer text-no-wrap"
:class=
"[GNameActive==x.GName?'active':'']"
>
{{ x.GName }}
</div>
</div>
<div
class=
"col q-pa-sm"
:style=
"{minWidth: Type==1?'':'400px'}"
>
<q-scroll-area
class=
"w-full"
style=
"height: 305px;"
:thumb-style=
"{
right: '2px',
borderRadius: '5px',
backgroundColor: 'rgba(0, 0, 0, .1)',
width: '5px',
opacity: '0.75'
}"
:content-style=
"{
backgroundColor: 'rgba(0, 0, 0, 0)',
color: '#555'
}"
:content-active-style=
"{
backgroundColor: 'rgba(0, 0, 0, 0)',
color: 'black'
}"
>
<div
class=
"row wrap"
>
<div
class=
"CityNameBox-r col-2 text-center text-xxs text-no-wrap q-py-xs q-mr-xs q-mb-xs cursor-pointer"
v-for=
"(y,index) in CityList"
:key=
"index"
:class=
"[HotalMsg.CityCode==y.CityCode?'active':'']"
@
click=
"changeCity(y)"
>
{{ y.CityName }}
</div>
</div>
</q-scroll-area>
</div>
</div>
</div>
</div>
</div>
</template>
...
...
@@ -156,6 +173,7 @@ export default {
ChildAgeDetails
:
[],
ChildAgeTexts
:
[],
//儿童年龄
}],
hotelId
:
''
,
//酒店id
},
dataList
:[
{
...
...
@@ -196,6 +214,9 @@ export default {
this
.
getCity
()
},
methods
:
{
showCity
(){
this
.
showSplitPannel
=
!
this
.
showSplitPannel
},
inList
(){
this
.
loadingIndex
=
0
this
.
loading
=
true
...
...
@@ -207,7 +228,7 @@ export default {
if
(
y
.
Type
==
1
){
this
.
HotalMsg
.
CityCode
=
y
.
Id
this
.
HotalMsg
.
CityCode2
=
y
.
Id
//
this.HotalMsg.CityName = y.Name.split(' ')[0]
this
.
HotalMsg
.
CityName
=
y
.
Name
.
split
(
' '
)[
0
]
this
.
HotalMsg
.
KeyWords
=
y
.
Name
.
split
(
' '
)[
0
]
this
.
HotalMsg
.
KeyWords2
=
y
.
Name
.
split
(
' '
)[
0
]
this
.
CommonJump
(
'/searchdida'
,
{
...
...
@@ -215,6 +236,7 @@ export default {
});
}
else
if
(
y
.
Type
==
2
){
this
.
HotalMsg
.
KeyWords2
=
y
.
Name
this
.
HotalMsg
.
hotelId
=
y
.
Id
this
.
$emit
(
'change'
,
this
.
HotalMsg
,
y
)
this
.
showKeyWordsList
=
false
this
.
showSplitPannel
=
false
...
...
@@ -291,7 +313,13 @@ export default {
},
clearHandler
(){
this
.
showKeyWordsList
=
false
this
.
showSplitPannel
=
true
this
.
showSplitPannel
=
false
this
.
HotalMsg
.
CityCode
=
''
this
.
HotalMsg
.
CityCode2
=
''
this
.
HotalMsg
.
CityName
=
''
this
.
HotalMsg
.
KeyWords
=
''
this
.
HotalMsg
.
KeyWords2
=
''
this
.
HotalMsg
.
hotelId
=
''
this
.
$emit
(
'clear'
)
return
this
.
showSplitPannel
=
true
...
...
@@ -310,7 +338,7 @@ export default {
if
(
!
this
.
HotalMsg
.
KeyWords2
||
this
.
HotalMsg
.
KeyWords2
==
''
){
this
.
loading
=
false
this
.
showKeyWordsList
=
false
this
.
showSplitPannel
=
tru
e
this
.
showSplitPannel
=
fals
e
}
else
{
// this.inList()
}
...
...
@@ -325,7 +353,7 @@ export default {
if
(
!
this
.
HotalMsg
.
KeyWords2
||
this
.
HotalMsg
.
KeyWords2
==
''
)
{
this
.
loading
=
false
this
.
showKeyWordsList
=
false
this
.
showSplitPannel
=
tru
e
this
.
showSplitPannel
=
fals
e
return
}
this
.
lastKeyword
=
this
.
HotalMsg
.
KeyWords2
...
...
@@ -340,13 +368,13 @@ export default {
this
.
HotalMsg
.
regionCode
=
y
.
CityCode
},
changeCity
(
y
){
this
.
HotalMsg
.
CityName
=
y
.
CityName
this
.
HotalMsg
.
CityCode
=
y
.
CityCode
if
(
this
.
Type
>
0
)
{
this
.
$emit
(
'changeCity'
,
y
)
this
.
showSplitPannel
=
false
}
else
{
this
.
HotalMsg
.
KeyWords2
=
y
.
CityName
this
.
HotalMsg
.
CityName
=
y
.
CityName
this
.
searchChangeHandler
()
}
// this.$emit('change', y)
...
...
@@ -427,6 +455,7 @@ export default {
}
.CityNameBox-r
{
border-radius
:
3px
;
text-overflow
:
ellipsis
;
}
.CityNameBox-r
:hover
{
background
:
rgba
(
0
,
0
,
0
,
0.1
);
...
...
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