|
@@ -11,7 +11,7 @@
|
|
|
<div class="photography-page flex-col">
|
|
<div class="photography-page flex-col">
|
|
|
<div class="main-container">
|
|
<div class="main-container">
|
|
|
<div class="content-wrapper flex-row">
|
|
<div class="content-wrapper flex-row">
|
|
|
- <img class="camera-image" referrerpolicy="no-referrer" src="@/assets/images/Photography/camera-icon.png" />
|
|
|
|
|
|
|
+<!-- <img class="camera-image" referrerpolicy="no-referrer" src="@/assets/images/Photography/camera-icon.png" />-->
|
|
|
<div class="step-number flex-col"><span class="text_22">1</span></div>
|
|
<div class="step-number flex-col"><span class="text_22">1</span></div>
|
|
|
<div class="step-one flex-col justify-between">
|
|
<div class="step-one flex-col justify-between">
|
|
|
<div class="step-header flex-row">
|
|
<div class="step-header flex-row">
|
|
@@ -32,11 +32,8 @@
|
|
|
</div>
|
|
</div>
|
|
|
<div class="scan-method flex-row justify-between">
|
|
<div class="scan-method flex-row justify-between">
|
|
|
<div class="remote-control flex-col">
|
|
<div class="remote-control flex-col">
|
|
|
- <div class="scan-button flex-col"></div>
|
|
|
|
|
- <img class="scan-line" referrerpolicy="no-referrer"
|
|
|
|
|
- src="@/assets/images/Photography/remote-scan-line.png" />
|
|
|
|
|
</div>
|
|
</div>
|
|
|
- <span class="scan-label">遥控器扫描键</span>
|
|
|
|
|
|
|
+<!-- <span class="scan-label">遥控器扫描键</span>-->
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
<img class="remote-image" referrerpolicy="no-referrer"
|
|
<img class="remote-image" referrerpolicy="no-referrer"
|
|
@@ -51,18 +48,16 @@
|
|
|
<img class="info-icon" referrerpolicy="no-referrer" src="@/assets/images/Photography/info-icon.png" />
|
|
<img class="info-icon" referrerpolicy="no-referrer" src="@/assets/images/Photography/info-icon.png" />
|
|
|
<span class="tips-text">遥控左右按键可启动拍摄,中间按钮可在拍摄5张主图后解锁,用于拍摄自定义图</span>
|
|
<span class="tips-text">遥控左右按键可启动拍摄,中间按钮可在拍摄5张主图后解锁,用于拍摄自定义图</span>
|
|
|
</div>
|
|
</div>
|
|
|
- <span class="left-foot-text">遥控器左键:控制左脚鞋启动拍摄</span>
|
|
|
|
|
- <div class="remote-control-container flex-row justify-end">
|
|
|
|
|
- <div class="remote-buttons flex-row">
|
|
|
|
|
- <div class="left-button flex-col"></div>
|
|
|
|
|
- <div class="right-button flex-col"></div>
|
|
|
|
|
- </div>
|
|
|
|
|
- <img class="left-button-image" referrerpolicy="no-referrer"
|
|
|
|
|
- src="@/assets/images/Photography/remote-left-button.png" />
|
|
|
|
|
- <img class="right-button-image" referrerpolicy="no-referrer"
|
|
|
|
|
- src="@/assets/images/Photography/remote-right-button.png" />
|
|
|
|
|
|
|
+ <div class="wifi mar-top-20">
|
|
|
|
|
+ <img referrerpolicy="no-referrer"
|
|
|
|
|
+ src="@/assets/images/Photography/wifi.png" style="width: 60px" />
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="remote-control-wrap">
|
|
|
|
|
+ <RemoteControl
|
|
|
|
|
+ @onRemoteControl="onRemoteControl"
|
|
|
|
|
+ />
|
|
|
</div>
|
|
</div>
|
|
|
- <span class="right-foot-text">遥控器右键:控制右脚鞋启动拍摄</span>
|
|
|
|
|
|
|
+
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
@@ -164,6 +159,7 @@ import { getFilePath,getRouterUrl } from '@/utils/appfun'
|
|
|
import {useRouter} from "vue-router";
|
|
import {useRouter} from "vue-router";
|
|
|
import HardwareCheck from '@/components/check/index.vue'
|
|
import HardwareCheck from '@/components/check/index.vue'
|
|
|
import checkInfo from "@/stores/modules/check";
|
|
import checkInfo from "@/stores/modules/check";
|
|
|
|
|
+import RemoteControl from '@/views/RemoteControl/index'
|
|
|
|
|
|
|
|
|
|
|
|
|
const loading = ref(false)
|
|
const loading = ref(false)
|
|
@@ -361,7 +357,7 @@ onMounted(async () => {
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
- window.addEventListener('storage', handleStorageEvent);
|
|
|
|
|
|
|
+/* window.addEventListener('storage', handleStorageEvent);*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -429,8 +425,20 @@ onMounted(async () => {
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+const onRemoteControl = (type)=>{
|
|
|
|
|
+ if(!goods_art_no.value){
|
|
|
|
|
+ ElMessage.error('请先扫描货号或者手动输入货号!')
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
+ let action = '执行左脚程序'
|
|
|
|
|
+ if(type === 'right') action = '执行右脚程序'
|
|
|
|
|
+ runGoods({
|
|
|
|
|
+ "action": action,
|
|
|
|
|
+ "goods_art_no": goods_art_no.value,
|
|
|
|
|
+ })
|
|
|
|
|
|
|
|
-const handleStorageEvent = (e) => {
|
|
|
|
|
|
|
+}
|
|
|
|
|
+/*const handleStorageEvent = (e) => {
|
|
|
if(e.key === 'run_mcu' && e.newValue){
|
|
if(e.key === 'run_mcu' && e.newValue){
|
|
|
if(!goods_art_no.value){
|
|
if(!goods_art_no.value){
|
|
|
ElMessage.error('请先扫描货号或者手动输入货号!')
|
|
ElMessage.error('请先扫描货号或者手动输入货号!')
|
|
@@ -446,7 +454,7 @@ const handleStorageEvent = (e) => {
|
|
|
localStorage.setItem('run_mcu','')
|
|
localStorage.setItem('run_mcu','')
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
-};
|
|
|
|
|
|
|
+};*/
|
|
|
const checkInfoStore = checkInfo()
|
|
const checkInfoStore = checkInfo()
|
|
|
checkInfoStore.set_blue_tooth_scan_NO('')
|
|
checkInfoStore.set_blue_tooth_scan_NO('')
|
|
|
watchEffect(async ()=>{
|
|
watchEffect(async ()=>{
|
|
@@ -467,7 +475,7 @@ onBeforeUnmount(() => {
|
|
|
clientStore.ipc.removeAllListeners(icpList.socket.message + '_run_mcu');
|
|
clientStore.ipc.removeAllListeners(icpList.socket.message + '_run_mcu');
|
|
|
clientStore.ipc.removeAllListeners(icpList.socket.message + '_photo_take');
|
|
clientStore.ipc.removeAllListeners(icpList.socket.message + '_photo_take');
|
|
|
clientStore.ipc.removeAllListeners(icpList.socket.message + '_photo_take_finish');
|
|
clientStore.ipc.removeAllListeners(icpList.socket.message + '_photo_take_finish');
|
|
|
- window.removeEventListener('storage', handleStorageEvent);
|
|
|
|
|
|
|
+/* window.removeEventListener('storage', handleStorageEvent);*/
|
|
|
|
|
|
|
|
|
|
|
|
|
})
|
|
})
|
|
@@ -608,7 +616,7 @@ function openPhotographyDetail() {
|
|
|
|
|
|
|
|
.method-container {
|
|
.method-container {
|
|
|
background-color: rgba(247, 247, 247, 1);
|
|
background-color: rgba(247, 247, 247, 1);
|
|
|
- height: 469px;
|
|
|
|
|
|
|
+ height: 484px;
|
|
|
width: 353px;
|
|
width: 353px;
|
|
|
|
|
|
|
|
.auto-method {
|
|
.auto-method {
|
|
@@ -652,15 +660,15 @@ function openPhotographyDetail() {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
.scan-method {
|
|
.scan-method {
|
|
|
- width: 263px;
|
|
|
|
|
- height: 246px;
|
|
|
|
|
- margin: 9px 0 0 85px;
|
|
|
|
|
|
|
+ width: 350px;
|
|
|
|
|
+ height: 350px;
|
|
|
|
|
+ margin: 10px;
|
|
|
|
|
|
|
|
.remote-control {
|
|
.remote-control {
|
|
|
- height: 246px;
|
|
|
|
|
- background: url(@/assets/images/Photography/left-button.png) 0px 0px no-repeat;
|
|
|
|
|
- background-size: 98px 246px;
|
|
|
|
|
- width: 97px;
|
|
|
|
|
|
|
+ width: 350px;
|
|
|
|
|
+ height: 350px;
|
|
|
|
|
+ background: url(@/assets/images/Photography/left.png) 0px 0px no-repeat;
|
|
|
|
|
+ background-size: 300px 300px;
|
|
|
position: relative;
|
|
position: relative;
|
|
|
|
|
|
|
|
.scan-button {
|
|
.scan-button {
|
|
@@ -779,8 +787,12 @@ function openPhotographyDetail() {
|
|
|
.shooting-container {
|
|
.shooting-container {
|
|
|
background-color: rgba(247, 247, 247, 1);
|
|
background-color: rgba(247, 247, 247, 1);
|
|
|
width: 353px;
|
|
width: 353px;
|
|
|
- height: 469px;
|
|
|
|
|
|
|
+ height: 484px;
|
|
|
margin: 28px 0 0 2px;
|
|
margin: 28px 0 0 2px;
|
|
|
|
|
+ .remote-control-wrap {
|
|
|
|
|
+ width: 353px;
|
|
|
|
|
+ height: 300px;
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
.shooting-tips {
|
|
.shooting-tips {
|
|
|
width: 325px;
|
|
width: 325px;
|