Commit afc9d08b authored by 黄奎's avatar 黄奎

页面修改

parent 2339532b
...@@ -236,6 +236,7 @@ Vue.prototype.AddMonth = function (dateStr, month) { ...@@ -236,6 +236,7 @@ Vue.prototype.AddMonth = function (dateStr, month) {
} }
} }
//获取URL中参数
Vue.prototype.getUrlKey = function (name, url) { Vue.prototype.getUrlKey = function (name, url) {
return decodeURIComponent((new RegExp('[?|&]' + name + '=' + '([^&;]+?)(&|#|;|$)').exec(url) || [, ""])[1].replace(/\+/g, '%20')) || null return decodeURIComponent((new RegExp('[?|&]' + name + '=' + '([^&;]+?)(&|#|;|$)').exec(url) || [, ""])[1].replace(/\+/g, '%20')) || null
} }
<template> <template>
<!-- 模式二 --> <!-- 列表 -->
<div class="group-result-list"> <div class="group-result-list">
<div class="group-statis-block"> <div class="group-statis-block">
<div class="group-share"></div> <div class="group-share" style="display:none;"></div>
<div class="group-statis-detail"> <div class="group-statis-detail">
<span class="title">全區 歐</span> <span class="title" v-if="qMsg.searchKey">{{qMsg.searchKey}} :</span>
:找到 找到
<span class="num"> 1 </span>個行程 <span class="num"> {{qMsg.TotalCount}} </span>個行程
<span class="pc">,目前在第<span style="color: #7f7f7f;"> 1 </span></span> <span class="pc">,目前在第<span style="color: #7f7f7f;"> {{qMsg.pageIndex}} </span></span>
</div> </div>
</div> </div>
<div> <div>
...@@ -51,7 +50,7 @@ ...@@ -51,7 +50,7 @@
</template> </template>
<script> <script>
export default { export default {
props: ["DataList", "PageCount"], props: ["DataList", "qMsg"],
data() { data() {
return { return {
......
...@@ -641,7 +641,7 @@ ...@@ -641,7 +641,7 @@
<template v-if="ShowType==0"> <template v-if="ShowType==0">
<!--豆腐格--> <!--豆腐格-->
<searchBlock :DataList="DataList" :PageCount="PageCount"></searchBlock> <searchBlock :DataList="DataList" :qMsg="qMsg"></searchBlock>
</template> </template>
<template v-else> <template v-else>
<div class="wl-section-block search-content"> <div class="wl-section-block search-content">
...@@ -703,7 +703,7 @@ ...@@ -703,7 +703,7 @@
</div> </div>
</div> </div>
<!--列表--> <!--列表-->
<searchList :DataList="DataList" :PageCount="PageCount"></searchList> <searchList :DataList="DataList" :qMsg="qMsg"></searchList>
</div> </div>
</template> </template>
...@@ -987,12 +987,12 @@ ...@@ -987,12 +987,12 @@
priceOrderByField: 4, priceOrderByField: 4,
searchKey: "", searchKey: "",
startCityId: 0, startCityId: 0,
PageCount:0,
TotalCount:0,
}, },
ShowType: 0, //显示样式(0-豆腐格,1-列表) ShowType: 0, //显示样式(0-豆腐格,1-列表)
//行程列表 //行程列表
DataList: [], DataList: [],
PageCount: 0,
TotalCount: 0,
}; };
}, },
created() { created() {
...@@ -1067,8 +1067,13 @@ ...@@ -1067,8 +1067,13 @@
this.qMsg.searchKey = name; this.qMsg.searchKey = name;
this.showSplitPannel = false; this.showSplitPannel = false;
}, },
//数据改变
changeData() {
this.qMsg.pageIndex = 1;
this.goSearchHandler();
},
goSearchHandler() { goSearchHandler() {
this.DataList=[]; this.DataList = [];
let minTripDay = -1, let minTripDay = -1,
maxTripDay = -1, maxTripDay = -1,
minPrice = -1, minPrice = -1,
...@@ -1083,17 +1088,6 @@ ...@@ -1083,17 +1088,6 @@
return false return false
} }
} }
console.log("dayNum",this.dayNum);
console.log("WeekDay",this.WeekDay)
// 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 = { let msg = {
pageIndex: this.qMsg.pageIndex, pageIndex: this.qMsg.pageIndex,
pageSize: this.qMsg.pageSize, pageSize: this.qMsg.pageSize,
...@@ -1114,8 +1108,8 @@ ...@@ -1114,8 +1108,8 @@
companyId: 0, companyId: 0,
orderBySales: 0, orderBySales: 0,
startCityId: this.qMsg.startCityId, startCityId: this.qMsg.startCityId,
weekDayList:this.WeekDay, weekDayList: this.WeekDay,
dayNumList:this.dayNum, dayNumList: this.dayNum,
} }
if (localStorage.b2bUser) { if (localStorage.b2bUser) {
var b2bUser = JSON.parse(window.localStorage.getItem('b2bUser')) var b2bUser = JSON.parse(window.localStorage.getItem('b2bUser'))
...@@ -1128,8 +1122,8 @@ ...@@ -1128,8 +1122,8 @@
"b2b_get_GetB2BTravelPageList", msg, "b2b_get_GetB2BTravelPageList", msg,
res => { res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.PageCount = res.data.data.pageCount; this.qMsg.PageCount = res.data.data.pageCount;
this.TotalCount = res.data.data.total; this.qMsg.TotalCount = res.data.data.count;
var tempArray = res.data.data.pageData; var tempArray = res.data.data.pageData;
if (tempArray && tempArray.length > 0) { if (tempArray && tempArray.length > 0) {
tempArray.forEach(item => { tempArray.forEach(item => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment