Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
micro-customization-system
/
e-shield-h5
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit f546197f
authored
Aug 11, 2022
by
zhangxw
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
样式修改
1 parent
3805e282
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
183 additions
and
170 deletions
src/components/popup.vue
src/views/fence.vue
src/views/freq.vue
src/views/index.vue
src/views/monitor.vue
src/views/replay.vue
src/views/resident.vue
src/components/popup.vue
View file @
f546197
...
...
@@ -74,8 +74,9 @@ export default defineComponent({
padding-bottom
:
40px
;
.btn-class
{
padding
:
15px
;
box-sizing
:
border-box
;
border-bottom
:
1px
solid
#f0f2f5
;
width
:
calc
(
100%
-
40px
)
;
width
:
100%
;
display
:
flex
;
justify-content
:
space-between
;
font-size
:
14px
;
...
...
src/views/fence.vue
View file @
f546197
...
...
@@ -364,7 +364,8 @@ export default defineComponent({
}
}
.setting-content
{
width
:
calc
(
100%
-
32px
);
box-sizing
:
border-box
;
width
:
100%
;
height
:
100%
;
padding
:
10px
16px
;
font-size
:
14px
;
...
...
src/views/freq.vue
View file @
f546197
...
...
@@ -408,13 +408,15 @@ export default defineComponent({
<
style
lang=
"scss"
scoped
>
.freq-page
{
position
:
fixed
;
width
:
calc
(
100%
-
20px
);
box-sizing
:
border-box
;
width
:
100%
;
padding
:
16px
10px
;
height
:
100%
;
background
:
#f5f6f7
;
color
:
#111
;
.top
{
width
:
calc
(
100%
-
32px
);
box-sizing
:
border-box
;
width
:
100%
;
height
:
52px
;
border-radius
:
8px
;
padding
:
0
16px
;
...
...
@@ -431,7 +433,8 @@ export default defineComponent({
margin
:
16px
0
8px
24px
;
}
.middle
{
width
:
calc
(
100%
-
32px
);
box-sizing
:
border-box
;
width
:
100%
;
height
:
52px
;
border-radius
:
8px
;
padding
:
0
16px
;
...
...
@@ -460,7 +463,8 @@ export default defineComponent({
}
}
.bottom
{
width
:
calc
(
100%
-
32px
);
box-sizing
:
border-box
;
width
:
100%
;
padding
:
24px
16px
;
border-radius
:
8px
;
margin-top
:
16px
;
...
...
src/views/index.vue
View file @
f546197
...
...
@@ -154,14 +154,7 @@
</template>
<
script
>
import
{
ref
,
defineComponent
,
onMounted
,
watch
,
computed
,
nextTick
,
}
from
"vue"
;
import
{
ref
,
defineComponent
,
onMounted
,
watch
,
computed
}
from
"vue"
;
import
{
useStore
}
from
"vuex"
;
import
mapContent
from
"@/components/mapContent.vue"
;
import
AMapLoader
from
"@amap/amap-jsapi-loader"
;
...
...
@@ -320,17 +313,17 @@ export default defineComponent({
}
}
);
watch
(
isShowList
,
(
newVal
)
=>
{
if
(
newVal
)
{
nextTick
(()
=>
{
let
listNode
=
document
.
querySelector
(
".list-box"
);
listNode
.
setAttribute
(
"style"
,
`max-height:
${
window
.
innerHeight
*
0.8
-
116
}
px`
);
});
}
});
//
watch(isShowList, (newVal) => {
//
if (newVal) {
//
nextTick(() => {
//
let listNode = document.querySelector(".list-box");
//
listNode.setAttribute(
//
"style",
//
`max-height: ${window.innerHeight * 0.8 - 116}px`
//
);
//
});
//
}
//
});
onMounted
(()
=>
{
AMapLoader
.
load
({
key
:
CONSTANT
.
MAP_KEY
,
...
...
@@ -447,11 +440,13 @@ export default defineComponent({
map
:
map
,
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
+=
`<h4 class="info-title"><div>
${
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 += `
<
p
class
=
"device-info"
><
i
class
=
"icon icon-device"
><
/i><span class="label">$
{
item
.
source
==
1
?
"有线设备"
:
"无线设备"
...
...
@@ -500,6 +495,7 @@ export default defineComponent({
<button data-share>分享找车</button>
</div>
</div>
</div>
</div>`
;
let
infoDiv
=
document
.
createElement
(
"div"
);
infoDiv
.
innerHTML
=
carInfoWindowTpl
;
...
...
@@ -801,19 +797,19 @@ export default defineComponent({
}
.share-tip
{
position
:
fixed
;
box-sizing
:
border-box
;
top
:
0
;
z-index
:
101
;
background
:
rgba
(
0
,
0
,
0
,
0.6
);
font-size
:
14px
;
height
:
28px
;
line-height
:
28px
;
width
:
calc
(
100%
-
16px
)
;
width
:
100%
;
color
:
#fff
;
padding
:
0
8px
0
;
}
.search-box
{
width
:
100%
;
max-height
:
80%
;
z-index
:
102
;
position
:
absolute
;
top
:
0
;
...
...
@@ -822,7 +818,6 @@ export default defineComponent({
box-shadow
:
0px
5px
12px
0px
rgba
(
0
,
0
,
0
,
0.06
);
border-radius
:
6px
;
height
:
44px
;
width
:
calc
(
100%
-
24px
);
margin
:
12px
12px
0
12px
;
background
:
#fff
;
.select-box
{
...
...
@@ -856,7 +851,6 @@ export default defineComponent({
}
.search-content
{
width
:
100%
;
max-height
:
100%
;
border-radius
:
12px
;
background
:
#fff
;
margin-top
:
8px
;
...
...
@@ -866,8 +860,8 @@ export default defineComponent({
border-radius
:
12px
;
}
.list-box
{
float
:
left
;
width
:
100%
;
max-height
:
65vh
;
overflow-y
:
auto
;
background
:
#f5f6f7
;
border-radius
:
0
0
12px
12px
;
...
...
@@ -978,156 +972,164 @@ export default defineComponent({
}
}
.car-info-window
{
width
:
calc
(
100%
-
48px
);
background-color
:
#fff
;
border-radius
:
10px
;
border
:
1px
solid
#ececec
;
color
:
#111111
;
word-break
:
break-all
;
user-select
:
text
;
box-shadow
:
0px
5px
12px
0px
rgba
(
0
,
0
,
0
,
0.12
);
.main-info
{
padding
:
10px
;
}
.info-title
{
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
;
width
:
100%
;
.car-info-content
{
margin-right
:
48px
;
background-color
:
#fff
;
border-radius
:
10px
;
border
:
1px
solid
#ececec
;
color
:
#111111
;
word-break
:
break-all
;
user-select
:
text
;
box-shadow
:
0px
5px
12px
0px
rgba
(
0
,
0
,
0
,
0.12
);
.main-info
{
padding
:
10px
;
}
}
.info-list
{
position
:
relative
;
font-size
:
12px
;
padding-top
:
10px
;
p
{
display
:
flex
;
align-items
:
flex-start
;
line-height
:
100%
;
margin
:
8px
0
;
i
{
flex
:
0
0
14px
;
}
span
{
.info-title
{
font-weight
:
normal
;
border-bottom
:
1px
solid
#f5f6f7
;
padding-bottom
:
10px
;
font-size
:
14px
;
color
:
#333
;
div
{
color
:
#111111
;
line-height
:
16px
;
}
.label
{
color
:
#6c737a
;
flex
:
0
0
60px
;
margin-left
:
5px
;
font-weight
:
600
;
margin-bottom
:
5px
;
.close-icon
{
display
:
inline-block
;
width
:
16px
;
height
:
16px
;
}
}
a
{
display
:
flex
;
justify-items
:
center
;
align-items
:
center
;
:last-child
{
font-weight
:
500
;
}
.battery
{
margin-left
:
8px
;
position
:
relative
;
height
:
16px
;
}
.info-list
{
position
:
relative
;
font-size
:
12px
;
padding-top
:
10px
;
p
{
display
:
flex
;
align-items
:
center
;
.all-fill
{
display
:
inline-block
;
position
:
absolute
;
top
:
4px
;
left
:
3px
;
width
:
16px
;
height
:
8px
;
background
:
#fff
;
.fill
{
align-items
:
flex-start
;
line-height
:
100%
;
margin
:
8px
0
;
i
{
flex
:
0
0
14px
;
}
span
{
color
:
#111111
;
line-height
:
16px
;
}
.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
;
top
:
0
;
left
:
0
;
top
:
4px
;
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
;
height
:
100%
;
border-radius
:
2px
;
}
.
fill.enough
{
background
:
#00cd9e
;
.
battery-text.empty
{
color
:
#ff7340
;
}
.
fill.empty
{
background
:
#ff7340
;
.
battery-text.enough
{
color
:
#00cd9e
;
}
}
.battery-text
{
font-size
:
20px
;
transform
:
scale
(
0.5
)
translate
(
-50%
)
;
margin-left
:
1px
;
display
:
inline-block
;
}
.list-info
{
align-items
:
center
;
a
{
margin-right
:
10px
;
}
.battery-text.empty
{
color
:
#ff7340
;
.radio
{
width
:
12px
;
height
:
12px
;
border-radius
:
50%
;
margin-right
:
5px
;
border
:
1px
solid
#c4c8cc
;
}
.battery-text.enough
{
color
:
#00cd9e
;
.radio.active
{
width
:
4px
;
height
:
4px
;
border
:
5px
solid
var
(
--base-color
);
}
}
}
.list-info
{
align-items
:
center
;
a
{
margin-right
:
10px
;
}
.radio
{
width
:
12px
;
height
:
12px
;
border-radius
:
50%
;
margin-right
:
5px
;
border
:
1px
solid
#c4c8cc
;
}
.radio.active
{
width
:
4px
;
height
:
4px
;
border
:
5px
solid
var
(
--base-color
);
}
}
}
.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
;
.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
;
}
}
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
{
color
:
#6c737a
;
}
}
}
}
...
...
src/views/monitor.vue
View file @
f546197
...
...
@@ -247,7 +247,8 @@ export default {
}
}
.list-content-monitor
{
width
:
calc
(
100%
-
30px
);
box-sizing
:
border-box
;
width
:
100%
;
padding
:
5px
15px
0
15px
;
font-size
:
14px
;
.list-item
{
...
...
src/views/replay.vue
View file @
f546197
...
...
@@ -509,7 +509,8 @@ export default defineComponent({
background
:
#fff
;
color
:
#999
;
overflow
:
hidden
;
width
:
calc
(
100%
-
40px
);
box-sizing
:
border-box
;
width
:
100%
;
padding
:
0
20px
;
.time-btn-list
{
display
:
flex
;
...
...
@@ -588,7 +589,8 @@ export default defineComponent({
overflow
:
hidden
;
.box
{
padding
:
20px
40px
;
width
:
calc
(
100%
-
80px
);
box-sizing
:
border-box
;
width
:
100%
;
overflow
:
hidden
;
.speed-text
{
width
:
100%
;
...
...
src/views/resident.vue
View file @
f546197
...
...
@@ -380,7 +380,8 @@ export default defineComponent({
background
:
#fff
;
color
:
#999
;
display
:
flex
;
width
:
calc
(
100%
-
16px
);
box-sizing
:
border-box
;
width
:
100%
;
padding
:
20px
8px
;
overflow
:
hidden
;
.time_btn
{
...
...
@@ -422,7 +423,8 @@ export default defineComponent({
}
}
.list-content-resident
{
width
:
calc
(
100%
-
30px
);
box-sizing
:
border-box
;
width
:
100%
;
padding-top
:
5px
;
font-size
:
14px
;
.list-item
{
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment