Browse Source

根据status状态调整审核结果弹窗内容样式

culturetown 2 weeks ago
parent
commit
4d7e93e35c

+ 8 - 1
Koala/Koala/Modular/JDAssets/V/JDFuncLimitPopView.swift

@@ -185,7 +185,14 @@ class JDFuncLimitPopView: BaseAlertView {
                         model?.handleList = handleList
                         model?.handleList = handleList
                     }
                     }
                     
                     
-                    self.popView(model: model ?? JDWorkOrderModel())
+                    
+                    if model?.status == "5" {
+                        
+                        self.createNewWorkOrder()
+                    }else {
+
+                        self.popView(model: model ?? JDWorkOrderModel())
+                    }
                 }else {
                 }else {
                     self.createNewWorkOrder()
                     self.createNewWorkOrder()
                 }
                 }

+ 46 - 1
Koala/Koala/Modular/JDAssets/V/JDFuncLimitResultPopView.swift

@@ -248,6 +248,51 @@ extension JDFuncLimitResultPopView {
         iconIv.image = _image("jd_func_limit&jd_func_limit")
         iconIv.image = _image("jd_func_limit&jd_func_limit")
         titleLabel.text = switchLanguage("功能受限")
         titleLabel.text = switchLanguage("功能受限")
         
         
+        
+        if model.status == "3" {
+            
+            type = 1
+            
+            let formatString = switchLanguage("您的账号存在异常,暂时无法使用该功能,您已提交编号为%@的验证资料申请解除账号限制,相关信息正在审核中,请耐心等待,谢谢!")
+            
+            detailLabel.text = String(format: formatString, model.ordernum ?? "")
+            self.detailButton.setTitle(switchLanguage("知道了"), for: .normal)
+            
+        } else if model.status == "6" {
+           
+            if model.handleList?.count ?? 0 > 0 {
+                type = 2
+                
+                let dict = model.handleList?[0]
+                let reason = dict?["content"] as? String
+                
+                let formatString = switchLanguage("您的账号存在异常,暂时无法使用该功能,您已提交编号为%@的验证资料,因“%@”的原因未能通过审核,请通过以下链接重新提交资料,谢谢!")
+                
+                detailLabel.text = String(format: formatString, model.ordernum ?? "", reason ?? "")
+                self.detailButton.setTitle(switchLanguage("重新提交资料"), for: .normal)
+            }else {
+                type = 2
+                
+//                let dict = model.handleList?[0]
+                let reason = ""//dict?["content"] as? String
+                
+                let formatString = switchLanguage("您的账号存在异常,暂时无法使用该功能,您已提交编号为%@的验证资料,因“%@”的原因未能通过审核,请通过以下链接重新提交资料,谢谢!")
+                
+                detailLabel.text = String(format: formatString, model.ordernum ?? "", reason ?? "")
+                self.detailButton.setTitle(switchLanguage("重新提交资料"), for: .normal)
+            }
+       
+        }else {
+            
+            type = 1
+            
+            let formatString = switchLanguage("您的账号存在异常,暂时无法使用该功能,您已提交编号为%@的验证资料申请解除账号限制,相关信息正在审核中,请耐心等待,谢谢!")
+            
+            detailLabel.text = String(format: formatString, model.ordernum ?? "")
+            self.detailButton.setTitle(switchLanguage("知道了"), for: .normal)
+        }
+        
+        /*
         if model.handleList?.count ?? 0 > 0 {
         if model.handleList?.count ?? 0 > 0 {
             type = 2
             type = 2
             
             
@@ -266,7 +311,7 @@ extension JDFuncLimitResultPopView {
             detailLabel.text = String(format: formatString, model.ordernum ?? "")
             detailLabel.text = String(format: formatString, model.ordernum ?? "")
             self.detailButton.setTitle(switchLanguage("知道了"), for: .normal)
             self.detailButton.setTitle(switchLanguage("知道了"), for: .normal)
         }
         }
-        
+        */