Commit 52bb20cb authored by lujunye's avatar lujunye

修复已知bug

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