|
@@ -22,17 +22,11 @@ class ShoppingMallViewController: BaseViewController {
|
|
|
setupViews()
|
|
|
setupLayouts()
|
|
|
setupData()
|
|
|
-
|
|
|
- NotificationCenter.default.addObserver(forName: NSNotification.Name(rawValue: "ChooseSelfAddressNoti"), object: nil, queue: operationQueue) {
|
|
|
- [weak self] (notification) in
|
|
|
-
|
|
|
- }
|
|
|
}
|
|
|
override func setupViews() {
|
|
|
super.setupViews()
|
|
|
navigationBar.addSubview(navigationBarView)
|
|
|
view.addSubview(shoppingMallView)
|
|
|
-
|
|
|
}
|
|
|
|
|
|
override func setupLayouts() {
|
|
@@ -72,6 +66,7 @@ class ShoppingMallViewController: BaseViewController {
|
|
|
let cmsRuleModel = notification.object as? CMSRuleModel
|
|
|
self?.pushVCCMSRule(cmsRuleModel: cmsRuleModel, areaType: "floor")
|
|
|
}
|
|
|
+
|
|
|
//搜索
|
|
|
navigationBarView.searchBlock = {
|
|
|
[weak self] in
|
|
@@ -115,7 +110,7 @@ class ShoppingMallViewController: BaseViewController {
|
|
|
[weak self] in
|
|
|
let model = DeliveryMethodTypeModel.shared().getModel()
|
|
|
if model?.deliveryMethodType == "1" { //自提
|
|
|
-
|
|
|
+ self?.shoppingMallView.addressPopView()
|
|
|
}
|
|
|
}
|
|
|
return navigationBarView
|