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 63ce2e59
authored
Jul 20, 2022
by
zhangxw
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改
1 parent
2bdfd156
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
13 additions
and
117 deletions
package-lock.json
package.json
src/assets/css/slider.css
src/components/popup.vue
src/utils/vant.config.js
src/views/fence.vue
src/views/index.vue
src/views/replay.vue
src/views/resident.vue
package-lock.json
View file @
63ce2e5
This diff is collapsed.
Click to expand it.
package.json
View file @
63ce2e5
...
...
@@ -15,7 +15,6 @@
"babel-plugin-import"
:
"^1.13.5"
,
"clipboard"
:
"^2.0.11"
,
"core-js"
:
"^3.8.3"
,
"element-plus"
:
"^2.2.9"
,
"moment"
:
"^2.29.1"
,
"svg-sprite-loader"
:
"^6.0.11"
,
"vant"
:
"^3.5.2"
,
...
...
src/assets/css/slider.css
deleted
100644 → 0
View file @
2bdfd15
.el-slider
{
width
:
100%
;
height
:
32px
;
display
:
flex
;
align-items
:
center
;
}
.el-slider__runway
{
flex
:
1
;
height
:
2px
;
background-color
:
#e4e7eb
;
border-radius
:
2px
;
position
:
relative
;
cursor
:
pointer
;
}
.el-slider__input
{
flex-shrink
:
0
;
width
:
130px
;
}
.el-slider__bar
{
height
:
2px
;
background-color
:
var
(
--base-color
);
border-top-left-radius
:
1px
;
border-bottom-left-radius
:
1px
;
position
:
absolute
;
}
.el-slider__button-wrapper
{
height
:
16px
;
width
:
16px
;
position
:
absolute
;
z-index
:
1
;
top
:
-9px
;
transform
:
translateX
(
-50%
);
background-color
:
transparent
;
text-align
:
center
;
-webkit-user-select
:
none
;
user-select
:
none
;
line-height
:
normal
;
outline
:
0
;
}
.el-slider__button-wrapper
::after
{
display
:
inline-block
;
content
:
""
;
height
:
100%
;
vertical-align
:
middle
;
}
.el-slider__button-wrapper.hover
,
.el-slider__button-wrapper
:hover
{
cursor
:
grab
;
}
.el-slider__button-wrapper.dragging
{
cursor
:
grabbing
;
}
.el-slider__button
{
display
:
inline-block
;
width
:
16px
;
height
:
16px
;
vertical-align
:
middle
;
border
:
none
;
box-shadow
:
0px
2px
8px
0px
rgba
(
135
,
143
,
153
,
0.5000
);
background-color
:
#fff
;
border-radius
:
50%
;
box-sizing
:
border-box
;
transition
:
.2s
;
-webkit-user-select
:
none
;
user-select
:
none
;
}
.el-slider__button.dragging
,
.el-slider__button.hover
,
.el-slider__button
:hover
{
transform
:
scale
(
1.2
);
}
.el-slider__button.hover
,
.el-slider__button
:hover
{
cursor
:
grab
;
}
.el-slider__button.dragging
{
cursor
:
grabbing
;
}
.el-slider__stop
{
position
:
absolute
;
top
:
-4px
;
height
:
6px
;
width
:
6px
;
border-radius
:
6px
;
background-color
:
#fff
;
border
:
2px
solid
#e4e7eb
;
}
.el-slider__marks
{
top
:
0
;
left
:
12px
;
width
:
18px
;
height
:
100%
;
}
.el-slider__marks-text
{
position
:
absolute
;
transform
:
translateX
(
-50%
);
font-size
:
14px
;
color
:
#111
;
margin-top
:
15px
;
}
.el-slider--large
{
height
:
40px
;
}
.el-slider--small
{
height
:
24px
;
}
\ No newline at end of file
src/components/popup.vue
View file @
63ce2e5
<
template
>
<van-popup
v-model:
show=
"props.showPopup"
:model-
show=
"props.showPopup"
round
@
close=
"close"
:close-on-click-overlay=
"true"
...
...
src/utils/vant.config.js
View file @
63ce2e5
...
...
@@ -13,6 +13,7 @@ import {
Slider
,
Field
,
Switch
,
Cell
,
}
from
"vant"
;
export
function
vant
(
app
)
{
...
...
@@ -30,4 +31,5 @@ export function vant(app) {
app
.
use
(
Switch
);
app
.
use
(
Tab
);
app
.
use
(
Tabs
);
app
.
use
(
Cell
);
}
src/views/fence.vue
View file @
63ce2e5
...
...
@@ -67,6 +67,7 @@
<
script
>
import
{
defineComponent
,
onMounted
,
ref
}
from
"vue"
;
import
mapContent
from
"@/components/mapContent.vue"
;
import
popup
from
"@/components/popup.vue"
;
import
AMapLoader
from
"@amap/amap-jsapi-loader"
;
import
{
CONSTANT
}
from
"../constant"
;
import
{
Toast
,
Dialog
}
from
"vant"
;
...
...
@@ -78,6 +79,7 @@ export default defineComponent({
name
:
"FencePage"
,
components
:
{
mapContent
,
popup
,
},
setup
()
{
const
mapContentRefs
=
ref
(
null
);
...
...
src/views/index.vue
View file @
63ce2e5
...
...
@@ -423,10 +423,12 @@ export default defineComponent({
check
(()
=>
{
router
.
push
({
name
:
"info"
,
sn
:
item
.
sn
,
tabItem
:
"monitor"
,
source
:
item
.
monitor
,
locationType
:
item
.
locationType
,
query
:
{
sn
:
item
.
sn
,
tabItem
:
"monitor"
,
source
:
item
.
source
,
locationType
:
item
.
locationType
,
},
});
wx
.
miniProgram
.
navigateTo
({
url
:
`../../mapPackage/pages/findCar?sn=
${
item
.
sn
}
&tabItem=monitor&source=
${
item
.
source
}
&locationType=
${
item
.
locationType
}
`
,
...
...
src/views/replay.vue
View file @
63ce2e5
...
...
@@ -105,14 +105,12 @@ import "vant/es/dialog/style";
import
{
GET_REPLAY_DATA
}
from
"@/api/index"
;
import
carPng
from
"@/assets/images/car.png"
;
import
{
useRoute
}
from
"vue-router"
;
// import { ElSlider } from "element-plus";
import
VueSlider
from
"vue-slider-component"
;
import
"vue-slider-component/theme/default.css"
;
export
default
defineComponent
({
name
:
"ReplayPage"
,
components
:
{
mapContent
,
// ["el-slider"]: ElSlider,
[
"vue-slider"
]:
VueSlider
,
popup
,
},
...
...
@@ -580,6 +578,3 @@ export default defineComponent({
}
}
</
style
>
<
style
scoped
>
@import
"@/assets/css/slider.css"
;
</
style
>
src/views/resident.vue
View file @
63ce2e5
...
...
@@ -85,6 +85,7 @@
<
script
>
import
{
defineComponent
,
nextTick
,
onMounted
,
ref
,
watch
}
from
"vue"
;
import
mapContent
from
"@/components/mapContent.vue"
;
import
popup
from
"@/components/popup.vue"
;
import
AMapLoader
from
"@amap/amap-jsapi-loader"
;
import
{
CONSTANT
}
from
"../constant"
;
import
moment
from
"@/utils/moment"
;
...
...
@@ -99,6 +100,7 @@ export default defineComponent({
name
:
"ResidentPage"
,
components
:
{
mapContent
,
popup
,
},
setup
()
{
const
route
=
useRoute
();
...
...
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