Commit 1fd59047 authored by 黄奎's avatar 黄奎

页面修改

parent 9dee551f
...@@ -74,7 +74,7 @@ ...@@ -74,7 +74,7 @@
</div> </div>
<div class="group-detail"> <div class="group-detail">
<i class="iconfont iconaddress"></i> <i class="iconfont iconaddress"></i>
<span>巴黎省</span> <span>{{item.countryName}}</span>
</div> </div>
<div class="group-detail"> <div class="group-detail">
<i class="iconfont icontime"></i> <i class="iconfont icontime"></i>
......
...@@ -593,7 +593,7 @@ ...@@ -593,7 +593,7 @@
</q-input> </q-input>
</div> </div>
<div class="col-2" style="margin-left:10px;"> <div class="col-2" style="margin-left:10px;">
<q-select filled v-model="priceSort" :options="navs" emit-value map-options /> <q-select filled v-model="sortNum" :options="sortArray" emit-value map-options />
</div> </div>
<div class="col-2" style="margin-left:10px;"> <div class="col-2" style="margin-left:10px;">
<span style="margin-top:15px;display:inline-block;cursor:pointer;" @click="fullHeight = true">更多篩選條件</span> <span style="margin-top:15px;display:inline-block;cursor:pointer;" @click="fullHeight = true">更多篩選條件</span>
...@@ -656,7 +656,7 @@ ...@@ -656,7 +656,7 @@
class="keyword-input"> class="keyword-input">
</div> </div>
<div class="sortDiv"> <div class="sortDiv">
<q-select filled style="width:50%" v-model="priceSort" :options="navs" emit-value map-options /> <q-select filled style="width:50%" v-model="sortNum" :options="sortArray" emit-value map-options />
<div class="sortShaixuan" @click="fullHeight = true">更多篩選條件</div> <div class="sortShaixuan" @click="fullHeight = true">更多篩選條件</div>
</div> </div>
</div> </div>
...@@ -773,7 +773,7 @@ ...@@ -773,7 +773,7 @@
}, },
data() { data() {
return { return {
priceSort: 1, sortNum: 1, //排序
dayNum: ['11天'], dayNum: ['11天'],
flight: ['长荣'], flight: ['长荣'],
StartWeek: ['星期一'], StartWeek: ['星期一'],
...@@ -798,7 +798,7 @@ ...@@ -798,7 +798,7 @@
//地区数据 //地区数据
areas: [], areas: [],
crtAreaIndex: 0, crtAreaIndex: 0,
navs: [{ sortArray: [{
label: '依推薦程度', label: '依推薦程度',
value: 1 value: 1
}, { }, {
...@@ -960,9 +960,8 @@ ...@@ -960,9 +960,8 @@
} }
if (this.qMsg.maxTripDay != '') { if (this.qMsg.maxTripDay != '') {
maxTripDay = parseFloat(this.qMsg.maxTripDay); maxTripDay = parseFloat(this.qMsg.maxTripDay);
if(minTripDay>maxTripDay) if (minTripDay > maxTripDay) {
{ return false;
return false;
} }
} }
let msg = { let msg = {
...@@ -978,13 +977,20 @@ ...@@ -978,13 +977,20 @@
maxPrice: maxPrice, maxPrice: maxPrice,
startDate: this.qMsg.startDate, startDate: this.qMsg.startDate,
endDate: this.qMsg.endDate, endDate: this.qMsg.endDate,
orderByDate: this.orderindex == 1 ? (this.ordertype == 0 ? 2 : 1) : 0, orderByDate: this.sortNum == 4 ? 1 : (this.sortNum == 5 ? 2 : 0),
orderByPrice: this.orderindex == 2 ? (this.ordertype == 0 ? 2 : 1) : 0, orderByPrice: this.sortNum == 2 ? 1 : (this.sortNum == 3 ? 2 : 0),
orderByDay:this.sortNum == 6 ? 1 : (this.sortNum == 7 ? 2 : 0),
priceOrderByField: 4, priceOrderByField: 4,
companyId: 0, companyId: 0,
orderBySales: this.orderindex == 3 ? (this.ordertype == 0 ? 2 : 1) : 0, orderBySales: 0,
startCityId: this.qMsg.startCityId startCityId: this.qMsg.startCityId
} }
if (localStorage.b2bUser) {
var b2bUser = JSON.parse(window.localStorage.getItem('b2bUser'))
if (b2bUser) {
msg.priceOrderByField = 2;
}
}
console.log("this.msg", msg); console.log("this.msg", msg);
this.apipost( this.apipost(
"b2b_get_GetB2BTravelPageList", msg, "b2b_get_GetB2BTravelPageList", msg,
...@@ -1017,5 +1023,3 @@ ...@@ -1017,5 +1023,3 @@
}; };
</script> </script>
<style></style>
...@@ -73,26 +73,24 @@ ...@@ -73,26 +73,24 @@
.quick-banner-block.yellow .quick-item>.active { .quick-banner-block.yellow .quick-item>.active {
background-color: rgba(102, 162, 121, .82); background-color: rgba(102, 162, 121, .82);
} }
.detail_loadingDiv{
.detail_loadingDiv {
position: fixed; position: fixed;
width:100%; width: 100%;
height:100%; height: 100%;
z-index:999; z-index: 999;
display:flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
background:rgba(0,0,0,0.5); background: rgba(0, 0, 0, 0.5);
} }
</style> </style>
<template> <template>
<q-page ref="orderview"> <q-page ref="orderview">
<!-- loading --> <!-- loading -->
<div class="detail_loadingDiv" v-if="isLoading"> <div class="detail_loadingDiv" v-if="isLoading">
<q-spinner <q-spinner color="primary" size="3em" :thickness="10" />
color="primary"
size="3em"
:thickness="10"
/>
</div> </div>
<template v-if="isShow"> <template v-if="isShow">
<!-- 顶部大图 --> <!-- 顶部大图 -->
...@@ -102,8 +100,10 @@ ...@@ -102,8 +100,10 @@
<template v-for="(item,index) in TripConfig.TripConfig.SortList"> <template v-for="(item,index) in TripConfig.TripConfig.SortList">
<!-- 行程資訊 --> <!-- 行程資訊 -->
<!-- TripListStyle 1月历 2列表 --> <!-- TripListStyle 1月历 2列表 -->
<tripList v-if="item.Id=='TripList'&&TripConfig.TripConfig.TripListStyle==2" :key="index+100" :plugData="dataList.priceList"></tripList> <tripList v-if="item.Id=='TripList'&&TripConfig.TripConfig.TripListStyle==2" :key="index+100"
<tripcalendar v-if="item.Id=='TripList'&&TripConfig.TripConfig.TripListStyle==1" :key="index+200" :dateData="dataList.priceList" :priceInfo="dataList.currentPriceInfo"></tripcalendar> :plugData="dataList.priceList"></tripList>
<tripcalendar v-if="item.Id=='TripList'&&TripConfig.TripConfig.TripListStyle==1" :key="index+200"
:dateData="dataList.priceList" :priceInfo="dataList.currentPriceInfo"></tripcalendar>
<!-- 每日行程 --> <!-- 每日行程 -->
<!-- TripDayStyle 1竖起排 2横起 --> <!-- TripDayStyle 1竖起排 2横起 -->
...@@ -139,6 +139,7 @@ ...@@ -139,6 +139,7 @@
import headStyle3 from "../components/trip/style3"; import headStyle3 from "../components/trip/style3";
import headStyle4 from "../components/trip/style4"; import headStyle4 from "../components/trip/style4";
import headStyle5 from "../components/trip/style5"; import headStyle5 from "../components/trip/style5";
//每日行程横放组件 //每日行程横放组件
import headStyle6 from "../components/trip/style6"; import headStyle6 from "../components/trip/style6";
import diyForm from "../components/label_other/diy-form"; import diyForm from "../components/label_other/diy-form";
...@@ -147,7 +148,6 @@ ...@@ -147,7 +148,6 @@
//出團表 group -Start //出團表 group -Start
import tripList from "../components/trip/tripList"; import tripList from "../components/trip/tripList";
import tripcalendar from "../components/trip/tripcalendar" import tripcalendar from "../components/trip/tripcalendar"
//出團表 group -End //出團表 group -End
export default { export default {
...@@ -160,7 +160,7 @@ ...@@ -160,7 +160,7 @@
preview: 0, preview: 0,
tcid: 0, tcid: 0,
teamType: 0, teamType: 0,
isGetPriceFlight:true, isGetPriceFlight: true,
}, },
isShow: false, isShow: false,
dataList: {}, dataList: {},
...@@ -169,7 +169,7 @@ ...@@ -169,7 +169,7 @@
TripConfig: {}, TripConfig: {},
isShowNav: false, isShowNav: false,
clickIndex: 1, clickIndex: 1,
isLoading:false isLoading: false
}; };
}, },
components: { components: {
...@@ -200,9 +200,9 @@ ...@@ -200,9 +200,9 @@
}, },
methods: { methods: {
getData() { getData() {
this.isLoading=true; this.isLoading = true;
this.apipost('b2b_get_GetB2BTravelInfoV1', this.msg, r => { this.apipost('b2b_get_GetB2BTravelInfoV1', this.msg, r => {
this.isLoading=false; this.isLoading = false;
if (r.data.resultCode == 1) { if (r.data.resultCode == 1) {
this.dataList = r.data.data; this.dataList = r.data.data;
if (this.dataList.dayList && this.dataList.dayList.length > 0) { if (this.dataList.dayList && this.dataList.dayList.length > 0) {
...@@ -230,7 +230,6 @@ ...@@ -230,7 +230,6 @@
let newval = "#" + val let newval = "#" + val
document.querySelector(newval).scrollIntoView(true); document.querySelector(newval).scrollIntoView(true);
}, },
}, },
}; };
......
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