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
286c6047
Commit
286c6047
authored
Jul 07, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
2487a64d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
60 additions
and
51 deletions
+60
-51
search_sf1.vue
src/components/search_sf/search_sf1.vue
+18
-16
search_sf2.vue
src/components/search_sf/search_sf2.vue
+19
-16
search_sf3.vue
src/components/search_sf/search_sf3.vue
+19
-15
Search.vue
src/pages/Search.vue
+4
-4
No files found.
src/components/search_sf/search_sf1.vue
View file @
286c6047
...
...
@@ -277,6 +277,14 @@
};
},
mounted
()
{
var
newStartDate
=
new
Date
();
var
newStartDateStr
=
this
.
formatDate
(
newStartDate
.
getFullYear
(),
(
newStartDate
.
getMonth
()
+
1
),
newStartDate
.
getDate
());
var
newEndDate
=
this
.
AddMonth
(
newStartDateStr
,
2
)
var
newEndDateStr
=
this
.
formatDate
(
newEndDate
.
getFullYear
(),
(
newEndDate
.
getMonth
()
+
1
),
newEndDate
.
getDate
());
this
.
searchDate
=
newStartDateStr
;
this
.
searchEndDate
=
newEndDateStr
;
this
.
$root
.
$emit
(
"change-head-style"
,
2
);
document
.
addEventListener
(
"click"
,
this
.
clickHandler
);
var
jObj
=
JSON
.
parse
(
localStorage
.
getItem
(
'groupinfo'
));
...
...
@@ -313,10 +321,14 @@
this
.
showPopup
=
true
;
},
clickHandler
(
e
)
{
if
(
!
document
.
querySelector
(
"#sb"
).
contains
(
e
.
target
))
{
this
.
showSplitPannel
=
false
;
}
else
if
(
!
document
.
querySelector
(
"#sp"
).
contains
(
e
.
target
))
{
this
.
showCompPannel
=
false
;
try
{
if
(
!
document
.
querySelector
(
"#sb"
).
contains
(
e
.
target
))
{
this
.
showSplitPannel
=
false
;
}
else
if
(
!
document
.
querySelector
(
"#sp"
).
contains
(
e
.
target
))
{
this
.
showCompPannel
=
false
;
}
}
catch
(
error
)
{
console
.
log
(
"search_sf1_clickHandler_error"
,
error
)
}
},
clickSlideHandler
(
url
)
{
...
...
@@ -332,7 +344,7 @@
}
},
searchBlurHandler
()
{
//this.showSplitPannel = false;
},
clkAreaHandler
(
i
)
{
this
.
crtAreaIndex
=
i
;
...
...
@@ -351,18 +363,8 @@
this
.
showSplitPannel
=
false
;
this
.
showCompPannel
=
false
;
},
//跳转到搜索页面
goSearchHandler
()
{
// if (this.searchKey == "") {
// this.$q.notify({
// color: "negative",
// textColor: "#FFF",
// icon: "report_problem",
// message: "尊敬的客人,請選擇一個目的地吧",
// position: "top",
// timeout: 3000
// });
// }
this
.
CommonJump
(
'/search'
,
{
qsearchKey
:
this
.
searchKey
,
qsearchDate
:
this
.
searchDate
,
...
...
src/components/search_sf/search_sf2.vue
View file @
286c6047
...
...
@@ -273,10 +273,18 @@
tl
:
""
,
ful
:
""
},
RB_Group_Id
:
0
,
RB_Group_Id
:
0
,
};
},
mounted
()
{
var
newStartDate
=
new
Date
();
var
newStartDateStr
=
this
.
formatDate
(
newStartDate
.
getFullYear
(),
(
newStartDate
.
getMonth
()
+
1
),
newStartDate
.
getDate
());
var
newEndDate
=
this
.
AddMonth
(
newStartDateStr
,
2
)
var
newEndDateStr
=
this
.
formatDate
(
newEndDate
.
getFullYear
(),
(
newEndDate
.
getMonth
()
+
1
),
newEndDate
.
getDate
());
this
.
searchDate
=
newStartDateStr
;
this
.
searchEndDate
=
newEndDateStr
;
this
.
$root
.
$emit
(
"change-head-style"
,
2
);
document
.
addEventListener
(
"click"
,
this
.
clickHandler
);
var
jObj
=
JSON
.
parse
(
localStorage
.
getItem
(
'groupinfo'
));
...
...
@@ -315,10 +323,14 @@
this
.
showPopup
=
true
;
},
clickHandler
(
e
)
{
if
(
!
document
.
querySelector
(
"#sb"
).
contains
(
e
.
target
))
{
this
.
showSplitPannel
=
false
;
}
else
if
(
!
document
.
querySelector
(
"#sp"
).
contains
(
e
.
target
))
{
this
.
showCompPannel
=
false
;
try
{
if
(
!
document
.
querySelector
(
"#sb"
).
contains
(
e
.
target
))
{
this
.
showSplitPannel
=
false
;
}
else
if
(
!
document
.
querySelector
(
"#sp"
).
contains
(
e
.
target
))
{
this
.
showCompPannel
=
false
;
}
}
catch
(
error
)
{
console
.
log
(
"search_sf2_clickHandler_error"
,
error
)
}
},
clickSlideHandler
(
url
)
{
...
...
@@ -353,18 +365,9 @@
this
.
showSplitPannel
=
false
;
this
.
showCompPannel
=
false
;
},
//跳转到搜索页面
goSearchHandler
()
{
// if (this.searchKey == "") {
// this.$q.notify({
// color: "negative",
// textColor: "#FFF",
// icon: "report_problem",
// message: "尊敬的客人,請選擇一個目的地吧",
// position: "top",
// timeout: 3000
// });
// }
this
.
CommonJump
(
'/search'
,
{
this
.
CommonJump
(
'/search'
,
{
qsearchKey
:
this
.
searchKey
,
qsearchDate
:
this
.
searchDate
,
qsearchEndDate
:
this
.
searchEndDate
,
...
...
src/components/search_sf/search_sf3.vue
View file @
286c6047
...
...
@@ -277,6 +277,14 @@
};
},
mounted
()
{
var
newStartDate
=
new
Date
();
var
newStartDateStr
=
this
.
formatDate
(
newStartDate
.
getFullYear
(),
(
newStartDate
.
getMonth
()
+
1
),
newStartDate
.
getDate
());
var
newEndDate
=
this
.
AddMonth
(
newStartDateStr
,
2
)
var
newEndDateStr
=
this
.
formatDate
(
newEndDate
.
getFullYear
(),
(
newEndDate
.
getMonth
()
+
1
),
newEndDate
.
getDate
());
this
.
searchDate
=
newStartDateStr
;
this
.
searchEndDate
=
newEndDateStr
;
this
.
$root
.
$emit
(
"change-head-style"
,
2
);
document
.
addEventListener
(
"click"
,
this
.
clickHandler
);
...
...
@@ -318,10 +326,14 @@
this
.
showPopup
=
true
;
},
clickHandler
(
e
)
{
if
(
!
document
.
querySelector
(
"#sb"
).
contains
(
e
.
target
))
{
this
.
showSplitPannel
=
false
;
}
else
if
(
!
document
.
querySelector
(
"#sp"
).
contains
(
e
.
target
))
{
this
.
showCompPannel
=
false
;
try
{
if
(
!
document
.
querySelector
(
"#sb"
).
contains
(
e
.
target
))
{
this
.
showSplitPannel
=
false
;
}
else
if
(
!
document
.
querySelector
(
"#sp"
).
contains
(
e
.
target
))
{
this
.
showCompPannel
=
false
;
}
}
catch
(
error
)
{
console
.
log
(
"search_sf3_clickHandler_error"
,
error
)
}
},
clickSlideHandler
(
url
)
{
...
...
@@ -337,7 +349,7 @@
}
},
searchBlurHandler
()
{
//this.showSplitPannel = false;
},
clkAreaHandler
(
i
)
{
this
.
crtAreaIndex
=
i
;
...
...
@@ -356,17 +368,9 @@
this
.
showSplitPannel
=
false
;
this
.
showCompPannel
=
false
;
},
////跳转到搜索页面
goSearchHandler
()
{
// if (this.searchKey == "") {
// this.$q.notify({
// color: "negative",
// textColor: "#FFF",
// icon: "report_problem",
// message: "尊敬的客人,請選擇一個目的地吧",
// position: "top",
// timeout: 3000
// });
// }
this
.
CommonJump
(
'/search'
,
{
qsearchKey
:
this
.
searchKey
,
qsearchDate
:
this
.
searchDate
,
...
...
src/pages/Search.vue
View file @
286c6047
...
...
@@ -848,10 +848,10 @@
endDate
:
""
,
//结束日期
lineId
:
0
,
//线路编号
lineTeamId
:
0
,
//系列编号
minPrice
:
-
1
,
//最低价格
maxPrice
:
-
1
,
//最高价格
minTripDay
:
-
1
,
//最低行程条数
maxTripDay
:
-
1
,
//最高行程天数
minPrice
:
""
,
//最低价格
maxPrice
:
""
,
//最高价格
minTripDay
:
""
,
//最低行程条数
maxTripDay
:
""
,
//最高行程天数
orderByDate
:
0
,
orderByPrice
:
0
,
orderBySales
:
0
,
...
...
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