|
@@ -43,7 +43,7 @@ class ShoppingCartOrderPayView: BaseView {
|
|
|
didSet {
|
|
|
if self.deliverType == "1" {
|
|
|
let addr: SelfMentionAddressModel = SelfMentionAddressModel.getModel()!
|
|
|
- selfAddressLabel.text = "\(addr.cityName ?? "")\(addr.address ?? "")"
|
|
|
+ selfAddressLabel.text = "\(addr.address ?? "")"
|
|
|
} else {
|
|
|
selfAddressView.isHidden = true
|
|
|
tableView.snp.remakeConstraints { (make) in
|
|
@@ -63,7 +63,7 @@ class ShoppingCartOrderPayView: BaseView {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- // 自提地址信息Mdl
|
|
|
+ // 自提联系人信息Mdl
|
|
|
var selfAddressInfoMdl: DefaultContactInfoModel? {
|
|
|
didSet {
|
|
|
if selfAddressInfoMdl != nil {
|
|
@@ -72,6 +72,15 @@ class ShoppingCartOrderPayView: BaseView {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ // 自提地址信息Mdl
|
|
|
+ var selfAddrMdl: SelfAddresModel? {
|
|
|
+ didSet {
|
|
|
+ if selfAddrMdl != nil {
|
|
|
+ tableView.reloadData()
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
override func setupViews() {
|
|
|
self.backgroundColor = kf7f8faColor
|
|
|
addSubview(accountView)
|
|
@@ -121,10 +130,9 @@ class ShoppingCartOrderPayView: BaseView {
|
|
|
// 自提
|
|
|
paraMdl.name = self?.selfAddressInfoMdl?.name
|
|
|
paraMdl.mobile = Int(self?.selfAddressInfoMdl?.mobile ?? "")
|
|
|
- paraMdl.address = ""
|
|
|
- // FIXME:待填充
|
|
|
- paraMdl.pickNodeId = 0
|
|
|
- paraMdl.pickNodeContact = ""
|
|
|
+ paraMdl.address = "\(self?.selfAddrMdl?.address ?? "")"
|
|
|
+ paraMdl.pickNodeId = self?.selfAddrMdl?.pickupNodeId
|
|
|
+ paraMdl.pickNodeContact = self?.selfAddrMdl?.managerName
|
|
|
case "2":
|
|
|
// 快递
|
|
|
paraMdl.name = self?.expressAddressMdl?.contactName
|
|
@@ -211,7 +219,7 @@ extension ShoppingCartOrderPayView : UITableViewDelegate, UITableViewDataSource
|
|
|
} else {
|
|
|
// 自提地址信息
|
|
|
let cell = OrderPaySelfPickAddressCell.cellWith(tableView: tableView, indexPath: indexPath)
|
|
|
- cell.selfAddressMdl = SelfMentionAddressModel.getModel()
|
|
|
+ cell.selfAddressMdl = selfAddrMdl
|
|
|
return cell
|
|
|
}
|
|
|
} else {
|
|
@@ -223,7 +231,7 @@ extension ShoppingCartOrderPayView : UITableViewDelegate, UITableViewDataSource
|
|
|
} else {
|
|
|
// 自提地址信息
|
|
|
let cell = OrderPaySelfPickAddressCell.cellWith(tableView: tableView, indexPath: indexPath)
|
|
|
- cell.selfAddressMdl = SelfMentionAddressModel.getModel()
|
|
|
+ cell.selfAddressMdl = selfAddrMdl
|
|
|
return cell
|
|
|
}
|
|
|
}
|