Commit 11b6677d authored by pete谢兆麟's avatar pete谢兆麟

网络请求逻辑添加

parent 9c5b1188
......@@ -88,6 +88,7 @@ extension YHServiceOrderProgressTableViewCell {
buttonLabel.text = "进行中"
buttonLabel.backgroundColor = UIColor.brandMainColor
progressImageView.image = UIImage(named: "service_progress_start")
progress.changeColor(UIColor.brandMainColor)
// 1 证件 2 信息完善 3 我的评分 4 我的方案 5 我的签字 6我的文书
if model.type == 1 {
titleLabel.text = "我的证件"
......
......@@ -287,6 +287,14 @@ class YHNetRequest: NSObject {
#if DEBUG
printLog("服务器返回数据是:\(obj)")
#endif
if obj.code == 10010 {
// 跳转登录
YHLoginManager.shared.clearUserInfo()
YHHUD.flash(message: "登录状态失效")
UIViewController.current?.navigationController?.popToRootViewController(animated: true)
goTabBarBy(tabType: .home)
return
}
guard let suclock = self.success else { return }
suclock(obj, statusCode)
} else {
......
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