Explorar o código

1

Signed-off-by: lcw <1324309909@qq.com>
lcw %!s(int64=3) %!d(string=hai) anos
pai
achega
a050bfc5ee

+ 0 - 2
src/components/door.vue

@@ -1226,10 +1226,8 @@
 
 	.tip {
 		margin: 25px 0 30px 20px;
-		width: 419px;
 	}
 
-	.tip > img,
 	#two > img,
 	#door > img,
 	#three > img,

+ 7 - 4
src/components/function.vue

@@ -387,6 +387,7 @@ export default {
           fps: Math.round(1000 / (Date.now() - ts)),
         });
         console.log(this.resultArr);
+        var a = document.getElementsByClassName("pFace");
         for (var i = 0; i < this.sampleArr.length; i++) {
           if (this.sampleArr[i].name == bestMatch.label) {
             // this.closeUpdateMessage = true;
@@ -397,6 +398,9 @@ export default {
             // }
             this.isdetected = "已识别到" + this.sampleArr[i].name + "的图片";
             this.shibieImg = this.sampleArr[i].img[0];
+            if(this.shibieImg.length > 0){
+              a[0].style.width = "300px";
+            }
             this.resultImg.img[0] = this.sampleArr[i].img[0];
           }
         }
@@ -481,10 +485,8 @@ body {
 
 .tip {
   margin: 25px 0 30px 20px;
-  width: 419px;
 }
 
-.tip > img,
 #screan > img,
 #tou > img,
 #ai > img,
@@ -603,8 +605,9 @@ body {
 }
 
 .pFace {
-  width: 300px;
-  height: 240px;
+  /* width: 300px; */
+  /* height: 240px; */
+  width: 150px;
   margin: 0 auto;
   margin-top: 220px;
 }

+ 0 - 2
src/components/light.vue

@@ -391,10 +391,8 @@
 
 	.tip {
 		margin: 25px 0 30px 20px;
-		width: 419px;
 	}
 
-	.tip > img,
 	#screan > img,
 	#tou > img,
 	#ai > img,

+ 0 - 2
src/components/police.vue

@@ -337,10 +337,8 @@
 
 	.tip {
 		margin: 25px 0 30px 20px;
-		width: 419px;
 	}
 
-	.tip > img,
 	#screan > img,
 	#tou > img,
 	#ai > img,

+ 0 - 2
src/components/robot.vue

@@ -1835,10 +1835,8 @@
 
 	.tip {
 		margin: 25px 0 30px 20px;
-		width: 419px;
 	}
 
-	.tip > img,
 	#screan > img,
 	#tou > img,
 	#ai > img,

+ 0 - 2
src/components/shop.vue

@@ -488,10 +488,8 @@ body {
 
 .tip {
   margin: 25px 0 30px 20px;
-  width: 419px;
 }
 
-.tip > img,
 #screan > img,
 #tou > img,
 #ai > img,

+ 0 - 1
src/components/traffic.vue

@@ -814,7 +814,6 @@
 
 	.tip {
 		margin: 25px 0 30px 20px;
-		width: 419px;
 	}
 
 	.right > img,