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 2a3d8618
authored
Jul 21, 2022
by
zhangxw
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改 调试ops是否成功发布
1 parent
cd9265ba
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
39 additions
and
6 deletions
src/components/mapContent.vue
src/views/index.vue
src/views/replay.vue
vue.config.js
src/components/mapContent.vue
View file @
2a3d861
<
template
>
<
template
>
<div
class=
"map-box"
>
<div
class=
"map-box"
>
<slot
name=
"mapBox"
></slot>
<slot
name=
"mapBox"
></slot>
<div
v-if=
"sharePage"
class=
"share-tip"
>
<p>
<van-icon
name=
"warning-o"
class=
"warning-icon"
/>
提示:此分享功能请在有效时间内使用,详情联系分享者
</p>
</div>
<div
v-show=
"isUploaded"
>
<div
v-show=
"isUploaded"
>
<a
class=
"map-cmd-icon location"
@
click=
"getLocation"
>
<a
class=
"map-cmd-icon location"
@
click=
"getLocation"
>
<span
class=
"icon icon-location"
></span>
<span
class=
"icon icon-location"
></span>
...
@@ -23,8 +29,10 @@ export default {
...
@@ -23,8 +29,10 @@ export default {
let
checkLoadedTimeoutId
=
""
;
let
checkLoadedTimeoutId
=
""
;
const
satelActive
=
ref
(
null
);
const
satelActive
=
ref
(
null
);
const
roadActive
=
ref
(
null
);
const
roadActive
=
ref
(
null
);
const
sharePage
=
ref
(
true
);
onMounted
(()
=>
{});
onMounted
(()
=>
{});
const
initMap
=
(
id
)
=>
{
const
initMap
=
(
id
)
=>
{
// sharePage.value = localStorage.getItem("sharePage");
let
check
=
()
=>
{
let
check
=
()
=>
{
checkLoadedTimeoutId
&&
window
.
clearTimeout
(
checkLoadedTimeoutId
);
checkLoadedTimeoutId
&&
window
.
clearTimeout
(
checkLoadedTimeoutId
);
let
AMap
=
window
.
AMap
;
let
AMap
=
window
.
AMap
;
...
@@ -85,6 +93,7 @@ export default {
...
@@ -85,6 +93,7 @@ export default {
roadActive
,
roadActive
,
refresh
,
refresh
,
isUploaded
,
isUploaded
,
sharePage
,
};
};
},
},
};
};
...
@@ -94,6 +103,23 @@ export default {
...
@@ -94,6 +103,23 @@ export default {
.map-box
{
.map-box
{
height
:
100%
;
height
:
100%
;
}
}
.share-tip
{
position
:
fixed
;
top
:
100px
;
z-index
:
101
;
background
:
rgba
(
0
,
0
,
0
,
0.5
);
font-size
:
12px
;
left
:
50%
;
margin-left
:
-140px
;
width
:
260px
;
padding
:
5px
10px
;
text-align
:
center
;
color
:
#fff
;
border-radius
:
5px
;
.warning-icon
{
color
:
var
(
--van-warning-color
);
}
}
.map-cmd-icon
{
.map-cmd-icon
{
width
:
40px
;
width
:
40px
;
height
:
40px
;
height
:
40px
;
...
...
src/views/index.vue
View file @
2a3d861
...
@@ -127,6 +127,9 @@ export default defineComponent({
...
@@ -127,6 +127,9 @@ export default defineComponent({
if
(
route
.
query
.
token
)
{
if
(
route
.
query
.
token
)
{
localStorage
.
setItem
(
"token"
,
route
.
query
.
token
);
localStorage
.
setItem
(
"token"
,
route
.
query
.
token
);
}
}
if
(
route
.
query
.
sharePage
)
{
localStorage
.
setItem
(
"sharePage"
,
true
);
}
carItem
.
value
=
{
carItem
.
value
=
{
sns
:
routeQuery
.
value
.
sn
,
sns
:
routeQuery
.
value
.
sn
,
ownerName
:
ownerName
:
...
@@ -143,6 +146,7 @@ export default defineComponent({
...
@@ -143,6 +146,7 @@ export default defineComponent({
if
(
route
.
query
.
token
)
{
if
(
route
.
query
.
token
)
{
localStorage
.
setItem
(
"token"
,
route
.
query
.
token
);
localStorage
.
setItem
(
"token"
,
route
.
query
.
token
);
}
}
localStorage
.
removeItem
(
"sharePage"
);
AMapLoader
.
load
({
AMapLoader
.
load
({
key
:
CONSTANT
.
MAP_KEY
,
key
:
CONSTANT
.
MAP_KEY
,
version
:
"1.4.8"
,
version
:
"1.4.8"
,
...
...
src/views/replay.vue
View file @
2a3d861
...
@@ -425,7 +425,15 @@ export default defineComponent({
...
@@ -425,7 +425,15 @@ export default defineComponent({
},
},
});
});
</
script
>
</
script
>
<
style
lang=
"scss"
>
.vue-slider-process
{
background
:
var
(
--base-color
);
}
.vue-slider-rail
{
background
:
#e4e7eb
;
}
</
style
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.tab
{
.tab
{
.tabbar
{
.tabbar
{
...
@@ -517,11 +525,6 @@ export default defineComponent({
...
@@ -517,11 +525,6 @@ export default defineComponent({
border-radius
:
6px
;
border-radius
:
6px
;
background-color
:
#fff
;
background-color
:
#fff
;
border
:
2px
solid
#e4e7eb
;
border
:
2px
solid
#e4e7eb
;
//
width
:
100%
;
//
height
:
100%
;
//
border-radius
:
50%
;
//
box-shadow
:
0
0
0
3px
#e4e7eb
;
//
background-color
:
#fff
;
}
}
.custom-step.active
{
.custom-step.active
{
background-color
:
#fff
;
background-color
:
#fff
;
...
...
vue.config.js
View file @
2a3d861
...
@@ -11,7 +11,7 @@ function resolve(dir) {
...
@@ -11,7 +11,7 @@ function resolve(dir) {
return
path
.
join
(
__dirname
,
"."
,
dir
);
return
path
.
join
(
__dirname
,
"."
,
dir
);
}
}
module
.
exports
=
defineConfig
({
module
.
exports
=
defineConfig
({
publicPath
:
process
.
env
.
NODE_ENV
===
"production"
?
"./"
:
"
/"
,
publicPath
:
".
/"
,
transpileDependencies
:
true
,
transpileDependencies
:
true
,
devServer
:
{
devServer
:
{
port
:
9527
,
port
:
9527
,
...
...
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