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
ac783bfd
Commit
ac783bfd
authored
Dec 29, 2025
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
酒店列表
parent
632641f8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
580 additions
and
186 deletions
+580
-186
App.vue
src/App.vue
+1
-1
product.js
src/boot/product.js
+1
-1
kkday.vue
src/components/searchdida/kkday.vue
+524
-156
SearchDida.vue
src/pages/SearchDida.vue
+54
-28
No files found.
src/App.vue
View file @
ac783bfd
...
...
@@ -52,7 +52,7 @@ export default {
</
script
>
<
style
>
@import
url("//at.alicdn.com/t/c/font_1890699_
5zxmcxmwvtf
.css")
;
@import
url("//at.alicdn.com/t/c/font_1890699_
3sxjt5uqjme
.css")
;
@font-face
{
font-family
:
"oswald"
;
src
:
url("https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/smallapp/Oswald-Regular.ttf")
;
...
...
src/boot/product.js
View file @
ac783bfd
...
...
@@ -20,7 +20,7 @@ const product = {
}
else
if
(
t
===
5
)
{
url
=
"/detailHotal/"
+
configId
+
'/'
+
productInfo
.
b2CPrice
}
else
if
(
t
===
6
)
{
url
=
`/detailHotalDida/
${
configId
}
/
${
productInfo
.
lowrateBySetCurrency
}
/
${
encodeURIComponent
(
productInfo
.
CheckInDate
)}
/
${
encodeURIComponent
(
productInfo
.
CheckOutDate
)}
`
url
=
`/detailHotalDida/
${
configId
}
/
${
productInfo
.
unitprice
}
/
${
encodeURIComponent
(
productInfo
.
CheckInDate
)}
/
${
encodeURIComponent
(
productInfo
.
CheckOutDate
)}
`
}
}
else
{
throw
new
Error
(
"參數不合法"
);
...
...
src/components/searchdida/kkday.vue
View file @
ac783bfd
This diff is collapsed.
Click to expand it.
src/pages/SearchDida.vue
View file @
ac783bfd
...
...
@@ -687,7 +687,7 @@
<
template
>
<div
class=
"SearchMain"
:class=
"
{ 'desktop-page': $q.platform.is.desktop }">
<div
class=
"SearchTop"
>
<div
class=
"q-my-md"
v-if=
"qMsg.
HotelName
"
>
<div
class=
"q-my-md"
v-if=
"qMsg.
KeyWords
"
>
<q-breadcrumbs>
<q-breadcrumbs-el
icon=
"home"
...
...
@@ -695,12 +695,12 @@
class=
"cursor-pointer"
@
click=
"CommonJump('/index',
{})"
/>
<q-breadcrumbs-el
:label=
"qMsg.
HotelName
"
/>
<q-breadcrumbs-el
:label=
"qMsg.
KeyWords
"
/>
</q-breadcrumbs>
</div>
<div
class=
"text-h6 text-left"
v-if=
"qMsg.
HotelName
"
>
<div
class=
"text-h6 text-left"
v-if=
"qMsg.
KeyWords
"
>
搜尋結果 “
<span
class=
"text-primary"
>
{{
qMsg
.
HotelName
}}
</span
<span
class=
"text-primary"
>
{{
qMsg
.
KeyWords
}}
</span
>
”
</div>
<!-- 电脑端 -->
...
...
@@ -712,7 +712,7 @@
@
click=
"(isShowDialog = true), goSearchHandler"
>
<i
class=
"iconfont iconchazhao"
></i>
{{
qMsg
.
HotelName
}}
{{
qMsg
.
KeyWords
}}
</div>
<div
class=
"search-item"
@
click=
"(isShowDialog = true), goSearchHandler"
>
<i
class=
"iconfont iconrili"
></i>
...
...
@@ -1077,7 +1077,7 @@
<q-input
filled
id=
"search_key"
v-model=
"qMsg.
HotelName
"
v-model=
"qMsg.
KeyWords
"
class=
"bg-grey-1"
:label=
"$t('search')"
/>
...
...
@@ -1203,7 +1203,7 @@
<q-input
filled
id=
"search_key"
v-model=
"qMsg.
HotelName
"
v-model=
"qMsg.
KeyWords
"
class=
"bg-grey-1"
:label=
"$t('search')"
/>
...
...
@@ -1445,19 +1445,45 @@ export default {
pageSize
:
20
,
//只查询日本
Country
:
"JP"
,
DestinationID
:
''
,
City
:
""
,
//星级
Star
:
''
,
//价格等级
PriceLevel
:
0
,
MaxPrice
:
0
,
MinPrice
:
0
,
HotelName
:
''
,
StartDate
:
''
,
EndDate
:
''
,
IsSelectImg
:
1
,
// Country: "JP",
// DestinationID: '',
// City: "",
// //星级
// Star: '',
// //价格等级
// PriceLevel: 0,
// MaxPrice: 0,
// MinPrice: 0,
// HotelName: '',
// StartDate: '',
// EndDate: '',
// IsSelectImg: 1,
KeyWords
:
""
,
//关键字
KeyWords2
:
""
,
//关键字
StartPrice
:
100
,
EndPrice
:
0
,
QOrderBy
:
"0"
,
//排序类型
QStarRating
:
[],
//星级
GName
:
''
,
//热门
CityCode
:
''
,
//目的地代码
CityName
:
''
,
//目的地
CityCode2
:
''
,
//目的地代码
regionCode
:
''
,
//区域
CityName_CN
:
''
,
rooms
:
1
,
adultsNumber
:
2
,
childrenNumberZC
:
0
,
childrenNumberBZC
:
0
,
peoples
:
2
,
interCurrent
:
0
,
searchroomGroup
:
[{
roomNum
:
1
,
numberOfAdults
:
2
,
numberOfChildren
:
0
,
ChildAgeDetails
:
[],
ChildAgeTexts
:
[],
//儿童年龄
}],
},
ShowType
:
0
,
//显示样式(0-豆腐格,1-列表)
//行程列表
...
...
@@ -1473,10 +1499,10 @@ export default {
var
areaId
=
this
.
getUrlKey
(
"areaId"
,
window
.
location
.
href
);
var
areaName
=
this
.
getUrlKey
(
"areaName"
,
window
.
location
.
href
);
if
(
qsearchKey
)
{
this
.
qMsg
.
HotelName
=
qsearchKey
;
this
.
qMsg
.
KeyWords
=
qsearchKey
;
}
else
if
(
areaName
)
{
this
.
qMsg
.
HotelName
=
areaName
;
}
else
this
.
qMsg
.
HotelName
=
''
this
.
qMsg
.
KeyWords
=
areaName
;
}
else
this
.
qMsg
.
KeyWords
=
''
if
(
qsearchDate
)
{
this
.
qMsg
.
StartDate
=
qsearchDate
;
...
...
@@ -1583,7 +1609,7 @@ export default {
);
},
searchFocusHandler
()
{
if
(
this
.
qMsg
.
HotelName
==
""
)
{
if
(
this
.
qMsg
.
KeyWords
==
""
)
{
setTimeout
(()
=>
{
this
.
showSplitPannel
=
true
;
},
200
);
...
...
@@ -1591,7 +1617,7 @@ export default {
},
searchBlurHandler
()
{},
searchChangeHandler
()
{
if
(
this
.
qMsg
.
HotelName
==
""
)
{
if
(
this
.
qMsg
.
KeyWords
==
""
)
{
this
.
showSplitPannel
=
true
;
}
else
{
this
.
showSplitPannel
=
false
;
...
...
@@ -1608,7 +1634,7 @@ export default {
}
},
chosenAreaHandler
(
name
)
{
this
.
qMsg
.
HotelName
=
name
;
this
.
qMsg
.
KeyWords
=
name
;
this
.
showSplitPannel
=
false
;
},
//数据改变
...
...
@@ -1621,7 +1647,7 @@ export default {
this
.
goSearchHandler
();
},
setSearchKey
(
obj
)
{
this
.
qMsg
.
HotelName
=
obj
.
Name
;
this
.
qMsg
.
KeyWords
=
obj
.
Name
;
},
goSearchHandler
()
{
this
.
$q
.
loading
.
show
();
...
...
@@ -1642,7 +1668,7 @@ export default {
}
this
.
SearchResult
=
this
.
qMsg
.
StartDate
+
"-"
+
this
.
qMsg
.
EndDate
+
" "
+
this
.
qMsg
.
HotelName
;
this
.
qMsg
.
StartDate
+
"-"
+
this
.
qMsg
.
EndDate
+
" "
+
this
.
qMsg
.
KeyWords
;
let
msg
=
this
.
qMsg
// if (localStorage.b2bUser) {
// var b2bUser = JSON.parse(window.localStorage.getItem("b2bUser"));
...
...
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