Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
gl_tape
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
3
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit eb673129
authored
Sep 13, 2024
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit 埋点
1 parent
e9054968
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
2 deletions
mixin/receptionTrackMixin.js
pages/boutique/components/Reception.vue
mixin/receptionTrackMixin.js
View file @
eb67312
...
@@ -28,12 +28,17 @@ export default {
...
@@ -28,12 +28,17 @@ export default {
}
}
},
},
methods
:
{
methods
:
{
receptionTrackLeave
()
{
receptionTrackLeave
(
keyName
=
'id'
)
{
if
(
this
.
type
==
'preview'
)
return
if
(
this
.
type
==
'preview'
)
return
let
key
=
this
.
id
,
let
key
=
this
[
keyName
]
,
value
=
this
.
receptionTrack
[
key
]
value
=
this
.
receptionTrack
[
key
]
value
.
stayDuration
+=
Number
(
Date
.
now
()
-
value
.
entryTime
)
value
.
stayDuration
+=
Number
(
Date
.
now
()
-
value
.
entryTime
)
this
.
$store
.
dispatch
(
"setReceptionTrack"
,
{
key
,
value
})
this
.
$store
.
dispatch
(
"setReceptionTrack"
,
{
key
,
value
})
if
(
keyName
==
'id'
&&
key
==
1
)
{
let
[
receptionRef
]
=
this
.
$refs
.
media1
receptionRef
.
previewLeave
(
receptionRef
.
currentItem
)
}
}
}
}
}
}
}
\ No newline at end of file
\ No newline at end of file
pages/boutique/components/Reception.vue
View file @
eb67312
...
@@ -135,6 +135,14 @@ export default {
...
@@ -135,6 +135,14 @@ export default {
handler
(
newval
)
{
handler
(
newval
)
{
this
.
currentItem
=
null
this
.
currentItem
=
null
}
}
},
show
:
{
immediate
:
true
,
handler
(
newval
)
{
if
(
newval
)
{
if
(
newval
)
this
.
changePreView
(
this
.
currentItem
)
}
}
}
}
},
},
...
...
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