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 66003826
authored
Jul 27, 2022
by
zhangxw
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
防连点
1 parent
73a02610
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
src/views/index.vue
src/views/index.vue
View file @
6600382
...
@@ -188,7 +188,7 @@ export default defineComponent({
...
@@ -188,7 +188,7 @@ export default defineComponent({
const
ISLOADING
=
computed
(()
=>
store
.
state
.
LOADING
);
const
ISLOADING
=
computed
(()
=>
store
.
state
.
LOADING
);
const
showOverlay
=
ref
(
false
);
const
showOverlay
=
ref
(
false
);
const
isSharePage
=
ref
(
false
);
const
isSharePage
=
ref
(
false
);
let
clickFlag
=
true
;
const
clickFlag
=
ref
(
true
)
;
let
map
=
undefined
;
let
map
=
undefined
;
const
refreshCb
=
()
=>
{
const
refreshCb
=
()
=>
{
if
(
map
&&
carItem
.
value
)
{
if
(
map
&&
carItem
.
value
)
{
...
@@ -199,7 +199,6 @@ export default defineComponent({
...
@@ -199,7 +199,6 @@ export default defineComponent({
}
}
};
};
watch
(
mapIsUploaded
,
(
newVal
)
=>
{
watch
(
mapIsUploaded
,
(
newVal
)
=>
{
console
.
log
(
"123"
);
localStorage
.
removeItem
(
"token"
);
localStorage
.
removeItem
(
"token"
);
localStorage
.
removeItem
(
"sharePage"
);
localStorage
.
removeItem
(
"sharePage"
);
if
(
route
.
query
.
token
)
{
if
(
route
.
query
.
token
)
{
...
@@ -560,7 +559,7 @@ export default defineComponent({
...
@@ -560,7 +559,7 @@ export default defineComponent({
let
lat
=
item
[
item
.
locationType
].
elat
;
let
lat
=
item
[
item
.
locationType
].
elat
;
let
address
=
item
[
item
.
locationType
].
transferAddress
;
let
address
=
item
[
item
.
locationType
].
transferAddress
;
check
(()
=>
{
check
(()
=>
{
clickFlag
=
false
;
clickFlag
.
value
=
false
;
wx
.
miniProgram
.
navigateTo
({
wx
.
miniProgram
.
navigateTo
({
url
:
`../../mapPackage/pages/tracking?lat=
${
lat
}
&lng=
${
lng
}
&address=
${
address
}
`
,
url
:
`../../mapPackage/pages/tracking?lat=
${
lat
}
&lng=
${
lng
}
&address=
${
address
}
`
,
});
});
...
@@ -571,7 +570,7 @@ export default defineComponent({
...
@@ -571,7 +570,7 @@ export default defineComponent({
carReplayBtn
&&
carReplayBtn
&&
(
carReplayBtn
.
onclick
=
()
=>
{
(
carReplayBtn
.
onclick
=
()
=>
{
check
(()
=>
{
check
(()
=>
{
clickFlag
=
false
;
clickFlag
.
value
=
false
;
wx
.
miniProgram
.
navigateTo
({
wx
.
miniProgram
.
navigateTo
({
url
:
`../../mapPackage/pages/findCar?sn=
${
item
.
sn
}
&tabItem=replay&source=
${
item
.
source
}
&locationType=
${
item
.
locationType
}
`
,
url
:
`../../mapPackage/pages/findCar?sn=
${
item
.
sn
}
&tabItem=replay&source=
${
item
.
source
}
&locationType=
${
item
.
locationType
}
`
,
});
});
...
@@ -582,7 +581,7 @@ export default defineComponent({
...
@@ -582,7 +581,7 @@ export default defineComponent({
carResidentBtn
&&
carResidentBtn
&&
(
carResidentBtn
.
onclick
=
()
=>
{
(
carResidentBtn
.
onclick
=
()
=>
{
check
(()
=>
{
check
(()
=>
{
clickFlag
=
false
;
clickFlag
.
value
=
false
;
wx
.
miniProgram
.
navigateTo
({
wx
.
miniProgram
.
navigateTo
({
url
:
`../../mapPackage/pages/findCar?sn=
${
item
.
sn
}
&tabItem=resident&source=
${
item
.
source
}
&locationType=
${
item
.
locationType
}
`
,
url
:
`../../mapPackage/pages/findCar?sn=
${
item
.
sn
}
&tabItem=resident&source=
${
item
.
source
}
&locationType=
${
item
.
locationType
}
`
,
});
});
...
@@ -592,7 +591,7 @@ export default defineComponent({
...
@@ -592,7 +591,7 @@ export default defineComponent({
carMonitorBtn
&&
carMonitorBtn
&&
(
carMonitorBtn
.
onclick
=
()
=>
{
(
carMonitorBtn
.
onclick
=
()
=>
{
check
(()
=>
{
check
(()
=>
{
clickFlag
=
false
;
clickFlag
.
value
=
false
;
wx
.
miniProgram
.
navigateTo
({
wx
.
miniProgram
.
navigateTo
({
url
:
`../../mapPackage/pages/findCar?sn=
${
item
.
sn
}
&tabItem=monitor&source=
${
item
.
source
}
&locationType=
${
item
.
locationType
}
`
,
url
:
`../../mapPackage/pages/findCar?sn=
${
item
.
sn
}
&tabItem=monitor&source=
${
item
.
source
}
&locationType=
${
item
.
locationType
}
`
,
});
});
...
@@ -606,7 +605,7 @@ export default defineComponent({
...
@@ -606,7 +605,7 @@ export default defineComponent({
return
;
return
;
}
else
{
}
else
{
check
(()
=>
{
check
(()
=>
{
clickFlag
=
false
;
clickFlag
.
value
=
false
;
wx
.
miniProgram
.
navigateTo
({
wx
.
miniProgram
.
navigateTo
({
url
:
`../../mapPackage/pages/findCar?sn=
${
item
.
sn
}
&tabItem=freq&source=
${
item
.
source
}
&locationType=
${
item
.
locationType
}
`
,
url
:
`../../mapPackage/pages/findCar?sn=
${
item
.
sn
}
&tabItem=freq&source=
${
item
.
source
}
&locationType=
${
item
.
locationType
}
`
,
});
});
...
@@ -620,7 +619,7 @@ export default defineComponent({
...
@@ -620,7 +619,7 @@ export default defineComponent({
return
;
return
;
}
else
{
}
else
{
check
(()
=>
{
check
(()
=>
{
clickFlag
=
false
;
clickFlag
.
value
=
false
;
wx
.
miniProgram
.
navigateTo
({
wx
.
miniProgram
.
navigateTo
({
url
:
`../../mapPackage/pages/findCar?sn=
${
item
.
sn
}
&tabItem=fence&source=
${
item
.
source
}
&locationType=
${
item
.
locationType
}
`
,
url
:
`../../mapPackage/pages/findCar?sn=
${
item
.
sn
}
&tabItem=fence&source=
${
item
.
source
}
&locationType=
${
item
.
locationType
}
`
,
});
});
...
@@ -651,9 +650,9 @@ export default defineComponent({
...
@@ -651,9 +650,9 @@ export default defineComponent({
Toast
(
"该分享已失效"
);
Toast
(
"该分享已失效"
);
return
;
return
;
}
}
if
(
!
clickFlag
)
return
;
if
(
!
clickFlag
.
value
)
return
;
setTimeout
(()
=>
{
setTimeout
(()
=>
{
clickFlag
=
true
;
clickFlag
.
value
=
true
;
},
1000
);
},
1000
);
cb
();
cb
();
};
};
...
@@ -720,6 +719,7 @@ export default defineComponent({
...
@@ -720,6 +719,7 @@ export default defineComponent({
showOverlay
,
showOverlay
,
initViewport
,
initViewport
,
isSharePage
,
isSharePage
,
clickFlag
,
};
};
},
},
});
});
...
...
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