Commit 6d2fb38c authored by lujunye's avatar lujunye

分销商品管理修正显示bug

parent 05f0ecca
...@@ -75,12 +75,18 @@ class DistributorSettingAlertView: UIView { ...@@ -75,12 +75,18 @@ class DistributorSettingAlertView: UIView {
} }
@IBAction func sureAction(_ sender: UIButton) { @IBAction func sureAction(_ sender: UIButton) {
if canYuBtn.isSelected { if canYuBtn.isSelected && payBiBtn.isUserInteractionEnabled {
if (payTF.text?.count == 0 || moneyTx.text?.count == 0){ if (payTF.text?.count == 0 || moneyTx.text?.count == 0){
HUD.flash(.label("请输入数据~"), delay: 1.2) HUD.flash(.label("请输入数据~"), delay: 1.2)
return return
} }
} }
if canYuBtn.isSelected && payBiBtn.isUserInteractionEnabled == false{
if (payTF.text?.count == 0){
HUD.flash(.label("请输入数据~"), delay: 1.2)
return
}
}
//确定 //确定
var operation_type = 1 var operation_type = 1
...@@ -111,13 +117,12 @@ class DistributorSettingAlertView: UIView { ...@@ -111,13 +117,12 @@ class DistributorSettingAlertView: UIView {
super.layoutSubviews() super.layoutSubviews()
if is_all_select_mode { if is_all_select_mode {
cover_view.isHidden = false cover_view.isHidden = false
moneyTx.isUserInteractionEnabled = false payJueBtn.setImage(UIImage.init(named: "daixuan"), for: .normal)
payBiBtn .setImage(UIImage.init(named: "daixuan"), for: .normal) payBiBtn.setImage(UIImage.init(named: "yuxuan"), for: .normal)
payJueBtn .setImage(UIImage.init(named: "yuxuan"), for: .normal)
payBiBtn.isUserInteractionEnabled = false payBiBtn.isUserInteractionEnabled = false
payJueBtn.isUserInteractionEnabled = false payJueBtn.isUserInteractionEnabled = false
payNumTypelbl.text = "" payNumTypelbl.text = "%"
payTF.placeholder = "请输入数值" payTF.placeholder = "请输入比例"
} }
} }
//初始化时将xib中的view添加进来 //初始化时将xib中的view添加进来
......
...@@ -33,7 +33,7 @@ class FX_Product_GuanLiVC: BaseViewController,UITableViewDelegate,UITableViewDat ...@@ -33,7 +33,7 @@ class FX_Product_GuanLiVC: BaseViewController,UITableViewDelegate,UITableViewDat
"operation_type":operation_type as Any, "operation_type":operation_type as Any,
"sku_id":sku_id as Any, "sku_id":sku_id as Any,
"dbt_price":dbt_price as Any, "dbt_price":dbt_price as Any,
"commission_type":commission_type as Any, "commission_type":1 as Any,
"commission_per":commission_per as Any, "commission_per":commission_per as Any,
"commission_val":commission_val as Any] "commission_val":commission_val as Any]
supSetCommodity(dic) { (data) in supSetCommodity(dic) { (data) in
...@@ -41,7 +41,7 @@ class FX_Product_GuanLiVC: BaseViewController,UITableViewDelegate,UITableViewDat ...@@ -41,7 +41,7 @@ class FX_Product_GuanLiVC: BaseViewController,UITableViewDelegate,UITableViewDat
view.removeFromSuperview() view.removeFromSuperview()
self.navbar.rightTitle = "编辑商品" self.navbar.rightTitle = "编辑商品"
self.is_Edit = false self.is_Edit = false
self.edit_bottom_view_H.constant = 49 self.edit_bottom_view_H.constant = 0
self.selectItem.removeAll() self.selectItem.removeAll()
self.home_list_tbv.mj_header?.beginRefreshing() self.home_list_tbv.mj_header?.beginRefreshing()
HUD.hide() HUD.hide()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment