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
9dee551f
Commit
9dee551f
authored
Jul 07, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
565600b8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
59 additions
and
12 deletions
+59
-12
Search.vue
src/pages/Search.vue
+59
-12
No files found.
src/pages/Search.vue
View file @
9dee551f
...
...
@@ -869,6 +869,17 @@
};
},
created
()
{
},
mounted
()
{
if
(
localStorage
.
baseifo
)
{
var
jObj
=
JSON
.
parse
(
localStorage
.
baseifo
);
this
.
areas
=
jObj
.
AreaList
;
this
.
ShowType
=
jObj
.
Config
.
ShowType
;
}
else
{
this
.
getAera
()
}
document
.
addEventListener
(
"click"
,
this
.
clickHandler
);
var
qsearchKey
=
this
.
getUrlKey
(
"qsearchKey"
,
window
.
location
.
href
);
var
qsearchDate
=
this
.
getUrlKey
(
"qsearchDate"
,
window
.
location
.
href
);
var
qsearchEndDate
=
this
.
getUrlKey
(
"qsearchEndDate"
,
window
.
location
.
href
);
...
...
@@ -881,17 +892,9 @@
if
(
qsearchEndDate
)
{
this
.
qMsg
.
endDate
=
qsearchEndDate
;
}
},
mounted
()
{
if
(
localStorage
.
baseifo
)
{
var
jObj
=
JSON
.
parse
(
localStorage
.
baseifo
);
this
.
areas
=
jObj
.
AreaList
;
this
.
ShowType
=
jObj
.
Config
.
ShowType
;
}
else
{
this
.
getAera
()
if
(
qsearchKey
||
qsearchDate
||
qsearchEndDate
)
{
this
.
goSearchHandler
();
}
document
.
addEventListener
(
"click"
,
this
.
clickHandler
);
},
methods
:
{
//获取地区数据
...
...
@@ -938,9 +941,53 @@
this
.
showSplitPannel
=
false
;
},
goSearchHandler
()
{
console
.
log
(
"this.qMsg"
,
this
.
qMsg
);
let
minTripDay
=
-
1
,
maxTripDay
=
-
1
,
minPrice
=
-
1
,
maxPrice
=
-
1
;
if
(
this
.
qMsg
.
minPrice
!=
''
)
{
minPrice
=
parseFloat
(
this
.
qMsg
.
minPrice
)
}
if
(
this
.
qMsg
.
maxPrice
!=
''
)
{
maxPrice
=
parseFloat
(
this
.
qMsg
.
maxPrice
)
if
(
minPrice
>
maxPrice
)
{
//this.Error('价格区间的最低价格不能低于最大价格')
return
false
}
}
if
(
this
.
qMsg
.
minTripDay
!=
''
)
{
minTripDay
=
parseFloat
(
this
.
qMsg
.
minTripDay
);
}
if
(
this
.
qMsg
.
maxTripDay
!=
''
)
{
maxTripDay
=
parseFloat
(
this
.
qMsg
.
maxTripDay
);
if
(
minTripDay
>
maxTripDay
)
{
return
false
;
}
}
let
msg
=
{
pageIndex
:
this
.
qMsg
.
pageIndex
,
pageSize
:
this
.
qMsg
.
pageSize
,
searchKey
:
this
.
qMsg
.
searchKey
,
cityId
:
this
.
qMsg
.
cityId
,
lineId
:
this
.
qMsg
.
lineId
,
lineTeamId
:
this
.
qMsg
.
lineTeamId
,
minTripDay
:
minTripDay
,
maxTripDay
:
maxTripDay
,
minPrice
:
minPrice
,
maxPrice
:
maxPrice
,
startDate
:
this
.
qMsg
.
startDate
,
endDate
:
this
.
qMsg
.
endDate
,
orderByDate
:
this
.
orderindex
==
1
?
(
this
.
ordertype
==
0
?
2
:
1
)
:
0
,
orderByPrice
:
this
.
orderindex
==
2
?
(
this
.
ordertype
==
0
?
2
:
1
)
:
0
,
priceOrderByField
:
4
,
companyId
:
0
,
orderBySales
:
this
.
orderindex
==
3
?
(
this
.
ordertype
==
0
?
2
:
1
)
:
0
,
startCityId
:
this
.
qMsg
.
startCityId
}
console
.
log
(
"this.msg"
,
msg
);
this
.
apipost
(
"b2b_get_GetB2BTravelPageList"
,
this
.
qM
sg
,
"b2b_get_GetB2BTravelPageList"
,
m
sg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
PageCount
=
res
.
data
.
data
.
pageCount
;
...
...
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