无故事王国
2023-10-28 576aec37fe9b5eb395097be1ced0680ae97590f8
WanPai/Config/Def.swift
@@ -116,7 +116,7 @@
   }
}
func jumpPage(name:String,page:String = "",type:String = "",id:Int? = nil){
func jumpPage(model:String,page:String = "",type:String = "",id:Int? = nil){
   var storeModel:NormalSimpleModel?
   if let storeStr = UserDefaults.standard.object(forKey: "CurrentStore") as? String{
@@ -125,11 +125,35 @@
      }
   }
   switch name {
      case "加入玩湃":
         if page == "主页"{}
         if page == "运动营列表"{
   switch model {
      case "加入会员":
         if page == "成为会员"{
            let vc = JoinMemberIntroduceVC()
            JQ_currentViewController().jq_push(vc:vc)
         }
      case "首页banner":
         if page == "成为会员"{
            let vc = JoinMemberIntroduceVC()
            JQ_currentViewController().jq_push(vc:vc)
         }
      case "首页":
         if page == "常见问题"{
            JQ_currentViewController().jq_push(vc: CustomerListVC(page: 1))
         }
         ///===============
      case "加入玩湃":
         if page == "主页"{
            JQ_currentViewController().navigationController?.popToRootViewController(animated: true)
            DispatchQueue.main.asyncAfter(deadline: .now()+0.5) {
               JQ_currentViewController().tabBarController?.selectedIndex = 0
            }
         }
         if page == "课程列表"{
            if type == "详情"{
               JQ_currentViewController().jq_push(vc: CourseDetailVC(id:id ?? 0))
            }else{
@@ -145,26 +169,29 @@
            }
         }
         if page == "线上课得积分"{
            if type == "详情"{
            }else{
               let vc = CourseOnlineListVC(position: 1)
               vc.title = page
               JQ_currentViewController().jq_push(vc: vc)
            }
         }
         if page == "看视频得奖励"{
         if page == "线上课得积分" || page == "看视频得奖励"{
            if type == "详情"{
               let vc = CourseVideoDetailVC(id: id ?? 0)
               vc.title = page
               JQ_currentViewController().jq_push(vc: vc)
            }else{
               let vc = CourseOnlineListVC(position: 2)
               let vc = CourseOnlineSubListVC(classificationId: id ?? 0)
               vc.title = page
               JQ_currentViewController().jq_push(vc: vc)
            }
         }
//         if page == "看视频得奖励"{
//            if type == "详情"{
//               let vc = CourseVideoDetailVC(id: id ?? 0)
//               vc.title = page
//               JQ_currentViewController().jq_push(vc: vc)
//            }else{
//               let vc = CourseOnlineSubListVC(classificationId: id ?? 0)
//               vc.title = page
//               JQ_currentViewController().jq_push(vc: vc)
//            }
//         }
         if page == "预约场地"{
            if type == "详情"{
@@ -182,14 +209,20 @@
            JQ_currentViewController().jq_push(vc: JoinMemberIntroduceVC())
         }
      case "开始运动营":
      case "开始课程":
         if page == "主页"{
            JQ_currentViewController().navigationController?.popToRootViewController(animated: true)
            DispatchQueue.main.asyncAfter(deadline: .now()+0.5) {
               JQ_currentViewController().tabBarController?.selectedIndex = 1
            }
         }
      case "使用福利":
         if page == "主页"{
            JQ_currentViewController().navigationController?.popToRootViewController(animated: true)
            DispatchQueue.main.asyncAfter(deadline: .now()+0.5) {
               JQ_currentViewController().tabBarController?.selectedIndex = 2
            }
         }
         if page == "充值中心"{
@@ -206,10 +239,10 @@
         }
         if page == "本周福利"{
            if type == "限时折扣"{
            if type == "限时折扣(主页)"{
               JQ_currentViewController().jq_push(vc: WelfareWeeklyListVC(page: 0))
            }
            if type == "赠送课时"{
            if type == "赠送课时(主页)"{
               JQ_currentViewController().jq_push(vc: WelfareWeeklyListVC(page: 1))
            }
            if type == "指定折扣"{
@@ -219,7 +252,12 @@
      case "探索玩湃":
         if page == "门店列表"{
//            let vc = SearchStoreListVC()
//            JQ_currentViewController().jq_push(vc: vc)
            JQ_currentViewController().navigationController?.popToRootViewController(animated: true)
            DispatchQueue.main.asyncAfter(deadline: .now()+0.5) {
               JQ_currentViewController().tabBarController?.selectedIndex = 3
            }
         }
         if page == "常见问题"{