| | |
| | | |
| | | @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() |
| | |
| | | } |
| | | |
| | | override func setUI() { |
| | | viewModel.isAuth.accept(1) |
| | | tableView.delegate = self |
| | | tableView.dataSource = self |
| | | tableView.separatorStyle = .none |
| | |
| | | |
| | | 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 { |
| | |
| | | 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 |
| | | } |
| | | |