BUG
无故事王国
2023-11-17 e97b863bfafb2fc0fd870abc933276aa96a17a45
WanPai/Common/View/CommonAlertView.swift
@@ -28,11 +28,22 @@
    }
    
    
   static func show(title:String,content:String,isSingle:Bool = false, clouse:@escaping (Bool)->Void){
   static func show(title:String,content:String,cancelStr:String? = nil,completeStr:String? = nil,isSingle:Bool = false, clouse:@escaping (Bool)->Void){
        let alertView = CommonAlertView.jq_loadNibView()
        alertView.label_title.text = title
        alertView.label_content.text = content
      alertView.btn_cancel.isHidden = isSingle
      if cancelStr != nil{
         alertView.btn_cancel.setTitle(cancelStr!, for: .normal)
      }
      if completeStr != nil{
         alertView.btn_complete.setTitle(completeStr!, for: .normal)
      }
        alertView.clouse = clouse
        alertView.frame = sceneDelegate?.window?.frame ?? .zero
      sceneDelegate?.window?.addSubview(alertView)