|
@@ -1,5 +1,8 @@
|
|
<template>
|
|
<template>
|
|
<div style="width: 100%; height: calc(100%); background: #fff">
|
|
<div style="width: 100%; height: calc(100%); background: #fff">
|
|
|
|
+ <el-button type="primary" @click="returnA" class="btnPosition"
|
|
|
|
+ >上一步</el-button
|
|
|
|
+ >
|
|
<div class="img">
|
|
<div class="img">
|
|
<div class="left" style="width: 380px"></div>
|
|
<div class="left" style="width: 380px"></div>
|
|
<div class="controlZ">
|
|
<div class="controlZ">
|
|
@@ -21,22 +24,22 @@
|
|
<div id="screan">
|
|
<div id="screan">
|
|
<img :src="img[4]" alt />
|
|
<img :src="img[4]" alt />
|
|
<!--图片展示-->
|
|
<!--图片展示-->
|
|
- <video
|
|
|
|
- ref="video"
|
|
|
|
- id="video_cam"
|
|
|
|
- width="118.666"
|
|
|
|
- height="94.933"
|
|
|
|
- class="face"
|
|
|
|
- autoplay
|
|
|
|
- v-show="isCamera"
|
|
|
|
- ></video>
|
|
|
|
- <canvas
|
|
|
|
- ref="canvasDOM"
|
|
|
|
- width="118.666"
|
|
|
|
- height="94.933"
|
|
|
|
- class="kuang"
|
|
|
|
- v-show="isCamera"
|
|
|
|
- ></canvas>
|
|
|
|
|
|
+ <video
|
|
|
|
+ ref="video"
|
|
|
|
+ id="video_cam"
|
|
|
|
+ width="118.666"
|
|
|
|
+ height="94.933"
|
|
|
|
+ class="face"
|
|
|
|
+ autoplay
|
|
|
|
+ v-show="isCamera"
|
|
|
|
+ ></video>
|
|
|
|
+ <canvas
|
|
|
|
+ ref="canvasDOM"
|
|
|
|
+ width="118.666"
|
|
|
|
+ height="94.933"
|
|
|
|
+ class="kuang"
|
|
|
|
+ v-show="isCamera"
|
|
|
|
+ ></canvas>
|
|
</div>
|
|
</div>
|
|
<div id="line">
|
|
<div id="line">
|
|
<img :src="img[5]" alt />
|
|
<img :src="img[5]" alt />
|
|
@@ -218,6 +221,9 @@ export default {
|
|
};
|
|
};
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ returnA() {
|
|
|
|
+ this.$router.go(-1);
|
|
|
|
+ },
|
|
cancel() {
|
|
cancel() {
|
|
this.updateMessage = false;
|
|
this.updateMessage = false;
|
|
this.sampleArr[this.sampleArr.length - 1].name = "编号:" + this.number;
|
|
this.sampleArr[this.sampleArr.length - 1].name = "编号:" + this.number;
|
|
@@ -316,19 +322,19 @@ export default {
|
|
/**1布2石头3剪刀 */
|
|
/**1布2石头3剪刀 */
|
|
for (var i in array) {
|
|
for (var i in array) {
|
|
if (
|
|
if (
|
|
- array[i].indexOf("==(1)") != -1 &&
|
|
|
|
|
|
+ array[i].indexOf("==(布)") != -1 &&
|
|
array[i].indexOf("hands") != -1
|
|
array[i].indexOf("hands") != -1
|
|
) {
|
|
) {
|
|
buNum = parseInt(array[i].split("motor=")[1].split("}")[0]);
|
|
buNum = parseInt(array[i].split("motor=")[1].split("}")[0]);
|
|
}
|
|
}
|
|
if (
|
|
if (
|
|
- array[i].indexOf("==(2)") != -1 &&
|
|
|
|
|
|
+ array[i].indexOf("==(石头)") != -1 &&
|
|
array[i].indexOf("hands") != -1
|
|
array[i].indexOf("hands") != -1
|
|
) {
|
|
) {
|
|
sNum = parseInt(array[i].split("motor=")[1].split("}")[0]);
|
|
sNum = parseInt(array[i].split("motor=")[1].split("}")[0]);
|
|
}
|
|
}
|
|
if (
|
|
if (
|
|
- array[i].indexOf("==(3)") != -1 &&
|
|
|
|
|
|
+ array[i].indexOf("==(剪刀)") != -1 &&
|
|
array[i].indexOf("hands") != -1
|
|
array[i].indexOf("hands") != -1
|
|
) {
|
|
) {
|
|
jNum = parseInt(array[i].split("motor=")[1].split("}")[0]);
|
|
jNum = parseInt(array[i].split("motor=")[1].split("}")[0]);
|
|
@@ -874,4 +880,11 @@ body {
|
|
display: flex;
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex-direction: column;
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+.btnPosition {
|
|
|
|
+ position: fixed;
|
|
|
|
+ right: 35px;
|
|
|
|
+ bottom: 35px;
|
|
|
|
+ z-index: 999999;
|
|
|
|
+}
|
|
</style>
|
|
</style>
|