| | |
| | | |
| | | //提示框 |
| | | func alert(msg: String) { |
| | | hiddenHUD() |
| | | SVProgressHUD.showInfo(withStatus: msg) |
| | | // hiddenHUD() |
| | | SVProgressHUD.showInfo(withStatus: msg,maskType: .clear) |
| | | } |
| | | |
| | | func alertError(msg:String){ |
| | | hiddenHUD() |
| | | SVProgressHUD.setMinimumDismissTimeInterval(1.5) |
| | | SVProgressHUD.showError(withStatus: msg) |
| | | // hiddenHUD() |
| | | SVProgressHUD.showError(withStatus: msg,maskType: .clear) |
| | | } |
| | | |
| | | func alertSuccess(msg:String){ |
| | | hiddenHUD() |
| | | SVProgressHUD.showSuccess(withStatus: msg) |
| | | // hiddenHUD() |
| | | SVProgressHUD.showSuccess(withStatus: msg,maskType: .clear) |
| | | } |
| | | |
| | | func showHUD(_ text:String? = nil){ |
| | |
| | | case "加入玩湃": |
| | | if page == "主页"{} |
| | | |
| | | if page == "课程列表"{ |
| | | if page == "运动营列表"{ |
| | | if type == "详情"{ |
| | | JQ_currentViewController().jq_push(vc: CourseDetailVC(id:id ?? 0)) |
| | | }else{ |
| | |
| | | JQ_currentViewController().jq_push(vc: JoinMemberIntroduceVC()) |
| | | } |
| | | |
| | | case "开始课程": |
| | | case "开始运动营": |
| | | if page == "主页"{ |
| | | |
| | | } |