//
|
// MyQRCodeTCell.swift
|
// WanPai
|
//
|
// Created by 无故事王国 on 2024/2/26.
|
//
|
|
import UIKit
|
import JQTools
|
|
class MyQRCodeTCell: UITableViewCell {
|
@IBOutlet weak var view_container: UIView!
|
@IBOutlet weak var label_name: UILabel!
|
@IBOutlet weak var label_age: UILabel!
|
@IBOutlet weak var img_QRCode: UIImageView!
|
|
// var studentProfile1Model:StudentProfile1Model?{
|
// didSet{
|
// if let m =
|
// label_name.text = studentProfile1Model.stuName
|
// label_age.text = "\(studentProfile1Model.stuAge)岁"
|
//
|
// if let qrCode = WorldCupUserInfoQRCodel(id: studentProfile1Model.stuId, isStudent: 1).toJSONString(){
|
// img_QRCode.image = UIImage.jq_GenerateQRCode(with: "\(qrCode)", width: 100)
|
// }
|
// }
|
// }
|
|
var activityDetailPartModel:ActivityDetailPartModel?{
|
didSet{
|
if let m = activityDetailPartModel{
|
label_name.text = m.name
|
label_age.text = "\(m.age)岁"
|
|
if let qrCode = WorldCupUserInfoQRCodel(id: m.id, isStudent: m.isStudent).toJSONString(){
|
img_QRCode.image = UIImage.jq_GenerateQRCode(with: "\(qrCode)", width: 100)
|
}
|
}
|
}
|
}
|
|
override func awakeFromNib() {
|
super.awakeFromNib()
|
// Initialization code
|
view_container.jq_borderColor = UIColor(hexString: "#FD8602")
|
view_container.jq_borderWidth = 1
|
view_container.jq_cornerRadius = 4
|
selectionStyle = .none
|
}
|
}
|