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,10 +282,12 @@ class YHMyViewController: YHBaseViewController, ConstraintRelatableTarget { ...@@ -282,10 +282,12 @@ class YHMyViewController: YHBaseViewController, ConstraintRelatableTarget {
items.append(item) items.append(item)
} }
if let configModel = YHConfigManager.shared.reqVM.configModel,configModel.is_integral_open {
if YHUatHelper.shared.getUatModuleStatusBy(module: YHUatModules(rawValue: 2)) == 1 { if YHUatHelper.shared.getUatModuleStatusBy(module: YHUatModules(rawValue: 2)) == 1 {
let item = PersonalModuleItem(icon: "mine_item_scoreCenter", title: "积分中心".local, type:.scoreCenter) let item = PersonalModuleItem(icon: "mine_item_scoreCenter", title: "积分中心".local, type:.scoreCenter)
items.append(item) items.append(item)
} }
}
if YHUatHelper.shared.getUatModuleStatusBy(module: YHUatModules(rawValue: 3)) == 1 { if YHUatHelper.shared.getUatModuleStatusBy(module: YHUatModules(rawValue: 3)) == 1 {
let item = PersonalModuleItem(icon: "mine_item_code", title: "我的测评码".local, type:.myTestCode) let item = PersonalModuleItem(icon: "mine_item_code", title: "我的测评码".local, type:.myTestCode)
......
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