Commit 52bb20cb authored by lujunye's avatar lujunye

修复已知bug

parent f626cdc2
...@@ -18,7 +18,6 @@ class DistributorSettingAlertView: UIView { ...@@ -18,7 +18,6 @@ class DistributorSettingAlertView: UIView {
var is_all_select_mode = false var is_all_select_mode = false
var data:supGoodsListResDataModel?{ var data:supGoodsListResDataModel?{
didSet{ didSet{
temp_commission_type = (data?.commission_type)!
if data?.is_dbt == 0{ if data?.is_dbt == 0{
canYuBtn .setImage(UIImage.init(named: "daixuan"), for: .normal) canYuBtn .setImage(UIImage.init(named: "daixuan"), for: .normal)
nonCanYuBtn .setImage(UIImage.init(named: "yuxuan"), for: .normal) nonCanYuBtn .setImage(UIImage.init(named: "yuxuan"), for: .normal)
...@@ -26,6 +25,7 @@ class DistributorSettingAlertView: UIView { ...@@ -26,6 +25,7 @@ class DistributorSettingAlertView: UIView {
canYuBtn.isSelected = false canYuBtn.isSelected = false
nonCanYuBtn.isSelected = true nonCanYuBtn.isSelected = true
cover_view.isHidden = true cover_view.isHidden = true
}else{ }else{
canYuBtn .setImage(UIImage.init(named: "yuxuan"), for: .normal) canYuBtn .setImage(UIImage.init(named: "yuxuan"), for: .normal)
nonCanYuBtn .setImage(UIImage.init(named: "daixuan"), for: .normal) nonCanYuBtn .setImage(UIImage.init(named: "daixuan"), for: .normal)
...@@ -37,7 +37,7 @@ class DistributorSettingAlertView: UIView { ...@@ -37,7 +37,7 @@ class DistributorSettingAlertView: UIView {
}else{ }else{
moneyTx.text = data?.dbt_price moneyTx.text = data?.dbt_price
} }
temp_commission_type = (data?.commission_type)!
if data?.commission_type == 1 { if data?.commission_type == 1 {
payBiBtn .setImage(UIImage.init(named: "yuxuan"), for: .normal) payBiBtn .setImage(UIImage.init(named: "yuxuan"), for: .normal)
payJueBtn .setImage(UIImage.init(named: "daixuan"), for: .normal) payJueBtn .setImage(UIImage.init(named: "daixuan"), for: .normal)
......
...@@ -71,6 +71,7 @@ class FX_Product_GuanLiVC: BaseViewController,UITableViewDelegate,UITableViewDat ...@@ -71,6 +71,7 @@ class FX_Product_GuanLiVC: BaseViewController,UITableViewDelegate,UITableViewDat
let vc = DistributorSettingAlertView(frame: self.view.bounds) let vc = DistributorSettingAlertView(frame: self.view.bounds)
vc.tag = idx vc.tag = idx
vc.data = datas[idx] vc.data = datas[idx]
print("abc = ",vc.data?.commission_type)
vc.delegate = self vc.delegate = self
self.view.addSubview(vc) self.view.addSubview(vc)
} }
......
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