|
@@ -148,7 +148,7 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="bottom_btn" v-if="timeStatus && (form.warningSubType!=2 && form.warningSubType!=3 && form.warningSubType!=4)" @click="handleClick('','monitor')">查看监控</view>
|
|
|
-
|
|
|
+
|
|
|
</scroll-view>
|
|
|
</view>
|
|
|
|
|
@@ -228,16 +228,16 @@ export default {
|
|
|
const duration=e.duration;
|
|
|
const width=e.videoWidth;
|
|
|
const heigth=e.videoHeight;
|
|
|
-
|
|
|
+
|
|
|
const canvas=uni.createCanvasContext('myCanvas')
|
|
|
canvas.canvas.width=width;
|
|
|
canvas.canvas.height=heigth;
|
|
|
-
|
|
|
+
|
|
|
canvas.drawImage('myVideo',0,0,width,heigth)
|
|
|
canvas.draw();
|
|
|
-
|
|
|
+
|
|
|
const that=this;
|
|
|
-
|
|
|
+
|
|
|
setTimeout(function(){
|
|
|
uni.canvasToTempFilePath({
|
|
|
canvasId:'myCanvas',
|