Robert
2 天以前 d23fce7c9da9f47cb4bb4630c3b428b12ce1c7eb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
//
//  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
    }
}