Commit 48cb840a authored by lujunye's avatar lujunye

7

parent eb76ff60
......@@ -39,8 +39,8 @@ class queryAgentGoods_data_model: Mappable {
var ceiling_price:String?//最高价格范围
var is_show : Int?//是否上下架:0否 1是
var dbt_price:String?
var commission_val:String?
required init?( map: Map) {
}
......@@ -59,6 +59,8 @@ class queryAgentGoods_data_model: Mappable {
ceiling_price <- map["ceiling_price"]
is_show <- map["is_show"]
commission_val <- map["commission_val"]
dbt_price <- map["dbt_price"]
}
}
//MARK: - 新增代理商下拉框查询
......
......@@ -12,6 +12,15 @@ protocol New_Fx_Cell_Delegate {
func New_Fx_Cell_btnSelect(idx:Int,cell:New_Fx_Cell)
}
class New_Fx_Cell: UITableViewCell {
var is_show = 0 {
didSet{
if is_show == 0 {
btn2.setTitle("商品上架", for: .normal)
}else{
btn2.setTitle("商品下架", for: .normal)
}
}
}
@IBAction func btn_select_action(_ sender: UIButton) {
delegate?.New_Fx_Cell_btnSelect(idx: self.tag, cell: self)
}
......@@ -20,7 +29,17 @@ class New_Fx_Cell: UITableViewCell {
print(sender.tag,self.tag)
delegate?.New_Fx_Cell_btnClick(idx: sender.tag, cell: self)
}
var is_dbt = 0 {
didSet{
if is_dbt == 0 {
btn1.isHidden = true
btn2.isHidden = true
}else{
btn1.isHidden = false
btn2.isHidden = false
}
}
}
@IBOutlet weak var btn1: UIButton!
@IBOutlet weak var btn2: UIButton!
@IBOutlet weak var btn3: UIButton!
......
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