Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation
This project
Loading...
Sign in
蒋秀川
/
miniProject
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 e032f165
authored
May 30, 2025
by
Tianqing Liu
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat: 增加底部按钮区,截图功能
1 parent
3c7d3bd0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
5 deletions
h5/src/views/video/controller.vue
h5/src/views/video/index.vue
h5/src/views/video/controller.vue
View file @
e032f16
...
...
@@ -9,11 +9,14 @@
</
template
>
<
script
setup
>
const
emit
=
defineEmits
([
'screenshot'
])
function
onClickIcon
()
{
console
.
log
(
'onClickIcon'
)
}
function
onClickButton
()
{
console
.
log
(
'onClickButton'
)
emit
(
'screenshot'
)
}
</
script
>
...
...
h5/src/views/video/index.vue
View file @
e032f16
...
...
@@ -286,11 +286,11 @@
</div>
<!--底部按钮区-->
<VideoController
/>
<VideoController
@
screenshot=
"handleScreenshot"
/>
</div>
</template>
<
script
setup
>
import
{
re
active
,
re
f
,
onMounted
,
getCurrentInstance
}
from
"vue"
;
import
{
ref
,
onMounted
,
getCurrentInstance
}
from
"vue"
;
import
{
Toast
}
from
"vant"
;
import
livePlayer
from
"@/components/extension/index.vue"
;
import
VideoController
from
'./controller.vue'
...
...
@@ -303,6 +303,10 @@ if (process.env.NODE_ENV !== "production") {
import
parse
from
"url-param-parser"
;
// let url = 'https://store.keliuyun.com/video/?userId=8840&atoken=8eaf1373-654b-4cf2-a3c7-f90d42cba574&type=undefined&id=632&name=会议室门口&mallId=9217&mallName=河南分公司&bookmark=false&channelNo=4&deviceSerial=F16423875&gateUnid=cf21f4a8-65c6-11ee-837e-00163e143ecd&ptzEnable=0&aiChannelId=&mallOrgName=办公室&accountId=337&terminalType=devtools&newLevel=' // 萤石
function
handleScreenshot
()
{
console
.
log
(
'handleScreenshot'
)
goCaptureImg
()
}
// const paramObj = parse(url).search || {}
const
paramObj
=
parse
(
window
.
location
.
href
).
search
||
{};
/********************************/
...
...
@@ -937,8 +941,15 @@ const pictureProcess = (imgUrl) => {
capture
();
};
}
else
{
/***********巡店详情截图****************/
if
(
paramObj
.
newLevel
)
{
/***********APP截图****************/
uni
.
postMessage
({
type
:
"inspection-screenshot"
,
data
:
{
imgUrl
,
id
:
paramObj
.
id
,
}
});
/* if (paramObj.newLevel) {
wx.miniProgram.redirectTo({
url: `/pages/tour/inspectionDetail/index?action=capture&picUrl=${imgUrl}&id=${paramObj.tid}`,
});
...
...
@@ -946,7 +957,7 @@ const pictureProcess = (imgUrl) => {
wx.miniProgram.redirectTo({
url: `/pages/tour/titemDetail/index?action=capture&picUrl=${picUrl}&id=${paramObj.tid}`,
});
}
}
*/
}
};
onMounted
(()
=>
{
...
...
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