|
@@ -50,15 +50,7 @@ class ShoppingMallNavigationBarView: BaseView {
|
|
make.centerY.equalToSuperview()
|
|
make.centerY.equalToSuperview()
|
|
make.height.equalTo(30)
|
|
make.height.equalTo(30)
|
|
make.right.equalTo(categoryButton.snp.left).offset(-9)
|
|
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
|
|
searchIconImageView.snp.remakeConstraints { (make) in
|
|
@@ -91,7 +83,6 @@ class ShoppingMallNavigationBarView: BaseView {
|
|
addressLabel.text = LocationModel.shared().getLocationModel()?.city ?? "西安市"
|
|
addressLabel.text = LocationModel.shared().getLocationModel()?.city ?? "西安市"
|
|
addressLabel.textColor = k999999Color
|
|
addressLabel.textColor = k999999Color
|
|
addressLabel.font = kScaleRegularFont14
|
|
addressLabel.font = kScaleRegularFont14
|
|
- addressLabel.isHidden = false
|
|
|
|
return addressLabel
|
|
return addressLabel
|
|
}()
|
|
}()
|
|
|
|
|