|
|
@@ -17,6 +17,7 @@ class MOLinePkContributionCell: UITableViewCell {
|
|
|
private let userInfoLabel = YYLabel()
|
|
|
private let beans = UILabel()
|
|
|
private var user: MOLivePkContributeUser? = nil
|
|
|
+ private var index: Int = 0
|
|
|
|
|
|
override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
|
|
|
super.init(style: style, reuseIdentifier: reuseIdentifier)
|
|
|
@@ -33,8 +34,19 @@ class MOLinePkContributionCell: UITableViewCell {
|
|
|
updateUserName(data.user.nickname, data.user.gender, data.user.level, 0)
|
|
|
beans.text = data.amount.toStrFormat(1)
|
|
|
self.user = data
|
|
|
+ self.index = index
|
|
|
updateIndexNum(index + 1, type, hightLightFirst)
|
|
|
}
|
|
|
+
|
|
|
+ func showFirstNumPic() {
|
|
|
+ if index == 0 {
|
|
|
+ numLabel.isHidden = true
|
|
|
+ firstNumIc.isHidden = false
|
|
|
+ } else {
|
|
|
+ numLabel.isHidden = false
|
|
|
+ firstNumIc.isHidden = true
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
extension MOLinePkContributionCell {
|