Commit a81a89f0 by Tianqing Liu

feat: 删除无效代码

1 parent c554a692
...@@ -319,6 +319,7 @@ if (process.env.NODE_ENV !== "production") { ...@@ -319,6 +319,7 @@ if (process.env.NODE_ENV !== "production") {
import parse from "url-param-parser"; 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=' // 萤石 // 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=' // 萤石
const isAllowScreenshot = ref(false)
function handleScreenshot() { function handleScreenshot() {
console.log('handleScreenshot') console.log('handleScreenshot')
goCaptureImg() goCaptureImg()
...@@ -918,9 +919,9 @@ const moveStroke = function (point, context) { ...@@ -918,9 +919,9 @@ const moveStroke = function (point, context) {
// 前端截图 // 前端截图
const goCaptureImg = () => { const goCaptureImg = () => {
getPatrolTemplateList(); // getPatrolTemplateList();
getAssociateList(); // getAssociateList();
getUserList(); // getUserList();
Toast.loading({ Toast.loading({
duration: 0, duration: 0,
message: "视频截图中···", message: "视频截图中···",
...@@ -949,17 +950,13 @@ const screenshotEnd = (imgData) => { ...@@ -949,17 +950,13 @@ const screenshotEnd = (imgData) => {
// console.log(res) // console.log(res)
let result = res.data; let result = res.data;
if (result.code == 200) { if (result.code == 200) {
Toast.success("截图成功");
pictureProcess(result.data.pic); pictureProcess(result.data.pic);
} else { } else {
Toast.success(result.msg); Toast.fail(result.msg);
} }
}); });
}; };
const pictureProcess = (imgUrl) => { const pictureProcess = (imgUrl) => {
// picUrl.value = imgUrl;
Toast.clear();
/***********APP截图****************/ /***********APP截图****************/
console.log('params', imgUrl, paramObj); console.log('params', imgUrl, paramObj);
const params = { const params = {
...@@ -972,15 +969,6 @@ const pictureProcess = (imgUrl) => { ...@@ -972,15 +969,6 @@ const pictureProcess = (imgUrl) => {
} }
window.postMessage(params, '*'); window.postMessage(params, '*');
uni.postMessage(params, '*'); uni.postMessage(params, '*');
/* 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();
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!