Commit 28ecb9d0 authored by David黄金龙's avatar David黄金龙

添加 条件控制

parent 41531894
...@@ -21,6 +21,8 @@ class YHConfigModel : SmartCodable { ...@@ -21,6 +21,8 @@ class YHConfigModel : SmartCodable {
var suggest_updating: Bool = false var suggest_updating: Bool = false
var suggest_updating_msg: String = "" var suggest_updating_msg: String = ""
var is_integral_open : Bool = false //条件控制哈
required init() { required init() {
} }
} }
...@@ -282,9 +282,11 @@ class YHMyViewController: YHBaseViewController, ConstraintRelatableTarget { ...@@ -282,9 +282,11 @@ class YHMyViewController: YHBaseViewController, ConstraintRelatableTarget {
items.append(item) items.append(item)
} }
if YHUatHelper.shared.getUatModuleStatusBy(module: YHUatModules(rawValue: 2)) == 1 { if let configModel = YHConfigManager.shared.reqVM.configModel,configModel.is_integral_open {
let item = PersonalModuleItem(icon: "mine_item_scoreCenter", title: "积分中心".local, type:.scoreCenter) if YHUatHelper.shared.getUatModuleStatusBy(module: YHUatModules(rawValue: 2)) == 1 {
items.append(item) let item = PersonalModuleItem(icon: "mine_item_scoreCenter", title: "积分中心".local, type:.scoreCenter)
items.append(item)
}
} }
if YHUatHelper.shared.getUatModuleStatusBy(module: YHUatModules(rawValue: 3)) == 1 { if YHUatHelper.shared.getUatModuleStatusBy(module: YHUatModules(rawValue: 3)) == 1 {
......
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