Commit ac783bfd authored by youjie's avatar youjie

酒店列表

parent 632641f8
...@@ -52,7 +52,7 @@ export default { ...@@ -52,7 +52,7 @@ export default {
</script> </script>
<style> <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-face {
font-family: "oswald"; font-family: "oswald";
src: url("https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/smallapp/Oswald-Regular.ttf"); src: url("https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/smallapp/Oswald-Regular.ttf");
......
...@@ -20,7 +20,7 @@ const product = { ...@@ -20,7 +20,7 @@ const product = {
} else if (t === 5) { } else if (t === 5) {
url = "/detailHotal/" + configId + '/' + productInfo.b2CPrice url = "/detailHotal/" + configId + '/' + productInfo.b2CPrice
} else if (t === 6) { } 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 { } else {
throw new Error("參數不合法"); throw new Error("參數不合法");
......
This diff is collapsed.
...@@ -687,7 +687,7 @@ ...@@ -687,7 +687,7 @@
<template> <template>
<div class="SearchMain" :class="{ 'desktop-page': $q.platform.is.desktop }"> <div class="SearchMain" :class="{ 'desktop-page': $q.platform.is.desktop }">
<div class="SearchTop"> <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>
<q-breadcrumbs-el <q-breadcrumbs-el
icon="home" icon="home"
...@@ -695,12 +695,12 @@ ...@@ -695,12 +695,12 @@
class="cursor-pointer" class="cursor-pointer"
@click="CommonJump('/index', {})" @click="CommonJump('/index', {})"
/> />
<q-breadcrumbs-el :label="qMsg.HotelName" /> <q-breadcrumbs-el :label="qMsg.KeyWords" />
</q-breadcrumbs> </q-breadcrumbs>
</div> </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> </div>
<!-- 电脑端 --> <!-- 电脑端 -->
...@@ -712,7 +712,7 @@ ...@@ -712,7 +712,7 @@
@click="(isShowDialog = true), goSearchHandler" @click="(isShowDialog = true), goSearchHandler"
> >
<i class="iconfont iconchazhao"></i> <i class="iconfont iconchazhao"></i>
{{ qMsg.HotelName }} {{ qMsg.KeyWords }}
</div> </div>
<div class="search-item" @click="(isShowDialog = true), goSearchHandler"> <div class="search-item" @click="(isShowDialog = true), goSearchHandler">
<i class="iconfont iconrili"></i> <i class="iconfont iconrili"></i>
...@@ -1077,7 +1077,7 @@ ...@@ -1077,7 +1077,7 @@
<q-input <q-input
filled filled
id="search_key" id="search_key"
v-model="qMsg.HotelName" v-model="qMsg.KeyWords"
class="bg-grey-1" class="bg-grey-1"
:label="$t('search')" :label="$t('search')"
/> />
...@@ -1203,7 +1203,7 @@ ...@@ -1203,7 +1203,7 @@
<q-input <q-input
filled filled
id="search_key" id="search_key"
v-model="qMsg.HotelName" v-model="qMsg.KeyWords"
class="bg-grey-1" class="bg-grey-1"
:label="$t('search')" :label="$t('search')"
/> />
...@@ -1445,19 +1445,45 @@ export default { ...@@ -1445,19 +1445,45 @@ export default {
pageSize: 20, pageSize: 20,
//只查询日本 //只查询日本
Country: "JP", // Country: "JP",
DestinationID: '', // DestinationID: '',
City: "", // City: "",
//星级 // //星级
Star: '', // Star: '',
//价格等级 // //价格等级
PriceLevel: 0, // PriceLevel: 0,
MaxPrice: 0, // MaxPrice: 0,
MinPrice: 0, // MinPrice: 0,
HotelName: '', // HotelName: '',
StartDate: '', // StartDate: '',
EndDate: '', // EndDate: '',
IsSelectImg: 1, // 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-列表) ShowType: 0, //显示样式(0-豆腐格,1-列表)
//行程列表 //行程列表
...@@ -1473,10 +1499,10 @@ export default { ...@@ -1473,10 +1499,10 @@ export default {
var areaId = this.getUrlKey("areaId", window.location.href); var areaId = this.getUrlKey("areaId", window.location.href);
var areaName = this.getUrlKey("areaName", window.location.href); var areaName = this.getUrlKey("areaName", window.location.href);
if (qsearchKey) { if (qsearchKey) {
this.qMsg.HotelName = qsearchKey; this.qMsg.KeyWords = qsearchKey;
}else if (areaName) { }else if (areaName) {
this.qMsg.HotelName = areaName; this.qMsg.KeyWords = areaName;
}else this.qMsg.HotelName = '' }else this.qMsg.KeyWords = ''
if (qsearchDate) { if (qsearchDate) {
this.qMsg.StartDate = qsearchDate; this.qMsg.StartDate = qsearchDate;
...@@ -1583,7 +1609,7 @@ export default { ...@@ -1583,7 +1609,7 @@ export default {
); );
}, },
searchFocusHandler() { searchFocusHandler() {
if (this.qMsg.HotelName == "") { if (this.qMsg.KeyWords == "") {
setTimeout(() => { setTimeout(() => {
this.showSplitPannel = true; this.showSplitPannel = true;
}, 200); }, 200);
...@@ -1591,7 +1617,7 @@ export default { ...@@ -1591,7 +1617,7 @@ export default {
}, },
searchBlurHandler() {}, searchBlurHandler() {},
searchChangeHandler() { searchChangeHandler() {
if (this.qMsg.HotelName == "") { if (this.qMsg.KeyWords == "") {
this.showSplitPannel = true; this.showSplitPannel = true;
} else { } else {
this.showSplitPannel = false; this.showSplitPannel = false;
...@@ -1608,7 +1634,7 @@ export default { ...@@ -1608,7 +1634,7 @@ export default {
} }
}, },
chosenAreaHandler(name) { chosenAreaHandler(name) {
this.qMsg.HotelName = name; this.qMsg.KeyWords = name;
this.showSplitPannel = false; this.showSplitPannel = false;
}, },
//数据改变 //数据改变
...@@ -1621,7 +1647,7 @@ export default { ...@@ -1621,7 +1647,7 @@ export default {
this.goSearchHandler(); this.goSearchHandler();
}, },
setSearchKey(obj) { setSearchKey(obj) {
this.qMsg.HotelName = obj.Name; this.qMsg.KeyWords = obj.Name;
}, },
goSearchHandler() { goSearchHandler() {
this.$q.loading.show(); this.$q.loading.show();
...@@ -1642,7 +1668,7 @@ export default { ...@@ -1642,7 +1668,7 @@ export default {
} }
this.SearchResult = this.SearchResult =
this.qMsg.StartDate + "-" + this.qMsg.EndDate + " " + this.qMsg.HotelName; this.qMsg.StartDate + "-" + this.qMsg.EndDate + " " + this.qMsg.KeyWords;
let msg = this.qMsg let msg = this.qMsg
// if (localStorage.b2bUser) { // if (localStorage.b2bUser) {
// var b2bUser = JSON.parse(window.localStorage.getItem("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