forked from nsjcy/frontEnd/nsjcy

xuxj
2020-05-09 d7004986135c0885c1b9a92fb48919179732c00d
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;