Commit 1fd20f20 authored by Steven杜宇's avatar Steven杜宇

// 商务通知

parent 1a3808fc
......@@ -46,6 +46,9 @@ class YHOrderTipsItemView: UIView {
} else if msg.type == YHMessageType.renewal.rawValue {
return "身份续签"
} else if msg.type == YHMessageType.business.rawValue {
return "银河商务"
} else {
return "--"
}
......
......@@ -69,6 +69,10 @@ class YHMessageInfoModel: SmartCodable {
} else if type == YHMessageType.renewal.rawValue {
return "身份续签"
} else if type == YHMessageType.business.rawValue {
return "银河商务"
}
return ""
}
......@@ -83,6 +87,7 @@ class YHMsgListModel: SmartCodable {
var approval: YHMessageInfoModel = YHMessageInfoModel()
var goToHK: YHMessageInfoModel = YHMessageInfoModel()
var renewal: YHMessageInfoModel = YHMessageInfoModel()
var business: YHMessageInfoModel = YHMessageInfoModel()
required init() {
self.information.type = YHMessageType.infoFill.rawValue
......@@ -93,6 +98,7 @@ class YHMsgListModel: SmartCodable {
self.approval.type = YHMessageType.identityApproved.rawValue
self.goToHK.type = YHMessageType.goToHK.rawValue
self.renewal.type = YHMessageType.renewal.rawValue
self.business.type = YHMessageType.business.rawValue
}
enum CodingKeys: String, CodingKey {
......
......@@ -60,6 +60,9 @@ class YHMessageSessionCell: UITableViewCell {
} else if model.type == YHMessageType.renewal.rawValue {
self.iconImgView.image = UIImage(named: "msg_icon_renewal")
} else if model.type == YHMessageType.business.rawValue {
self.iconImgView.image = UIImage(named: "msg_icon_business")
}
self.badgeLabel.isHidden = model.unreadCount <= 0
......
......@@ -39,7 +39,7 @@ class YHMsgViewModel: NSObject {
self.msgList.approval.type = YHMessageType.identityApproved.rawValue
self.msgList.goToHK.type = YHMessageType.goToHK.rawValue
self.msgList.renewal.type = YHMessageType.renewal.rawValue
self.msgList.business.type = YHMessageType.business.rawValue
callBackBlock(true, nil)
} else {
let error : YHErrorModel = YHErrorModel(errorCode:Int32(json.code), errorMsg: json.msg)
......
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