From 58ae2ba21efcd85df331cf996a94038a77302b51 Mon Sep 17 00:00:00 2001
From: Mr Ke <kelq@hugeinfo.com.cn>
Date: Wed, 27 May 2020 17:07:48 +0800
Subject: [PATCH] 修改报错问题

---
 SunshineLnsMinApp/pages/progressQuery/progressQuery.js |   32 +++++++++++++++++++++++++-------
 1 files changed, 25 insertions(+), 7 deletions(-)

diff --git a/SunshineLnsMinApp/pages/progressQuery/progressQuery.js b/SunshineLnsMinApp/pages/progressQuery/progressQuery.js
index 8879344..bf6fc8e 100644
--- a/SunshineLnsMinApp/pages/progressQuery/progressQuery.js
+++ b/SunshineLnsMinApp/pages/progressQuery/progressQuery.js
@@ -140,16 +140,34 @@
       }
       const {
         evalList1001,
+        evalList1002,
+        evalList1003,
+        evalList1004,
         evalList1014
       } = this.data.evalList;
-      if (evalList1001.length == 0) {
-        return app.showModal("请上传申请人身份证正反面!");
+
+      if (caseQuery.relation == 1 || caseQuery.relation == 2) {
+        if (evalList1002.length == 0) {
+          return app.showModal("请上传律师证!");
+        }
+        if (evalList1003.length == 0) {
+          return app.showModal("请上传律师所函!");
+        }
+        if (evalList1004.length == 0) {
+          return app.showModal("请上传授权委托书(或法律援助公函)!");
+        }
       }
-      if (evalList1001.length < 2) {
-        return app.showModal("请至少上传两张身份证附件!")
-      }
-      if (evalList1014.length == 0) {
-        return app.showModal("请上传关系证明!");
+
+      if (caseQuery.relation == 3){
+        if (evalList1001.length == 0) {
+          return app.showModal("请上传申请人身份证正反面!");
+        }
+        if (evalList1001.length < 2) {
+          return app.showModal("请至少上传两张身份证附件!")
+        }
+        if (evalList1014.length == 0) {
+          return app.showModal("请上传关系证明!");
+        }
       }
     }
     var that = this;

--
Gitblit v1.8.0