Commit c0654f4e authored by lujunye's avatar lujunye

修复编辑bug

parent 1bae4c27
...@@ -10,7 +10,11 @@ import UIKit ...@@ -10,7 +10,11 @@ import UIKit
class FX_Product_GuanLiVC: BaseViewController,UITableViewDelegate,UITableViewDataSource, UISearchBarDelegate, SearchBarViewDelegate,GYS_FX_ProductCellDelegate ,SelectContentViewDelegate,HeaderSelectViewDelegate,DistributorSettingAlertViewDelegate{ class FX_Product_GuanLiVC: BaseViewController,UITableViewDelegate,UITableViewDataSource, UISearchBarDelegate, SearchBarViewDelegate,GYS_FX_ProductCellDelegate ,SelectContentViewDelegate,HeaderSelectViewDelegate,DistributorSettingAlertViewDelegate{
@IBOutlet weak var all_select_btn: UIButton!
@IBAction func select_mode_Action(_ sender: UIButton) { @IBAction func select_mode_Action(_ sender: UIButton) {
if selectItem.count == 0 {
return
}
let vc = DistributorSettingAlertView(frame: self.view.bounds) let vc = DistributorSettingAlertView(frame: self.view.bounds)
vc.delegate = self vc.delegate = self
if selectItem.count > 1 { if selectItem.count > 1 {
...@@ -215,6 +219,7 @@ class FX_Product_GuanLiVC: BaseViewController,UITableViewDelegate,UITableViewDat ...@@ -215,6 +219,7 @@ class FX_Product_GuanLiVC: BaseViewController,UITableViewDelegate,UITableViewDat
removeBlackBtnView() removeBlackBtnView()
is_Edit = !is_Edit is_Edit = !is_Edit
navbar.rightTitle = "编辑商品" navbar.rightTitle = "编辑商品"
all_select_btn.isSelected = false
edit_bottom_view_H.constant = 0 edit_bottom_view_H.constant = 0
if is_Edit{ if is_Edit{
navbar.rightTitle = "取消" navbar.rightTitle = "取消"
......
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
<objects> <objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="FX_Product_GuanLiVC" customModule="TestClass" customModuleProvider="target"> <placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="FX_Product_GuanLiVC" customModule="TestClass" customModuleProvider="target">
<connections> <connections>
<outlet property="all_select_btn" destination="60k-Z3-oI0" id="MNn-rv-qak"/>
<outlet property="count_lbl" destination="cql-r2-rMK" id="22X-eW-4uK"/> <outlet property="count_lbl" destination="cql-r2-rMK" id="22X-eW-4uK"/>
<outlet property="edit_bottom_view_H" destination="ERg-pr-S8x" id="2Qe-1Y-UGP"/> <outlet property="edit_bottom_view_H" destination="ERg-pr-S8x" id="2Qe-1Y-UGP"/>
<outlet property="home_list_tbv" destination="bdM-Ne-23v" id="IbX-V9-kxb"/> <outlet property="home_list_tbv" destination="bdM-Ne-23v" id="IbX-V9-kxb"/>
......
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