|
@@ -5,7 +5,7 @@
|
|
<div class="pFace">
|
|
<div class="pFace">
|
|
<img src="../assets/img/face.png" alt="" />
|
|
<img src="../assets/img/face.png" alt="" />
|
|
</div>
|
|
</div>
|
|
- <div style="text-align: center">{{ isdetected }}</div>
|
|
|
|
|
|
+ <div class="nav">{{ isdetected }}</div>
|
|
</div>
|
|
</div>
|
|
<div class="controlZ">
|
|
<div class="controlZ">
|
|
<div id="screan" ref="dv">
|
|
<div id="screan" ref="dv">
|
|
@@ -42,13 +42,16 @@
|
|
<div class="cameraZ">
|
|
<div class="cameraZ">
|
|
<!--开启摄像头-->
|
|
<!--开启摄像头-->
|
|
<div class="cameraBtn">
|
|
<div class="cameraBtn">
|
|
- <el-button
|
|
|
|
|
|
+ <!-- <el-button
|
|
size="mini"
|
|
size="mini"
|
|
type="primary"
|
|
type="primary"
|
|
@click="callCamera"
|
|
@click="callCamera"
|
|
v-if="!isCamera"
|
|
v-if="!isCamera"
|
|
- >开启摄像头</el-button
|
|
|
|
- >
|
|
|
|
|
|
+ >开启摄像头</el-button -->
|
|
|
|
+ <!-- > -->
|
|
|
|
+ <div class="open" @click="callCamera" v-if="!isCamera">
|
|
|
|
+ <img src="../assets/img/open.png" alt="" />
|
|
|
|
+ </div>
|
|
<!-- <el-button size="mini" type="primary" @click="closeCamera" v-else
|
|
<!-- <el-button size="mini" type="primary" @click="closeCamera" v-else
|
|
>关闭摄像头</el-button
|
|
>关闭摄像头</el-button
|
|
> -->
|
|
> -->
|
|
@@ -334,6 +337,7 @@ body {
|
|
height: 340px;
|
|
height: 340px;
|
|
flex-direction: column;
|
|
flex-direction: column;
|
|
flex-wrap: nowrap;
|
|
flex-wrap: nowrap;
|
|
|
|
+ width: 300px;
|
|
}
|
|
}
|
|
|
|
|
|
.cameraBtn {
|
|
.cameraBtn {
|
|
@@ -364,11 +368,13 @@ body {
|
|
|
|
|
|
.pFace {
|
|
.pFace {
|
|
width: 200px;
|
|
width: 200px;
|
|
|
|
+ margin: 0 auto;
|
|
}
|
|
}
|
|
|
|
|
|
.close > img,
|
|
.close > img,
|
|
.save > img,
|
|
.save > img,
|
|
-.pFace > img {
|
|
|
|
|
|
+.pFace > img,
|
|
|
|
+.open > img {
|
|
width: 100%;
|
|
width: 100%;
|
|
height: 100%;
|
|
height: 100%;
|
|
}
|
|
}
|
|
@@ -382,7 +388,13 @@ body {
|
|
}
|
|
}
|
|
|
|
|
|
.isPhoto {
|
|
.isPhoto {
|
|
- padding: 20px 0 0 50px;
|
|
|
|
|
|
+ padding: 20px 0 0 0;
|
|
box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+.nav {
|
|
|
|
+ text-align: center;
|
|
|
|
+ font-size: 32px;
|
|
|
|
+ color: #ccc;
|
|
|
|
+}
|
|
</style>
|
|
</style>
|