Commit aeec610d authored by 刘俊宏's avatar 刘俊宏

调整工作中心

parent 106b2233
{
"images" : [
{
"filename" : "workshangchuan.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "workshangchuan@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "workshangchuan@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
...@@ -73,9 +73,11 @@ class WorkItemTableViewCell: UITableViewCell , UICollectionViewDelegate, UIColle ...@@ -73,9 +73,11 @@ class WorkItemTableViewCell: UITableViewCell , UICollectionViewDelegate, UIColle
let cell = collectionView.dequeueReusableCell(withReuseIdentifier: "WorkItemCollectionViewCell", let cell = collectionView.dequeueReusableCell(withReuseIdentifier: "WorkItemCollectionViewCell",
for: indexPath) as! WorkItemCollectionViewCell for: indexPath) as! WorkItemCollectionViewCell
cell.bgImV.image = UIImage.init(named: "")
//常用功能无数据处理 //常用功能无数据处理
if dataIndexSection == 1 && itemArrs.count == 0{ if dataIndexSection == 1 && itemArrs.count == 0{
cell.itemImgV.image = UIImage.init(named: "lmn_btn_plus") cell.itemImgV.image = UIImage.init(named: "workshangchuan")
cell.bgImV.image = UIImage.init(named: "workkuang") cell.bgImV.image = UIImage.init(named: "workkuang")
cell.itemNameLbl.text = "添加" cell.itemNameLbl.text = "添加"
return cell return cell
......
...@@ -97,7 +97,7 @@ class EditWorkCViewController: BaseViewController, UICollectionViewDelegate, UIC ...@@ -97,7 +97,7 @@ class EditWorkCViewController: BaseViewController, UICollectionViewDelegate, UIC
let userDataStr = workTestMd!.toJSONString() let userDataStr = workTestMd!.toJSONString()
UserDefaults.standard.set(userDataStr, forKey: "WorkDataModel") UserDefaults.standard.set(userDataStr, forKey: "WorkDataModel")
UserDefaults.standard.synchronize() UserDefaults.standard.synchronize()
HUD.flash(.label("保存成功"), onView: nil, delay: 1.2) { (istrue) in HUD.flash(.label("保存成功"), onView: nil, delay: 0.8) { (istrue) in
self.delegate?.updataUIbyEditWorkSave() self.delegate?.updataUIbyEditWorkSave()
self.navigationController?.popViewController(animated: true) self.navigationController?.popViewController(animated: true)
} }
......
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