Commit 479154b3 authored by Steven杜宇's avatar Steven杜宇

// vip

parent e32f9bf0
......@@ -17,16 +17,25 @@ class YHMyUserInfoView: UIView {
var vipLevel: YHUserVipLevel = .none {
didSet {
var vipImg = ""
var vipImgWidth = 0.0
if vipLevel == .gold {
vipImg = "mine_vip_1"
vipImgWidth = 43.0
} else if vipLevel == .platinum {
vipImg = "mine_vip_2"
vipImgWidth = 43.0
} else if vipLevel == .diamond {
vipImg = "mine_vip_3"
vipImgWidth = 43.0
}
vipImgView.image = UIImage(named: vipImg)
vipImgView.snp.updateConstraints { make in
make.width.equalTo(vipImgWidth)
}
}
}
......
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