fix
无故事王国
2024-03-05 74c7b6c7ac226c39e5ce252af234dc50efa38e74
WanPai/Root/Search/VC/MeQRCodeVC.swift
@@ -12,11 +12,12 @@
            @IBOutlet weak var tableView: UITableView!
            @IBOutlet weak var label_content: UILabel!
            private let viewModel = StudentExchangeViewModel()
            private let viewModel = ActivityStudentViewModel()
            override func viewDidLoad() {
                        super.viewDidLoad()
                        title = "我的二维码"
                        Services.queryProtocol(.matchStore, progress: false).subscribe(onNext: {[weak self] text in
                                    self?.label_content.text = (text.data ?? "").jq_filterFromHTML_1()
@@ -24,6 +25,7 @@
            }
            override func setUI() {
                        viewModel.isAuth.accept(1)
                        tableView.delegate = self
                        tableView.dataSource = self
                        tableView.separatorStyle = .none
@@ -37,7 +39,9 @@
            func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
                        let model = viewModel.dataSource.value[indexPath.row]
                        QRPreview.show("\(model.stuId)")
                        if let qrCode = WorldCupUserInfoQRCodel(id: model.id, isStudent: model.isStudent).toJSONString(){
                                    QRPreview.show(qrCode)
                        }
            }
            func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
@@ -47,7 +51,7 @@
            func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
                        let model = viewModel.dataSource.value[indexPath.row]
                        let cell = tableView.dequeueReusableCell(withIdentifier: "_MyQRCodeTCell") as! MyQRCodeTCell
                        cell.studentProfile1Model = model
                        cell.activityDetailPartModel = model
                        return cell
            }