浏览代码

修改变量名

harry 3 年之前
父节点
当前提交
9b154caf98

+ 1 - 1
BFCommonKit/Classes/BFBase/Controller/PQBaseWebViewController.swift

@@ -14,7 +14,7 @@ open class PQBaseWebViewController: PQBaseViewController {
     public var emptyData: PQEmptyModel? = {
         let emptyData = PQEmptyModel()
         emptyData.title = "网页加载失败,请重试~"
-        emptyData.emptyImage = "pic_network"
+        emptyData.emptyImageName = "pic_network"
         emptyData.netDisRefreshBgColor = UIColor.hexColor(hexadecimal: "#FA6400")
         emptyData.netDisTitle = "内容加载失败"
         emptyData.netDisTitleColor = UIColor.hexColor(hexadecimal: "#333333")

+ 2 - 2
BFCommonKit/Classes/BFBase/View/PQRemindView.swift

@@ -323,7 +323,7 @@ extension PQEmptyRemindView {
 //            }
             remindSubLab.isHidden = !(emptyData?.title != nil && emptyData?.title?.count ?? 0 > 0)
             remindSubLab.isHidden = !(emptyData?.summary != nil && emptyData?.summary?.count ?? 0 > 0)
-            imageView.image = emptyData?.emptySoureImage ?? UIImage.moduleImage(named: emptyData?.emptyImage ?? "", moduleName: "BFCommonKit")
+            imageView.image = emptyData?.emptySoureImage ?? UIImage.moduleImage(named: emptyData?.emptyImageName ?? "", moduleName: "BFCommonKit")
             remindLab.text = emptyData?.title
             remindSubLab.text = emptyData?.summary
             refreshBtn.isHidden = emptyData?.isRefreshHidden ?? true
@@ -352,7 +352,7 @@ extension PQEmptyRemindView {
         var contentH: CGFloat = 0
         let normalH : CGFloat = margin * 2
         
-        if (emptyData?.emptySoureImage != nil) || (emptyData?.emptyImage != nil &&  emptyData?.emptyImage?.count ?? 0 > 0) || isNetLost {
+        if (emptyData?.emptySoureImage != nil) || (emptyData?.emptyImageName != nil &&  emptyData?.emptyImage?.count ?? 0 > 0) || isNetLost {
             contentH = contentH + imageH
         } else {
             imageH = 0