roose 4 년 전
부모
커밋
e5f63ec420
2개의 변경된 파일3개의 추가작업 그리고 4개의 파일을 삭제
  1. 2 3
      pages/collectInfo/collectInfo.js
  2. 1 1
      pages/collectInfo/collectInfo.wxml

+ 2 - 3
pages/collectInfo/collectInfo.js

@@ -980,6 +980,7 @@ Page({
                     console.log("返回临时文件路径");
                     //返回临时文件路径
                     let img = 'data:image/png;base64,' + res1.data
+                    console.log(img,"1232323231222222");
                     wx.request({
                       url: 'https://aip.baidubce.com/rest/2.0/ocr/v1/idcard?access_token=' + token,
                       method: 'POST',
@@ -1048,8 +1049,6 @@ Page({
                               duration: 2000,
                             })
                           }
-
-
                         } else {
                           wx.showToast({
                             title: "身份证OCR识别失败",
@@ -2034,7 +2033,7 @@ Page({
     let revise2 = "oldInfo[" + this.data.activeIndex + "].oldType[1].disable";
     let revise3 = "oldInfo[" + this.data.activeIndex + "].oldType[2].disable";
     let revise4 = "oldInfo[" + this.data.activeIndex + "].oldType[3].disable";
-    let revise5 = "oldInfo[" + this.data.activeIndex + "].oldType[3].checked";
+    let revise5 = "oldInfo[" + this.data.activeIndex + "].oldType[4].checked";
     this.SubmitOldmanInfo({
       id: this.data.nameArr[this.data.activeIndex]._id,
       oldType: JSON.stringify(e.detail.value)

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 1 - 1
pages/collectInfo/collectInfo.wxml