Browse Source

bug fixed

Chris 6 years ago
parent
commit
db5d55b0dd

+ 8 - 1
RainbowPlanet/RainbowPlanet/Modules/OrderModule/OrderComment/ViewController/OrderCommentController.swift

@@ -185,7 +185,14 @@ extension OrderCommentController {
             let curImageArr = productArr![idx].imageArr
             
             if curImageArr.isEmpty {
-                continue
+                times -= 1
+                productMdl.imageArrUrl = []
+                if times == 0 {
+                    self.productAddCommentApi()
+                    return
+                } else {
+                    continue
+                }
             }
             
             print("\n1----准备请求\(idx)")

+ 1 - 10
RainbowPlanet/RainbowPlanet/Modules/ShoppingMallModule/ShoppingMall/View/MainView/ShoppingMallNavigationBarView.swift

@@ -50,15 +50,7 @@ class ShoppingMallNavigationBarView: BaseView {
             make.centerY.equalToSuperview()
             make.height.equalTo(30)
             make.right.equalTo(categoryButton.snp.left).offset(-9)
-            let model = DeliveryMethodTypeModel.shared().getModel()
-            if model?.deliveryMethodType == "1" { //自提
-                addressLabel.isHidden = true
-                make.left.equalTo(addressImageBtn.snp.right).offset(9)
-            }
-            if model?.deliveryMethodType == "2" { //快递
-                addressLabel.isHidden = false
-                 make.left.equalTo(addressLabel.snp.right).offset(9)
-            }
+            make.left.equalTo(addressLabel.snp.right).offset(9)
         }
     
         searchIconImageView.snp.remakeConstraints { (make) in
@@ -91,7 +83,6 @@ class ShoppingMallNavigationBarView: BaseView {
         addressLabel.text = LocationModel.shared().getLocationModel()?.city ?? "西安市"
         addressLabel.textColor = k999999Color
         addressLabel.font = kScaleRegularFont14
-        addressLabel.isHidden = false
         return addressLabel
     }()