Commit ac783bfd authored by youjie's avatar youjie

酒店列表

parent 632641f8
......@@ -52,7 +52,7 @@ export default {
</script>
<style>
@import url("//at.alicdn.com/t/c/font_1890699_5zxmcxmwvtf.css");
@import url("//at.alicdn.com/t/c/font_1890699_3sxjt5uqjme.css");
@font-face {
font-family: "oswald";
src: url("https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/smallapp/Oswald-Regular.ttf");
......
......@@ -20,7 +20,7 @@ const product = {
} else if (t === 5) {
url = "/detailHotal/" + configId + '/' + productInfo.b2CPrice
} else if (t === 6) {
url = `/detailHotalDida/${configId}/${productInfo.lowrateBySetCurrency}/${encodeURIComponent(productInfo.CheckInDate)}/${encodeURIComponent(productInfo.CheckOutDate)}`
url = `/detailHotalDida/${configId}/${productInfo.unitprice}/${encodeURIComponent(productInfo.CheckInDate)}/${encodeURIComponent(productInfo.CheckOutDate)}`
}
} else {
throw new Error("參數不合法");
......
This diff is collapsed.
......@@ -687,7 +687,7 @@
<template>
<div class="SearchMain" :class="{ 'desktop-page': $q.platform.is.desktop }">
<div class="SearchTop">
<div class="q-my-md" v-if="qMsg.HotelName">
<div class="q-my-md" v-if="qMsg.KeyWords">
<q-breadcrumbs>
<q-breadcrumbs-el
icon="home"
......@@ -695,12 +695,12 @@
class="cursor-pointer"
@click="CommonJump('/index', {})"
/>
<q-breadcrumbs-el :label="qMsg.HotelName" />
<q-breadcrumbs-el :label="qMsg.KeyWords" />
</q-breadcrumbs>
</div>
<div class="text-h6 text-left" v-if="qMsg.HotelName">
<div class="text-h6 text-left" v-if="qMsg.KeyWords">
搜尋結果 “
<span class="text-primary">{{ qMsg.HotelName }}</span
<span class="text-primary">{{ qMsg.KeyWords }}</span
>
</div>
<!-- 电脑端 -->
......@@ -712,7 +712,7 @@
@click="(isShowDialog = true), goSearchHandler"
>
<i class="iconfont iconchazhao"></i>
{{ qMsg.HotelName }}
{{ qMsg.KeyWords }}
</div>
<div class="search-item" @click="(isShowDialog = true), goSearchHandler">
<i class="iconfont iconrili"></i>
......@@ -1077,7 +1077,7 @@
<q-input
filled
id="search_key"
v-model="qMsg.HotelName"
v-model="qMsg.KeyWords"
class="bg-grey-1"
:label="$t('search')"
/>
......@@ -1203,7 +1203,7 @@
<q-input
filled
id="search_key"
v-model="qMsg.HotelName"
v-model="qMsg.KeyWords"
class="bg-grey-1"
:label="$t('search')"
/>
......@@ -1445,19 +1445,45 @@ export default {
pageSize: 20,
//只查询日本
Country: "JP",
DestinationID: '',
City: "",
//星级
Star: '',
//价格等级
PriceLevel: 0,
MaxPrice: 0,
MinPrice: 0,
HotelName: '',
StartDate: '',
EndDate: '',
IsSelectImg: 1,
// Country: "JP",
// DestinationID: '',
// City: "",
// //星级
// Star: '',
// //价格等级
// PriceLevel: 0,
// MaxPrice: 0,
// MinPrice: 0,
// HotelName: '',
// StartDate: '',
// EndDate: '',
// IsSelectImg: 1,
KeyWords: "", //关键字
KeyWords2: "", //关键字
StartPrice: 100,
EndPrice: 0,
QOrderBy: "0", //排序类型
QStarRating: [], //星级
GName: '', //热门
CityCode: '', //目的地代码
CityName: '', //目的地
CityCode2: '', //目的地代码
regionCode: '', //区域
CityName_CN: '',
rooms: 1,
adultsNumber: 2,
childrenNumberZC: 0,
childrenNumberBZC: 0,
peoples: 2,
interCurrent: 0,
searchroomGroup: [{
roomNum: 1,
numberOfAdults: 2,
numberOfChildren: 0,
ChildAgeDetails: [],
ChildAgeTexts: [],//儿童年龄
}],
},
ShowType: 0, //显示样式(0-豆腐格,1-列表)
//行程列表
......@@ -1473,10 +1499,10 @@ export default {
var areaId = this.getUrlKey("areaId", window.location.href);
var areaName = this.getUrlKey("areaName", window.location.href);
if (qsearchKey) {
this.qMsg.HotelName = qsearchKey;
this.qMsg.KeyWords = qsearchKey;
}else if (areaName) {
this.qMsg.HotelName = areaName;
}else this.qMsg.HotelName = ''
this.qMsg.KeyWords = areaName;
}else this.qMsg.KeyWords = ''
if (qsearchDate) {
this.qMsg.StartDate = qsearchDate;
......@@ -1583,7 +1609,7 @@ export default {
);
},
searchFocusHandler() {
if (this.qMsg.HotelName == "") {
if (this.qMsg.KeyWords == "") {
setTimeout(() => {
this.showSplitPannel = true;
}, 200);
......@@ -1591,7 +1617,7 @@ export default {
},
searchBlurHandler() {},
searchChangeHandler() {
if (this.qMsg.HotelName == "") {
if (this.qMsg.KeyWords == "") {
this.showSplitPannel = true;
} else {
this.showSplitPannel = false;
......@@ -1608,7 +1634,7 @@ export default {
}
},
chosenAreaHandler(name) {
this.qMsg.HotelName = name;
this.qMsg.KeyWords = name;
this.showSplitPannel = false;
},
//数据改变
......@@ -1621,7 +1647,7 @@ export default {
this.goSearchHandler();
},
setSearchKey(obj) {
this.qMsg.HotelName = obj.Name;
this.qMsg.KeyWords = obj.Name;
},
goSearchHandler() {
this.$q.loading.show();
......@@ -1642,7 +1668,7 @@ export default {
}
this.SearchResult =
this.qMsg.StartDate + "-" + this.qMsg.EndDate + " " + this.qMsg.HotelName;
this.qMsg.StartDate + "-" + this.qMsg.EndDate + " " + this.qMsg.KeyWords;
let msg = this.qMsg
// if (localStorage.b2bUser) {
// var b2bUser = JSON.parse(window.localStorage.getItem("b2bUser"));
......
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