Commit 2f6b9d9c by zhangxw

冒烟 修改

1 parent 4cd73381
...@@ -7,9 +7,7 @@ ...@@ -7,9 +7,7 @@
<meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=no,maximum-scale=1.0" <meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=no,maximum-scale=1.0"
id="viewportMeta"> id="viewportMeta">
<link rel="icon" href="<%= BASE_URL %>favicon.ico"> <link rel="icon" href="<%= BASE_URL %>favicon.ico">
<title> <title>找车</title>
<%= htmlWebpackPlugin.options.title %>
</title>
</head> </head>
<body> <body>
......
...@@ -57,7 +57,7 @@ body { ...@@ -57,7 +57,7 @@ body {
.map-container { .map-container {
width: 100%; width: 100%;
height: 100%; height: 100%;
position: fixed; // position: fixed;
z-index: 100; z-index: 100;
} }
</style> </style>
...@@ -139,11 +139,11 @@ export default { ...@@ -139,11 +139,11 @@ export default {
justify-content: center; justify-content: center;
} }
.location { .location {
bottom: 180px; bottom: 160px;
right: 20px; right: 20px;
} }
.refresh-car { .refresh-car {
bottom: 240px; bottom: 220px;
right: 20px; right: 20px;
} }
......
<template> <template>
<div> <div class="top-tab-class">
<van-tabs v-model:active="active" @click-tab="onTabClick"> <van-tabs v-model:active="active" @click-tab="onTabClick">
<van-tab <van-tab
v-for="(item, index) in tabRoutes" v-for="(item, index) in tabRoutes"
...@@ -65,8 +65,25 @@ export default { ...@@ -65,8 +65,25 @@ export default {
}, },
}; };
</script> </script>
<style lang="scss" scoped>
.top-tab-class {
height: 100%;
}
.tab-content {
height: 100%;
}
</style>
<style lang="scss"> <style lang="scss">
.van-tabs {
height: 100%;
}
.van-tabs__wrap { .van-tabs__wrap {
border-bottom: 1px solid #f0f2f5; border-bottom: 1px solid #f0f2f5;
} }
.van-tabs__content {
height: calc(100% - 45px);
}
.van-tab__panel {
height: 100%;
}
</style> </style>
<template> <template>
<div> <div class="info-content">
<div class="settingControll" @click="showSettingDialog = true"> <div class="settingControll" @click="showSettingDialog = true">
<a class="icon icon-setting-btn"></a> <a class="icon icon-setting-btn"></a>
<span class="setting-text">设置</span> <span class="setting-text">设置</span>
......
...@@ -159,8 +159,12 @@ export default defineComponent({ ...@@ -159,8 +159,12 @@ export default defineComponent({
case 1: case 1:
res.data.timer && res.data.timer &&
res.data.timer.split(",").forEach((val, index) => { res.data.timer.split(",").forEach((val, index) => {
if (val != "NA") {
clockList.value[index].checked = true; clockList.value[index].checked = true;
clockList.value[index].time = val; clockList.value[index].time = val;
} else {
clockList.value[index].checked = false;
}
}); });
break; break;
case 2: case 2:
...@@ -298,13 +302,14 @@ export default defineComponent({ ...@@ -298,13 +302,14 @@ export default defineComponent({
break; break;
case 1: case 1:
// eslint-disable-next-line no-case-declarations // eslint-disable-next-line no-case-declarations
let arr = []; let arr = [[], []];
clockList.value.forEach((val) => { clockList.value.forEach((val) => {
arr[0].push(val.checked ? val.time : "NA");
if (val.checked) { if (val.checked) {
arr.push(val.time); arr[1].push(val.time);
} }
}); });
if (arr.length <= 0) { if (arr[1].length <= 0) {
return Toast("请至少选择一组模式"); return Toast("请至少选择一组模式");
} }
// eslint-disable-next-line no-case-declarations // eslint-disable-next-line no-case-declarations
...@@ -314,7 +319,7 @@ export default defineComponent({ ...@@ -314,7 +319,7 @@ export default defineComponent({
if (timeArr.length != timeArrSet.size) { if (timeArr.length != timeArrSet.size) {
return Toast("每组模式时间不可相同"); return Toast("每组模式时间不可相同");
} }
OParams.timer = arr.join(","); OParams.timer = arr[0].join(",");
break; break;
case 2: case 2:
// eslint-disable-next-line no-case-declarations // eslint-disable-next-line no-case-declarations
......
...@@ -10,7 +10,6 @@ ...@@ -10,7 +10,6 @@
</template> </template>
</mapContent> </mapContent>
<!-- 搜索区域 --> <!-- 搜索区域 -->
<div class="search-box" v-if="mapIsUploaded">
<div class="search-header"> <div class="search-header">
<div <div
class="select-box" class="select-box"
...@@ -25,7 +24,10 @@ ...@@ -25,7 +24,10 @@
<span class="arrow-icon"><van-icon name="arrow-down" /></span> <span class="arrow-icon"><van-icon name="arrow-down" /></span>
</div> </div>
</div> </div>
<div class="search-content" :class="isShowList ? '' : 'hidden'"> <div
class="search-content"
:class="isShowList ? (!list.length ? 'no-data-content' : '') : 'hidden'"
>
<van-search <van-search
class="search-input" class="search-input"
v-model="keyWord" v-model="keyWord"
...@@ -74,7 +76,6 @@ ...@@ -74,7 +76,6 @@
<span>搜索无结果</span> <span>搜索无结果</span>
</div> </div>
</div> </div>
</div>
<van-overlay <van-overlay
:show="showOverlay" :show="showOverlay"
@click="showOverlay = false" @click="showOverlay = false"
...@@ -598,7 +599,7 @@ export default defineComponent({ ...@@ -598,7 +599,7 @@ export default defineComponent({
GET_ALL_CAR_LIST({ GET_ALL_CAR_LIST({
pageSize: 10, pageSize: 10,
pageNumber: pageNumber.value, pageNumber: pageNumber.value,
keyWord: keyWord.value, term: keyWord.value,
}).then((res) => { }).then((res) => {
if (res.code === 200) { if (res.code === 200) {
list.value = list.value.concat(res.data.list); list.value = list.value.concat(res.data.list);
...@@ -641,12 +642,10 @@ export default defineComponent({ ...@@ -641,12 +642,10 @@ export default defineComponent({
.index-map { .index-map {
position: relative; position: relative;
} }
.search-box { .search-header {
width: 100%;
z-index: 102; z-index: 102;
position: fixed; position: fixed;
top: 0; top: 0;
.search-header {
box-shadow: 0px 3px 6px 0px rgba(0, 0, 0, 0.06); box-shadow: 0px 3px 6px 0px rgba(0, 0, 0, 0.06);
background-color: rgba(255, 255, 255, 1); background-color: rgba(255, 255, 255, 1);
border-radius: 6px; border-radius: 6px;
...@@ -667,20 +666,23 @@ export default defineComponent({ ...@@ -667,20 +666,23 @@ export default defineComponent({
.select-box.text { .select-box.text {
color: #111111; color: #111111;
} }
} }
.search-content { .search-content {
width: 100%; width: 100%;
max-height: 516px; position: fixed;
z-index: 102;
top: 64px;
height: 65%;
margin-top: 8px; margin-top: 8px;
border-radius: 12px; border-radius: 12px;
background: #fff; background: #fff;
overflow: hidden; overflow: hidden;
transition: max-height 0.3s; transition: height 0.3s;
.search-input { .search-input {
border-radius: 12px; border-radius: 12px;
} }
.list-box { .list-box {
max-height: 464px; max-height: calc(100% - 52px);
overflow-y: auto; overflow-y: auto;
.list-item { .list-item {
height: 52px; height: 52px;
...@@ -715,11 +717,13 @@ export default defineComponent({ ...@@ -715,11 +717,13 @@ export default defineComponent({
margin-top: 16px; margin-top: 16px;
} }
} }
} }
.search-content.hidden { .search-content.hidden {
max-height: 0; height: 0;
transition: max-height 0.3s; transition: height 0.3s;
} }
.search-content.no-data-content {
height: auto;
} }
</style> </style>
<style lang="scss"> <style lang="scss">
......
...@@ -112,5 +112,8 @@ export default defineComponent({ ...@@ -112,5 +112,8 @@ export default defineComponent({
}); });
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.info-content {
height: 100%;
}
@import "@/assets/css/share.scss"; @import "@/assets/css/share.scss";
</style> </style>
<template> <template>
<div class="monitor-tabContent"> <div class="info-content">
<mapContent @refreshCb="refreshCb" @getData="getData" ref="mapContentRefs"> <mapContent @refreshCb="refreshCb" @getData="getData" ref="mapContentRefs">
<template #mapBox> <template #mapBox>
<div id="monitorContainer" class="map-container"></div> <div id="monitorContainer" class="map-container"></div>
......
<template> <template>
<div> <div class="info-content">
<div class="tab"> <div class="tab">
<div class="tabbar"> <div class="tabbar">
<div class="tabbar-item" @click="showTimeDialog = true"> <div class="tabbar-item" @click="showTimeDialog = true">
...@@ -435,6 +435,11 @@ export default defineComponent({ ...@@ -435,6 +435,11 @@ export default defineComponent({
} }
</style> </style>
<style lang="scss" scoped> <style lang="scss" scoped>
.info-content {
.map-box {
height: calc(100% - 39px) !important;
}
}
.tab { .tab {
.tabbar { .tabbar {
font-size: 0px; font-size: 0px;
......
<template> <template>
<div> <div class="info-content">
<div class="searchControll" @click="showTimeDialog = true"> <div class="searchControll" @click="showTimeDialog = true">
<a class="icon icon-screen-btn"></a> <a class="icon icon-screen-btn"></a>
<span class="screen-text">筛选</span> <span class="screen-text">筛选</span>
......
<template> <template>
<div> <div class="info-content">
<mapContent ref="mapContentRefs"> <mapContent ref="mapContentRefs">
<template #mapBox> <template #mapBox>
<div id="shareContainer" class="map-container"></div> <div id="shareContainer" class="map-container"></div>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!