Commit afc9d08b authored by 黄奎's avatar 黄奎

页面修改

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