From 0eca6aea6132685e860a49eb983598ccc858dc47 Mon Sep 17 00:00:00 2001
From: zhangyongtian <1181606322@qq.com>
Date: Tue, 10 Sep 2024 15:46:49 +0800
Subject: [PATCH] Merge branch 'master' of http://120.79.193.119:9090/r/gzzfw/frontEnd/gzDyh

---
 gz-wxparty/pages/register/index.js |   19 +++++++++----------
 1 files changed, 9 insertions(+), 10 deletions(-)

diff --git a/gz-wxparty/pages/register/index.js b/gz-wxparty/pages/register/index.js
index 676c490..25b4afb 100644
--- a/gz-wxparty/pages/register/index.js
+++ b/gz-wxparty/pages/register/index.js
@@ -382,13 +382,13 @@
         });
         return;
       }
-      if (!this.data.fileList?.length <= 0) {
-        // 附件上传提示
-        this.setData({
-          showFileTip: true
-        })
-        return;
-      }
+      // if (!this.data.fileList?.length <= 0) {
+      //   // 附件上传提示
+      //   this.setData({
+      //     showFileTip: true
+      //   })
+      //   return;
+      // }
       // 提交AI接口
       this.getaw(newData);
       this.setData({
@@ -468,7 +468,7 @@
   // 图片识别
   ocrClick(e) {
     let key = e.currentTarget.dataset.key;
-    let keyNum = e.currentTarget.dataset.keyNum;
+    let keyNum = e.currentTarget.dataset.keynum;
     let that = this;
     wx.chooseMedia({
       count: 1,
@@ -498,13 +498,12 @@
               }
               let wordsResult = data?.ocrResult?.wordsResult.join('');
               let wordsResultNum = data?.ocrResult?.wordsResultNum;
-              console.log('wordsResult', wordsResult);
               that.setData({
                 submitData: {
                   ...that.data.submitData,
                   [key]: wordsResult
                 },
-                [keyNum]: wordsResultNum
+                [keyNum]: wordsResult.length
               });
             }
           },

--
Gitblit v1.8.0