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
a689b0b1
Commit
a689b0b1
authored
Dec 31, 2025
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化
parent
02e79d83
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
107 additions
and
108 deletions
+107
-108
kkday.vue
src/components/searchdida/kkday.vue
+16
-61
SearchDida.vue
src/pages/SearchDida.vue
+5
-4
detailHotalDida.vue
src/pages/detailHotalDida.vue
+1
-1
destination.vue
src/pages/didaHotel/destination.vue
+85
-42
No files found.
src/components/searchdida/kkday.vue
View file @
a689b0b1
...
@@ -21,12 +21,13 @@
...
@@ -21,12 +21,13 @@
<destination
class=
"q-pa-sm"
<destination
class=
"q-pa-sm"
:msg=
"
{
:msg=
"
{
CityCode:msg.CityCode,
CityCode:msg.CityCode,
KeyWords2:msg.Name_CN,
KeyWords:msg.KeyWords,
KeyWords2:msg.CityName,
StartDate:msg.CheckInDate,
StartDate:msg.CheckInDate,
EndDate:msg.CheckOutDate,
EndDate:msg.CheckOutDate,
searchroomGroup:msg.searchroomGroup}"
searchroomGroup:msg.searchroomGroup}"
Type="1"
Type="1"
@change="c
hangeMsg
"
@change="c
learQuery
"
@changeCity="changCity"
@changeCity="changCity"
@clear="clearQuery">
</destination>
@clear="clearQuery">
</destination>
<div
class=
"q-pt-sm cursor-pointer"
>
<div
class=
"q-pt-sm cursor-pointer"
>
...
@@ -206,12 +207,13 @@
...
@@ -206,12 +207,13 @@
<
destination
class
=
"q-pa-sm"
<
destination
class
=
"q-pa-sm"
:
msg
=
"{
:
msg
=
"{
CityCode:msg.CityCode,
CityCode:msg.CityCode,
KeyWords2:msg.Name_CN,
KeyWords:msg.KeyWords,
KeyWords2:msg.CityName,
StartDate:msg.CheckInDate,
StartDate:msg.CheckInDate,
EndDate:msg.CheckOutDate,
EndDate:msg.CheckOutDate,
searchroomGroup:msg.searchroomGroup
}
"
searchroomGroup:msg.searchroomGroup
}
"
Type
=
"2"
Type
=
"2"
@
change
=
"c
hangeMsg
"
@
change
=
"c
learQuery
"
@
changeCity
=
"changCity"
@
changeCity
=
"changCity"
@
clear
=
"clearQuery"
><
/destination
>
@
clear
=
"clearQuery"
><
/destination
>
...
@@ -674,51 +676,10 @@ export default {
...
@@ -674,51 +676,10 @@ export default {
}
;
}
;
}
,
}
,
watch: {
watch: {
// '$route':{
// handler(newVal, oldVal) {
// this.msg = JSON.parse(JSON.stringify(this.qMsg));
// this.msg.priceRange = {
// min: 1,
// max: 100000,
//
}
;
// this.msg.StartPrice = 0;
// this.msg.EndPrice = 100000;
// this.dateRange = { from: this.msg.StartDate, to: this.msg.EndDate
}
;
// if(newVal!=oldVal){
// this.resetQuery();
//
}
// var qsearchKey = this.getUrlKey("
qsearchKey
", window.location.href);
// var qsearchDate = this.getUrlKey("
qsearchDate
", window.location.href);
// var qsearchEndDate = this.getUrlKey("
qsearchEndDate
", window.location.href);
// var areaId = this.getUrlKey("
areaId
", window.location.href);
// var areaName = this.getUrlKey("
areaName
", window.location.href);
// if (qsearchKey) {
// this.msg.KeyWords = qsearchKey;
//
}
else if (areaName) {
// this.msg.KeyWords = areaName;
//
}
else this.msg.KeyWords = ''
// if(this.msg.KeyWords) this.searchCity();
// if (qsearchDate) {
// this.msg.StartDate = qsearchDate;
//
}
else {
// this.msg.StartDate = date.formatDate(date.addToDate(new Date(), { days: 8
}
), "
YYYY
/
MM
/
DD
")
//
}
// if (qsearchEndDate) {
// this.msg.EndDate = qsearchEndDate;
//
}
else {
// this.msg.EndDate = date.formatDate(date.addToDate(new Date(), { days: 9
}
), "
YYYY
/
MM
/
DD
")
//
}
// this.resetQuery();
//
}
,
// deep: true,
// immediate: true,
//
}
,
qMsg: {
qMsg: {
handler(newVal, oldVal) {
handler(newVal, oldVal) {
this.msg = JSON.parse(JSON.stringify(this.qMsg));
this.msg = JSON.parse(JSON.stringify(this.qMsg));
console.log(newVal.KeyWords2,'----222')
this.msg.priceRange = {
this.msg.priceRange = {
min: 1,
min: 1,
max: 100000,
max: 100000,
...
@@ -737,6 +698,9 @@ export default {
...
@@ -737,6 +698,9 @@ export default {
this.CitiesTicked = []
this.CitiesTicked = []
this.regionTicked = []
this.regionTicked = []
}
}
if(this.msg.CityCode){
this.getRegion(this.msg.CityCode)
}
this.resetQuery();
this.resetQuery();
}
,
}
,
deep: true,
deep: true,
...
@@ -778,21 +742,13 @@ export default {
...
@@ -778,21 +742,13 @@ export default {
...this.msg,
...this.msg,
...msg
...msg
}
}
setTimeout(() => {
this.$emit('change', this.msg)
this.resetQuery()
}
, 200);
}
,
}
,
changCity(y){
changCity(y){
this.msg.CityCode2 = y.CityCode
this.msg.CityCode2 = y.CityCode
this.msg.CityCode = y.CityCode
this.msg.CityCode = y.CityCode
this.resetQuery()
this.resetQuery()
this.getRegion()
this.getRegion(this.msg.CityCode)
}
,
changeMsg(msg){
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) {
clickHandler(e) {
try {
try {
...
@@ -930,17 +886,16 @@ export default {
...
@@ -930,17 +886,16 @@ export default {
// this.msg.CityCode2 = this.msg.KeyWords?'':data[0].CityList[0].CityCode
// this.msg.CityCode2 = this.msg.KeyWords?'':data[0].CityList[0].CityCode
// this.CitiesTicked = this.msg.KeyWords?[]:[data[0].CityList[0].CityCode]
// this.CitiesTicked = this.msg.KeyWords?[]:[data[0].CityList[0].CityCode]
this.CitiesJSON = JSON.parse(JSON.stringify(this.CitiesList));
this.CitiesJSON = JSON.parse(JSON.stringify(this.CitiesList));
// this.getRegion()
}
}
}
,
}
,
);
);
}
,
}
,
// 区域
// 区域
getRegion() {
getRegion(
CityCode
) {
//this.parameters.regionCode = ''
//this.parameters.regionCode = ''
var regMsg = {
var regMsg = {
CityCode:
this.msg.CityCode2
,
CityCode:
CityCode
,
Name:
this.msg.CityName
,
Name:
''
,
}
;
}
;
this.apipost('dmc_post_GetDestinationByCityCode', regMsg,
this.apipost('dmc_post_GetDestinationByCityCode', regMsg,
(res) => {
(res) => {
...
@@ -1020,7 +975,7 @@ export default {
...
@@ -1020,7 +975,7 @@ export default {
let findIndex = this.CitiesListAll.findIndex(x=>x.CityCode==this.msg.CityCode)
let findIndex = this.CitiesListAll.findIndex(x=>x.CityCode==this.msg.CityCode)
if(findIndex!=-1) this.msg.CityName = this.CitiesListAll[findIndex].CityName
if(findIndex!=-1) this.msg.CityName = this.CitiesListAll[findIndex].CityName
if(this.msg.CityCode2!=oldCityCode&&this.CitiesTicked.length){
if(this.msg.CityCode2!=oldCityCode&&this.CitiesTicked.length){
this.getRegion()
this.getRegion(
this.msg.CityCode2
)
}
else this.regionList = []
}
else this.regionList = []
this.resetQuery();
this.resetQuery();
}
,
}
,
...
...
src/pages/SearchDida.vue
View file @
a689b0b1
...
@@ -698,11 +698,11 @@
...
@@ -698,11 +698,11 @@
<q-breadcrumbs-el
:label=
"qMsg.KeyWords"
/>
<q-breadcrumbs-el
:label=
"qMsg.KeyWords"
/>
</q-breadcrumbs>
</q-breadcrumbs>
</div>
</div>
<div
class=
"text-h6 text-left"
v-if=
"qMsg.KeyWords"
>
<
!--
<
div
class=
"text-h6 text-left"
v-if=
"qMsg.KeyWords"
>
搜尋結果 “
搜尋結果 “
<span
class=
"text-primary"
>
{{
qMsg
.
KeyWords
}}
</span
<span
class=
"text-primary"
>
{{
qMsg
.
KeyWords
}}
</span
>
”
>
”
</div>
</div>
-->
<!-- 电脑端 -->
<!-- 电脑端 -->
<div
class=
"row SearchContent q-mt-md"
v-if=
"!$q.screen.xs && 1 == 0"
>
<div
class=
"row SearchContent q-mt-md"
v-if=
"!$q.screen.xs && 1 == 0"
>
<div
class=
"search-filter-inner"
>
<div
class=
"search-filter-inner"
>
...
@@ -1511,6 +1511,8 @@ export default {
...
@@ -1511,6 +1511,8 @@ export default {
}
}
if
(
newVal
.
query
&&
newVal
.
query
.
pageIndex
){
if
(
newVal
.
query
&&
newVal
.
query
.
pageIndex
){
this
.
qMsg
=
newVal
.
query
this
.
qMsg
=
newVal
.
query
console
.
log
(
newVal
.
query
.
KeyWords2
,
'----'
)
// this.qMsg.KeyWords = newVal.query.KeyWords?newVal.query.KeyWords:newVal.query.KeyWords2?newVal.query.KeyWords2:''
}
else
{
}
else
{
var
qsearchKey
=
this
.
getUrlKey
(
"qsearchKey"
,
window
.
location
.
href
);
var
qsearchKey
=
this
.
getUrlKey
(
"qsearchKey"
,
window
.
location
.
href
);
var
qsearchDate
=
this
.
getUrlKey
(
"qsearchDate"
,
window
.
location
.
href
);
var
qsearchDate
=
this
.
getUrlKey
(
"qsearchDate"
,
window
.
location
.
href
);
...
@@ -1538,7 +1540,6 @@ export default {
...
@@ -1538,7 +1540,6 @@ export default {
this
.
qMsg
.
CityCode
=
areaId
;
this
.
qMsg
.
CityCode
=
areaId
;
}
}
}
}
console
.
log
(
newVal
.
query
.
CheckInDate
,
'-------'
)
if
((
qsearchKey
||
qsearchDate
||
qsearchEndDate
)
&&
this
.
ShowType
!=
2
)
{
if
((
qsearchKey
||
qsearchDate
||
qsearchEndDate
)
&&
this
.
ShowType
!=
2
)
{
this
.
goSearchHandler
();
this
.
goSearchHandler
();
...
@@ -1574,7 +1575,7 @@ export default {
...
@@ -1574,7 +1575,7 @@ export default {
methods
:
{
methods
:
{
handlerSearchChange
(
value
)
{
handlerSearchChange
(
value
)
{
this
.
qMsg
=
value
;
this
.
qMsg
=
value
;
this
.
goSearchHandler
();
if
(
this
.
ShowType
!=
2
)
this
.
goSearchHandler
();
},
},
//清除所有条件
//清除所有条件
clearAll
()
{
clearAll
()
{
...
...
src/pages/detailHotalDida.vue
View file @
a689b0b1
...
@@ -193,7 +193,7 @@
...
@@ -193,7 +193,7 @@
<!-- 目的地 -->
<!-- 目的地 -->
<destination
class=
"q-ml-sm"
:msg=
"{
<destination
class=
"q-ml-sm"
:msg=
"{
CityCode:CityCode?CityCode:dataList.CityCode,
CityCode:CityCode?CityCode:dataList.CityCode,
KeyWords
2
:dataList.Name_CN,
KeyWords:dataList.Name_CN,
StartDate:msg.CheckInDate,
StartDate:msg.CheckInDate,
EndDate:msg.CheckOutDate,
EndDate:msg.CheckOutDate,
searchroomGroup:msg.searchroomGroup}"
searchroomGroup:msg.searchroomGroup}"
...
...
src/pages/didaHotel/destination.vue
View file @
a689b0b1
This diff is collapsed.
Click to expand it.
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