//
|
// DriverInfoCell.swift
|
// OKProject
|
//
|
// Created by alvin_y on 2020/6/11.
|
// Copyright © 2020 yangwang. All rights reserved.
|
//
|
|
import UIKit
|
import HCSStarRatingView
|
class DriverInfoCell: UITableViewCell {
|
|
/// 内容
|
@IBOutlet weak var label_content: UILabel!
|
|
/// 评分
|
@IBOutlet weak var starView: HCSStarRatingView!
|
|
/// 时间
|
@IBOutlet weak var label_date: UILabel!
|
override func awakeFromNib() {
|
super.awakeFromNib()
|
// Initialization code
|
}
|
|
|
func configure(model: DriverInfoModel){
|
label_date.text = model.time
|
label_content.text = model.content
|
starView.value = model.fraction.remain1Digits().wy_toFloat()
|
}
|
override func setSelected(_ selected: Bool, animated: Bool) {
|
super.setSelected(selected, animated: animated)
|
|
// Configure the view for the selected state
|
}
|
|
}
|