Commit 89c4bb06 authored by pete谢兆麟's avatar pete谢兆麟

兜底

parent 0f5e2488
......@@ -12,6 +12,7 @@ class YHHomeKingKongBlockView: UIView {
var kingModel: [YHHomeFourKingInfoModel] = [] {
didSet {
if kingModel.count != 0 {
arrData.removeAll()
for item in kingModel {
let model = YHHomeKingKongBlockModel(type: "\(item.skip_type)", iconName: item.img_url, title: "")
......@@ -19,6 +20,10 @@ class YHHomeKingKongBlockView: UIView {
}
self.removeSubviews()
self.initView()
} else {
self.removeSubviews()
self.initView()
}
}
}
static let viewH : CGFloat = (KScreenWidth - 20.0 * 2 - 10.0 * 3) / 4.0
......@@ -32,10 +37,10 @@ class YHHomeKingKongBlockView: UIView {
}
var arrData : [YHHomeKingKongBlockModel] = [
YHHomeKingKongBlockModel(type: "3", iconName: "kingkong_sfys", title: "身份优势"),
YHHomeKingKongBlockModel(type: "4", iconName: "kingkong_yqyl", title: "邀请有礼"),
YHHomeKingKongBlockModel(type: "5", iconName: "kingkong_khxs", title: "客户心声"),
YHHomeKingKongBlockModel(type: "6", iconName: "kingkong_xgbs", title: "香港办事"),
YHHomeKingKongBlockModel(type: "2", iconName: "kingkong_sfys", title: "身份优势"),
YHHomeKingKongBlockModel(type: "3", iconName: "kingkong_yqyl", title: "邀请有礼"),
YHHomeKingKongBlockModel(type: "4", iconName: "kingkong_khxs", title: "客户心声"),
YHHomeKingKongBlockModel(type: "5", iconName: "kingkong_xgbs", title: "香港办事"),
]
}
......
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