Commit 8f1e5d6d authored by lujunye's avatar lujunye

safasfdas345234523adfasdf

parent b1e798bc
...@@ -323,12 +323,14 @@ class DZSH_Detail_ViewController: BaseViewController,UITableViewDelegate,UITable ...@@ -323,12 +323,14 @@ class DZSH_Detail_ViewController: BaseViewController,UITableViewDelegate,UITable
manger.requestWhenInUseAuthorization() manger.requestWhenInUseAuthorization()
if title_str == "店铺信息" { if title_str == "店铺信息" {
action = 4
btm_action_view.removeFromSuperview() btm_action_view.removeFromSuperview()
btm_action_bg.removeFromSuperview() btm_action_bg.removeFromSuperview()
}else{ }else{
if type == 2 {//已审核 if type == 2 {//已审核
btm_action_view.removeFromSuperview() btm_action_view.removeFromSuperview()
btm_action_bg.removeFromSuperview() btm_action_bg.removeFromSuperview()
action = 4
if action != 3 { if action != 3 {
btm_h.constant = 0 btm_h.constant = 0
lbl_top.constant = 0 lbl_top.constant = 0
...@@ -337,7 +339,7 @@ class DZSH_Detail_ViewController: BaseViewController,UITableViewDelegate,UITable ...@@ -337,7 +339,7 @@ class DZSH_Detail_ViewController: BaseViewController,UITableViewDelegate,UITable
} }
} }
} }
print("action === ",action)
hourArr.removeAll() hourArr.removeAll()
minArr.removeAll() minArr.removeAll()
...@@ -794,10 +796,8 @@ class DZSH_Detail_ViewController: BaseViewController,UITableViewDelegate,UITable ...@@ -794,10 +796,8 @@ class DZSH_Detail_ViewController: BaseViewController,UITableViewDelegate,UITable
let cell = tableView.dequeueReusableCell(withIdentifier: "TitleAndTFCell") as! TitleAndTFCell let cell = tableView.dequeueReusableCell(withIdentifier: "TitleAndTFCell") as! TitleAndTFCell
return cell return cell
} }
func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
switch indexPath.section { switch indexPath.section {
...@@ -991,7 +991,6 @@ class DZSH_Detail_ViewController: BaseViewController,UITableViewDelegate,UITable ...@@ -991,7 +991,6 @@ class DZSH_Detail_ViewController: BaseViewController,UITableViewDelegate,UITable
saveFile(image: upLoadImg, ["user_token":user_token as Any,"path":"shops" as Any], success: { (data) in saveFile(image: upLoadImg, ["user_token":user_token as Any,"path":"shops" as Any], success: { (data) in
let dataM = data as! SaveFileModel let dataM = data as! SaveFileModel
if dataM.code == 1 { if dataM.code == 1 {
print("图片上传成功\(dataM.data?.url)") print("图片上传成功\(dataM.data?.url)")
switch tag { switch tag {
case 21: case 21:
......
...@@ -57,8 +57,7 @@ class DZGL_VC: BaseViewController, UITableViewDelegate, UITableViewDataSource, U ...@@ -57,8 +57,7 @@ class DZGL_VC: BaseViewController, UITableViewDelegate, UITableViewDataSource, U
let alertView = GeliAlertView(frame: self.view.window!.bounds) let alertView = GeliAlertView(frame: self.view.window!.bounds)
alertView.delegate = self; alertView.delegate = self;
alertView.tishiLbl.text = "" alertView.tishiLbl.text = ""
let model = dbt_datas[cell.tag] alertView.titileLbl.text = "确定删除?"
alertView.titileLbl.text = "确定删除 ‘\(model.shop_name!)’?"
alertView.rightBtn.setAttributedTitle(NSAttributedString(string: "确定"), for: .normal) alertView.rightBtn.setAttributedTitle(NSAttributedString(string: "确定"), for: .normal)
alertView.rightBtn.tag = cell.tag alertView.rightBtn.tag = cell.tag
self.view.window?.addSubview(alertView) self.view.window?.addSubview(alertView)
...@@ -124,7 +123,9 @@ class DZGL_VC: BaseViewController, UITableViewDelegate, UITableViewDataSource, U ...@@ -124,7 +123,9 @@ class DZGL_VC: BaseViewController, UITableViewDelegate, UITableViewDataSource, U
cell.tag = indexPath.row cell.tag = indexPath.row
let model = dbt_datas[indexPath.row] let model = dbt_datas[indexPath.row]
cell.name_lbl.text = model.shop_name cell.name_lbl.text = model.shop_name
cell.img_view.sd_setImage(with:URL(string:SERVERCE_ImageHost + model.shop_img_thumb!)) if model.shop_img_thumb != nil {
cell.img_view.sd_setImage(with:URL(string:SERVERCE_ImageHost + model.shop_img_thumb!))
}
cell.adr_lbl.text = model.address cell.adr_lbl.text = model.address
cell.time_lbl.text = model.create_time cell.time_lbl.text = model.create_time
var status = "一对多" var status = "一对多"
......
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