Commit 3163b760 authored by David黄金龙's avatar David黄金龙

处理一处 crash

parent ad02da0e
...@@ -166,11 +166,10 @@ extension YHHomePageViewController: UICollectionViewDelegate, UICollectionViewDa ...@@ -166,11 +166,10 @@ extension YHHomePageViewController: UICollectionViewDelegate, UICollectionViewDa
if targetItem.id == item.id { if targetItem.id == item.id {
targetItem.is_like = item.is_like targetItem.is_like = item.is_like
targetItem.like_count = item.like_count targetItem.like_count = item.like_count
self.homeCollectView.reloadItems(at: [IndexPath(index: index)]) self.homeCollectView.reloadItems(at: [IndexPath.SubSequence(item: index, section: 0)])
} }
} }
} }
} }
self.navigationController?.pushViewController(vc) self.navigationController?.pushViewController(vc)
} else if model.type == 1 { } else if model.type == 1 {
......
...@@ -157,7 +157,9 @@ class YHHomeWebViewController: YHBaseViewController, WKUIDelegate, WKNavigationD ...@@ -157,7 +157,9 @@ class YHHomeWebViewController: YHBaseViewController, WKUIDelegate, WKNavigationD
bottomView.isStar = model.is_collect bottomView.isStar = model.is_collect
bottomView.isLike = model.is_like bottomView.isLike = model.is_like
self.block?(model) if operationFlag {
self.block?(model)
}
} }
} }
} }
......
...@@ -63,7 +63,8 @@ class YHMyViewController: YHBaseViewController, ConstraintRelatableTarget { ...@@ -63,7 +63,8 @@ class YHMyViewController: YHBaseViewController, ConstraintRelatableTarget {
let version = "app版本号:" + UIDevice.appVersion() + "_" + UIDevice.appBuild() let version = "app版本号:" + UIDevice.appVersion() + "_" + UIDevice.appBuild()
return [PersonalModuleItem(icon: "mine_item_msg", title: "我的消息".local, type:.myMessage), return [
PersonalModuleItem(icon: "mine_item_msg", title: "我的消息".local, type:.myMessage),
PersonalModuleItem(icon: "mine_item_progress", title: "我的进度".local, type:.myProgress), PersonalModuleItem(icon: "mine_item_progress", title: "我的进度".local, type:.myProgress),
PersonalModuleItem(icon: "mine_item_scoreCenter", title: "积分中心".local, type:.scoreCenter), PersonalModuleItem(icon: "mine_item_scoreCenter", title: "积分中心".local, type:.scoreCenter),
PersonalModuleItem(icon: "mine_item_recommend", title: "推荐有礼".local, type:.recommend), PersonalModuleItem(icon: "mine_item_recommend", title: "推荐有礼".local, type:.recommend),
......
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