Commit 0c25026d authored by Steven杜宇's avatar Steven杜宇

// fix

parent 25c67bb2
...@@ -97,24 +97,22 @@ class YHActivityTravelViewController: YHBaseViewController { ...@@ -97,24 +97,22 @@ class YHActivityTravelViewController: YHBaseViewController {
}() }()
@objc func didRightBtnClicked() { @objc func didRightBtnClicked() {
func goToScanVC() { let checkInVC = YHScanViewController.create(types: .checkIn) { [weak self] result in
let checkInVC = YHScanViewController.create(types: .checkIn) { [weak self] result in guard let self = self else {
guard let self = self else { return
}
print("签到码: \(result.code)")
if let type = result.recognizedType, type == YHScanType.checkIn { // 活动扫码签到
if !type.prefixString.isEmpty, result.code.contains(type.prefixString) {
let signId = result.code.replacingOccurrences(of: type.prefixString, with: "")
let vc = YHActivitySignSuccessViewController()
vc.activityId = signId
self.navigationController?.pushViewController(vc)
return return
} }
print("签到码: \(result.code)")
if let type = result.recognizedType, type == YHScanType.checkIn { // 活动扫码签到
if !type.prefixString.isEmpty, result.code.contains(type.prefixString) {
let signId = result.code.replacingOccurrences(of: type.prefixString, with: "")
let vc = YHActivitySignSuccessViewController()
vc.activityId = signId
self.navigationController?.pushViewController(vc)
return
}
}
} }
navigationController?.pushViewController(checkInVC, animated: true)
} }
navigationController?.pushViewController(checkInVC, animated: true)
} }
func updateBottomView() { func updateBottomView() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment