|
@@ -22,7 +22,7 @@ class ShoppingCartView: BaseView {
|
|
accountView.snp.makeConstraints { (make) in
|
|
accountView.snp.makeConstraints { (make) in
|
|
make.left.right.equalToSuperview()
|
|
make.left.right.equalToSuperview()
|
|
make.height.equalTo(48)
|
|
make.height.equalTo(48)
|
|
- make.bottom.equalTo(-kSafeTabBarHeight)
|
|
|
|
|
|
+ make.bottom.equalToSuperview().offset(-kSafeTabBarHeight)
|
|
}
|
|
}
|
|
tableView.snp.makeConstraints { (make) in
|
|
tableView.snp.makeConstraints { (make) in
|
|
make.top.left.right.equalToSuperview()
|
|
make.top.left.right.equalToSuperview()
|
|
@@ -32,7 +32,7 @@ class ShoppingCartView: BaseView {
|
|
accountView.snp.makeConstraints { (make) in
|
|
accountView.snp.makeConstraints { (make) in
|
|
make.left.right.equalToSuperview()
|
|
make.left.right.equalToSuperview()
|
|
make.height.equalTo(48)
|
|
make.height.equalTo(48)
|
|
- make.bottom.equalTo(0)
|
|
|
|
|
|
+ make.bottom.equalToSuperview()
|
|
}
|
|
}
|
|
tableView.snp.makeConstraints { (make) in
|
|
tableView.snp.makeConstraints { (make) in
|
|
make.top.left.right.equalToSuperview()
|
|
make.top.left.right.equalToSuperview()
|
|
@@ -103,14 +103,27 @@ class ShoppingCartView: BaseView {
|
|
|
|
|
|
|
|
|
|
override func setupLayouts() {
|
|
override func setupLayouts() {
|
|
- accountView.snp.makeConstraints { (make) in
|
|
|
|
- make.left.right.equalToSuperview()
|
|
|
|
- make.height.equalTo(48)
|
|
|
|
- make.bottom.equalTo(0)
|
|
|
|
- }
|
|
|
|
- tableView.snp.makeConstraints { (make) in
|
|
|
|
- make.top.left.right.equalToSuperview()
|
|
|
|
- make.bottom.equalTo(accountView.snp_top).offset(0)
|
|
|
|
|
|
+
|
|
|
|
+ if shoppingCartVCType == .push {
|
|
|
|
+ accountView.snp.makeConstraints { (make) in
|
|
|
|
+ make.left.right.equalToSuperview()
|
|
|
|
+ make.height.equalTo(48)
|
|
|
|
+ make.bottom.equalToSuperview().offset(-kSafeTabBarHeight)
|
|
|
|
+ }
|
|
|
|
+ tableView.snp.makeConstraints { (make) in
|
|
|
|
+ make.top.left.right.equalToSuperview()
|
|
|
|
+ make.bottom.equalTo(accountView.snp_top).offset(0)
|
|
|
|
+ }
|
|
|
|
+ }else {
|
|
|
|
+ accountView.snp.makeConstraints { (make) in
|
|
|
|
+ make.left.right.equalToSuperview()
|
|
|
|
+ make.height.equalTo(48)
|
|
|
|
+ make.bottom.equalToSuperview()
|
|
|
|
+ }
|
|
|
|
+ tableView.snp.makeConstraints { (make) in
|
|
|
|
+ make.top.left.right.equalToSuperview()
|
|
|
|
+ make.bottom.equalTo(accountView.snp_top).offset(0)
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -124,9 +137,9 @@ class ShoppingCartView: BaseView {
|
|
make.left.right.equalToSuperview()
|
|
make.left.right.equalToSuperview()
|
|
make.height.equalTo(0)
|
|
make.height.equalTo(0)
|
|
if self.shoppingCartVCType == .push {
|
|
if self.shoppingCartVCType == .push {
|
|
- make.bottom.equalTo(-kSafeTabBarHeight)
|
|
|
|
|
|
+ make.bottom.equalToSuperview().offset(-kSafeTabBarHeight)
|
|
}else {
|
|
}else {
|
|
- make.bottom.equalTo(0)
|
|
|
|
|
|
+ make.bottom.equalToSuperview()
|
|
}
|
|
}
|
|
}
|
|
}
|
|
tableView.snp.remakeConstraints { (make) in
|
|
tableView.snp.remakeConstraints { (make) in
|
|
@@ -140,9 +153,9 @@ class ShoppingCartView: BaseView {
|
|
make.left.right.equalToSuperview()
|
|
make.left.right.equalToSuperview()
|
|
make.height.equalTo(48)
|
|
make.height.equalTo(48)
|
|
if self.shoppingCartVCType == .push {
|
|
if self.shoppingCartVCType == .push {
|
|
- make.bottom.equalTo(-kSafeTabBarHeight)
|
|
|
|
|
|
+ make.bottom.equalToSuperview().offset(-kSafeTabBarHeight)
|
|
}else {
|
|
}else {
|
|
- make.bottom.equalTo(0)
|
|
|
|
|
|
+ make.bottom.equalToSuperview()
|
|
}
|
|
}
|
|
}
|
|
}
|
|
tableView.snp.remakeConstraints { (make) in
|
|
tableView.snp.remakeConstraints { (make) in
|