From 470a98a975f0c95853dcecbce75d88763e66c191 Mon Sep 17 00:00:00 2001
From: lkk <364857242@qq.com>
Date: 星期四, 05 十二月 2024 18:30:07 +0800
Subject: [PATCH] last

---
 src/views/system/tijian/index.vue |   13 +++++++++----
 1 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/src/views/system/tijian/index.vue b/src/views/system/tijian/index.vue
index c6f3d7d..faca2d3 100644
--- a/src/views/system/tijian/index.vue
+++ b/src/views/system/tijian/index.vue
@@ -1620,6 +1620,7 @@
         pacRemark: null,
       },
       // valueUrl: "ws://127.0.0.1:18890",
+      // valueUrl: "ws://192.168.1.3:6789/websocket",
       valueUrl: "ws://127.0.0.1:6789/websocket",
       valueUrls: "ws://127.0.0.1:6789/websocket",
       // valueUrls: "ws://"+getIp() +":6789/websocket",
@@ -2316,7 +2317,7 @@
                 };
                 var jStr = JSON.stringify(jsonObj);
                 this.websocket.send(jStr);
-                alert("璇锋斁韬唤璇佸啀鐐圭‘璁�");
+                // alert("璇锋斁韬唤璇佸啀鐐圭‘璁�");
                 var jsonObj = {
                   // name: "readCert",
                 };
@@ -2382,7 +2383,9 @@
     // 鏈�鏂颁娇鐢╳ebSocket閫氫俊
     readCardWebSocket(resultObj){
       let _this = this;
-      if (resultObj.code === 200) {
+      if (resultObj.code === 200 && resultObj.data.name != null) {
+        console.log('213131');
+        
           //鍥炴樉鐩稿叧鏁版嵁
           _this.form.cusName = resultObj.data.name;
           _this.form.cusSex =
@@ -2404,7 +2407,9 @@
               "data:image/jpeg;base64," +
               resultObj.data.img;
           }
-        } else if (resultObj.resultFlag == "-1") {
+        } else {
+          this.$message.warning('璇锋斁缃韩浠借瘉鍚庡啀鐐瑰嚮璇诲彇')
+        }/* if (resultObj.resultFlag == "-1") {
           if (resultObj.errorMsg == "绔彛鎵撳紑澶辫触") {
             //alert("璇诲崱鍣ㄦ湭杩炴帴");
           } else {
@@ -2412,7 +2417,7 @@
           }
         } else if (resultObj.resultFlag == "-2") {
           //alert(resultObj.errorMsg);
-        }
+        } */
     },
     // TODO 浠ヤ笅浠g爜鍙兘鏄尘宸濅娇鐢ㄧ殑
     jingChuanHandlerWebSocketResult(resultObj) {

--
Gitblit v1.8.0