Commit 6d2fb38c authored by lujunye's avatar lujunye

分销商品管理修正显示bug

parent 05f0ecca
......@@ -75,12 +75,18 @@ class DistributorSettingAlertView: UIView {
}
@IBAction func sureAction(_ sender: UIButton) {
if canYuBtn.isSelected {
if canYuBtn.isSelected && payBiBtn.isUserInteractionEnabled {
if (payTF.text?.count == 0 || moneyTx.text?.count == 0){
HUD.flash(.label("请输入数据~"), delay: 1.2)
return
}
}
if canYuBtn.isSelected && payBiBtn.isUserInteractionEnabled == false{
if (payTF.text?.count == 0){
HUD.flash(.label("请输入数据~"), delay: 1.2)
return
}
}
//确定
var operation_type = 1
......@@ -111,13 +117,12 @@ class DistributorSettingAlertView: UIView {
super.layoutSubviews()
if is_all_select_mode {
cover_view.isHidden = false
moneyTx.isUserInteractionEnabled = false
payBiBtn .setImage(UIImage.init(named: "daixuan"), for: .normal)
payJueBtn .setImage(UIImage.init(named: "yuxuan"), for: .normal)
payJueBtn.setImage(UIImage.init(named: "daixuan"), for: .normal)
payBiBtn.setImage(UIImage.init(named: "yuxuan"), for: .normal)
payBiBtn.isUserInteractionEnabled = false
payJueBtn.isUserInteractionEnabled = false
payNumTypelbl.text = ""
payTF.placeholder = "请输入数值"
payNumTypelbl.text = "%"
payTF.placeholder = "请输入比例"
}
}
//初始化时将xib中的view添加进来
......
......@@ -33,7 +33,7 @@ class FX_Product_GuanLiVC: BaseViewController,UITableViewDelegate,UITableViewDat
"operation_type":operation_type as Any,
"sku_id":sku_id 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_val":commission_val as Any]
supSetCommodity(dic) { (data) in
......@@ -41,7 +41,7 @@ class FX_Product_GuanLiVC: BaseViewController,UITableViewDelegate,UITableViewDat
view.removeFromSuperview()
self.navbar.rightTitle = "编辑商品"
self.is_Edit = false
self.edit_bottom_view_H.constant = 49
self.edit_bottom_view_H.constant = 0
self.selectItem.removeAll()
self.home_list_tbv.mj_header?.beginRefreshing()
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