Commit ce68ca22 authored by 黄奎's avatar 黄奎

临时提交

parent c997b6dc
This diff is collapsed.
...@@ -158,7 +158,7 @@ ...@@ -158,7 +158,7 @@
.category-btn { .category-btn {
width: 100px; width: 100px;
} }
.mobile-logo{ .mobile-logo {
max-height: 35px; max-height: 35px;
max-width: 120px; max-width: 120px;
object-fit: contain; object-fit: contain;
...@@ -178,23 +178,25 @@ ...@@ -178,23 +178,25 @@
class="zk_toolbar flex justify-between" class="zk_toolbar flex justify-between"
:class="{ 'q-px-none': $q.platform.is.desktop }" :class="{ 'q-px-none': $q.platform.is.desktop }"
> >
<div class="flex"><div class="f24" v-if="$q.platform.is.mobile && isHome" @click="handleShowDialog"> <div class="flex">
<i class="iconfont iconmore1" style="font-size: 24px;"></i> <div class="f24" v-if="$q.platform.is.mobile && isHome" @click="handleShowDialog">
<i class="iconfont iconmore1" style="font-size: 24px"></i>
</div>
<img
:src="baseData.logo"
style="
cursor: pointer;
height: 35px;
filter: drop-shadow(0px 0px var(--q-color-primary));
"
class="q-mr-lg q-ml-sm"
:class="{ 'mobile-logo': $q.platform.is.mobile }"
@click="CommonJump('/index', {})"
/>
</div> </div>
<img <!--HK 2024-11-22 去掉 搜索接口有调整-->
:src="baseData.logo" <searchSf2 v-if="!isHome" :plugData="plugData"></searchSf2>
style="
cursor: pointer;
height: 35px;
filter: drop-shadow(0px 0px var(--q-color-primary));
"
class="q-mr-lg q-ml-sm"
:class="{'mobile-logo':$q.platform.is.mobile}"
@click="CommonJump('/index', {})"
/></div>
<!-- <div style="transform:scale(0.6,0.6)"> -->
<searchSf2 v-if="!isHome" :plugData="plugData"></searchSf2>
<!-- </div> -->
<!-- pc --> <!-- pc -->
<div v-if="$q.platform.is.desktop"> <div v-if="$q.platform.is.desktop">
<q-btn label="繁體中文" flat> <q-btn label="繁體中文" flat>
...@@ -215,13 +217,9 @@ ...@@ -215,13 +217,9 @@
unelevated unelevated
> >
<template v-slot:label> <template v-slot:label>
<img <img class="avatar" v-if="LoginUser.photo" :src="LoginUser.photo" />
class="avatar"
v-if="LoginUser.photo"
:src="LoginUser.photo"
/>
<img class="avatar" v-else src="../../assets/img/avatar.png" /> <img class="avatar" v-else src="../../assets/img/avatar.png" />
<!-- <span>{{LoginUser.name || LoginUser.mailbox}}</span> --> <!-- <span>{{LoginUser.name || LoginUser.mailbox}}</span> -->
</template> </template>
<div class="row no-wrap"> <div class="row no-wrap">
...@@ -229,7 +227,7 @@ ...@@ -229,7 +227,7 @@
<q-list class="text-grey-8" dense> <q-list class="text-grey-8" dense>
<q-item clickable v-close-popup to="/setUserInfo"> <q-item clickable v-close-popup to="/setUserInfo">
<q-item-section avatar> <q-item-section avatar>
<q-avatar icon="iconfont iconpeople1"/> <q-avatar icon="iconfont iconpeople1" />
</q-item-section> </q-item-section>
<q-item-section> <q-item-section>
<q-item-label>個人信息</q-item-label> <q-item-label>個人信息</q-item-label>
...@@ -237,7 +235,7 @@ ...@@ -237,7 +235,7 @@
</q-item> </q-item>
<q-item clickable v-close-popup to="/coupon"> <q-item clickable v-close-popup to="/coupon">
<q-item-section avatar> <q-item-section avatar>
<q-avatar icon="iconfont iconqianbao"/> <q-avatar icon="iconfont iconqianbao" />
</q-item-section> </q-item-section>
<q-item-section> <q-item-section>
<q-item-label>優惠券</q-item-label> <q-item-label>優惠券</q-item-label>
...@@ -245,7 +243,7 @@ ...@@ -245,7 +243,7 @@
</q-item> </q-item>
<q-item clickable v-close-popup to="/order"> <q-item clickable v-close-popup to="/order">
<q-item-section avatar> <q-item-section avatar>
<q-avatar icon="iconfont iconorder"/> <q-avatar icon="iconfont iconorder" />
</q-item-section> </q-item-section>
<q-item-section> <q-item-section>
<q-item-label>訂單</q-item-label> <q-item-label>訂單</q-item-label>
...@@ -254,7 +252,7 @@ ...@@ -254,7 +252,7 @@
<q-separator inset class="q-mx-lg" /> <q-separator inset class="q-mx-lg" />
<q-item clickable v-close-popup to="/setUsersList"> <q-item clickable v-close-popup to="/setUsersList">
<q-item-section avatar> <q-item-section avatar>
<q-avatar icon="iconfont iconpeople"/> <q-avatar icon="iconfont iconpeople" />
</q-item-section> </q-item-section>
<q-item-section> <q-item-section>
<q-item-label>出行人信息管理</q-item-label> <q-item-label>出行人信息管理</q-item-label>
...@@ -262,7 +260,7 @@ ...@@ -262,7 +260,7 @@
</q-item> </q-item>
<q-item clickable v-close-popup to="/setAddress"> <q-item clickable v-close-popup to="/setAddress">
<q-item-section avatar> <q-item-section avatar>
<q-avatar icon="iconfont iconemail"/> <q-avatar icon="iconfont iconemail" />
</q-item-section> </q-item-section>
<q-item-section> <q-item-section>
<q-item-label>管理邮寄地址</q-item-label> <q-item-label>管理邮寄地址</q-item-label>
...@@ -270,7 +268,7 @@ ...@@ -270,7 +268,7 @@
</q-item> </q-item>
<q-item clickable v-close-popup to="/setInfo"> <q-item clickable v-close-popup to="/setInfo">
<q-item-section avatar> <q-item-section avatar>
<q-avatar icon="iconfont iconset"/> <q-avatar icon="iconfont iconset" />
</q-item-section> </q-item-section>
<q-item-section> <q-item-section>
<q-item-label>賬戶設置</q-item-label> <q-item-label>賬戶設置</q-item-label>
...@@ -278,7 +276,7 @@ ...@@ -278,7 +276,7 @@
</q-item> </q-item>
<q-item clickable v-close-popup @click="loginOut"> <q-item clickable v-close-popup @click="loginOut">
<q-item-section avatar> <q-item-section avatar>
<q-avatar icon="iconfont iconlog-in"/> <q-avatar icon="iconfont iconlog-in" />
</q-item-section> </q-item-section>
<q-item-section> <q-item-section>
<q-item-label>登出</q-item-label> <q-item-label>登出</q-item-label>
...@@ -337,8 +335,15 @@ ...@@ -337,8 +335,15 @@
:baseData="baseData" :baseData="baseData"
:dataList="dataList" :dataList="dataList"
></city-category> ></city-category>
<popup @mousemove.prevent id="city-category" v-model="showDialog" mode="bottom" @close="handleDialogClose"> <popup
<city-category-mobile @close="showDialog = false" @mousemove.prevent
id="city-category"
v-model="showDialog"
mode="bottom"
@close="handleDialogClose"
>
<city-category-mobile
@close="showDialog = false"
:baseData="baseData" :baseData="baseData"
:dataList="dataList" :dataList="dataList"
></city-category-mobile ></city-category-mobile
...@@ -350,9 +355,9 @@ ...@@ -350,9 +355,9 @@
import popup from "../props/index"; import popup from "../props/index";
import CityCategoryMobile from "./city-category-mobile.vue"; import CityCategoryMobile from "./city-category-mobile.vue";
import cityCategory from "./city-category.vue"; import cityCategory from "./city-category.vue";
import searchSf2 from '../search_sf/search-top.vue' import searchSf2 from "../search_sf/search-top.vue";
export default { export default {
components: { cityCategory, CityCategoryMobile, popup,searchSf2 }, components: { cityCategory, CityCategoryMobile, popup, searchSf2 },
props: { props: {
baseData: { baseData: {
type: Object, type: Object,
...@@ -369,7 +374,7 @@ export default { ...@@ -369,7 +374,7 @@ export default {
}, },
data() { data() {
return { return {
plugData: {details: [], Title: ''}, plugData: { details: [], Title: "" },
showDialog: false, showDialog: false,
searchDate: "", searchDate: "",
searchEndDate: "", searchEndDate: "",
...@@ -401,7 +406,7 @@ export default { ...@@ -401,7 +406,7 @@ export default {
}, },
$route: { $route: {
handler: function (val, oldVal) { handler: function (val, oldVal) {
console.log('val', val, oldVal) console.log("val", val, oldVal);
this.isHome = val.path === "/" || val.path === "/index"; this.isHome = val.path === "/" || val.path === "/index";
// this.isSearch = val.path === "/search"; // this.isSearch = val.path === "/search";
}, },
...@@ -421,7 +426,7 @@ export default { ...@@ -421,7 +426,7 @@ export default {
this.isHome = this.isHome =
this.$router.history.current.path === "/" || this.$router.history.current.path === "/" ||
this.$router.history.current.path === "/index"; this.$router.history.current.path === "/index";
// this.isSearch = this.$router.history.current.path === "/search"; // this.isSearch = this.$router.history.current.path === "/search";
console.log( console.log(
'JSON.parse(window.localStorage.getItem("b2bUser"))', 'JSON.parse(window.localStorage.getItem("b2bUser"))',
JSON.parse(window.localStorage.getItem("b2bUser")) JSON.parse(window.localStorage.getItem("b2bUser"))
...@@ -448,19 +453,18 @@ export default { ...@@ -448,19 +453,18 @@ export default {
// this.getCategoryList(); // this.getCategoryList();
}, },
methods: { methods: {
handler(event) {event.preventDefault();}, handler(event) {
event.preventDefault();
},
handleShowDialog() { handleShowDialog() {
this.showDialog = true; this.showDialog = true;
this.scrollTop = document.querySelector('body').scrollTop; this.scrollTop = document.querySelector("body").scrollTop;
document.querySelector( document.querySelector("body").style = `position: fixed; top: -${this.scrollTop}px`;
"body"
).style = `position: fixed; top: -${this.scrollTop}px`;
}, },
handleDialogClose() { handleDialogClose() {
document.querySelector( document.querySelector("body").style = "";
"body" },
).style = '';},
avatarClick() { avatarClick() {
if (this.LoginUser.token) { if (this.LoginUser.token) {
this.CommonJump("/userCenter"); this.CommonJump("/userCenter");
......
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
standout standout
placeholder="蒐索關鍵字" placeholder="蒐索關鍵字"
class="q-ma-md" class="q-ma-md"
@blur="changeAddrSearchHandler" @blur="handleSearchKey"
/> />
<!-- <q-tree <!-- <q-tree
ref="area" ref="area"
...@@ -505,8 +505,6 @@ export default { ...@@ -505,8 +505,6 @@ export default {
}, },
created() { created() {
this.msg = this.qMsg; this.msg = this.qMsg;
// this.msg.teamType = [];
//this.initAreaList();
this.initGoods(); this.initGoods();
this.msg.priceRange = { this.msg.priceRange = {
min: 1, min: 1,
...@@ -524,11 +522,11 @@ export default { ...@@ -524,11 +522,11 @@ export default {
mounted() { mounted() {
let LineIdList = []; let LineIdList = [];
if (this.msg.LineIds && this.msg.LineIds.length > 0) { if (this.msg.LineIds && this.msg.LineIds.length > 0) {
LineIdList = this.msg.LineIds.split(";"); LineIdList = this.msg.LineIds.split(",");
} }
let SeriesIdList = []; let SeriesIdList = [];
if (this.msg.SeriesIds && this.msg.SeriesIds.length > 0) { if (this.msg.SeriesIds && this.msg.SeriesIds.length > 0) {
SeriesIdList = this.msg.SeriesIds.split(";"); SeriesIdList = this.msg.SeriesIds.split(",");
} }
if ( if (
(LineIdList && LineIdList.length > 0) || (LineIdList && LineIdList.length > 0) ||
...@@ -536,7 +534,12 @@ export default { ...@@ -536,7 +534,12 @@ export default {
) { ) {
let arr = []; let arr = [];
this.goodsType.forEach((x) => { this.goodsType.forEach((x) => {
let lineIdIndex = LineIdList.findIndex((yId) => x.Id.slice(2) == yId); var tempLineId = 0;
var tempLineIdArray = x.Id.split("|");
if (tempLineIdArray && tempLineIdArray.length == 2) {
tempLineId = tempLineIdArray[0];
}
let lineIdIndex = LineIdList.findIndex((yId) => tempLineId == yId);
if (lineIdIndex != -1) { if (lineIdIndex != -1) {
arr.push(x.Id); arr.push(x.Id);
} }
...@@ -544,8 +547,12 @@ export default { ...@@ -544,8 +547,12 @@ export default {
if (lineIdIndex != -1) { if (lineIdIndex != -1) {
arr.push(y.Id); arr.push(y.Id);
} else { } else {
let seriesIdIndex = SeriesIdList.findIndex((yId) => y.Id.slice(2) == yId); var tempLtId = 0;
var tempLtIdArray = y.Id.split("|");
if (tempLtIdArray && tempLtIdArray.length == 2) {
tempLtId = tempLtIdArray[0];
}
let seriesIdIndex = SeriesIdList.findIndex((yId) => tempLtId == yId);
if (seriesIdIndex != -1) { if (seriesIdIndex != -1) {
arr.push(y.Id); arr.push(y.Id);
} }
...@@ -556,15 +563,11 @@ export default { ...@@ -556,15 +563,11 @@ export default {
} }
}, },
methods: { methods: {
handleSelected(target) {
console.log("handleSelected", target);
},
handleTicked(target) { handleTicked(target) {
this.msg.pageIndex = 1; this.msg.pageIndex = 1;
this.ticked = target; this.ticked = target;
this.goSearchHandler(); this.goSearchHandler();
}, },
handleSearchKey(target) { handleSearchKey(target) {
this.msg.pageIndex = 1; this.msg.pageIndex = 1;
this.goSearchHandler(); this.goSearchHandler();
...@@ -635,11 +638,11 @@ export default { ...@@ -635,11 +638,11 @@ export default {
let arr = []; let arr = [];
let LineIdList = []; let LineIdList = [];
if (this.msg.LineIds && this.msg.LineIds.length > 0) { if (this.msg.LineIds && this.msg.LineIds.length > 0) {
LineIdList = this.msg.LineIds.split(";"); LineIdList = this.msg.LineIds.split(",");
} }
let SeriesIdList = []; let SeriesIdList = [];
if (this.msg.SeriesIds && this.msg.SeriesIds.length > 0) { if (this.msg.SeriesIds && this.msg.SeriesIds.length > 0) {
SeriesIdList = this.msg.SeriesIds.split(";"); SeriesIdList = this.msg.SeriesIds.split(",");
} }
this.apipost( this.apipost(
"b2c_get_GetB2CQueryCondition", "b2c_get_GetB2CQueryCondition",
...@@ -652,7 +655,13 @@ export default { ...@@ -652,7 +655,13 @@ export default {
x.explsed = false; x.explsed = false;
x.isShow = true; x.isShow = true;
x.children = x.SubList; x.children = x.SubList;
let lineIdIndex = LineIdList.findIndex((yId) => x.Id.slice(2) == yId); var tempLineId = 0;
var tempLineIdArray = x.Id.split("|");
if (tempLineIdArray && tempLineIdArray.length == 2) {
tempLineId = tempLineIdArray[0];
}
let lineIdIndex = LineIdList.findIndex((yId) => tempLineId == yId);
x.children.forEach((y) => { x.children.forEach((y) => {
y.checked = false; y.checked = false;
y.explsed = false; y.explsed = false;
...@@ -661,9 +670,12 @@ export default { ...@@ -661,9 +670,12 @@ export default {
arr.push(y.Id); arr.push(y.Id);
this.ticked.push(y.Id); this.ticked.push(y.Id);
} else { } else {
let seriesIdIndex = SeriesIdList.findIndex( var tempLtId = 0;
(yId) => y.Id.slice(2) == yId var tempLtIdArray = y.Id.split("|");
); if (tempLtIdArray && tempLtIdArray.length == 2) {
tempLtId = tempLtIdArray[0];
}
let seriesIdIndex = SeriesIdList.findIndex((yId) => tempLtId == yId);
if (seriesIdIndex != -1) { if (seriesIdIndex != -1) {
arr.push(y.Id); arr.push(y.Id);
this.ticked.push(y.Id); this.ticked.push(y.Id);
...@@ -758,7 +770,6 @@ export default { ...@@ -758,7 +770,6 @@ export default {
this.msg, this.msg,
(res) => { (res) => {
this.$q.loading.hide(); this.$q.loading.hide();
console.log("b2c_get_GetB2C2024TravelProductPage", res);
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.PageCount = res.data.data.pageCount; this.PageCount = res.data.data.pageCount;
this.TotalCount = res.data.data.count; this.TotalCount = res.data.data.count;
......
This diff is collapsed.
...@@ -676,6 +676,7 @@ export default { ...@@ -676,6 +676,7 @@ export default {
let arr = []; let arr = [];
let jObj = JSON.parse(window.localStorage.getItem("baseifo")); let jObj = JSON.parse(window.localStorage.getItem("baseifo"));
jObj.CategoryList.forEach((x) => { jObj.CategoryList.forEach((x) => {
x.checked = false; x.checked = false;
x.explsed = false; x.explsed = false;
x.isShow = true; x.isShow = true;
......
This diff is collapsed.
This diff is collapsed.
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