lilei il y a 4 ans
Parent
commit
074be89646
2 fichiers modifiés avec 10 ajouts et 6 suppressions
  1. 0 0
      hybrid/html/imgEdit/ped.min.js
  2. 10 6
      hybrid/html/video.html

Fichier diff supprimé car celui-ci est trop grand
+ 0 - 0
hybrid/html/imgEdit/ped.min.js


+ 10 - 6
hybrid/html/video.html

@@ -344,24 +344,28 @@
 		    const cmd = ['left', 'right', 'up', 'down']
 		    this.sendMsg('kzyt','控制云台' + cmd[index - 1])
 		  },
-		  // 打开拍照
+		  // 打开拍照片弹框
 		  openCamera(){
 			 this.showPz = true
 			 this.sendMsg('getWinStatus',JSON.stringify({key:'showPz',val: true}))
 		  },
-		  // 关闭拍弹框
+		  // 关闭拍弹框
 		  onClosePz(){
 			  this.showPz = false
 			  this.sendMsg('getWinStatus',JSON.stringify({key:'showPz',val: false}))
 		  },
-		  // 预览图片
+		  // 预览编辑图片
 		  previewImgs(url){
 			   let _this = this
 			   _this.sendMsg('getWinStatus',JSON.stringify({key:'isEditImg',val: true}))
-			   this.PED = new window.PED.imageInfo(url,function(data){
+			   this.PED = new window.PED.imageInfo(
+			   url,
+			   function(data){
 				   // 保存图片编辑
-				   // _this.saveEditImg(data)
 				   _this.sendMsg('saveEditImg',data)
+			   },
+			   function(){
+				   _this.sendMsg('getWinStatus',JSON.stringify({key:'isEditImg',val: false}))
 			   })
 		  },
 		  // 关闭图片编辑
@@ -373,7 +377,7 @@
 		  updateItemImg(path){
 			  console.log(path)
 		  },
-		  // 考评项相关代码
+		  // -----考评项相关代码---------------
 		  // 评分,0 不适用,1 不合格,2 合格
 		  pingfen(type){
 			  

Certains fichiers n'ont pas été affichés car il y a eu trop de fichiers modifiés dans ce diff