|
@@ -83,6 +83,9 @@ 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
|
|
|
|
+ let tapGesture = UITapGestureRecognizer(target: self, action: #selector(tapGesClick(tap:)))
|
|
|
|
+ addressLabel.isUserInteractionEnabled = true
|
|
|
|
+ addressLabel.addGestureRecognizer(tapGesture)
|
|
return addressLabel
|
|
return addressLabel
|
|
}()
|
|
}()
|
|
|
|
|
|
@@ -124,4 +127,10 @@ class ShoppingMallNavigationBarView: BaseView {
|
|
return categoryButton
|
|
return categoryButton
|
|
}()
|
|
}()
|
|
|
|
|
|
|
|
+ @objc func tapGesClick(tap: UITapGestureRecognizer) {
|
|
|
|
+ if let selfAddrTipClosure = self.selfAddrTipClosure {
|
|
|
|
+ selfAddrTipClosure()
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
}
|
|
}
|