Commit f546197f by zhangxw

样式修改

1 parent 3805e282
...@@ -74,8 +74,9 @@ export default defineComponent({ ...@@ -74,8 +74,9 @@ export default defineComponent({
padding-bottom: 40px; padding-bottom: 40px;
.btn-class { .btn-class {
padding: 15px; padding: 15px;
box-sizing: border-box;
border-bottom: 1px solid #f0f2f5; border-bottom: 1px solid #f0f2f5;
width: calc(100% - 40px); width: 100%;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
font-size: 14px; font-size: 14px;
......
...@@ -364,7 +364,8 @@ export default defineComponent({ ...@@ -364,7 +364,8 @@ export default defineComponent({
} }
} }
.setting-content { .setting-content {
width: calc(100% - 32px); box-sizing: border-box;
width: 100%;
height: 100%; height: 100%;
padding: 10px 16px; padding: 10px 16px;
font-size: 14px; font-size: 14px;
......
...@@ -408,13 +408,15 @@ export default defineComponent({ ...@@ -408,13 +408,15 @@ export default defineComponent({
<style lang="scss" scoped> <style lang="scss" scoped>
.freq-page { .freq-page {
position: fixed; position: fixed;
width: calc(100% - 20px); box-sizing: border-box;
width: 100%;
padding: 16px 10px; padding: 16px 10px;
height: 100%; height: 100%;
background: #f5f6f7; background: #f5f6f7;
color: #111; color: #111;
.top { .top {
width: calc(100% - 32px); box-sizing: border-box;
width: 100%;
height: 52px; height: 52px;
border-radius: 8px; border-radius: 8px;
padding: 0 16px; padding: 0 16px;
...@@ -431,7 +433,8 @@ export default defineComponent({ ...@@ -431,7 +433,8 @@ export default defineComponent({
margin: 16px 0 8px 24px; margin: 16px 0 8px 24px;
} }
.middle { .middle {
width: calc(100% - 32px); box-sizing: border-box;
width: 100%;
height: 52px; height: 52px;
border-radius: 8px; border-radius: 8px;
padding: 0 16px; padding: 0 16px;
...@@ -460,7 +463,8 @@ export default defineComponent({ ...@@ -460,7 +463,8 @@ export default defineComponent({
} }
} }
.bottom { .bottom {
width: calc(100% - 32px); box-sizing: border-box;
width: 100%;
padding: 24px 16px; padding: 24px 16px;
border-radius: 8px; border-radius: 8px;
margin-top: 16px; margin-top: 16px;
......
...@@ -154,14 +154,7 @@ ...@@ -154,14 +154,7 @@
</template> </template>
<script> <script>
import { import { ref, defineComponent, onMounted, watch, computed } from "vue";
ref,
defineComponent,
onMounted,
watch,
computed,
nextTick,
} from "vue";
import { useStore } from "vuex"; import { useStore } from "vuex";
import mapContent from "@/components/mapContent.vue"; import mapContent from "@/components/mapContent.vue";
import AMapLoader from "@amap/amap-jsapi-loader"; import AMapLoader from "@amap/amap-jsapi-loader";
...@@ -320,17 +313,17 @@ export default defineComponent({ ...@@ -320,17 +313,17 @@ export default defineComponent({
} }
} }
); );
watch(isShowList, (newVal) => { // watch(isShowList, (newVal) => {
if (newVal) { // if (newVal) {
nextTick(() => { // nextTick(() => {
let listNode = document.querySelector(".list-box"); // let listNode = document.querySelector(".list-box");
listNode.setAttribute( // listNode.setAttribute(
"style", // "style",
`max-height: ${window.innerHeight * 0.8 - 116}px` // `max-height: ${window.innerHeight * 0.8 - 116}px`
); // );
}); // });
} // }
}); // });
onMounted(() => { onMounted(() => {
AMapLoader.load({ AMapLoader.load({
key: CONSTANT.MAP_KEY, key: CONSTANT.MAP_KEY,
...@@ -447,11 +440,13 @@ export default defineComponent({ ...@@ -447,11 +440,13 @@ export default defineComponent({
map: map, map: map,
offset: new window.AMap.Pixel(-26, -18), offset: new window.AMap.Pixel(-26, -18),
}); });
var carInfoWindowTpl = `<div class="car-info-window">`; var carInfoWindowTpl = `<div class="car-info-window"><div class="car-info-content">`;
carInfoWindowTpl += `<div class="main-info">`; carInfoWindowTpl += `<div class="main-info">`;
carInfoWindowTpl += `<h4 class="info-title"><div>${ carInfoWindowTpl += `<h4 class="info-title"><div>${
item.ownerName || "--" item.ownerName || "--"
}</div><div>${item.vin || "--"}</div></h4>`; }<i class="icon icon-device"></i></div><div>${
item.vin || "--"
}</div></h4>`;
carInfoWindowTpl += `<div class="info-list">`; carInfoWindowTpl += `<div class="info-list">`;
carInfoWindowTpl += `<p class="device-info"><i class="icon icon-device"></i><span class="label">${ carInfoWindowTpl += `<p class="device-info"><i class="icon icon-device"></i><span class="label">${
item.source == 1 ? "有线设备" : "无线设备" item.source == 1 ? "有线设备" : "无线设备"
...@@ -500,6 +495,7 @@ export default defineComponent({ ...@@ -500,6 +495,7 @@ export default defineComponent({
<button data-share>分享找车</button> <button data-share>分享找车</button>
</div> </div>
</div> </div>
</div>
</div>`; </div>`;
let infoDiv = document.createElement("div"); let infoDiv = document.createElement("div");
infoDiv.innerHTML = carInfoWindowTpl; infoDiv.innerHTML = carInfoWindowTpl;
...@@ -801,19 +797,19 @@ export default defineComponent({ ...@@ -801,19 +797,19 @@ export default defineComponent({
} }
.share-tip { .share-tip {
position: fixed; position: fixed;
box-sizing: border-box;
top: 0; top: 0;
z-index: 101; z-index: 101;
background: rgba(0, 0, 0, 0.6); background: rgba(0, 0, 0, 0.6);
font-size: 14px; font-size: 14px;
height: 28px; height: 28px;
line-height: 28px; line-height: 28px;
width: calc(100% - 16px); width: 100%;
color: #fff; color: #fff;
padding: 0 8px 0; padding: 0 8px 0;
} }
.search-box { .search-box {
width: 100%; width: 100%;
max-height: 80%;
z-index: 102; z-index: 102;
position: absolute; position: absolute;
top: 0; top: 0;
...@@ -822,7 +818,6 @@ export default defineComponent({ ...@@ -822,7 +818,6 @@ export default defineComponent({
box-shadow: 0px 5px 12px 0px rgba(0, 0, 0, 0.06); box-shadow: 0px 5px 12px 0px rgba(0, 0, 0, 0.06);
border-radius: 6px; border-radius: 6px;
height: 44px; height: 44px;
width: calc(100% - 24px);
margin: 12px 12px 0 12px; margin: 12px 12px 0 12px;
background: #fff; background: #fff;
.select-box { .select-box {
...@@ -856,7 +851,6 @@ export default defineComponent({ ...@@ -856,7 +851,6 @@ export default defineComponent({
} }
.search-content { .search-content {
width: 100%; width: 100%;
max-height: 100%;
border-radius: 12px; border-radius: 12px;
background: #fff; background: #fff;
margin-top: 8px; margin-top: 8px;
...@@ -866,8 +860,8 @@ export default defineComponent({ ...@@ -866,8 +860,8 @@ export default defineComponent({
border-radius: 12px; border-radius: 12px;
} }
.list-box { .list-box {
float: left;
width: 100%; width: 100%;
max-height: 65vh;
overflow-y: auto; overflow-y: auto;
background: #f5f6f7; background: #f5f6f7;
border-radius: 0 0 12px 12px; border-radius: 0 0 12px 12px;
...@@ -978,156 +972,164 @@ export default defineComponent({ ...@@ -978,156 +972,164 @@ export default defineComponent({
} }
} }
.car-info-window { .car-info-window {
width: calc(100% - 48px); width: 100%;
background-color: #fff; .car-info-content {
border-radius: 10px; margin-right: 48px;
border: 1px solid #ececec; background-color: #fff;
color: #111111; border-radius: 10px;
word-break: break-all; border: 1px solid #ececec;
user-select: text; color: #111111;
box-shadow: 0px 5px 12px 0px rgba(0, 0, 0, 0.12); word-break: break-all;
.main-info { user-select: text;
padding: 10px; box-shadow: 0px 5px 12px 0px rgba(0, 0, 0, 0.12);
} .main-info {
.info-title { padding: 10px;
font-weight: normal;
border-bottom: 1px solid #f5f6f7;
padding-bottom: 10px;
font-size: 14px;
color: #333;
div {
color: #111111;
font-weight: 600;
margin-bottom: 5px;
}
:last-child {
font-weight: 500;
} }
} .info-title {
.info-list { font-weight: normal;
position: relative; border-bottom: 1px solid #f5f6f7;
font-size: 12px; padding-bottom: 10px;
padding-top: 10px; font-size: 14px;
p { color: #333;
display: flex; div {
align-items: flex-start;
line-height: 100%;
margin: 8px 0;
i {
flex: 0 0 14px;
}
span {
color: #111111; color: #111111;
line-height: 16px; font-weight: 600;
} margin-bottom: 5px;
.label { .close-icon {
color: #6c737a; display: inline-block;
flex: 0 0 60px; width: 16px;
margin-left: 5px; height: 16px;
}
} }
a { :last-child {
display: flex; font-weight: 500;
justify-items: center;
align-items: center;
} }
.battery { }
margin-left: 8px; .info-list {
position: relative; position: relative;
height: 16px; font-size: 12px;
padding-top: 10px;
p {
display: flex; display: flex;
align-items: center; align-items: flex-start;
.all-fill { line-height: 100%;
display: inline-block; margin: 8px 0;
position: absolute; i {
top: 4px; flex: 0 0 14px;
left: 3px; }
width: 16px; span {
height: 8px; color: #111111;
background: #fff; line-height: 16px;
.fill { }
.label {
color: #6c737a;
flex: 0 0 60px;
margin-left: 5px;
}
a {
display: flex;
justify-items: center;
align-items: center;
}
.battery {
margin-left: 8px;
position: relative;
height: 16px;
display: flex;
align-items: center;
.all-fill {
display: inline-block;
position: absolute; position: absolute;
top: 0; top: 4px;
left: 0; left: 3px;
width: 16px;
height: 8px;
background: #fff;
.fill {
position: absolute;
top: 0;
left: 0;
display: inline-block;
height: 100%;
border-radius: 2px;
}
.fill.enough {
background: #00cd9e;
}
.fill.empty {
background: #ff7340;
}
}
.battery-text {
font-size: 20px;
transform: scale(0.5) translate(-50%);
margin-left: 1px;
display: inline-block; display: inline-block;
height: 100%;
border-radius: 2px;
} }
.fill.enough { .battery-text.empty {
background: #00cd9e; color: #ff7340;
} }
.fill.empty { .battery-text.enough {
background: #ff7340; color: #00cd9e;
} }
} }
.battery-text { }
font-size: 20px; .list-info {
transform: scale(0.5) translate(-50%); align-items: center;
margin-left: 1px; a {
display: inline-block; margin-right: 10px;
} }
.battery-text.empty { .radio {
color: #ff7340; width: 12px;
height: 12px;
border-radius: 50%;
margin-right: 5px;
border: 1px solid #c4c8cc;
} }
.battery-text.enough { .radio.active {
color: #00cd9e; width: 4px;
height: 4px;
border: 5px solid var(--base-color);
} }
} }
} }
.list-info { .cmd-list {
align-items: center; font-size: 0px;
a { border-top: 1px solid #f5f6f7;
margin-right: 10px; .cmd-list-top {
} border-bottom: 1px solid #f5f6f7;
.radio { padding: 14px 12px;
width: 12px; button {
height: 12px; font-size: 12px;
border-radius: 50%; display: inline-block;
margin-right: 5px; width: 25%;
border: 1px solid #c4c8cc; text-align: center;
} box-sizing: border-box;
.radio.active { border-right: 1px solid #f5f6f7;
width: 4px; }
height: 4px; :last-child {
border: 5px solid var(--base-color); border-right: none;
} }
} button.disabled {
} color: #6c737a;
.cmd-list { }
font-size: 0px;
border-top: 1px solid #f5f6f7;
.cmd-list-top {
border-bottom: 1px solid #f5f6f7;
padding: 14px 12px;
button {
font-size: 12px;
display: inline-block;
width: 25%;
text-align: center;
box-sizing: border-box;
border-right: 1px solid #f5f6f7;
}
:last-child {
border-right: none;
}
button.disabled {
color: #6c737a;
}
}
.cmd-list-bottom {
padding: 14px 12px;
button {
font-size: 12px;
display: inline-block;
width: 25%;
text-align: center;
box-sizing: border-box;
border-right: 1px solid #ececec;
}
:last-child {
border-right: none;
} }
button.disabled { .cmd-list-bottom {
color: #6c737a; padding: 14px 12px;
button {
font-size: 12px;
display: inline-block;
width: 25%;
text-align: center;
box-sizing: border-box;
border-right: 1px solid #ececec;
}
:last-child {
border-right: none;
}
button.disabled {
color: #6c737a;
}
} }
} }
} }
......
...@@ -247,7 +247,8 @@ export default { ...@@ -247,7 +247,8 @@ export default {
} }
} }
.list-content-monitor { .list-content-monitor {
width: calc(100% - 30px); box-sizing: border-box;
width: 100%;
padding: 5px 15px 0 15px; padding: 5px 15px 0 15px;
font-size: 14px; font-size: 14px;
.list-item { .list-item {
......
...@@ -509,7 +509,8 @@ export default defineComponent({ ...@@ -509,7 +509,8 @@ export default defineComponent({
background: #fff; background: #fff;
color: #999; color: #999;
overflow: hidden; overflow: hidden;
width: calc(100% - 40px); box-sizing: border-box;
width: 100%;
padding: 0 20px; padding: 0 20px;
.time-btn-list { .time-btn-list {
display: flex; display: flex;
...@@ -588,7 +589,8 @@ export default defineComponent({ ...@@ -588,7 +589,8 @@ export default defineComponent({
overflow: hidden; overflow: hidden;
.box { .box {
padding: 20px 40px; padding: 20px 40px;
width: calc(100% - 80px); box-sizing: border-box;
width: 100%;
overflow: hidden; overflow: hidden;
.speed-text { .speed-text {
width: 100%; width: 100%;
......
...@@ -380,7 +380,8 @@ export default defineComponent({ ...@@ -380,7 +380,8 @@ export default defineComponent({
background: #fff; background: #fff;
color: #999; color: #999;
display: flex; display: flex;
width: calc(100% - 16px); box-sizing: border-box;
width: 100%;
padding: 20px 8px; padding: 20px 8px;
overflow: hidden; overflow: hidden;
.time_btn { .time_btn {
...@@ -422,7 +423,8 @@ export default defineComponent({ ...@@ -422,7 +423,8 @@ export default defineComponent({
} }
} }
.list-content-resident { .list-content-resident {
width: calc(100% - 30px); box-sizing: border-box;
width: 100%;
padding-top: 5px; padding-top: 5px;
font-size: 14px; font-size: 14px;
.list-item { .list-item {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!