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 8aa94e87
authored
May 30, 2025
by
Tianqing Liu
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat: 优化打包配置
1 parent
47a24b2a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
37 deletions
h5/src/router/index.js
h5/src/views/video/index.vue
h5/src/router/index.js
View file @
8aa94e8
...
@@ -14,8 +14,9 @@ const routes = [
...
@@ -14,8 +14,9 @@ const routes = [
},
},
];
];
const
isDev
=
process
.
env
.
NODE_ENV
===
'development'
;
const
router
=
createRouter
({
const
router
=
createRouter
({
history
:
createWebHistory
(),
history
:
createWebHistory
(
isDev
?
'/'
:
'/apph5'
),
routes
,
routes
,
});
});
...
...
h5/src/views/video/index.vue
View file @
8aa94e8
...
@@ -180,12 +180,13 @@
...
@@ -180,12 +180,13 @@
<span
class=
"text-ellipsis"
>
{{ gateEditName }}
</span>
<span
class=
"text-ellipsis"
>
{{ gateEditName }}
</span>
<van-icon
class=
"icon"
name=
"play"
/>
<van-icon
class=
"icon"
name=
"play"
/>
</span>
</span>
<img
<!--修改监控点名称-->
<!--<img
src="../src/assets/edit.png"
src="../src/assets/edit.png"
alt=""
alt=""
class="gate-name-edit-img"
class="gate-name-edit-img"
@click="gateEdit"
@click="gateEdit"
/>
/>
-->
</div>
</div>
<div
class=
"box box1"
>
<div
class=
"box box1"
>
<span
v-if=
"bookmark"
@
click=
"delCollectGate"
>
<span
v-if=
"bookmark"
@
click=
"delCollectGate"
>
...
@@ -922,43 +923,29 @@ const screenshotEnd = (imgData) => {
...
@@ -922,43 +923,29 @@ const screenshotEnd = (imgData) => {
});
});
};
};
const
pictureProcess
=
(
imgUrl
)
=>
{
const
pictureProcess
=
(
imgUrl
)
=>
{
picUrl
.
value
=
imgUrl
;
//
picUrl.value = imgUrl;
Toast
.
clear
();
Toast
.
clear
();
if
(
paramObj
.
type
!=
"titem"
)
{
// picUrl.value = 'https://store.keliuyun.com/images/patrol/capture/20230825/ecd2a635-84af-4968-bc30-1af130460d12.jpg'
/***********APP截图****************/
vionPlayer
.
value
.
stopPlay
(
);
console
.
log
(
'params'
,
imgUrl
,
paramObj
);
let
image
=
new
Image
();
const
params
=
{
image
.
src
=
"https://store.keliuyun.com/images/"
+
picUrl
.
value
;
type
:
"inspection-screenshot"
,
image
.
style
.
width
=
window
.
innerWidth
+
"px"
;
data
:
{
let
heightC
=
window
.
innerWidth
/
1.78
;
imgUrl
,
image
.
style
.
height
=
heightC
+
"px"
;
id
:
paramObj
.
id
,
image
.
crossOrigin
=
"Anonymous"
;
}
image
.
onload
=
()
=>
{
}
captureCanvas
.
value
.
width
=
window
.
innerWidth
;
window
.
postMessage
(
params
,
'*'
)
;
captureCanvas
.
value
.
height
=
heightC
;
uni
.
postMessage
(
params
,
'*'
)
;
let
ctx
=
captureCanvas
.
value
.
getContext
(
"2d"
);
/* if (paramObj.newLevel) {
ctx
.
drawImage
(
image
,
0
,
0
,
window
.
innerWidth
,
heightC
);
wx.miniProgram.redirectTo({
capture
();
url: `/pages/tour/inspectionDetail/index?action=capture&picUrl=${imgUrl}&id=${paramObj.tid}`,
};
}
)
;
} else {
} else {
/***********APP截图****************/
wx.miniProgram.redirectTo({
uni
.
postMessage
({
url: `/pages/tour/titemDetail/index?action=capture&picUrl=${picUrl}&id=${paramObj.tid}`,
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}`,
});
} else {
wx.miniProgram.redirectTo({
url: `/pages/tour/titemDetail/index?action=capture&picUrl=${picUrl}&id=${paramObj.tid}`,
});
} */
}
};
};
onMounted
(()
=>
{
onMounted
(()
=>
{
reqPatrolGateList
();
reqPatrolGateList
();
...
...
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