Commit d62a8206 authored by lujunye's avatar lujunye

添加提示框

parent b8404593
......@@ -13,7 +13,9 @@ import IQKeyboardManagerSwift
import Dollar
class EPViewController: BaseViewController,UITableViewDelegate,UITableViewDataSource,TitleAndBtnCellDelegate,GLAlertSelectViewDelegate,GoodsClassViewControllerDelegate,PinPaiListViewControllerDelegate,AddImgCellDelegate,AddGuiGeCellDelegate,CreatNewSpecsViewControllerDelegate,ShangPinGguiGeCellDelegate,UICollectionViewDelegate,UICollectionViewDataSource,UICollectionViewDelegateFlowLayout,TitleAndSwitchCellDelegate,TitleAndTFCellDelegate,YuShouWeiKuanFaHuoCellDelegate,UITextFieldDelegate,ShowTimeSelectViewDelegate, LMNoteViewControllerDelegate {
class EPViewController: BaseViewController,UITableViewDelegate,UITableViewDataSource,TitleAndBtnCellDelegate,GLAlertSelectViewDelegate,GoodsClassViewControllerDelegate,PinPaiListViewControllerDelegate,AddImgCellDelegate,AddGuiGeCellDelegate,CreatNewSpecsViewControllerDelegate,ShangPinGguiGeCellDelegate,UICollectionViewDelegate,UICollectionViewDataSource,UICollectionViewDelegateFlowLayout,TitleAndSwitchCellDelegate,TitleAndTFCellDelegate,YuShouWeiKuanFaHuoCellDelegate,UITextFieldDelegate,ShowTimeSelectViewDelegate, LMNoteViewControllerDelegate,GeliAlertViewDelegate{
@IBOutlet weak var btmBtnViewH: NSLayoutConstraint!
......@@ -94,9 +96,20 @@ class EPViewController: BaseViewController,UITableViewDelegate,UITableViewDataSo
var isAllEditing = false
func sureGeliAlertViewAction(sender: UIButton) {
}
@objc func btmBtnClick(sender:UIButton){
switch sender.titleLabel!.text {
case "编辑":
let alertView = GeliAlertView(frame: self.view.window!.bounds)
alertView.delegate = self
alertView.tishiLbl.text = ""
alertView.titileLbl.text = "是否确认编辑订单?"
alertView.rightBtn.setAttributedTitle(NSAttributedString(string: "确认"), for: .normal)
self.view.window?.addSubview(alertView)
///XXXXX
let UserToken = UserDefaults.standard.value(forKey: "user_token")
GeneralInfo(["user_token":UserToken as Any], success: { (data) in
HUD.hide(animated: true)
......@@ -638,6 +651,7 @@ class EPViewController: BaseViewController,UITableViewDelegate,UITableViewDataSo
let cell = tableView.dequeueReusableCell(withIdentifier: "AddImg") as! AddImgCell
cell.addBtn.isUserInteractionEnabled = isAllEditing
cell.isAllEditing = isAllEditing
cell.addBtn.isHidden = !isAllEditing
cell.nameLbl.text = sptpArr[indexPath.row]
if indexPath.row == 0 {
cell.isSingle = true
......@@ -745,6 +759,11 @@ class EPViewController: BaseViewController,UITableViewDelegate,UITableViewDataSo
cell.tag = indexPath.row
cell.btn.isUserInteractionEnabled = isAllEditing
cell.contentLbl.text = tishixxArr1[indexPath.row] as! String
if isAllEditing{
cell.contentRight.constant = 32
}else{
cell.contentRight.constant = 15
}
cell.delegate = self
return cell
}
......
......@@ -343,6 +343,7 @@ class CreatNewSpecsViewController: BaseViewController,UITableViewDelegate,UITabl
let cell = tableView.dequeueReusableCell(withIdentifier: "TitleAndSwitch") as! TitleAndSwitchCell
cell.delegate = self
cell.namelbl.font = UIFont.boldSystemFont(ofSize: 15)
cell.infoSw.isUserInteractionEnabled = isAllEditing
if indexPath.section == 1{
cell.namelbl.text = "预售设置"
if isYuShouSetting == false{
......@@ -364,6 +365,7 @@ class CreatNewSpecsViewController: BaseViewController,UITableViewDelegate,UITabl
cell.inputTF2.keyboardType = .numberPad
cell.inputTF3.isUserInteractionEnabled = isAllEditing
cell.tag = indexPath.row
cell.infoSw.isUserInteractionEnabled = isAllEditing
cell.infoSw.isOn = isOpenYSSetting
cell.delegate = self
cell.inputTF1.text = yuShouPrice
......@@ -450,6 +452,7 @@ class CreatNewSpecsViewController: BaseViewController,UITableViewDelegate,UITabl
if section == 2 {//阶梯价设置
if isYuShouSetting {//预售阶梯价
let view = TitleAndSwitchHeaderView(frame: CGRect(x: 0, y: 0, width: fullScreenWidth, height: 90))
view.infoSW.isUserInteractionEnabled = isAllEditing
view.delegate = self
print("selectYuShou == ",selectYuShou)
view.selectYuShou = selectYuShou
......@@ -459,6 +462,7 @@ class CreatNewSpecsViewController: BaseViewController,UITableViewDelegate,UITabl
}else{//普通
let view = NewCreateHeader(frame: CGRect(x: 0, y: 0, width: fullScreenWidth, height: 49))
view.delegate = self
view.infoSw.isUserInteractionEnabled = isAllEditing
view.infoSw.isOn = isJieTiOpen
if isJieTiOpen == false{
return view
......
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