From 177ae5f9f619bd39e2d505709d8c5b419e7867ee Mon Sep 17 00:00:00 2001 From: younger_times <841720330@qq.com> Date: 星期三, 14 六月 2023 18:58:21 +0800 Subject: [PATCH] 活动UI --- WanPai/Assets.xcassets/Icons/icon_calendar.imageset/Contents.json | 22 WanPai/Root/Activity/VC/ActivitySignupListVC.swift | 99 + WanPai/Root/Activity/VC/ActivityDetailApplyVC.swift | 69 + WanPai/Root/Other/TCell/StudentInfo_2_TCell.xib | 161 ++ WanPai/Root/Activity/VC/ActivityDetailVC.xib | 564 ++++++++++ WanPai/Assets.xcassets/Btns/btn_local.imageset/btn_local@3x.png | 0 WanPai/Root/Activity/View/StudentUpdateInfoView.xib | 252 ++++ WanPai/Assets.xcassets/Icons/icon_notice.imageset/icon_notice@3x.png | 0 WanPai.xcodeproj/xcuserdata/yangkai.xcuserdatad/xcschemes/xcschememanagement.plist | 2 WanPai/Common/View/PaymentView.xib | 66 + WanPai/Root/Activity/VC/ActivityDetailVC.swift | 21 WanPai/Root/Activity/VC/ActivityListVC.swift | 74 + WanPai/Root/Course/VC/AddStudentVC.xib | 32 WanPai/Assets.xcassets/Btns/btn_edit.imageset/btn_edit@2x.png | 0 WanPai/Assets.xcassets/Icons/icon_calendar.imageset/icon_calendar@2x.png | 0 WanPai/Root/Activity/VC/ActivityDetailApplyVC.xib | 580 ++++++++++ WanPai/Assets.xcassets/Icons/icon_hot.imageset/icon_hot@3x.png | 0 WanPai/Root/Activity/TCell/ActivityInfoTCell.xib | 172 +++ WanPai/Root/Activity/View/StoresInfoView.xib | 179 +++ WanPai/Root/Course/VC/CourseDetailApplyVC.swift | 4 WanPai/Assets.xcassets/Icons/icon_notice.imageset/icon_notice@2x.png | 0 WanPai/Root/Activity/VC/ActivitySignupListSubVC.swift | 67 + WanPai/Root/Activity/VC/ActivityListVC.xib | 187 +++ WanPai/Assets.xcassets/Btns/btn_local.imageset/btn_local@2x.png | 0 WanPai/Root/Activity/View/StoresInfoView.swift | 53 WanPai/Root/Course/View/CityChooseSubTypeView.swift | 55 + WanPai/Root/Course/View/CityChooseSubTypeView.xib | 95 + WanPai/Root/Other/View/StudentChooseView.swift | 35 WanPai/Assets.xcassets/Icons/btn_edit_gray.imageset/btn_edit_gray@3x.png | 0 WanPai/Assets.xcassets/Btns/btn_edit.imageset/Contents.json | 22 WanPai/Config/Enums.swift | 6 WanPai.xcodeproj/project.pbxproj | 88 + WanPai/Assets.xcassets/Btns/btn_local.imageset/Contents.json | 22 WanPai/Assets.xcassets/Btns/btn_edit.imageset/btn_edit@3x.png | 0 WanPai/Root/Activity/VC/ActivityStudentListVC.swift | 51 WanPai/Assets.xcassets/Icons/icon_notice.imageset/Contents.json | 22 WanPai/Root/Other/TCell/StudentInfo_2_TCell.swift | 35 WanPai/Root/Other/VC/PaymentResultVC.swift | 30 Podfile | 2 WanPai/Assets.xcassets/Icons/btn_edit_gray.imageset/btn_edit_gray@2x.png | 0 WanPai/Root/Activity/VC/ActivityStudentListVC.xib | 67 + WanPai/Root/Activity/View/StudentUpdateInfoView.swift | 44 WanPai/Assets.xcassets/Icons/icon_hot.imageset/Contents.json | 22 WanPai/Assets.xcassets/Icons/icon_calendar.imageset/icon_calendar@3x.png | 0 WanPai/Assets.xcassets/Icons/btn_edit_gray.imageset/Contents.json | 22 WanPai/Root/Course/VC/AddStudentVC.swift | 6 WanPai/Assets.xcassets/Icons/icon_hot.imageset/icon_hot@2x.png | 0 WanPai/Root/Activity/TCell/ActivityInfoTCell.swift | 24 48 files changed, 3,209 insertions(+), 43 deletions(-) diff --git a/Podfile b/Podfile index d1c808f..b65e75b 100644 --- a/Podfile +++ b/Podfile @@ -8,4 +8,6 @@ # Pods for WanPai pod 'JQTools',:path=> '/Users/yangkai/Developer/MyProject/JQTools' pod 'SwifterSwift' + pod 'FFPage' + pod 'SPPageMenu' end diff --git a/WanPai.xcodeproj/project.pbxproj b/WanPai.xcodeproj/project.pbxproj index dc7d904..6e48436 100644 --- a/WanPai.xcodeproj/project.pbxproj +++ b/WanPai.xcodeproj/project.pbxproj @@ -8,6 +8,8 @@ /* Begin PBXBuildFile section */ 32D5FD87AB45829154125950 /* Pods_WanPai.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F12BCB644B5E0392E2BFF8C7 /* Pods_WanPai.framework */; }; + 8D2BCD3E2A3847F600A360C6 /* ActivityDetailApplyVC.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8D2BCD3C2A3847F600A360C6 /* ActivityDetailApplyVC.swift */; }; + 8D2BCD3F2A3847F600A360C6 /* ActivityDetailApplyVC.xib in Resources */ = {isa = PBXBuildFile; fileRef = 8D2BCD3D2A3847F600A360C6 /* ActivityDetailApplyVC.xib */; }; 8D44E4F72A331DF800E7010E /* CourseDetailApplyVC.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8D44E4F52A331DF800E7010E /* CourseDetailApplyVC.swift */; }; 8D44E4F82A331DF800E7010E /* CourseDetailApplyVC.xib in Resources */ = {isa = PBXBuildFile; fileRef = 8D44E4F62A331DF800E7010E /* CourseDetailApplyVC.xib */; }; 8D4905A92A31A6EC00E38513 /* HomeCCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8D4905A72A31A6EC00E38513 /* HomeCCell.swift */; }; @@ -31,13 +33,27 @@ 8D6810EA2A3710CE004486DE /* StudentChooseView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8D6810E92A3710CE004486DE /* StudentChooseView.swift */; }; 8D6810EC2A3710D8004486DE /* StudentChooseView.xib in Resources */ = {isa = PBXBuildFile; fileRef = 8D6810EB2A3710D8004486DE /* StudentChooseView.xib */; }; 8D6C50232A372B21007EC2D9 /* IDCardView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8D6C50222A372B20007EC2D9 /* IDCardView.swift */; }; + 8D6D58CF2A3972A80003CFE6 /* ActivitySignupListVC.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8D6D58CE2A3972A80003CFE6 /* ActivitySignupListVC.swift */; }; + 8D6D58D12A39906F0003CFE6 /* ActivitySignupListSubVC.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8D6D58D02A39906F0003CFE6 /* ActivitySignupListSubVC.swift */; }; + 8D6D58D32A39970C0003CFE6 /* StoresInfoView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8D6D58D22A39970C0003CFE6 /* StoresInfoView.swift */; }; + 8D6D58D52A3997250003CFE6 /* StoresInfoView.xib in Resources */ = {isa = PBXBuildFile; fileRef = 8D6D58D42A3997250003CFE6 /* StoresInfoView.xib */; }; 8D6D6AF22A32D6F800DCA2C6 /* CourseListVC.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8D6D6AF02A32D6F800DCA2C6 /* CourseListVC.swift */; }; 8D6D6AF32A32D6F800DCA2C6 /* CourseListVC.xib in Resources */ = {isa = PBXBuildFile; fileRef = 8D6D6AF12A32D6F800DCA2C6 /* CourseListVC.xib */; }; + 8D6E54D12A381CB000D750CE /* ActivityDetailVC.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8D6E54CF2A381CB000D750CE /* ActivityDetailVC.swift */; }; + 8D6E54D22A381CB000D750CE /* ActivityDetailVC.xib in Resources */ = {isa = PBXBuildFile; fileRef = 8D6E54D02A381CB000D750CE /* ActivityDetailVC.xib */; }; 8D7017892A3308DC00473C40 /* Common_1_TCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8D7017872A3308DC00473C40 /* Common_1_TCell.swift */; }; 8D70178A2A3308DC00473C40 /* Common_1_TCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = 8D7017882A3308DC00473C40 /* Common_1_TCell.xib */; }; 8D70178D2A330E5700473C40 /* CourseDetailVC.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8D70178B2A330E5700473C40 /* CourseDetailVC.swift */; }; 8D70178E2A330E5700473C40 /* CourseDetailVC.xib in Resources */ = {isa = PBXBuildFile; fileRef = 8D70178C2A330E5700473C40 /* CourseDetailVC.xib */; }; 8D710F6D2A31897C0031E2D1 /* WaterFallFlowLayout.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8D710F6C2A31897C0031E2D1 /* WaterFallFlowLayout.swift */; }; + 8D79A58F2A3957420029874B /* StudentInfo_2_TCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8D79A58D2A3957420029874B /* StudentInfo_2_TCell.swift */; }; + 8D79A5902A3957420029874B /* StudentInfo_2_TCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = 8D79A58E2A3957420029874B /* StudentInfo_2_TCell.xib */; }; + 8D79A5932A395BF40029874B /* ActivityStudentListVC.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8D79A5912A395BF40029874B /* ActivityStudentListVC.swift */; }; + 8D79A5942A395BF40029874B /* ActivityStudentListVC.xib in Resources */ = {isa = PBXBuildFile; fileRef = 8D79A5922A395BF40029874B /* ActivityStudentListVC.xib */; }; + 8D79A5972A3967910029874B /* StudentUpdateInfoView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8D79A5962A3967910029874B /* StudentUpdateInfoView.swift */; }; + 8D79A59B2A3967A90029874B /* StudentUpdateInfoView.xib in Resources */ = {isa = PBXBuildFile; fileRef = 8D79A59A2A3967A90029874B /* StudentUpdateInfoView.xib */; }; + 8D7D87172A380970003209D6 /* ActivityInfoTCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8D7D87152A380970003209D6 /* ActivityInfoTCell.swift */; }; + 8D7D87182A380970003209D6 /* ActivityInfoTCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = 8D7D87162A380970003209D6 /* ActivityInfoTCell.xib */; }; 8D8400D22A2F1430003AF6A2 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8D8400D12A2F1430003AF6A2 /* AppDelegate.swift */; }; 8D8400D42A2F1430003AF6A2 /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8D8400D32A2F1430003AF6A2 /* SceneDelegate.swift */; }; 8D8400D92A2F1430003AF6A2 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 8D8400D72A2F1430003AF6A2 /* Main.storyboard */; }; @@ -63,6 +79,8 @@ 8DC3BE122A3803B500C91B7F /* ActivityListVC.xib in Resources */ = {isa = PBXBuildFile; fileRef = 8DC3BE102A3803B500C91B7F /* ActivityListVC.xib */; }; 8DC99C882A3701CE00D0F04E /* CouponChooseView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8DC99C872A3701CE00D0F04E /* CouponChooseView.swift */; }; 8DC99C8A2A3701D800D0F04E /* CouponChooseView.xib in Resources */ = {isa = PBXBuildFile; fileRef = 8DC99C892A3701D800D0F04E /* CouponChooseView.xib */; }; + 8DCF25BA2A38136D00DC6899 /* CityChooseSubTypeView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8DCF25B92A38136D00DC6899 /* CityChooseSubTypeView.swift */; }; + 8DCF25BC2A3813A400DC6899 /* CityChooseSubTypeView.xib in Resources */ = {isa = PBXBuildFile; fileRef = 8DCF25BB2A3813A400DC6899 /* CityChooseSubTypeView.xib */; }; 8DD239AE2A32FC5100700DEB /* CourseTCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8DD239AC2A32FC5100700DEB /* CourseTCell.swift */; }; 8DD239AF2A32FC5100700DEB /* CourseTCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = 8DD239AD2A32FC5100700DEB /* CourseTCell.xib */; }; 8DF184402A3327EE0095687B /* Common_1_CCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8DF1843E2A3327EE0095687B /* Common_1_CCell.swift */; }; @@ -82,6 +100,8 @@ /* Begin PBXFileReference section */ 0995405518BC2BFFEF866458 /* Pods-WanPai.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-WanPai.release.xcconfig"; path = "Target Support Files/Pods-WanPai/Pods-WanPai.release.xcconfig"; sourceTree = "<group>"; }; 732365E0737559969E7CB12D /* Pods-WanPai.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-WanPai.debug.xcconfig"; path = "Target Support Files/Pods-WanPai/Pods-WanPai.debug.xcconfig"; sourceTree = "<group>"; }; + 8D2BCD3C2A3847F600A360C6 /* ActivityDetailApplyVC.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ActivityDetailApplyVC.swift; sourceTree = "<group>"; }; + 8D2BCD3D2A3847F600A360C6 /* ActivityDetailApplyVC.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = ActivityDetailApplyVC.xib; sourceTree = "<group>"; }; 8D44E4F52A331DF800E7010E /* CourseDetailApplyVC.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CourseDetailApplyVC.swift; sourceTree = "<group>"; }; 8D44E4F62A331DF800E7010E /* CourseDetailApplyVC.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = CourseDetailApplyVC.xib; sourceTree = "<group>"; }; 8D4905A72A31A6EC00E38513 /* HomeCCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = HomeCCell.swift; sourceTree = "<group>"; }; @@ -105,13 +125,27 @@ 8D6810E92A3710CE004486DE /* StudentChooseView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = StudentChooseView.swift; sourceTree = "<group>"; }; 8D6810EB2A3710D8004486DE /* StudentChooseView.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = StudentChooseView.xib; sourceTree = "<group>"; }; 8D6C50222A372B20007EC2D9 /* IDCardView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = IDCardView.swift; sourceTree = "<group>"; }; + 8D6D58CE2A3972A80003CFE6 /* ActivitySignupListVC.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ActivitySignupListVC.swift; sourceTree = "<group>"; }; + 8D6D58D02A39906F0003CFE6 /* ActivitySignupListSubVC.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ActivitySignupListSubVC.swift; sourceTree = "<group>"; }; + 8D6D58D22A39970C0003CFE6 /* StoresInfoView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = StoresInfoView.swift; sourceTree = "<group>"; }; + 8D6D58D42A3997250003CFE6 /* StoresInfoView.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = StoresInfoView.xib; sourceTree = "<group>"; }; 8D6D6AF02A32D6F800DCA2C6 /* CourseListVC.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CourseListVC.swift; sourceTree = "<group>"; }; 8D6D6AF12A32D6F800DCA2C6 /* CourseListVC.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = CourseListVC.xib; sourceTree = "<group>"; }; + 8D6E54CF2A381CB000D750CE /* ActivityDetailVC.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ActivityDetailVC.swift; sourceTree = "<group>"; }; + 8D6E54D02A381CB000D750CE /* ActivityDetailVC.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = ActivityDetailVC.xib; sourceTree = "<group>"; }; 8D7017872A3308DC00473C40 /* Common_1_TCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Common_1_TCell.swift; sourceTree = "<group>"; }; 8D7017882A3308DC00473C40 /* Common_1_TCell.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = Common_1_TCell.xib; sourceTree = "<group>"; }; 8D70178B2A330E5700473C40 /* CourseDetailVC.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CourseDetailVC.swift; sourceTree = "<group>"; }; 8D70178C2A330E5700473C40 /* CourseDetailVC.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = CourseDetailVC.xib; sourceTree = "<group>"; }; 8D710F6C2A31897C0031E2D1 /* WaterFallFlowLayout.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WaterFallFlowLayout.swift; sourceTree = "<group>"; }; + 8D79A58D2A3957420029874B /* StudentInfo_2_TCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = StudentInfo_2_TCell.swift; sourceTree = "<group>"; }; + 8D79A58E2A3957420029874B /* StudentInfo_2_TCell.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = StudentInfo_2_TCell.xib; sourceTree = "<group>"; }; + 8D79A5912A395BF40029874B /* ActivityStudentListVC.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ActivityStudentListVC.swift; sourceTree = "<group>"; }; + 8D79A5922A395BF40029874B /* ActivityStudentListVC.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = ActivityStudentListVC.xib; sourceTree = "<group>"; }; + 8D79A5962A3967910029874B /* StudentUpdateInfoView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = StudentUpdateInfoView.swift; sourceTree = "<group>"; }; + 8D79A59A2A3967A90029874B /* StudentUpdateInfoView.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = StudentUpdateInfoView.xib; sourceTree = "<group>"; }; + 8D7D87152A380970003209D6 /* ActivityInfoTCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ActivityInfoTCell.swift; sourceTree = "<group>"; }; + 8D7D87162A380970003209D6 /* ActivityInfoTCell.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = ActivityInfoTCell.xib; sourceTree = "<group>"; }; 8D8400CE2A2F1430003AF6A2 /* WanPai.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = WanPai.app; sourceTree = BUILT_PRODUCTS_DIR; }; 8D8400D12A2F1430003AF6A2 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; }; 8D8400D32A2F1430003AF6A2 /* SceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SceneDelegate.swift; sourceTree = "<group>"; }; @@ -139,6 +173,8 @@ 8DC3BE102A3803B500C91B7F /* ActivityListVC.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = ActivityListVC.xib; sourceTree = "<group>"; }; 8DC99C872A3701CE00D0F04E /* CouponChooseView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CouponChooseView.swift; sourceTree = "<group>"; }; 8DC99C892A3701D800D0F04E /* CouponChooseView.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = CouponChooseView.xib; sourceTree = "<group>"; }; + 8DCF25B92A38136D00DC6899 /* CityChooseSubTypeView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CityChooseSubTypeView.swift; sourceTree = "<group>"; }; + 8DCF25BB2A3813A400DC6899 /* CityChooseSubTypeView.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = CityChooseSubTypeView.xib; sourceTree = "<group>"; }; 8DD239AC2A32FC5100700DEB /* CourseTCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CourseTCell.swift; sourceTree = "<group>"; }; 8DD239AD2A32FC5100700DEB /* CourseTCell.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = CourseTCell.xib; sourceTree = "<group>"; }; 8DF1843E2A3327EE0095687B /* Common_1_CCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Common_1_CCell.swift; sourceTree = "<group>"; }; @@ -225,6 +261,28 @@ 8DF184432A332CCD0095687B /* StudentInfoTCell.xib */, 8D6810E52A370EFB004486DE /* CouponTCell.swift */, 8D6810E62A370EFB004486DE /* CouponTCell.xib */, + 8D79A58D2A3957420029874B /* StudentInfo_2_TCell.swift */, + 8D79A58E2A3957420029874B /* StudentInfo_2_TCell.xib */, + ); + path = TCell; + sourceTree = "<group>"; + }; + 8D79A5952A39677C0029874B /* View */ = { + isa = PBXGroup; + children = ( + 8D79A5962A3967910029874B /* StudentUpdateInfoView.swift */, + 8D79A59A2A3967A90029874B /* StudentUpdateInfoView.xib */, + 8D6D58D22A39970C0003CFE6 /* StoresInfoView.swift */, + 8D6D58D42A3997250003CFE6 /* StoresInfoView.xib */, + ); + path = View; + sourceTree = "<group>"; + }; + 8D7D87142A380932003209D6 /* TCell */ = { + isa = PBXGroup; + children = ( + 8D7D87152A380970003209D6 /* ActivityInfoTCell.swift */, + 8D7D87162A380970003209D6 /* ActivityInfoTCell.xib */, ); path = TCell; sourceTree = "<group>"; @@ -288,6 +346,8 @@ children = ( 8D86DE842A3307A400A754EF /* CourseSubTypeView.swift */, 8D86DE862A3307B700A754EF /* CourseSubTypeView.xib */, + 8DCF25B92A38136D00DC6899 /* CityChooseSubTypeView.swift */, + 8DCF25BB2A3813A400DC6899 /* CityChooseSubTypeView.xib */, ); path = View; sourceTree = "<group>"; @@ -370,6 +430,8 @@ 8DC3BE0D2A38038F00C91B7F /* Activity */ = { isa = PBXGroup; children = ( + 8D79A5952A39677C0029874B /* View */, + 8D7D87142A380932003209D6 /* TCell */, 8DC3BE0E2A38039700C91B7F /* VC */, ); path = Activity; @@ -380,6 +442,14 @@ children = ( 8DC3BE0F2A3803B500C91B7F /* ActivityListVC.swift */, 8DC3BE102A3803B500C91B7F /* ActivityListVC.xib */, + 8D6E54CF2A381CB000D750CE /* ActivityDetailVC.swift */, + 8D6E54D02A381CB000D750CE /* ActivityDetailVC.xib */, + 8D2BCD3C2A3847F600A360C6 /* ActivityDetailApplyVC.swift */, + 8D2BCD3D2A3847F600A360C6 /* ActivityDetailApplyVC.xib */, + 8D79A5912A395BF40029874B /* ActivityStudentListVC.swift */, + 8D79A5922A395BF40029874B /* ActivityStudentListVC.xib */, + 8D6D58CE2A3972A80003CFE6 /* ActivitySignupListVC.swift */, + 8D6D58D02A39906F0003CFE6 /* ActivitySignupListSubVC.swift */, ); path = VC; sourceTree = "<group>"; @@ -554,11 +624,15 @@ 8DFA9B772A316E9A00E99281 /* LoginRegOrForgotVC.xib in Resources */, 8DA51DFC2A32C6D00085F4BA /* StoresChooseView.xib in Resources */, 8D6810EC2A3710D8004486DE /* StudentChooseView.xib in Resources */, + 8D79A5902A3957420029874B /* StudentInfo_2_TCell.xib in Resources */, 8D5732BE2A3724A900B2F8E3 /* AddStudentVC.xib in Resources */, + 8D2BCD3F2A3847F600A360C6 /* ActivityDetailApplyVC.xib in Resources */, + 8D79A59B2A3967A90029874B /* StudentUpdateInfoView.xib in Resources */, 8DC99C8A2A3701D800D0F04E /* CouponChooseView.xib in Resources */, 8D70178A2A3308DC00473C40 /* Common_1_TCell.xib in Resources */, 8DC3BE122A3803B500C91B7F /* ActivityListVC.xib in Resources */, 8D70178E2A330E5700473C40 /* CourseDetailVC.xib in Resources */, + 8DCF25BC2A3813A400DC6899 /* CityChooseSubTypeView.xib in Resources */, 8D8DEDEE2A31D82100F2C7FA /* PaymentResultVC.xib in Resources */, 8D86DE872A3307B700A754EF /* CourseSubTypeView.xib in Resources */, 8D8400DB2A2F1432003AF6A2 /* Assets.xcassets in Resources */, @@ -568,9 +642,12 @@ 8D4905AE2A31AE7100E38513 /* JoinMemberIntroduceVC.xib in Resources */, 8DF184452A332CCD0095687B /* StudentInfoTCell.xib in Resources */, 8DF184412A3327EE0095687B /* Common_1_CCell.xib in Resources */, + 8D6D58D52A3997250003CFE6 /* StoresInfoView.xib in Resources */, 8D5C150C2A31885B00A8BCC9 /* CommonAlertView.xib in Resources */, 8D5B80B72A31C4C700B86520 /* PaymentView.xib in Resources */, 8D8400EA2A2F14A3003AF6A2 /* LoginVC.xib in Resources */, + 8D7D87182A380970003209D6 /* ActivityInfoTCell.xib in Resources */, + 8D6E54D22A381CB000D750CE /* ActivityDetailVC.xib in Resources */, 8D5C150D2A31885B00A8BCC9 /* AgreentView.xib in Resources */, 8D630BF92A31801300F0B7A8 /* SearchVC.xib in Resources */, 8D6810E82A370EFB004486DE /* CouponTCell.xib in Resources */, @@ -578,6 +655,7 @@ 8D4905AA2A31A6EC00E38513 /* HomeCCell.xib in Resources */, 8D8400D92A2F1430003AF6A2 /* Main.storyboard in Resources */, 8D44E4F82A331DF800E7010E /* CourseDetailApplyVC.xib in Resources */, + 8D79A5942A395BF40029874B /* ActivityStudentListVC.xib in Resources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -653,21 +731,31 @@ 8D6810E72A370EFB004486DE /* CouponTCell.swift in Sources */, 8D8400D22A2F1430003AF6A2 /* AppDelegate.swift in Sources */, 8D8DEDF22A31DDC500F2C7FA /* CouponCCell.swift in Sources */, + 8D7D87172A380970003209D6 /* ActivityInfoTCell.swift in Sources */, 8D5C150E2A31885B00A8BCC9 /* CommonAlertView.swift in Sources */, 8D7017892A3308DC00473C40 /* Common_1_TCell.swift in Sources */, + 8D6D58D12A39906F0003CFE6 /* ActivitySignupListSubVC.swift in Sources */, 8D70178D2A330E5700473C40 /* CourseDetailVC.swift in Sources */, 8D5732BD2A3724A900B2F8E3 /* AddStudentVC.swift in Sources */, 8D5C150F2A31885B00A8BCC9 /* AgreentView.swift in Sources */, 8D8400E92A2F14A3003AF6A2 /* LoginVC.swift in Sources */, 8D4905A92A31A6EC00E38513 /* HomeCCell.swift in Sources */, + 8D6D58CF2A3972A80003CFE6 /* ActivitySignupListVC.swift in Sources */, + 8D79A5972A3967910029874B /* StudentUpdateInfoView.swift in Sources */, + 8DCF25BA2A38136D00DC6899 /* CityChooseSubTypeView.swift in Sources */, + 8D2BCD3E2A3847F600A360C6 /* ActivityDetailApplyVC.swift in Sources */, 8DFA9B852A3172BE00E99281 /* HomeVC.swift in Sources */, 8DFA9B912A317DE900E99281 /* WelfareVC.swift in Sources */, + 8D6D58D32A39970C0003CFE6 /* StoresInfoView.swift in Sources */, + 8D79A58F2A3957420029874B /* StudentInfo_2_TCell.swift in Sources */, 8D6C50232A372B21007EC2D9 /* IDCardView.swift in Sources */, 8D630BFB2A3180B000F0B7A8 /* BaseTabBarVC.swift in Sources */, 8DAEB5502A305AEF00814766 /* Def.swift in Sources */, 8D8400D42A2F1430003AF6A2 /* SceneDelegate.swift in Sources */, 8DA51DF72A32BE270085F4BA /* Enums.swift in Sources */, 8D86DE852A3307A400A754EF /* CourseSubTypeView.swift in Sources */, + 8D79A5932A395BF40029874B /* ActivityStudentListVC.swift in Sources */, + 8D6E54D12A381CB000D750CE /* ActivityDetailVC.swift in Sources */, 8D5C15062A31861D00A8BCC9 /* TapBtn.swift in Sources */, ); runOnlyForDeploymentPostprocessing = 0; diff --git a/WanPai.xcodeproj/xcuserdata/yangkai.xcuserdatad/xcschemes/xcschememanagement.plist b/WanPai.xcodeproj/xcuserdata/yangkai.xcuserdatad/xcschemes/xcschememanagement.plist index faab3c0..86e3296 100644 --- a/WanPai.xcodeproj/xcuserdata/yangkai.xcuserdatad/xcschemes/xcschememanagement.plist +++ b/WanPai.xcodeproj/xcuserdata/yangkai.xcuserdatad/xcschemes/xcschememanagement.plist @@ -7,7 +7,7 @@ <key>WanPai.xcscheme_^#shared#^_</key> <dict> <key>orderHint</key> - <integer>25</integer> + <integer>27</integer> </dict> </dict> </dict> diff --git a/WanPai/Assets.xcassets/Btns/btn_edit.imageset/Contents.json b/WanPai/Assets.xcassets/Btns/btn_edit.imageset/Contents.json new file mode 100644 index 0000000..7b6598f --- /dev/null +++ b/WanPai/Assets.xcassets/Btns/btn_edit.imageset/Contents.json @@ -0,0 +1,22 @@ +{ + "images" : [ + { + "idiom" : "universal", + "scale" : "1x" + }, + { + "filename" : "btn_edit@2x.png", + "idiom" : "universal", + "scale" : "2x" + }, + { + "filename" : "btn_edit@3x.png", + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/WanPai/Assets.xcassets/Btns/btn_edit.imageset/btn_edit@2x.png b/WanPai/Assets.xcassets/Btns/btn_edit.imageset/btn_edit@2x.png new file mode 100644 index 0000000..7013558 --- /dev/null +++ b/WanPai/Assets.xcassets/Btns/btn_edit.imageset/btn_edit@2x.png Binary files differ diff --git a/WanPai/Assets.xcassets/Btns/btn_edit.imageset/btn_edit@3x.png b/WanPai/Assets.xcassets/Btns/btn_edit.imageset/btn_edit@3x.png new file mode 100644 index 0000000..e602b03 --- /dev/null +++ b/WanPai/Assets.xcassets/Btns/btn_edit.imageset/btn_edit@3x.png Binary files differ diff --git a/WanPai/Assets.xcassets/Btns/btn_local.imageset/Contents.json b/WanPai/Assets.xcassets/Btns/btn_local.imageset/Contents.json new file mode 100644 index 0000000..f888671 --- /dev/null +++ b/WanPai/Assets.xcassets/Btns/btn_local.imageset/Contents.json @@ -0,0 +1,22 @@ +{ + "images" : [ + { + "idiom" : "universal", + "scale" : "1x" + }, + { + "filename" : "btn_local@2x.png", + "idiom" : "universal", + "scale" : "2x" + }, + { + "filename" : "btn_local@3x.png", + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/WanPai/Assets.xcassets/Btns/btn_local.imageset/btn_local@2x.png b/WanPai/Assets.xcassets/Btns/btn_local.imageset/btn_local@2x.png new file mode 100644 index 0000000..0436249 --- /dev/null +++ b/WanPai/Assets.xcassets/Btns/btn_local.imageset/btn_local@2x.png Binary files differ diff --git a/WanPai/Assets.xcassets/Btns/btn_local.imageset/btn_local@3x.png b/WanPai/Assets.xcassets/Btns/btn_local.imageset/btn_local@3x.png new file mode 100644 index 0000000..2af2bb7 --- /dev/null +++ b/WanPai/Assets.xcassets/Btns/btn_local.imageset/btn_local@3x.png Binary files differ diff --git a/WanPai/Assets.xcassets/Icons/btn_edit_gray.imageset/Contents.json b/WanPai/Assets.xcassets/Icons/btn_edit_gray.imageset/Contents.json new file mode 100644 index 0000000..cb6d36e --- /dev/null +++ b/WanPai/Assets.xcassets/Icons/btn_edit_gray.imageset/Contents.json @@ -0,0 +1,22 @@ +{ + "images" : [ + { + "idiom" : "universal", + "scale" : "1x" + }, + { + "filename" : "btn_edit_gray@2x.png", + "idiom" : "universal", + "scale" : "2x" + }, + { + "filename" : "btn_edit_gray@3x.png", + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/WanPai/Assets.xcassets/Icons/btn_edit_gray.imageset/btn_edit_gray@2x.png b/WanPai/Assets.xcassets/Icons/btn_edit_gray.imageset/btn_edit_gray@2x.png new file mode 100644 index 0000000..97d5d8d --- /dev/null +++ b/WanPai/Assets.xcassets/Icons/btn_edit_gray.imageset/btn_edit_gray@2x.png Binary files differ diff --git a/WanPai/Assets.xcassets/Icons/btn_edit_gray.imageset/btn_edit_gray@3x.png b/WanPai/Assets.xcassets/Icons/btn_edit_gray.imageset/btn_edit_gray@3x.png new file mode 100644 index 0000000..9d4c5c3 --- /dev/null +++ b/WanPai/Assets.xcassets/Icons/btn_edit_gray.imageset/btn_edit_gray@3x.png Binary files differ diff --git a/WanPai/Assets.xcassets/Icons/icon_calendar.imageset/Contents.json b/WanPai/Assets.xcassets/Icons/icon_calendar.imageset/Contents.json new file mode 100644 index 0000000..2dfdfa3 --- /dev/null +++ b/WanPai/Assets.xcassets/Icons/icon_calendar.imageset/Contents.json @@ -0,0 +1,22 @@ +{ + "images" : [ + { + "idiom" : "universal", + "scale" : "1x" + }, + { + "filename" : "icon_calendar@2x.png", + "idiom" : "universal", + "scale" : "2x" + }, + { + "filename" : "icon_calendar@3x.png", + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/WanPai/Assets.xcassets/Icons/icon_calendar.imageset/icon_calendar@2x.png b/WanPai/Assets.xcassets/Icons/icon_calendar.imageset/icon_calendar@2x.png new file mode 100644 index 0000000..4c9e311 --- /dev/null +++ b/WanPai/Assets.xcassets/Icons/icon_calendar.imageset/icon_calendar@2x.png Binary files differ diff --git a/WanPai/Assets.xcassets/Icons/icon_calendar.imageset/icon_calendar@3x.png b/WanPai/Assets.xcassets/Icons/icon_calendar.imageset/icon_calendar@3x.png new file mode 100644 index 0000000..949f557 --- /dev/null +++ b/WanPai/Assets.xcassets/Icons/icon_calendar.imageset/icon_calendar@3x.png Binary files differ diff --git a/WanPai/Assets.xcassets/Icons/icon_hot.imageset/Contents.json b/WanPai/Assets.xcassets/Icons/icon_hot.imageset/Contents.json new file mode 100644 index 0000000..73fd3ee --- /dev/null +++ b/WanPai/Assets.xcassets/Icons/icon_hot.imageset/Contents.json @@ -0,0 +1,22 @@ +{ + "images" : [ + { + "idiom" : "universal", + "scale" : "1x" + }, + { + "filename" : "icon_hot@2x.png", + "idiom" : "universal", + "scale" : "2x" + }, + { + "filename" : "icon_hot@3x.png", + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/WanPai/Assets.xcassets/Icons/icon_hot.imageset/icon_hot@2x.png b/WanPai/Assets.xcassets/Icons/icon_hot.imageset/icon_hot@2x.png new file mode 100644 index 0000000..73cd405 --- /dev/null +++ b/WanPai/Assets.xcassets/Icons/icon_hot.imageset/icon_hot@2x.png Binary files differ diff --git a/WanPai/Assets.xcassets/Icons/icon_hot.imageset/icon_hot@3x.png b/WanPai/Assets.xcassets/Icons/icon_hot.imageset/icon_hot@3x.png new file mode 100644 index 0000000..6259156 --- /dev/null +++ b/WanPai/Assets.xcassets/Icons/icon_hot.imageset/icon_hot@3x.png Binary files differ diff --git a/WanPai/Assets.xcassets/Icons/icon_notice.imageset/Contents.json b/WanPai/Assets.xcassets/Icons/icon_notice.imageset/Contents.json new file mode 100644 index 0000000..99a6e3d --- /dev/null +++ b/WanPai/Assets.xcassets/Icons/icon_notice.imageset/Contents.json @@ -0,0 +1,22 @@ +{ + "images" : [ + { + "idiom" : "universal", + "scale" : "1x" + }, + { + "filename" : "icon_notice@2x.png", + "idiom" : "universal", + "scale" : "2x" + }, + { + "filename" : "icon_notice@3x.png", + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/WanPai/Assets.xcassets/Icons/icon_notice.imageset/icon_notice@2x.png b/WanPai/Assets.xcassets/Icons/icon_notice.imageset/icon_notice@2x.png new file mode 100644 index 0000000..595bffe --- /dev/null +++ b/WanPai/Assets.xcassets/Icons/icon_notice.imageset/icon_notice@2x.png Binary files differ diff --git a/WanPai/Assets.xcassets/Icons/icon_notice.imageset/icon_notice@3x.png b/WanPai/Assets.xcassets/Icons/icon_notice.imageset/icon_notice@3x.png new file mode 100644 index 0000000..3407a67 --- /dev/null +++ b/WanPai/Assets.xcassets/Icons/icon_notice.imageset/icon_notice@3x.png Binary files differ diff --git a/WanPai/Common/View/PaymentView.xib b/WanPai/Common/View/PaymentView.xib index 3b36b7c..2801a66 100644 --- a/WanPai/Common/View/PaymentView.xib +++ b/WanPai/Common/View/PaymentView.xib @@ -17,10 +17,10 @@ <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> <subviews> <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="I0g-vn-aAw"> - <rect key="frame" x="0.0" y="568" width="393" height="284"/> + <rect key="frame" x="0.0" y="508" width="393" height="344"/> <subviews> <stackView opaque="NO" contentMode="scaleToFill" axis="vertical" translatesAutoresizingMaskIntoConstraints="NO" id="6oz-tW-MFV"> - <rect key="frame" x="0.0" y="14" width="393" height="180"/> + <rect key="frame" x="0.0" y="14" width="393" height="240"/> <subviews> <view tag="10" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="ME6-yW-eFT"> <rect key="frame" x="0.0" y="0.0" width="393" height="60"/> @@ -149,7 +149,7 @@ <constraint firstAttribute="height" constant="29" id="i8N-st-goU"/> </constraints> </imageView> - <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="玩派币支付" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="NGh-bI-So3"> + <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="玩湃币支付" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="NGh-bI-So3"> <rect key="frame" x="56.000000000000007" y="26" width="81.666666666666686" height="19.333333333333329"/> <fontDescription key="fontDescription" type="system" pointSize="16"/> <nil key="textColor"/> @@ -187,10 +187,65 @@ <constraint firstItem="BOu-gk-wSG" firstAttribute="leading" secondItem="S7h-OF-RAr" secondAttribute="leading" constant="14" id="w5R-se-e6g"/> </constraints> </view> + <view tag="11" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="zmh-9K-6Xt"> + <rect key="frame" x="0.0" y="180" width="393" height="60"/> + <subviews> + <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="kUh-Iu-yW9"> + <rect key="frame" x="14" y="59.666666666666629" width="365" height="0.3333333333333357"/> + <color key="backgroundColor" red="0.0" green="0.0" blue="0.0" alpha="0.10000000000000001" colorSpace="custom" customColorSpace="sRGB"/> + <constraints> + <constraint firstAttribute="height" constant="0.40000000000000002" id="iwe-xt-9rC"/> + </constraints> + </view> + <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="icon_notice" translatesAutoresizingMaskIntoConstraints="NO" id="Y7U-1f-hs1"> + <rect key="frame" x="15" y="21" width="28" height="29"/> + <constraints> + <constraint firstAttribute="width" constant="28" id="IAN-xC-KPv"/> + <constraint firstAttribute="height" constant="29" id="XO2-OB-hJ6"/> + </constraints> + </imageView> + <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="课时支付" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="MPy-Tz-tz9"> + <rect key="frame" x="55.999999999999993" y="26" width="65.333333333333314" height="19.333333333333329"/> + <fontDescription key="fontDescription" type="system" pointSize="16"/> + <nil key="textColor"/> + <nil key="highlightedColor"/> + </label> + <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="课时" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="1dn-gY-wfT"> + <rect key="frame" x="132.33333333333334" y="26" width="32.666666666666657" height="19.333333333333329"/> + <fontDescription key="fontDescription" type="system" weight="medium" pointSize="16"/> + <color key="textColor" red="0.93333333330000001" green="0.043137254899999998" blue="0.043137254899999998" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> + <nil key="highlightedColor"/> + </label> + <button opaque="NO" tag="12" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="SXc-6d-61u"> + <rect key="frame" x="354" y="23" width="25" height="25"/> + <inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/> + <state key="normal" image="btn_choose"/> + <state key="selected" image="btn_choose_s"/> + <connections> + <action selector="tapAction:" destination="iN0-l3-epB" eventType="touchUpInside" id="ON2-30-GFF"/> + </connections> + </button> + </subviews> + <color key="backgroundColor" systemColor="systemBackgroundColor"/> + <constraints> + <constraint firstAttribute="trailing" secondItem="kUh-Iu-yW9" secondAttribute="trailing" constant="14" id="28o-6e-qk6"/> + <constraint firstItem="SXc-6d-61u" firstAttribute="centerY" secondItem="Y7U-1f-hs1" secondAttribute="centerY" id="6Oy-B3-pDm"/> + <constraint firstAttribute="trailing" secondItem="SXc-6d-61u" secondAttribute="trailing" constant="14" id="Cge-uA-YCd"/> + <constraint firstAttribute="height" constant="60" id="El2-5c-oc9"/> + <constraint firstAttribute="bottom" secondItem="Y7U-1f-hs1" secondAttribute="bottom" constant="10" id="Ih2-rr-0ef"/> + <constraint firstItem="1dn-gY-wfT" firstAttribute="centerY" secondItem="Y7U-1f-hs1" secondAttribute="centerY" id="Ipq-IX-ETw"/> + <constraint firstItem="Y7U-1f-hs1" firstAttribute="leading" secondItem="zmh-9K-6Xt" secondAttribute="leading" constant="15" id="KZN-Sd-eRi"/> + <constraint firstItem="kUh-Iu-yW9" firstAttribute="leading" secondItem="zmh-9K-6Xt" secondAttribute="leading" constant="14" id="Lls-u6-4mE"/> + <constraint firstItem="1dn-gY-wfT" firstAttribute="leading" secondItem="MPy-Tz-tz9" secondAttribute="trailing" constant="11" id="Mrs-3d-VyO"/> + <constraint firstItem="MPy-Tz-tz9" firstAttribute="leading" secondItem="Y7U-1f-hs1" secondAttribute="trailing" constant="13" id="Xd5-cm-MzW"/> + <constraint firstAttribute="bottom" secondItem="kUh-Iu-yW9" secondAttribute="bottom" id="iKT-Bh-lR3"/> + <constraint firstItem="MPy-Tz-tz9" firstAttribute="centerY" secondItem="Y7U-1f-hs1" secondAttribute="centerY" id="zae-9i-bla"/> + </constraints> + </view> </subviews> </stackView> <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="glt-oZ-fup"> - <rect key="frame" x="206.66666666666663" y="214" width="145.33333333333337" height="40"/> + <rect key="frame" x="206.66666666666663" y="274" width="145.33333333333337" height="40"/> <color key="backgroundColor" name="FE6E0D"/> <constraints> <constraint firstAttribute="height" constant="40" id="JV7-c4-7tD"/> @@ -209,7 +264,7 @@ </connections> </button> <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Ji4-B6-Ozw"> - <rect key="frame" x="41" y="214" width="145.66666666666666" height="40"/> + <rect key="frame" x="41" y="274" width="145.66666666666666" height="40"/> <constraints> <constraint firstAttribute="height" constant="40" id="Tyg-21-Wcc"/> </constraints> @@ -271,6 +326,7 @@ <image name="btn_choose_s" width="25" height="25"/> <image name="icon_alipay" width="29" height="29"/> <image name="icon_coin" width="28" height="28"/> + <image name="icon_notice" width="26" height="32"/> <image name="icon_wechat" width="28" height="29"/> <namedColor name="FE6E0D"> <color red="0.99599999189376831" green="0.4309999942779541" blue="0.050999999046325684" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> diff --git a/WanPai/Config/Enums.swift b/WanPai/Config/Enums.swift index 43a3f29..52ad22d 100644 --- a/WanPai/Config/Enums.swift +++ b/WanPai/Config/Enums.swift @@ -11,4 +11,10 @@ case aliPay = 0 case wechat = 1 case coin = 2 + case courseNum = 3 +} + +enum ItemType{ + case course + case activity } diff --git a/WanPai/Root/Activity/TCell/ActivityInfoTCell.swift b/WanPai/Root/Activity/TCell/ActivityInfoTCell.swift new file mode 100644 index 0000000..fad3068 --- /dev/null +++ b/WanPai/Root/Activity/TCell/ActivityInfoTCell.swift @@ -0,0 +1,24 @@ +// +// ActivityInfoTCell.swift +// WanPai +// +// Created by 杨锴 on 2023/6/13. +// + +import UIKit + +class ActivityInfoTCell: UITableViewCell { + + @IBOutlet weak var label_state: UILabel! + + override func awakeFromNib() { + super.awakeFromNib() + selectionStyle = .none + + } + + override func layoutSubviews() { + super.layoutSubviews() + label_state.jq_cornerPartWithNib(byRoundingCorners: [.topLeft,.bottomRight], radii: 26.5, size: CGSize(width: 47, height: 26.5)) + } +} diff --git a/WanPai/Root/Activity/TCell/ActivityInfoTCell.xib b/WanPai/Root/Activity/TCell/ActivityInfoTCell.xib new file mode 100644 index 0000000..94f12c0 --- /dev/null +++ b/WanPai/Root/Activity/TCell/ActivityInfoTCell.xib @@ -0,0 +1,172 @@ +<?xml version="1.0" encoding="UTF-8"?> +<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="21507" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES"> + <device id="retina6_12" orientation="portrait" appearance="light"/> + <dependencies> + <deployment identifier="iOS"/> + <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="21505"/> + <capability name="Named colors" minToolsVersion="9.0"/> + <capability name="Safe area layout guides" minToolsVersion="9.0"/> + <capability name="System colors in document resources" minToolsVersion="11.0"/> + <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/> + </dependencies> + <objects> + <placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/> + <placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/> + <tableViewCell contentMode="scaleToFill" selectionStyle="default" indentationWidth="10" reuseIdentifier="_ActivityInfoTCell" rowHeight="185" id="KGk-i7-Jjw" customClass="ActivityInfoTCell" customModule="WanPai" customModuleProvider="target"> + <rect key="frame" x="0.0" y="0.0" width="489" height="185"/> + <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/> + <tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" ambiguous="YES" tableViewCell="KGk-i7-Jjw" id="H2p-sc-9uM"> + <rect key="frame" x="0.0" y="0.0" width="489" height="185"/> + <autoresizingMask key="autoresizingMask"/> + <subviews> + <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="lCa-en-qcl"> + <rect key="frame" x="15" y="21" width="105" height="140"/> + <color key="backgroundColor" systemColor="systemGray6Color"/> + <constraints> + <constraint firstAttribute="height" constant="140" id="61H-nQ-MaO"/> + <constraint firstAttribute="width" secondItem="lCa-en-qcl" secondAttribute="height" multiplier="1:1.3333" id="9nt-6u-rdc"/> + </constraints> + <userDefinedRuntimeAttributes> + <userDefinedRuntimeAttribute type="boolean" keyPath="ld_maskToBoundsXIB" value="YES"/> + <userDefinedRuntimeAttribute type="number" keyPath="ld_cornerRadiusXIB"> + <real key="value" value="9"/> + </userDefinedRuntimeAttribute> + </userDefinedRuntimeAttributes> + </imageView> + <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="rom-jP-xgQ"> + <rect key="frame" x="131" y="21" width="42.666666666666657" height="22"/> + <constraints> + <constraint firstAttribute="height" constant="22" id="AOB-7s-rct"/> + </constraints> + <fontDescription key="fontDescription" type="system" weight="medium" pointSize="17"/> + <nil key="textColor"/> + <nil key="highlightedColor"/> + </label> + <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="成都|仅限年度会员" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Pj9-n0-bRl"> + <rect key="frame" x="131" y="48" width="110.33333333333331" height="17"/> + <constraints> + <constraint firstAttribute="height" constant="17" id="pxp-GL-K0p"/> + </constraints> + <fontDescription key="fontDescription" type="system" pointSize="12"/> + <color key="textColor" red="0.99607843137254903" green="0.47843137254901957" blue="0.011764705882352941" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> + <nil key="highlightedColor"/> + </label> + <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="--" textAlignment="natural" lineBreakMode="tailTruncation" numberOfLines="2" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="6i5-yn-dMM"> + <rect key="frame" x="131" y="69" width="347" height="13.333333333333329"/> + <fontDescription key="fontDescription" type="system" pointSize="11"/> + <color key="textColor" red="0.23921568627450979" green="0.24313725490196078" blue="0.27058823529411763" alpha="0.69999999999999996" colorSpace="custom" customColorSpace="sRGB"/> + <nil key="highlightedColor"/> + </label> + <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="截止报名:" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="9O5-p4-WaJ"> + <rect key="frame" x="131" y="86.333333333333329" width="327" height="17"/> + <constraints> + <constraint firstAttribute="height" constant="17" id="Vuo-G8-hUQ"/> + </constraints> + <fontDescription key="fontDescription" type="system" pointSize="12"/> + <nil key="textColor"/> + <nil key="highlightedColor"/> + </label> + <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="0-0岁" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="ymb-ff-rLX"> + <rect key="frame" x="131" y="107.33333333333333" width="33.333333333333343" height="17"/> + <constraints> + <constraint firstAttribute="height" constant="17" id="0Vw-lb-wrS"/> + </constraints> + <fontDescription key="fontDescription" type="system" pointSize="12"/> + <nil key="textColor"/> + <nil key="highlightedColor"/> + </label> + <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="kwa-Xn-64L"> + <rect key="frame" x="14" y="183" width="461" height="0.33333333333334281"/> + <color key="backgroundColor" red="0.59215686274509804" green="0.59215686274509804" blue="0.59215686274509804" alpha="0.22" colorSpace="custom" customColorSpace="sRGB"/> + <constraints> + <constraint firstAttribute="height" constant="0.40000000000000002" id="bBX-ct-nwS"/> + </constraints> + </view> + <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="sdT-Zi-Mxo"> + <rect key="frame" x="390" y="130" width="86" height="31"/> + <color key="backgroundColor" name="FE6E0D"/> + <constraints> + <constraint firstAttribute="height" constant="31" id="FIY-uM-c4A"/> + <constraint firstAttribute="width" constant="86" id="ILC-2m-1WU"/> + </constraints> + <fontDescription key="fontDescription" type="system" weight="semibold" pointSize="14"/> + <inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/> + <state key="normal" title="查看详情"/> + <userDefinedRuntimeAttributes> + <userDefinedRuntimeAttribute type="boolean" keyPath="ld_maskToBoundsXIB" value="YES"/> + <userDefinedRuntimeAttribute type="number" keyPath="ld_cornerRadiusXIB"> + <real key="value" value="2"/> + </userDefinedRuntimeAttribute> + </userDefinedRuntimeAttributes> + </button> + <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="0" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="dC6-S9-Yzg"> + <rect key="frame" x="465.33333333333331" y="21.666666666666671" width="11.666666666666686" height="21"/> + <fontDescription key="fontDescription" type="system" weight="semibold" pointSize="18"/> + <color key="textColor" red="0.89411764705882346" green="0.10980392156862745" blue="0.10980392156862745" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> + <nil key="highlightedColor"/> + </label> + <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="icon_hot" translatesAutoresizingMaskIntoConstraints="NO" id="aDx-6g-Fwl"> + <rect key="frame" x="445.33333333333331" y="22.666666666666671" width="15" height="19"/> + <constraints> + <constraint firstAttribute="height" constant="19" id="Qxp-GM-F7m"/> + <constraint firstAttribute="width" constant="15" id="Xhm-f6-Zz3"/> + </constraints> + </imageView> + <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="dDz-PN-B0q"> + <rect key="frame" x="15" y="21" width="47" height="26.666666666666671"/> + <color key="backgroundColor" name="FE6E0D"/> + <constraints> + <constraint firstAttribute="height" constant="26.5" id="fiT-QF-fQD"/> + <constraint firstAttribute="width" constant="47" id="qyF-Rs-at2"/> + </constraints> + <fontDescription key="fontDescription" type="system" weight="medium" pointSize="12"/> + <color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/> + <nil key="highlightedColor"/> + </label> + </subviews> + <constraints> + <constraint firstItem="dC6-S9-Yzg" firstAttribute="leading" secondItem="aDx-6g-Fwl" secondAttribute="trailing" constant="5" id="49l-cA-GUT"/> + <constraint firstItem="lCa-en-qcl" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="top" constant="21" id="4g6-br-OY3"/> + <constraint firstItem="6i5-yn-dMM" firstAttribute="top" secondItem="Pj9-n0-bRl" secondAttribute="bottom" constant="4" id="7ej-b0-vBO"/> + <constraint firstItem="rom-jP-xgQ" firstAttribute="leading" secondItem="lCa-en-qcl" secondAttribute="trailing" constant="11" id="88c-FP-Ox9"/> + <constraint firstItem="ymb-ff-rLX" firstAttribute="top" secondItem="9O5-p4-WaJ" secondAttribute="bottom" constant="4" id="93j-rN-wOR"/> + <constraint firstAttribute="trailing" secondItem="kwa-Xn-64L" secondAttribute="trailing" constant="14" id="9hY-ie-aoz"/> + <constraint firstItem="kwa-Xn-64L" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="14" id="FW7-kP-lHi"/> + <constraint firstAttribute="trailingMargin" secondItem="9O5-p4-WaJ" secondAttribute="trailing" constant="11" id="LU8-oF-vfP"/> + <constraint firstItem="dC6-S9-Yzg" firstAttribute="centerY" secondItem="rom-jP-xgQ" secondAttribute="centerY" id="OIo-0u-Hwn"/> + <constraint firstItem="Pj9-n0-bRl" firstAttribute="top" secondItem="rom-jP-xgQ" secondAttribute="bottom" constant="5" id="QWi-tj-XVf"/> + <constraint firstAttribute="trailing" secondItem="dC6-S9-Yzg" secondAttribute="trailing" constant="12" id="SLq-Dk-htR"/> + <constraint firstAttribute="bottom" secondItem="kwa-Xn-64L" secondAttribute="bottom" id="YVS-p4-IkB"/> + <constraint firstAttribute="trailing" secondItem="6i5-yn-dMM" secondAttribute="trailing" constant="11" id="ZnT-0m-CmR"/> + <constraint firstAttribute="trailing" secondItem="sdT-Zi-Mxo" secondAttribute="trailing" constant="13" id="bHK-4G-2Fj"/> + <constraint firstItem="kwa-Xn-64L" firstAttribute="top" secondItem="lCa-en-qcl" secondAttribute="bottom" constant="22" id="eca-E7-5au"/> + <constraint firstItem="lCa-en-qcl" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="15" id="grf-S5-jdp"/> + <constraint firstItem="dDz-PN-B0q" firstAttribute="top" secondItem="lCa-en-qcl" secondAttribute="top" id="iGi-57-VJl"/> + <constraint firstItem="Pj9-n0-bRl" firstAttribute="leading" secondItem="rom-jP-xgQ" secondAttribute="leading" id="kEB-9C-sEM"/> + <constraint firstItem="ymb-ff-rLX" firstAttribute="leading" secondItem="rom-jP-xgQ" secondAttribute="leading" id="kO8-ov-OWD"/> + <constraint firstItem="aDx-6g-Fwl" firstAttribute="centerY" secondItem="rom-jP-xgQ" secondAttribute="centerY" id="kdM-Vq-Jlz"/> + <constraint firstItem="9O5-p4-WaJ" firstAttribute="leading" secondItem="6i5-yn-dMM" secondAttribute="leading" id="lAg-Y0-FLs"/> + <constraint firstItem="dDz-PN-B0q" firstAttribute="leading" secondItem="lCa-en-qcl" secondAttribute="leading" id="nQH-fU-x7b"/> + <constraint firstItem="9O5-p4-WaJ" firstAttribute="top" secondItem="6i5-yn-dMM" secondAttribute="bottom" constant="4" id="rNR-EU-0EI"/> + <constraint firstItem="sdT-Zi-Mxo" firstAttribute="bottom" secondItem="lCa-en-qcl" secondAttribute="bottom" id="tVB-6o-iso"/> + <constraint firstItem="6i5-yn-dMM" firstAttribute="leading" secondItem="rom-jP-xgQ" secondAttribute="leading" id="wv7-BV-JSf"/> + <constraint firstItem="rom-jP-xgQ" firstAttribute="top" secondItem="lCa-en-qcl" secondAttribute="top" id="xDW-fU-NYJ"/> + </constraints> + </tableViewCellContentView> + <viewLayoutGuide key="safeArea" id="njF-e1-oar"/> + <connections> + <outlet property="label_state" destination="dDz-PN-B0q" id="MxD-ut-Nvh"/> + </connections> + <point key="canvasLocation" x="168.70229007633588" y="70.070422535211264"/> + </tableViewCell> + </objects> + <resources> + <image name="icon_hot" width="15" height="19"/> + <namedColor name="FE6E0D"> + <color red="0.99599999189376831" green="0.4309999942779541" blue="0.050999999046325684" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> + </namedColor> + <systemColor name="systemGray6Color"> + <color red="0.94901960784313721" green="0.94901960784313721" blue="0.96862745098039216" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> + </systemColor> + </resources> +</document> diff --git a/WanPai/Root/Activity/VC/ActivityDetailApplyVC.swift b/WanPai/Root/Activity/VC/ActivityDetailApplyVC.swift new file mode 100644 index 0000000..e9ece8a --- /dev/null +++ b/WanPai/Root/Activity/VC/ActivityDetailApplyVC.swift @@ -0,0 +1,69 @@ +// +// ActivityDetailApplyVC.swift +// WanPai +// +// Created by 杨锴 on 2023/6/13. +// + +import UIKit +import QMUIKit + +class ActivityDetailApplyVC: BaseVC { + + @IBOutlet weak var tableView: UITableView! + @IBOutlet weak var btn_addStudent: QMUIButton! + @IBOutlet weak var cons_tableHei: NSLayoutConstraint! + + override func viewDidLoad() { + super.viewDidLoad() + title = "活动详情" + } + + override func setUI() { + btn_addStudent.imagePosition = .right + btn_addStudent.spacingBetweenImageAndTitle = 4 + tableView.delegate = self + tableView.dataSource = self + tableView.register(UINib(nibName: "StudentInfo_2_TCell", bundle: nil), forCellReuseIdentifier: "_StudentInfo_2_TCell") + } + + @IBAction func addStudentAction(_ sender: QMUIButton) { + StudentChooseView.show(itemType:.activity) { + + } needAddClouse: {[weak self] () in + let vc = ActivityStudentListVC() + self?.push(vc: vc) + } + } + + @IBAction func applyAction(_ sender: UIButton) { + + StoresInfoView.show({ status in + if status{ + PaymentView.show { stat in + let result:PaymentResultVC.PaymentResult = status ? .success:.fail + let vc = PaymentResultVC(result: result, objType: .activityApply) + vc.modalPresentationStyle = .fullScreen + self.present(vc, animated: true) + } + } + }) + } +} + +extension ActivityDetailApplyVC:UITableViewDelegate{ + +} + +extension ActivityDetailApplyVC:UITableViewDataSource{ + func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { + let cell = tableView.dequeueReusableCell(withIdentifier: "_StudentInfo_2_TCell") as! StudentInfo_2_TCell + return cell + } + + func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { + return 2 + } + + +} diff --git a/WanPai/Root/Activity/VC/ActivityDetailApplyVC.xib b/WanPai/Root/Activity/VC/ActivityDetailApplyVC.xib new file mode 100644 index 0000000..d138672 --- /dev/null +++ b/WanPai/Root/Activity/VC/ActivityDetailApplyVC.xib @@ -0,0 +1,580 @@ +<?xml version="1.0" encoding="UTF-8"?> +<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="21507" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES"> + <device id="retina6_12" orientation="portrait" appearance="light"/> + <dependencies> + <deployment identifier="iOS"/> + <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="21505"/> + <capability name="Named colors" minToolsVersion="9.0"/> + <capability name="Safe area layout guides" minToolsVersion="9.0"/> + <capability name="System colors in document resources" minToolsVersion="11.0"/> + <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/> + </dependencies> + <objects> + <placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="ActivityDetailApplyVC" customModule="WanPai" customModuleProvider="target"> + <connections> + <outlet property="btn_addStudent" destination="vFF-I7-FyB" id="mwi-Hb-JXm"/> + <outlet property="cons_tableHei" destination="E7r-ch-NFQ" id="292-df-rws"/> + <outlet property="tableView" destination="UEA-WV-jZV" id="exc-tP-CQA"/> + <outlet property="view" destination="i5M-Pr-FkT" id="sfx-zR-JGt"/> + </connections> + </placeholder> + <placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/> + <view clearsContextBeforeDrawing="NO" contentMode="scaleToFill" id="i5M-Pr-FkT"> + <rect key="frame" x="0.0" y="0.0" width="393" height="852"/> + <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> + <subviews> + <scrollView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="YbO-3U-B92"> + <rect key="frame" x="0.0" y="59" width="393" height="711"/> + <subviews> + <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="XMe-LD-M9B"> + <rect key="frame" x="0.0" y="0.0" width="393" height="1064.3333333333333"/> + <subviews> + <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="8p4-kz-QQR"> + <rect key="frame" x="0.0" y="0.0" width="393" height="220"/> + <color key="backgroundColor" systemColor="systemGray6Color"/> + <constraints> + <constraint firstAttribute="width" secondItem="8p4-kz-QQR" secondAttribute="height" multiplier="1:0.56" id="OEP-pY-QP4"/> + </constraints> + </imageView> + <stackView opaque="NO" contentMode="scaleToFill" axis="vertical" translatesAutoresizingMaskIntoConstraints="NO" id="fI5-pl-psr"> + <rect key="frame" x="0.0" y="220.00000000000006" width="393" height="844.33333333333348"/> + <subviews> + <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="y11-gN-dh6"> + <rect key="frame" x="0.0" y="0.0" width="393" height="235"/> + <subviews> + <label opaque="NO" userInteractionEnabled="NO" contentMode="left" verticalHuggingPriority="251" text="--" textAlignment="natural" lineBreakMode="tailTruncation" numberOfLines="2" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Mnc-lb-0cc"> + <rect key="frame" x="14" y="14" width="259" height="183.66666666666666"/> + <fontDescription key="fontDescription" type="system" weight="medium" pointSize="18"/> + <nil key="textColor"/> + <nil key="highlightedColor"/> + </label> + <view contentMode="scaleToFill" horizontalHuggingPriority="1000" translatesAutoresizingMaskIntoConstraints="NO" id="smc-R7-GjI"> + <rect key="frame" x="334" y="14" width="45" height="21"/> + <subviews> + <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="2Bd-9P-C67"> + <rect key="frame" x="7" y="0.0" width="31" height="21"/> + <fontDescription key="fontDescription" type="system" pointSize="12"/> + <color key="textColor" red="0.99607843139999996" green="0.43137254899999999" blue="0.050980392159999999" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> + <nil key="highlightedColor"/> + </label> + </subviews> + <color key="backgroundColor" red="0.99215686270000003" green="0.57647058819999997" blue="0.19215686269999999" alpha="0.28999999999999998" colorSpace="custom" customColorSpace="sRGB"/> + <constraints> + <constraint firstAttribute="trailing" secondItem="2Bd-9P-C67" secondAttribute="trailing" constant="7" id="3XE-KM-hsf"/> + <constraint firstItem="2Bd-9P-C67" firstAttribute="leading" secondItem="smc-R7-GjI" secondAttribute="leading" constant="7" id="9N1-jz-LFL"/> + <constraint firstItem="2Bd-9P-C67" firstAttribute="top" secondItem="smc-R7-GjI" secondAttribute="top" id="Noj-Mf-jdH"/> + <constraint firstAttribute="bottom" secondItem="2Bd-9P-C67" secondAttribute="bottom" id="XIj-Xn-GRF"/> + <constraint firstAttribute="height" constant="21" id="uYz-Tf-Lp0"/> + </constraints> + </view> + <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="icon_local_mini" translatesAutoresizingMaskIntoConstraints="NO" id="C6K-Nq-Qtk"> + <rect key="frame" x="14" y="205.66666666666669" width="11" height="16"/> + <constraints> + <constraint firstAttribute="height" constant="16" id="LmK-9M-wV7"/> + <constraint firstAttribute="width" constant="11" id="N6U-30-kbz"/> + </constraints> + </imageView> + <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="natural" lineBreakMode="tailTruncation" numberOfLines="2" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="fFg-Kg-NdR"> + <rect key="frame" x="30" y="205.66666666666669" width="358" height="14.333333333333343"/> + <fontDescription key="fontDescription" type="system" weight="medium" pointSize="12"/> + <color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="0.59999999999999998" colorSpace="custom" customColorSpace="sRGB"/> + <nil key="highlightedColor"/> + </label> + <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="ux7-Ei-5Ed"> + <rect key="frame" x="14" y="234" width="379" height="1"/> + <color key="backgroundColor" red="0.59215686270000001" green="0.59215686270000001" blue="0.59215686270000001" alpha="0.22" colorSpace="custom" customColorSpace="sRGB"/> + <constraints> + <constraint firstAttribute="height" constant="1" id="fKt-ZN-zxq"/> + </constraints> + </view> + </subviews> + <color key="backgroundColor" systemColor="systemBackgroundColor"/> + <constraints> + <constraint firstAttribute="trailing" secondItem="Mnc-lb-0cc" secondAttribute="trailing" constant="120" id="00j-Dm-IYh"/> + <constraint firstItem="ux7-Ei-5Ed" firstAttribute="leading" secondItem="y11-gN-dh6" secondAttribute="leading" constant="14" id="2D8-rs-0mh"/> + <constraint firstItem="C6K-Nq-Qtk" firstAttribute="leading" secondItem="y11-gN-dh6" secondAttribute="leading" constant="14" id="HL2-Ma-aCl"/> + <constraint firstAttribute="trailing" secondItem="fFg-Kg-NdR" secondAttribute="trailing" constant="5" id="Hdy-lM-dxt"/> + <constraint firstItem="Mnc-lb-0cc" firstAttribute="top" secondItem="y11-gN-dh6" secondAttribute="top" constant="14" id="Iqf-Kh-RNy"/> + <constraint firstItem="fFg-Kg-NdR" firstAttribute="leading" secondItem="C6K-Nq-Qtk" secondAttribute="trailing" constant="5" id="PBg-D1-DQZ"/> + <constraint firstItem="ux7-Ei-5Ed" firstAttribute="top" secondItem="fFg-Kg-NdR" secondAttribute="bottom" constant="14" id="UL8-H4-ss9"/> + <constraint firstAttribute="trailing" secondItem="ux7-Ei-5Ed" secondAttribute="trailing" id="cUH-rz-HRq"/> + <constraint firstItem="smc-R7-GjI" firstAttribute="top" secondItem="y11-gN-dh6" secondAttribute="top" constant="14" id="fZX-Rz-XeE"/> + <constraint firstItem="C6K-Nq-Qtk" firstAttribute="top" secondItem="Mnc-lb-0cc" secondAttribute="bottom" constant="8" id="oii-zu-4Av"/> + <constraint firstItem="fFg-Kg-NdR" firstAttribute="top" secondItem="C6K-Nq-Qtk" secondAttribute="top" id="pB6-hW-h1s"/> + <constraint firstAttribute="trailing" secondItem="smc-R7-GjI" secondAttribute="trailing" constant="14" id="pf6-kQ-T4S"/> + <constraint firstAttribute="bottom" secondItem="ux7-Ei-5Ed" secondAttribute="bottom" id="qGI-ae-hwK"/> + <constraint firstItem="Mnc-lb-0cc" firstAttribute="leading" secondItem="y11-gN-dh6" secondAttribute="leading" constant="14" id="t44-X9-4QP"/> + </constraints> + <userDefinedRuntimeAttributes> + <userDefinedRuntimeAttribute type="number" keyPath="ld_cornerRadiusXIB"> + <real key="value" value="2"/> + </userDefinedRuntimeAttribute> + </userDefinedRuntimeAttributes> + </view> + <stackView opaque="NO" contentMode="scaleToFill" axis="vertical" translatesAutoresizingMaskIntoConstraints="NO" id="sei-fq-5Wo"> + <rect key="frame" x="0.0" y="235" width="393" height="230"/> + <subviews> + <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="jIC-yz-bTR"> + <rect key="frame" x="0.0" y="0.0" width="393" height="46"/> + <subviews> + <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="nOq-fO-Rnm"> + <rect key="frame" x="14" y="11" width="4" height="4"/> + <color key="backgroundColor" name="FE6E0D"/> + <constraints> + <constraint firstAttribute="height" constant="4" id="R4N-6r-sDH"/> + <constraint firstAttribute="width" constant="4" id="VKL-b3-S6G"/> + </constraints> + <userDefinedRuntimeAttributes> + <userDefinedRuntimeAttribute type="boolean" keyPath="ld_maskToBoundsXIB" value="YES"/> + <userDefinedRuntimeAttribute type="number" keyPath="ld_cornerRadiusXIB"> + <real key="value" value="2"/> + </userDefinedRuntimeAttribute> + </userDefinedRuntimeAttributes> + </view> + <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="截止报名时间" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="DDv-6Q-KEz"> + <rect key="frame" x="22" y="6.0000000000000009" width="73.666666666666671" height="14.333333333333336"/> + <fontDescription key="fontDescription" type="system" weight="semibold" pointSize="12"/> + <color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="0.5" colorSpace="custom" customColorSpace="sRGB"/> + <nil key="highlightedColor"/> + </label> + <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="--" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="yFh-cd-Oew"> + <rect key="frame" x="22" y="28.333333333333368" width="11.666666666666664" height="14.333333333333332"/> + <fontDescription key="fontDescription" type="system" weight="medium" pointSize="12"/> + <nil key="textColor"/> + <nil key="highlightedColor"/> + </label> + </subviews> + <color key="backgroundColor" systemColor="systemBackgroundColor"/> + <constraints> + <constraint firstItem="DDv-6Q-KEz" firstAttribute="centerY" secondItem="nOq-fO-Rnm" secondAttribute="centerY" id="6Vp-Ih-8tS"/> + <constraint firstItem="DDv-6Q-KEz" firstAttribute="leading" secondItem="nOq-fO-Rnm" secondAttribute="trailing" constant="4" id="Aik-sN-4pK"/> + <constraint firstItem="yFh-cd-Oew" firstAttribute="leading" secondItem="DDv-6Q-KEz" secondAttribute="leading" id="J5C-dM-Rxc"/> + <constraint firstAttribute="height" constant="46" id="Lqw-Ph-tql"/> + <constraint firstItem="yFh-cd-Oew" firstAttribute="top" secondItem="DDv-6Q-KEz" secondAttribute="bottom" constant="8" id="MRz-Yj-52d"/> + <constraint firstItem="nOq-fO-Rnm" firstAttribute="top" secondItem="jIC-yz-bTR" secondAttribute="top" constant="11" id="NTS-JY-Lo7"/> + <constraint firstItem="nOq-fO-Rnm" firstAttribute="leading" secondItem="jIC-yz-bTR" secondAttribute="leading" constant="14" id="rKC-0L-P1T"/> + </constraints> + </view> + <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Q8L-Ts-iSB"> + <rect key="frame" x="0.0" y="46" width="393" height="46"/> + <subviews> + <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="KhD-1l-VNz"> + <rect key="frame" x="14" y="11" width="4" height="4"/> + <color key="backgroundColor" name="FE6E0D"/> + <constraints> + <constraint firstAttribute="width" constant="4" id="96T-TP-E7D"/> + <constraint firstAttribute="height" constant="4" id="ddf-gf-2uv"/> + </constraints> + <userDefinedRuntimeAttributes> + <userDefinedRuntimeAttribute type="boolean" keyPath="ld_maskToBoundsXIB" value="YES"/> + <userDefinedRuntimeAttribute type="number" keyPath="ld_cornerRadiusXIB"> + <real key="value" value="2"/> + </userDefinedRuntimeAttribute> + </userDefinedRuntimeAttributes> + </view> + <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="开始时间" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="vy8-pl-tb6"> + <rect key="frame" x="22.000000000000004" y="6.0000000000000009" width="49.333333333333343" height="14.333333333333336"/> + <fontDescription key="fontDescription" type="system" weight="semibold" pointSize="12"/> + <color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="0.5" colorSpace="custom" customColorSpace="sRGB"/> + <nil key="highlightedColor"/> + </label> + <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="--" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="HVZ-gK-GRY"> + <rect key="frame" x="22" y="28.333333333333368" width="11.666666666666664" height="14.333333333333332"/> + <fontDescription key="fontDescription" type="system" weight="medium" pointSize="12"/> + <nil key="textColor"/> + <nil key="highlightedColor"/> + </label> + </subviews> + <color key="backgroundColor" systemColor="systemBackgroundColor"/> + <constraints> + <constraint firstItem="HVZ-gK-GRY" firstAttribute="top" secondItem="vy8-pl-tb6" secondAttribute="bottom" constant="8" id="4Yo-BS-CVv"/> + <constraint firstItem="vy8-pl-tb6" firstAttribute="centerY" secondItem="KhD-1l-VNz" secondAttribute="centerY" id="Emg-ki-hTJ"/> + <constraint firstItem="vy8-pl-tb6" firstAttribute="leading" secondItem="KhD-1l-VNz" secondAttribute="trailing" constant="4" id="PuZ-5I-ifh"/> + <constraint firstAttribute="height" constant="46" id="YoV-3X-GIv"/> + <constraint firstItem="HVZ-gK-GRY" firstAttribute="leading" secondItem="vy8-pl-tb6" secondAttribute="leading" id="eht-2W-l5I"/> + <constraint firstItem="KhD-1l-VNz" firstAttribute="leading" secondItem="Q8L-Ts-iSB" secondAttribute="leading" constant="14" id="h8I-dB-PtG"/> + <constraint firstItem="KhD-1l-VNz" firstAttribute="top" secondItem="Q8L-Ts-iSB" secondAttribute="top" constant="11" id="iGl-e3-W9S"/> + </constraints> + </view> + <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="HyE-bG-Tse"> + <rect key="frame" x="0.0" y="92" width="393" height="46"/> + <subviews> + <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="BxP-HT-qPW"> + <rect key="frame" x="14" y="11" width="4" height="4"/> + <color key="backgroundColor" name="FE6E0D"/> + <constraints> + <constraint firstAttribute="height" constant="4" id="FeV-YV-Tbb"/> + <constraint firstAttribute="width" constant="4" id="UkV-Qp-KdM"/> + </constraints> + <userDefinedRuntimeAttributes> + <userDefinedRuntimeAttribute type="boolean" keyPath="ld_maskToBoundsXIB" value="YES"/> + <userDefinedRuntimeAttribute type="number" keyPath="ld_cornerRadiusXIB"> + <real key="value" value="2"/> + </userDefinedRuntimeAttribute> + </userDefinedRuntimeAttributes> + </view> + <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="结束时间" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Rbh-X9-5V0"> + <rect key="frame" x="22.000000000000004" y="6.0000000000000009" width="49.333333333333343" height="14.333333333333336"/> + <fontDescription key="fontDescription" type="system" weight="semibold" pointSize="12"/> + <color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="0.5" colorSpace="custom" customColorSpace="sRGB"/> + <nil key="highlightedColor"/> + </label> + <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="--" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="WG0-AL-bqm"> + <rect key="frame" x="22" y="28.333333333333368" width="11.666666666666664" height="14.333333333333332"/> + <fontDescription key="fontDescription" type="system" weight="medium" pointSize="12"/> + <nil key="textColor"/> + <nil key="highlightedColor"/> + </label> + </subviews> + <color key="backgroundColor" systemColor="systemBackgroundColor"/> + <constraints> + <constraint firstAttribute="height" constant="46" id="6kv-xy-ANO"/> + <constraint firstItem="Rbh-X9-5V0" firstAttribute="centerY" secondItem="BxP-HT-qPW" secondAttribute="centerY" id="6r9-Ri-NOJ"/> + <constraint firstItem="BxP-HT-qPW" firstAttribute="top" secondItem="HyE-bG-Tse" secondAttribute="top" constant="11" id="SUb-dk-68i"/> + <constraint firstItem="BxP-HT-qPW" firstAttribute="leading" secondItem="HyE-bG-Tse" secondAttribute="leading" constant="14" id="Sk2-zR-vYw"/> + <constraint firstItem="WG0-AL-bqm" firstAttribute="top" secondItem="Rbh-X9-5V0" secondAttribute="bottom" constant="8" id="WmR-FW-eEr"/> + <constraint firstItem="Rbh-X9-5V0" firstAttribute="leading" secondItem="BxP-HT-qPW" secondAttribute="trailing" constant="4" id="hBj-t3-M7a"/> + <constraint firstItem="WG0-AL-bqm" firstAttribute="leading" secondItem="Rbh-X9-5V0" secondAttribute="leading" id="qf6-be-GRk"/> + </constraints> + </view> + <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="RtG-w2-M9c"> + <rect key="frame" x="0.0" y="138" width="393" height="46"/> + <subviews> + <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="HQL-eN-aC6"> + <rect key="frame" x="14" y="11" width="4" height="4"/> + <color key="backgroundColor" name="FE6E0D"/> + <constraints> + <constraint firstAttribute="height" constant="4" id="MBD-XB-c5x"/> + <constraint firstAttribute="width" constant="4" id="sY4-1X-2hP"/> + </constraints> + <userDefinedRuntimeAttributes> + <userDefinedRuntimeAttribute type="boolean" keyPath="ld_maskToBoundsXIB" value="YES"/> + <userDefinedRuntimeAttribute type="number" keyPath="ld_cornerRadiusXIB"> + <real key="value" value="2"/> + </userDefinedRuntimeAttribute> + </userDefinedRuntimeAttributes> + </view> + <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="报名年龄" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Hv8-HM-IOV"> + <rect key="frame" x="22.000000000000004" y="6.0000000000000009" width="49.333333333333343" height="14.333333333333336"/> + <fontDescription key="fontDescription" type="system" weight="semibold" pointSize="12"/> + <color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="0.5" colorSpace="custom" customColorSpace="sRGB"/> + <nil key="highlightedColor"/> + </label> + <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="--" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="RkB-65-NBj"> + <rect key="frame" x="22" y="28.333333333333368" width="11.666666666666664" height="14.333333333333332"/> + <fontDescription key="fontDescription" type="system" weight="medium" pointSize="12"/> + <nil key="textColor"/> + <nil key="highlightedColor"/> + </label> + </subviews> + <color key="backgroundColor" systemColor="systemBackgroundColor"/> + <constraints> + <constraint firstAttribute="height" constant="46" id="C9i-Wy-V3E"/> + <constraint firstItem="RkB-65-NBj" firstAttribute="leading" secondItem="Hv8-HM-IOV" secondAttribute="leading" id="hS4-oL-gSj"/> + <constraint firstItem="Hv8-HM-IOV" firstAttribute="leading" secondItem="HQL-eN-aC6" secondAttribute="trailing" constant="4" id="k8L-as-Tah"/> + <constraint firstItem="RkB-65-NBj" firstAttribute="top" secondItem="Hv8-HM-IOV" secondAttribute="bottom" constant="8" id="ozH-Fp-rbF"/> + <constraint firstItem="HQL-eN-aC6" firstAttribute="leading" secondItem="RtG-w2-M9c" secondAttribute="leading" constant="14" id="rDK-bm-ye5"/> + <constraint firstItem="HQL-eN-aC6" firstAttribute="top" secondItem="RtG-w2-M9c" secondAttribute="top" constant="11" id="sQT-9H-q1c"/> + <constraint firstItem="Hv8-HM-IOV" firstAttribute="centerY" secondItem="HQL-eN-aC6" secondAttribute="centerY" id="xC0-vj-xSO"/> + </constraints> + </view> + <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="CDe-Ud-awC"> + <rect key="frame" x="0.0" y="184" width="393" height="46"/> + <subviews> + <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="QYt-ST-Wg9"> + <rect key="frame" x="14" y="11" width="4" height="4"/> + <color key="backgroundColor" name="FE6E0D"/> + <constraints> + <constraint firstAttribute="width" constant="4" id="1jx-ej-EMC"/> + <constraint firstAttribute="height" constant="4" id="efr-xo-b2s"/> + </constraints> + <userDefinedRuntimeAttributes> + <userDefinedRuntimeAttribute type="boolean" keyPath="ld_maskToBoundsXIB" value="YES"/> + <userDefinedRuntimeAttribute type="number" keyPath="ld_cornerRadiusXIB"> + <real key="value" value="2"/> + </userDefinedRuntimeAttribute> + </userDefinedRuntimeAttributes> + </view> + <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="参赛地址" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="JYO-In-OJe"> + <rect key="frame" x="22.000000000000004" y="6.0000000000000009" width="49.333333333333343" height="14.333333333333336"/> + <fontDescription key="fontDescription" type="system" weight="semibold" pointSize="12"/> + <color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="0.5" colorSpace="custom" customColorSpace="sRGB"/> + <nil key="highlightedColor"/> + </label> + <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="--" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="w7l-Hs-7EQ"> + <rect key="frame" x="22" y="28.333333333333368" width="11.666666666666664" height="14.333333333333332"/> + <fontDescription key="fontDescription" type="system" weight="medium" pointSize="12"/> + <nil key="textColor"/> + <nil key="highlightedColor"/> + </label> + <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="--" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="gQe-UF-wHC"> + <rect key="frame" x="367.33333333333331" y="28.333333333333368" width="11.666666666666686" height="14.333333333333332"/> + <fontDescription key="fontDescription" type="system" weight="medium" pointSize="12"/> + <nil key="textColor"/> + <nil key="highlightedColor"/> + </label> + </subviews> + <color key="backgroundColor" systemColor="systemBackgroundColor"/> + <constraints> + <constraint firstItem="QYt-ST-Wg9" firstAttribute="top" secondItem="CDe-Ud-awC" secondAttribute="top" constant="11" id="79c-gM-Cco"/> + <constraint firstItem="gQe-UF-wHC" firstAttribute="centerY" secondItem="w7l-Hs-7EQ" secondAttribute="centerY" id="AkY-4n-dpj"/> + <constraint firstAttribute="trailing" secondItem="gQe-UF-wHC" secondAttribute="trailing" constant="14" id="CQy-cv-X3i"/> + <constraint firstItem="JYO-In-OJe" firstAttribute="leading" secondItem="QYt-ST-Wg9" secondAttribute="trailing" constant="4" id="Esv-Mf-s1F"/> + <constraint firstItem="JYO-In-OJe" firstAttribute="centerY" secondItem="QYt-ST-Wg9" secondAttribute="centerY" id="Qw2-HO-ScI"/> + <constraint firstAttribute="height" constant="46" id="iEL-sX-OiD"/> + <constraint firstItem="w7l-Hs-7EQ" firstAttribute="leading" secondItem="JYO-In-OJe" secondAttribute="leading" id="nH1-D1-y3r"/> + <constraint firstItem="w7l-Hs-7EQ" firstAttribute="top" secondItem="JYO-In-OJe" secondAttribute="bottom" constant="8" id="sMB-C1-OxX"/> + <constraint firstItem="QYt-ST-Wg9" firstAttribute="leading" secondItem="CDe-Ud-awC" secondAttribute="leading" constant="14" id="zN5-NS-Q4I"/> + </constraints> + </view> + </subviews> + </stackView> + <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="oxi-DH-KVR"> + <rect key="frame" x="0.0" y="465" width="393" height="115"/> + <subviews> + <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="8N9-5a-Lyf"> + <rect key="frame" x="13" y="0.0" width="380" height="1"/> + <color key="backgroundColor" red="0.59215686270000001" green="0.59215686270000001" blue="0.59215686270000001" alpha="0.22" colorSpace="custom" customColorSpace="sRGB"/> + <constraints> + <constraint firstAttribute="height" constant="1" id="LfE-wS-vk8"/> + </constraints> + </view> + <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="ib7-am-lAe"> + <rect key="frame" x="13" y="114" width="380" height="1"/> + <color key="backgroundColor" red="0.59215686270000001" green="0.59215686270000001" blue="0.59215686270000001" alpha="0.22" colorSpace="custom" customColorSpace="sRGB"/> + <constraints> + <constraint firstAttribute="height" constant="1" id="inW-xF-bQt"/> + </constraints> + </view> + <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="赛事费用" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Ym3-ZD-GoB"> + <rect key="frame" x="14" y="14.999999999999998" width="365" height="19.333333333333329"/> + <fontDescription key="fontDescription" type="system" weight="semibold" pointSize="16"/> + <nil key="textColor"/> + <nil key="highlightedColor"/> + </label> + <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="支付:" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="cL1-bJ-t61"> + <rect key="frame" x="14" y="46.333333333333371" width="43" height="17"/> + <fontDescription key="fontDescription" type="system" pointSize="14"/> + <color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="0.59999999999999998" colorSpace="custom" customColorSpace="sRGB"/> + <nil key="highlightedColor"/> + </label> + <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="¥0/人" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="eU8-vW-wfW"> + <rect key="frame" x="57" y="46.333333333333371" width="36.666666666666657" height="17"/> + <fontDescription key="fontDescription" type="system" weight="medium" pointSize="14"/> + <color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="0.80000000000000004" colorSpace="custom" customColorSpace="sRGB"/> + <nil key="highlightedColor"/> + </label> + <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="玩湃币:" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Mf2-Mt-gru"> + <rect key="frame" x="175" y="46.333333333333371" width="57.333333333333343" height="17"/> + <fontDescription key="fontDescription" type="system" pointSize="14"/> + <color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="0.59999999999999998" colorSpace="custom" customColorSpace="sRGB"/> + <nil key="highlightedColor"/> + </label> + <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="0币/人" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="D5t-1x-WAG"> + <rect key="frame" x="232.33333333333334" y="46.333333333333371" width="42.000000000000028" height="17"/> + <fontDescription key="fontDescription" type="system" weight="medium" pointSize="14"/> + <color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="0.80000000000000004" colorSpace="custom" customColorSpace="sRGB"/> + <nil key="highlightedColor"/> + </label> + <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="课时:" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="nV5-6O-VmB"> + <rect key="frame" x="14" y="75.333333333333371" width="43" height="17"/> + <fontDescription key="fontDescription" type="system" pointSize="14"/> + <color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="0.59999999999999998" colorSpace="custom" customColorSpace="sRGB"/> + <nil key="highlightedColor"/> + </label> + <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="0课时/人" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="G8f-PQ-0Pj"> + <rect key="frame" x="57" y="75.333333333333371" width="56.333333333333343" height="17"/> + <fontDescription key="fontDescription" type="system" weight="medium" pointSize="14"/> + <color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="0.80000000000000004" colorSpace="custom" customColorSpace="sRGB"/> + <nil key="highlightedColor"/> + </label> + </subviews> + <color key="backgroundColor" systemColor="systemBackgroundColor"/> + <constraints> + <constraint firstItem="eU8-vW-wfW" firstAttribute="centerY" secondItem="cL1-bJ-t61" secondAttribute="centerY" id="17h-Fm-fbM"/> + <constraint firstItem="nV5-6O-VmB" firstAttribute="leading" secondItem="cL1-bJ-t61" secondAttribute="leading" id="2S7-XH-bjT"/> + <constraint firstItem="nV5-6O-VmB" firstAttribute="top" secondItem="cL1-bJ-t61" secondAttribute="bottom" constant="12" id="5zc-6B-XNe"/> + <constraint firstItem="cL1-bJ-t61" firstAttribute="leading" secondItem="oxi-DH-KVR" secondAttribute="leading" constant="14" id="DIZ-eJ-hBb"/> + <constraint firstItem="D5t-1x-WAG" firstAttribute="leading" secondItem="Mf2-Mt-gru" secondAttribute="trailing" id="HFt-sb-gyX"/> + <constraint firstItem="Mf2-Mt-gru" firstAttribute="leading" secondItem="oxi-DH-KVR" secondAttribute="leading" constant="175" id="L6P-gO-Ixx"/> + <constraint firstItem="D5t-1x-WAG" firstAttribute="centerY" secondItem="cL1-bJ-t61" secondAttribute="centerY" id="RsL-zw-dgy"/> + <constraint firstItem="Ym3-ZD-GoB" firstAttribute="leading" secondItem="oxi-DH-KVR" secondAttribute="leading" constant="14" id="SIk-qW-SSp"/> + <constraint firstAttribute="bottom" secondItem="ib7-am-lAe" secondAttribute="bottom" id="Ugq-ec-3WN"/> + <constraint firstItem="G8f-PQ-0Pj" firstAttribute="centerY" secondItem="nV5-6O-VmB" secondAttribute="centerY" id="W8L-LG-sYw"/> + <constraint firstAttribute="height" constant="115" id="YcI-3l-9Qg"/> + <constraint firstItem="8N9-5a-Lyf" firstAttribute="leading" secondItem="oxi-DH-KVR" secondAttribute="leading" constant="13" id="Z4V-KU-Y0l"/> + <constraint firstItem="Mf2-Mt-gru" firstAttribute="centerY" secondItem="cL1-bJ-t61" secondAttribute="centerY" id="ZUt-Sj-5dR"/> + <constraint firstAttribute="trailing" secondItem="ib7-am-lAe" secondAttribute="trailing" id="bGc-6m-rqX"/> + <constraint firstItem="G8f-PQ-0Pj" firstAttribute="leading" secondItem="nV5-6O-VmB" secondAttribute="trailing" id="c32-Z4-fbt"/> + <constraint firstItem="cL1-bJ-t61" firstAttribute="top" secondItem="Ym3-ZD-GoB" secondAttribute="bottom" constant="12" id="eHj-U0-XIg"/> + <constraint firstItem="8N9-5a-Lyf" firstAttribute="top" secondItem="oxi-DH-KVR" secondAttribute="top" id="mDs-DD-glb"/> + <constraint firstItem="eU8-vW-wfW" firstAttribute="leading" secondItem="cL1-bJ-t61" secondAttribute="trailing" id="nE1-7H-Rou"/> + <constraint firstItem="Ym3-ZD-GoB" firstAttribute="top" secondItem="8N9-5a-Lyf" secondAttribute="bottom" constant="14" id="roT-xy-M8V"/> + <constraint firstAttribute="trailing" secondItem="Ym3-ZD-GoB" secondAttribute="trailing" constant="14" id="tTA-ah-fbR"/> + <constraint firstItem="ib7-am-lAe" firstAttribute="leading" secondItem="oxi-DH-KVR" secondAttribute="leading" constant="13" id="wYy-GU-BBX"/> + <constraint firstItem="D5t-1x-WAG" firstAttribute="centerY" secondItem="Mf2-Mt-gru" secondAttribute="centerY" id="yHc-a7-bDl"/> + <constraint firstAttribute="trailing" secondItem="8N9-5a-Lyf" secondAttribute="trailing" id="yuz-pO-tHs"/> + </constraints> + </view> + <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="w7j-PS-NjY"> + <rect key="frame" x="0.0" y="580" width="393" height="115"/> + <subviews> + <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="kpL-cg-Mmm"> + <rect key="frame" x="13" y="0.0" width="380" height="1"/> + <color key="backgroundColor" red="0.59215686270000001" green="0.59215686270000001" blue="0.59215686270000001" alpha="0.22" colorSpace="custom" customColorSpace="sRGB"/> + <constraints> + <constraint firstAttribute="height" constant="1" id="JYv-7R-Npv"/> + </constraints> + </view> + <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="PpN-cz-gaU"> + <rect key="frame" x="13" y="114" width="380" height="1"/> + <color key="backgroundColor" red="0.59215686270000001" green="0.59215686270000001" blue="0.59215686270000001" alpha="0.22" colorSpace="custom" customColorSpace="sRGB"/> + <constraints> + <constraint firstAttribute="height" constant="1" id="0Bu-N9-IBq"/> + </constraints> + </view> + <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="赛事简介" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="QtX-Vo-ALs"> + <rect key="frame" x="14" y="15" width="365" height="61"/> + <fontDescription key="fontDescription" type="system" weight="semibold" pointSize="16"/> + <nil key="textColor"/> + <nil key="highlightedColor"/> + </label> + <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="natural" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="zOi-jz-xW4"> + <rect key="frame" x="14" y="83" width="365" height="17"/> + <fontDescription key="fontDescription" type="system" pointSize="14"/> + <color key="textColor" red="0.23921568630000001" green="0.24313725489999999" blue="0.27058823529999998" alpha="0.69999999999999996" colorSpace="custom" customColorSpace="sRGB"/> + <nil key="highlightedColor"/> + </label> + </subviews> + <color key="backgroundColor" systemColor="systemBackgroundColor"/> + <constraints> + <constraint firstAttribute="bottom" secondItem="PpN-cz-gaU" secondAttribute="bottom" id="0jt-SX-3xX"/> + <constraint firstItem="zOi-jz-xW4" firstAttribute="leading" secondItem="w7j-PS-NjY" secondAttribute="leading" constant="14" id="DdK-kt-RbL"/> + <constraint firstItem="QtX-Vo-ALs" firstAttribute="leading" secondItem="w7j-PS-NjY" secondAttribute="leading" constant="14" id="F1A-Gk-b69"/> + <constraint firstItem="zOi-jz-xW4" firstAttribute="top" secondItem="QtX-Vo-ALs" secondAttribute="bottom" constant="7" id="F3T-5Z-lz6"/> + <constraint firstAttribute="trailing" secondItem="zOi-jz-xW4" secondAttribute="trailing" constant="14" id="IzY-Ca-4sx"/> + <constraint firstItem="kpL-cg-Mmm" firstAttribute="top" secondItem="w7j-PS-NjY" secondAttribute="top" id="KL9-gF-Xpz"/> + <constraint firstItem="PpN-cz-gaU" firstAttribute="leading" secondItem="w7j-PS-NjY" secondAttribute="leading" constant="13" id="Rzd-Sb-beq"/> + <constraint firstAttribute="trailing" secondItem="QtX-Vo-ALs" secondAttribute="trailing" constant="14" id="SXw-Jq-KZb"/> + <constraint firstItem="kpL-cg-Mmm" firstAttribute="leading" secondItem="w7j-PS-NjY" secondAttribute="leading" constant="13" id="ZdB-QC-sD1"/> + <constraint firstItem="QtX-Vo-ALs" firstAttribute="top" secondItem="kpL-cg-Mmm" secondAttribute="bottom" constant="14" id="jQz-A0-1Lb"/> + <constraint firstAttribute="trailing" secondItem="PpN-cz-gaU" secondAttribute="trailing" id="ksN-nP-Zen"/> + <constraint firstItem="PpN-cz-gaU" firstAttribute="top" secondItem="zOi-jz-xW4" secondAttribute="bottom" constant="14" id="sDI-KO-6gF"/> + <constraint firstAttribute="trailing" secondItem="kpL-cg-Mmm" secondAttribute="trailing" id="u4B-uB-VVK"/> + </constraints> + </view> + <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="HJQ-FF-uCj"> + <rect key="frame" x="0.0" y="695" width="393" height="149.33333333333337"/> + <subviews> + <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="tyD-F3-iK7"> + <rect key="frame" x="13" y="0.0" width="380" height="1"/> + <color key="backgroundColor" red="0.59215686270000001" green="0.59215686270000001" blue="0.59215686270000001" alpha="0.22" colorSpace="custom" customColorSpace="sRGB"/> + <constraints> + <constraint firstAttribute="height" constant="1" id="QUL-ul-Vnx"/> + </constraints> + </view> + <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="赛事人员" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="M9g-qI-cqh"> + <rect key="frame" x="14" y="15" width="65.333333333333329" height="29"/> + <fontDescription key="fontDescription" type="system" weight="semibold" pointSize="16"/> + <nil key="textColor"/> + <nil key="highlightedColor"/> + </label> + <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="vFF-I7-FyB" customClass="QMUIButton"> + <rect key="frame" x="305" y="21" width="74" height="17"/> + <fontDescription key="fontDescription" type="system" pointSize="14"/> + <inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/> + <state key="normal" title="选择人员" image="btn_add_1"> + <color key="titleColor" red="0.0" green="0.0" blue="0.0" alpha="0.56999999999999995" colorSpace="custom" customColorSpace="sRGB"/> + </state> + <connections> + <action selector="addStudentAction:" destination="-1" eventType="touchUpInside" id="kkT-C2-P96"/> + </connections> + </button> + <tableView clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" style="plain" separatorStyle="default" rowHeight="-1" estimatedRowHeight="-1" sectionHeaderHeight="-1" estimatedSectionHeaderHeight="-1" sectionFooterHeight="-1" estimatedSectionFooterHeight="-1" translatesAutoresizingMaskIntoConstraints="NO" id="UEA-WV-jZV"> + <rect key="frame" x="0.0" y="49.333333333333371" width="393" height="100"/> + <color key="backgroundColor" systemColor="systemBackgroundColor"/> + <constraints> + <constraint firstAttribute="height" constant="100" id="E7r-ch-NFQ"/> + </constraints> + </tableView> + </subviews> + <color key="backgroundColor" systemColor="systemBackgroundColor"/> + <constraints> + <constraint firstItem="M9g-qI-cqh" firstAttribute="top" secondItem="tyD-F3-iK7" secondAttribute="bottom" constant="14" id="30w-au-8CD"/> + <constraint firstAttribute="trailing" secondItem="UEA-WV-jZV" secondAttribute="trailing" id="36r-Yp-Rvk"/> + <constraint firstItem="tyD-F3-iK7" firstAttribute="leading" secondItem="HJQ-FF-uCj" secondAttribute="leading" constant="13" id="MQk-ND-Ccv"/> + <constraint firstAttribute="bottom" secondItem="UEA-WV-jZV" secondAttribute="bottom" id="UzI-1l-1NK"/> + <constraint firstItem="vFF-I7-FyB" firstAttribute="centerY" secondItem="M9g-qI-cqh" secondAttribute="centerY" id="fvp-Bs-lUg"/> + <constraint firstItem="UEA-WV-jZV" firstAttribute="top" secondItem="M9g-qI-cqh" secondAttribute="bottom" constant="5.5" id="gGN-mS-Mvd"/> + <constraint firstAttribute="trailing" secondItem="tyD-F3-iK7" secondAttribute="trailing" id="gUM-IN-dPX"/> + <constraint firstItem="UEA-WV-jZV" firstAttribute="leading" secondItem="HJQ-FF-uCj" secondAttribute="leading" id="hB3-gF-2XR"/> + <constraint firstItem="M9g-qI-cqh" firstAttribute="leading" secondItem="HJQ-FF-uCj" secondAttribute="leading" constant="14" id="lVa-V0-gIb"/> + <constraint firstAttribute="trailing" secondItem="vFF-I7-FyB" secondAttribute="trailing" constant="14" id="r9C-JS-ip8"/> + <constraint firstItem="tyD-F3-iK7" firstAttribute="top" secondItem="HJQ-FF-uCj" secondAttribute="top" id="xzX-t9-Cs0"/> + </constraints> + </view> + </subviews> + </stackView> + </subviews> + <color key="backgroundColor" systemColor="systemBackgroundColor"/> + <constraints> + <constraint firstAttribute="trailing" secondItem="fI5-pl-psr" secondAttribute="trailing" id="0PG-GF-oKD"/> + <constraint firstAttribute="trailing" secondItem="8p4-kz-QQR" secondAttribute="trailing" id="aOK-9P-atD"/> + <constraint firstItem="fI5-pl-psr" firstAttribute="leading" secondItem="XMe-LD-M9B" secondAttribute="leading" id="daU-BI-fBa"/> + <constraint firstItem="8p4-kz-QQR" firstAttribute="leading" secondItem="XMe-LD-M9B" secondAttribute="leading" id="eQz-0P-h4G"/> + <constraint firstItem="fI5-pl-psr" firstAttribute="top" secondItem="8p4-kz-QQR" secondAttribute="bottom" id="opW-hM-4QD"/> + <constraint firstItem="8p4-kz-QQR" firstAttribute="top" secondItem="XMe-LD-M9B" secondAttribute="top" id="q2G-C8-Ago"/> + <constraint firstAttribute="bottom" secondItem="fI5-pl-psr" secondAttribute="bottom" id="x5k-7r-5yI"/> + </constraints> + </view> + </subviews> + <constraints> + <constraint firstAttribute="trailing" secondItem="XMe-LD-M9B" secondAttribute="trailing" id="DRM-sA-IzC"/> + <constraint firstItem="XMe-LD-M9B" firstAttribute="leading" secondItem="YbO-3U-B92" secondAttribute="leading" id="Kuy-bW-P8N"/> + <constraint firstItem="XMe-LD-M9B" firstAttribute="top" secondItem="YbO-3U-B92" secondAttribute="top" id="ORO-bL-EWB"/> + <constraint firstItem="XMe-LD-M9B" firstAttribute="centerX" secondItem="YbO-3U-B92" secondAttribute="centerX" id="Zyn-hz-7yI"/> + <constraint firstAttribute="bottom" secondItem="XMe-LD-M9B" secondAttribute="bottom" id="xIV-UG-9RB"/> + </constraints> + </scrollView> + <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="V8a-fY-mQH"> + <rect key="frame" x="0.0" y="770" width="393" height="48"/> + <color key="backgroundColor" name="FE6E0D"/> + <constraints> + <constraint firstAttribute="height" constant="48" id="M08-V0-q7l"/> + </constraints> + <fontDescription key="fontDescription" type="system" weight="medium" pointSize="18"/> + <inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/> + <state key="normal" title="立即报名"/> + <connections> + <action selector="applyAction:" destination="-1" eventType="touchUpInside" id="8GT-Cn-22T"/> + </connections> + </button> + </subviews> + <viewLayoutGuide key="safeArea" id="fnl-2z-Ty3"/> + <color key="backgroundColor" systemColor="systemBackgroundColor"/> + <constraints> + <constraint firstItem="V8a-fY-mQH" firstAttribute="trailing" secondItem="fnl-2z-Ty3" secondAttribute="trailing" id="6mm-Wm-1wB"/> + <constraint firstItem="YbO-3U-B92" firstAttribute="top" secondItem="i5M-Pr-FkT" secondAttribute="topMargin" id="Mfg-TH-dRr"/> + <constraint firstItem="V8a-fY-mQH" firstAttribute="leading" secondItem="fnl-2z-Ty3" secondAttribute="leading" id="Qlb-MF-EQU"/> + <constraint firstItem="fnl-2z-Ty3" firstAttribute="bottom" secondItem="V8a-fY-mQH" secondAttribute="bottom" id="gL4-UI-Thx"/> + <constraint firstItem="YbO-3U-B92" firstAttribute="leading" secondItem="fnl-2z-Ty3" secondAttribute="leading" id="jqn-iO-gya"/> + <constraint firstItem="fnl-2z-Ty3" firstAttribute="bottom" secondItem="YbO-3U-B92" secondAttribute="bottom" constant="48" id="o8O-KU-mvU"/> + <constraint firstItem="fnl-2z-Ty3" firstAttribute="trailing" secondItem="YbO-3U-B92" secondAttribute="trailing" id="wZt-Yo-P3M"/> + </constraints> + <point key="canvasLocation" x="-8.3969465648854964" y="20.422535211267608"/> + </view> + </objects> + <resources> + <image name="btn_add_1" width="16" height="16"/> + <image name="icon_local_mini" width="11" height="16"/> + <namedColor name="FE6E0D"> + <color red="0.99599999189376831" green="0.4309999942779541" blue="0.050999999046325684" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> + </namedColor> + <systemColor name="systemBackgroundColor"> + <color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/> + </systemColor> + <systemColor name="systemGray6Color"> + <color red="0.94901960784313721" green="0.94901960784313721" blue="0.96862745098039216" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> + </systemColor> + </resources> +</document> diff --git a/WanPai/Root/Activity/VC/ActivityDetailVC.swift b/WanPai/Root/Activity/VC/ActivityDetailVC.swift new file mode 100644 index 0000000..0e7ef8c --- /dev/null +++ b/WanPai/Root/Activity/VC/ActivityDetailVC.swift @@ -0,0 +1,21 @@ +// +// ActivityDetailVC.swift +// WanPai +// +// Created by 杨锴 on 2023/6/13. +// + +import UIKit + +class ActivityDetailVC: BaseVC { + + override func viewDidLoad() { + super.viewDidLoad() + title = "活动详情" + } + + @IBAction func joinAction(_ sender: UIButton) { + let vc = ActivityDetailApplyVC() + push(vc: vc) + } +} diff --git a/WanPai/Root/Activity/VC/ActivityDetailVC.xib b/WanPai/Root/Activity/VC/ActivityDetailVC.xib new file mode 100644 index 0000000..379e9b7 --- /dev/null +++ b/WanPai/Root/Activity/VC/ActivityDetailVC.xib @@ -0,0 +1,564 @@ +<?xml version="1.0" encoding="UTF-8"?> +<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="21507" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES"> + <device id="retina6_12" orientation="portrait" appearance="light"/> + <dependencies> + <deployment identifier="iOS"/> + <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="21505"/> + <capability name="Named colors" minToolsVersion="9.0"/> + <capability name="Safe area layout guides" minToolsVersion="9.0"/> + <capability name="System colors in document resources" minToolsVersion="11.0"/> + <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/> + </dependencies> + <objects> + <placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="ActivityDetailVC" customModule="WanPai" customModuleProvider="target"> + <connections> + <outlet property="view" destination="i5M-Pr-FkT" id="sfx-zR-JGt"/> + </connections> + </placeholder> + <placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/> + <view clearsContextBeforeDrawing="NO" contentMode="scaleToFill" id="i5M-Pr-FkT"> + <rect key="frame" x="0.0" y="0.0" width="393" height="852"/> + <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> + <subviews> + <scrollView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="b8k-c2-Sjg"> + <rect key="frame" x="0.0" y="59" width="393" height="711"/> + <subviews> + <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="L7Z-R8-Jpz"> + <rect key="frame" x="0.0" y="0.0" width="393" height="1064.3333333333333"/> + <subviews> + <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="tHB-vU-AiW"> + <rect key="frame" x="0.0" y="0.0" width="393" height="220"/> + <color key="backgroundColor" systemColor="systemGray6Color"/> + <constraints> + <constraint firstAttribute="width" secondItem="tHB-vU-AiW" secondAttribute="height" multiplier="1:0.56" id="Tgb-wP-wRL"/> + </constraints> + </imageView> + <stackView opaque="NO" contentMode="scaleToFill" axis="vertical" translatesAutoresizingMaskIntoConstraints="NO" id="HXl-f8-gCo"> + <rect key="frame" x="0.0" y="220.00000000000006" width="393" height="844.33333333333348"/> + <subviews> + <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="SAx-1o-0mX"> + <rect key="frame" x="0.0" y="0.0" width="393" height="235"/> + <subviews> + <label opaque="NO" userInteractionEnabled="NO" contentMode="left" verticalHuggingPriority="251" text="--" textAlignment="natural" lineBreakMode="tailTruncation" numberOfLines="2" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="uIe-np-Pwt"> + <rect key="frame" x="14" y="14" width="259" height="183.66666666666666"/> + <fontDescription key="fontDescription" type="system" weight="medium" pointSize="18"/> + <nil key="textColor"/> + <nil key="highlightedColor"/> + </label> + <view contentMode="scaleToFill" horizontalHuggingPriority="1000" translatesAutoresizingMaskIntoConstraints="NO" id="eyg-vz-Etv"> + <rect key="frame" x="334" y="14" width="45" height="21"/> + <subviews> + <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="0xj-gh-rFl"> + <rect key="frame" x="7" y="0.0" width="31" height="21"/> + <fontDescription key="fontDescription" type="system" pointSize="12"/> + <color key="textColor" red="0.99607843139999996" green="0.43137254899999999" blue="0.050980392159999999" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> + <nil key="highlightedColor"/> + </label> + </subviews> + <color key="backgroundColor" red="0.99215686270000003" green="0.57647058819999997" blue="0.19215686269999999" alpha="0.28999999999999998" colorSpace="custom" customColorSpace="sRGB"/> + <constraints> + <constraint firstAttribute="bottom" secondItem="0xj-gh-rFl" secondAttribute="bottom" id="AdH-JX-maY"/> + <constraint firstItem="0xj-gh-rFl" firstAttribute="top" secondItem="eyg-vz-Etv" secondAttribute="top" id="B6u-ti-chF"/> + <constraint firstAttribute="height" constant="21" id="IKZ-0Q-arY"/> + <constraint firstAttribute="trailing" secondItem="0xj-gh-rFl" secondAttribute="trailing" constant="7" id="VC5-lu-dP2"/> + <constraint firstItem="0xj-gh-rFl" firstAttribute="leading" secondItem="eyg-vz-Etv" secondAttribute="leading" constant="7" id="zL3-Z5-7x3"/> + </constraints> + </view> + <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="icon_local_mini" translatesAutoresizingMaskIntoConstraints="NO" id="vHl-Om-a95"> + <rect key="frame" x="14" y="205.66666666666669" width="11" height="16"/> + <constraints> + <constraint firstAttribute="height" constant="16" id="L7M-2c-eZf"/> + <constraint firstAttribute="width" constant="11" id="rNG-5N-6x4"/> + </constraints> + </imageView> + <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="natural" lineBreakMode="tailTruncation" numberOfLines="2" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="l5e-Xg-fHb"> + <rect key="frame" x="30" y="205.66666666666669" width="358" height="14.333333333333343"/> + <fontDescription key="fontDescription" type="system" weight="medium" pointSize="12"/> + <color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="0.59999999999999998" colorSpace="custom" customColorSpace="sRGB"/> + <nil key="highlightedColor"/> + </label> + <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="rEa-cp-c8e"> + <rect key="frame" x="14" y="234" width="379" height="1"/> + <color key="backgroundColor" red="0.59215686274509804" green="0.59215686274509804" blue="0.59215686274509804" alpha="0.22" colorSpace="custom" customColorSpace="sRGB"/> + <constraints> + <constraint firstAttribute="height" constant="1" id="kRD-aq-x0g"/> + </constraints> + </view> + </subviews> + <color key="backgroundColor" systemColor="systemBackgroundColor"/> + <constraints> + <constraint firstItem="vHl-Om-a95" firstAttribute="top" secondItem="uIe-np-Pwt" secondAttribute="bottom" constant="8" id="1Sx-DE-Ik0"/> + <constraint firstItem="l5e-Xg-fHb" firstAttribute="top" secondItem="vHl-Om-a95" secondAttribute="top" id="83i-0r-s3g"/> + <constraint firstItem="l5e-Xg-fHb" firstAttribute="leading" secondItem="vHl-Om-a95" secondAttribute="trailing" constant="5" id="9zf-1S-6Ff"/> + <constraint firstAttribute="bottom" secondItem="rEa-cp-c8e" secondAttribute="bottom" id="Cs1-ko-rQB"/> + <constraint firstItem="rEa-cp-c8e" firstAttribute="leading" secondItem="SAx-1o-0mX" secondAttribute="leading" constant="14" id="F6h-YV-kQe"/> + <constraint firstAttribute="trailing" secondItem="rEa-cp-c8e" secondAttribute="trailing" id="KZL-2v-eAF"/> + <constraint firstItem="eyg-vz-Etv" firstAttribute="top" secondItem="SAx-1o-0mX" secondAttribute="top" constant="14" id="Qhn-NK-Hnb"/> + <constraint firstItem="uIe-np-Pwt" firstAttribute="top" secondItem="SAx-1o-0mX" secondAttribute="top" constant="14" id="TST-dU-yR9"/> + <constraint firstAttribute="trailing" secondItem="l5e-Xg-fHb" secondAttribute="trailing" constant="5" id="WTq-tN-WtX"/> + <constraint firstItem="uIe-np-Pwt" firstAttribute="leading" secondItem="SAx-1o-0mX" secondAttribute="leading" constant="14" id="fnd-oE-YSC"/> + <constraint firstAttribute="trailing" secondItem="uIe-np-Pwt" secondAttribute="trailing" constant="120" id="rdF-wv-hBj"/> + <constraint firstItem="vHl-Om-a95" firstAttribute="leading" secondItem="SAx-1o-0mX" secondAttribute="leading" constant="14" id="sVo-Mz-XQ7"/> + <constraint firstAttribute="trailing" secondItem="eyg-vz-Etv" secondAttribute="trailing" constant="14" id="y8g-7E-XCX"/> + <constraint firstItem="rEa-cp-c8e" firstAttribute="top" secondItem="l5e-Xg-fHb" secondAttribute="bottom" constant="14" id="zAU-N7-54B"/> + </constraints> + <userDefinedRuntimeAttributes> + <userDefinedRuntimeAttribute type="number" keyPath="ld_cornerRadiusXIB"> + <real key="value" value="2"/> + </userDefinedRuntimeAttribute> + </userDefinedRuntimeAttributes> + </view> + <stackView opaque="NO" contentMode="scaleToFill" axis="vertical" translatesAutoresizingMaskIntoConstraints="NO" id="U7K-JT-5nW"> + <rect key="frame" x="0.0" y="235" width="393" height="230"/> + <subviews> + <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="uhl-1b-oQQ"> + <rect key="frame" x="0.0" y="0.0" width="393" height="46"/> + <subviews> + <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="pkr-Fb-poe"> + <rect key="frame" x="14" y="11" width="4" height="4"/> + <color key="backgroundColor" name="FE6E0D"/> + <constraints> + <constraint firstAttribute="width" constant="4" id="fvE-Mw-O4f"/> + <constraint firstAttribute="height" constant="4" id="ozH-bP-hLD"/> + </constraints> + <userDefinedRuntimeAttributes> + <userDefinedRuntimeAttribute type="boolean" keyPath="ld_maskToBoundsXIB" value="YES"/> + <userDefinedRuntimeAttribute type="number" keyPath="ld_cornerRadiusXIB"> + <real key="value" value="2"/> + </userDefinedRuntimeAttribute> + </userDefinedRuntimeAttributes> + </view> + <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="截止报名时间" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="ATj-Jx-1Jv"> + <rect key="frame" x="22" y="6.0000000000000009" width="73.666666666666671" height="14.333333333333336"/> + <fontDescription key="fontDescription" type="system" weight="semibold" pointSize="12"/> + <color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="0.5" colorSpace="custom" customColorSpace="sRGB"/> + <nil key="highlightedColor"/> + </label> + <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="--" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="nPn-v2-ONf"> + <rect key="frame" x="22" y="28.333333333333368" width="11.666666666666664" height="14.333333333333332"/> + <fontDescription key="fontDescription" type="system" weight="medium" pointSize="12"/> + <nil key="textColor"/> + <nil key="highlightedColor"/> + </label> + </subviews> + <color key="backgroundColor" systemColor="systemBackgroundColor"/> + <constraints> + <constraint firstItem="pkr-Fb-poe" firstAttribute="leading" secondItem="uhl-1b-oQQ" secondAttribute="leading" constant="14" id="YAi-h0-sTQ"/> + <constraint firstAttribute="height" constant="46" id="jHs-in-Zps"/> + <constraint firstItem="ATj-Jx-1Jv" firstAttribute="leading" secondItem="pkr-Fb-poe" secondAttribute="trailing" constant="4" id="loJ-Ze-UEO"/> + <constraint firstItem="ATj-Jx-1Jv" firstAttribute="centerY" secondItem="pkr-Fb-poe" secondAttribute="centerY" id="mOX-2j-bym"/> + <constraint firstItem="pkr-Fb-poe" firstAttribute="top" secondItem="uhl-1b-oQQ" secondAttribute="top" constant="11" id="n4m-wd-h8l"/> + <constraint firstItem="nPn-v2-ONf" firstAttribute="top" secondItem="ATj-Jx-1Jv" secondAttribute="bottom" constant="8" id="qAV-Zw-JvO"/> + <constraint firstItem="nPn-v2-ONf" firstAttribute="leading" secondItem="ATj-Jx-1Jv" secondAttribute="leading" id="sms-Z4-0fT"/> + </constraints> + </view> + <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="7Kv-8i-8E5"> + <rect key="frame" x="0.0" y="46" width="393" height="46"/> + <subviews> + <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="RSB-eL-cpn"> + <rect key="frame" x="14" y="11" width="4" height="4"/> + <color key="backgroundColor" name="FE6E0D"/> + <constraints> + <constraint firstAttribute="height" constant="4" id="HB9-J5-mmQ"/> + <constraint firstAttribute="width" constant="4" id="NOe-FB-IqT"/> + </constraints> + <userDefinedRuntimeAttributes> + <userDefinedRuntimeAttribute type="boolean" keyPath="ld_maskToBoundsXIB" value="YES"/> + <userDefinedRuntimeAttribute type="number" keyPath="ld_cornerRadiusXIB"> + <real key="value" value="2"/> + </userDefinedRuntimeAttribute> + </userDefinedRuntimeAttributes> + </view> + <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="开始时间" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Qxs-Yy-KV0"> + <rect key="frame" x="22.000000000000004" y="6.0000000000000009" width="49.333333333333343" height="14.333333333333336"/> + <fontDescription key="fontDescription" type="system" weight="semibold" pointSize="12"/> + <color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="0.5" colorSpace="custom" customColorSpace="sRGB"/> + <nil key="highlightedColor"/> + </label> + <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="--" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="hmj-Je-tPz"> + <rect key="frame" x="22" y="28.333333333333368" width="11.666666666666664" height="14.333333333333332"/> + <fontDescription key="fontDescription" type="system" weight="medium" pointSize="12"/> + <nil key="textColor"/> + <nil key="highlightedColor"/> + </label> + </subviews> + <color key="backgroundColor" systemColor="systemBackgroundColor"/> + <constraints> + <constraint firstItem="RSB-eL-cpn" firstAttribute="top" secondItem="7Kv-8i-8E5" secondAttribute="top" constant="11" id="9sd-Pr-75W"/> + <constraint firstItem="Qxs-Yy-KV0" firstAttribute="leading" secondItem="RSB-eL-cpn" secondAttribute="trailing" constant="4" id="Kwh-5X-k3S"/> + <constraint firstItem="RSB-eL-cpn" firstAttribute="leading" secondItem="7Kv-8i-8E5" secondAttribute="leading" constant="14" id="Oga-YV-iK4"/> + <constraint firstItem="hmj-Je-tPz" firstAttribute="top" secondItem="Qxs-Yy-KV0" secondAttribute="bottom" constant="8" id="gco-Ih-uc2"/> + <constraint firstAttribute="height" constant="46" id="tfj-6O-myD"/> + <constraint firstItem="hmj-Je-tPz" firstAttribute="leading" secondItem="Qxs-Yy-KV0" secondAttribute="leading" id="vNV-cT-bhG"/> + <constraint firstItem="Qxs-Yy-KV0" firstAttribute="centerY" secondItem="RSB-eL-cpn" secondAttribute="centerY" id="zLX-JF-EfX"/> + </constraints> + </view> + <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="q0j-g5-qyn"> + <rect key="frame" x="0.0" y="92" width="393" height="46"/> + <subviews> + <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="J7b-A1-V3V"> + <rect key="frame" x="14" y="11" width="4" height="4"/> + <color key="backgroundColor" name="FE6E0D"/> + <constraints> + <constraint firstAttribute="height" constant="4" id="Kpz-52-XS8"/> + <constraint firstAttribute="width" constant="4" id="hCa-MU-HcE"/> + </constraints> + <userDefinedRuntimeAttributes> + <userDefinedRuntimeAttribute type="boolean" keyPath="ld_maskToBoundsXIB" value="YES"/> + <userDefinedRuntimeAttribute type="number" keyPath="ld_cornerRadiusXIB"> + <real key="value" value="2"/> + </userDefinedRuntimeAttribute> + </userDefinedRuntimeAttributes> + </view> + <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="结束时间" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="RAr-tZ-Toy"> + <rect key="frame" x="22.000000000000004" y="6.0000000000000009" width="49.333333333333343" height="14.333333333333336"/> + <fontDescription key="fontDescription" type="system" weight="semibold" pointSize="12"/> + <color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="0.5" colorSpace="custom" customColorSpace="sRGB"/> + <nil key="highlightedColor"/> + </label> + <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="--" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="kah-57-uD0"> + <rect key="frame" x="22" y="28.333333333333368" width="11.666666666666664" height="14.333333333333332"/> + <fontDescription key="fontDescription" type="system" weight="medium" pointSize="12"/> + <nil key="textColor"/> + <nil key="highlightedColor"/> + </label> + </subviews> + <color key="backgroundColor" systemColor="systemBackgroundColor"/> + <constraints> + <constraint firstItem="J7b-A1-V3V" firstAttribute="top" secondItem="q0j-g5-qyn" secondAttribute="top" constant="11" id="59a-w4-DxA"/> + <constraint firstAttribute="height" constant="46" id="HVT-T5-IB5"/> + <constraint firstItem="RAr-tZ-Toy" firstAttribute="centerY" secondItem="J7b-A1-V3V" secondAttribute="centerY" id="Mwy-7U-k0O"/> + <constraint firstItem="kah-57-uD0" firstAttribute="leading" secondItem="RAr-tZ-Toy" secondAttribute="leading" id="OSv-su-vYC"/> + <constraint firstItem="kah-57-uD0" firstAttribute="top" secondItem="RAr-tZ-Toy" secondAttribute="bottom" constant="8" id="RsH-rD-Cdq"/> + <constraint firstItem="J7b-A1-V3V" firstAttribute="leading" secondItem="q0j-g5-qyn" secondAttribute="leading" constant="14" id="eTM-8z-cYP"/> + <constraint firstItem="RAr-tZ-Toy" firstAttribute="leading" secondItem="J7b-A1-V3V" secondAttribute="trailing" constant="4" id="miv-DC-z3L"/> + </constraints> + </view> + <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="XEX-h4-Kvw"> + <rect key="frame" x="0.0" y="138" width="393" height="46"/> + <subviews> + <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="KN1-kw-ke7"> + <rect key="frame" x="14" y="11" width="4" height="4"/> + <color key="backgroundColor" name="FE6E0D"/> + <constraints> + <constraint firstAttribute="height" constant="4" id="27j-hq-1Dr"/> + <constraint firstAttribute="width" constant="4" id="K9k-od-mag"/> + </constraints> + <userDefinedRuntimeAttributes> + <userDefinedRuntimeAttribute type="boolean" keyPath="ld_maskToBoundsXIB" value="YES"/> + <userDefinedRuntimeAttribute type="number" keyPath="ld_cornerRadiusXIB"> + <real key="value" value="2"/> + </userDefinedRuntimeAttribute> + </userDefinedRuntimeAttributes> + </view> + <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="报名年龄" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="9c6-2N-Qu8"> + <rect key="frame" x="22.000000000000004" y="6.0000000000000009" width="49.333333333333343" height="14.333333333333336"/> + <fontDescription key="fontDescription" type="system" weight="semibold" pointSize="12"/> + <color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="0.5" colorSpace="custom" customColorSpace="sRGB"/> + <nil key="highlightedColor"/> + </label> + <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="--" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="qcG-AF-9Uh"> + <rect key="frame" x="22" y="28.333333333333368" width="11.666666666666664" height="14.333333333333332"/> + <fontDescription key="fontDescription" type="system" weight="medium" pointSize="12"/> + <nil key="textColor"/> + <nil key="highlightedColor"/> + </label> + </subviews> + <color key="backgroundColor" systemColor="systemBackgroundColor"/> + <constraints> + <constraint firstItem="qcG-AF-9Uh" firstAttribute="top" secondItem="9c6-2N-Qu8" secondAttribute="bottom" constant="8" id="5m9-wC-3oy"/> + <constraint firstItem="9c6-2N-Qu8" firstAttribute="centerY" secondItem="KN1-kw-ke7" secondAttribute="centerY" id="Fhn-ZJ-iVi"/> + <constraint firstItem="qcG-AF-9Uh" firstAttribute="leading" secondItem="9c6-2N-Qu8" secondAttribute="leading" id="JRZ-rR-bo1"/> + <constraint firstItem="9c6-2N-Qu8" firstAttribute="leading" secondItem="KN1-kw-ke7" secondAttribute="trailing" constant="4" id="RSN-OR-Q0a"/> + <constraint firstItem="KN1-kw-ke7" firstAttribute="leading" secondItem="XEX-h4-Kvw" secondAttribute="leading" constant="14" id="St1-kF-UeF"/> + <constraint firstItem="KN1-kw-ke7" firstAttribute="top" secondItem="XEX-h4-Kvw" secondAttribute="top" constant="11" id="kNy-Y9-Qy0"/> + <constraint firstAttribute="height" constant="46" id="xTb-fn-KNL"/> + </constraints> + </view> + <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="6rj-zE-gaO"> + <rect key="frame" x="0.0" y="184" width="393" height="46"/> + <subviews> + <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="22y-iZ-rPZ"> + <rect key="frame" x="14" y="11" width="4" height="4"/> + <color key="backgroundColor" name="FE6E0D"/> + <constraints> + <constraint firstAttribute="width" constant="4" id="OCB-Z1-3n7"/> + <constraint firstAttribute="height" constant="4" id="cpk-Bc-vt0"/> + </constraints> + <userDefinedRuntimeAttributes> + <userDefinedRuntimeAttribute type="boolean" keyPath="ld_maskToBoundsXIB" value="YES"/> + <userDefinedRuntimeAttribute type="number" keyPath="ld_cornerRadiusXIB"> + <real key="value" value="2"/> + </userDefinedRuntimeAttribute> + </userDefinedRuntimeAttributes> + </view> + <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="参赛地址" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="QkB-qj-0gR"> + <rect key="frame" x="22.000000000000004" y="6.0000000000000009" width="49.333333333333343" height="14.333333333333336"/> + <fontDescription key="fontDescription" type="system" weight="semibold" pointSize="12"/> + <color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="0.5" colorSpace="custom" customColorSpace="sRGB"/> + <nil key="highlightedColor"/> + </label> + <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="--" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="bbY-Kb-C5z"> + <rect key="frame" x="22" y="28.333333333333368" width="11.666666666666664" height="14.333333333333332"/> + <fontDescription key="fontDescription" type="system" weight="medium" pointSize="12"/> + <nil key="textColor"/> + <nil key="highlightedColor"/> + </label> + <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="--" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="NBi-eH-iIS"> + <rect key="frame" x="367.33333333333331" y="28.333333333333368" width="11.666666666666686" height="14.333333333333332"/> + <fontDescription key="fontDescription" type="system" weight="medium" pointSize="12"/> + <nil key="textColor"/> + <nil key="highlightedColor"/> + </label> + </subviews> + <color key="backgroundColor" systemColor="systemBackgroundColor"/> + <constraints> + <constraint firstItem="22y-iZ-rPZ" firstAttribute="leading" secondItem="6rj-zE-gaO" secondAttribute="leading" constant="14" id="06v-Ix-n04"/> + <constraint firstItem="QkB-qj-0gR" firstAttribute="centerY" secondItem="22y-iZ-rPZ" secondAttribute="centerY" id="79m-iZ-Y8b"/> + <constraint firstAttribute="trailing" secondItem="NBi-eH-iIS" secondAttribute="trailing" constant="14" id="8p3-jn-6eo"/> + <constraint firstItem="NBi-eH-iIS" firstAttribute="centerY" secondItem="bbY-Kb-C5z" secondAttribute="centerY" id="C1u-t1-DZ7"/> + <constraint firstItem="bbY-Kb-C5z" firstAttribute="top" secondItem="QkB-qj-0gR" secondAttribute="bottom" constant="8" id="D7q-Tn-b1k"/> + <constraint firstItem="bbY-Kb-C5z" firstAttribute="leading" secondItem="QkB-qj-0gR" secondAttribute="leading" id="H2Z-Pr-J9m"/> + <constraint firstAttribute="height" constant="46" id="LYd-LK-fL0"/> + <constraint firstItem="QkB-qj-0gR" firstAttribute="leading" secondItem="22y-iZ-rPZ" secondAttribute="trailing" constant="4" id="OdG-X5-NoK"/> + <constraint firstItem="22y-iZ-rPZ" firstAttribute="top" secondItem="6rj-zE-gaO" secondAttribute="top" constant="11" id="znr-kQ-cHs"/> + </constraints> + </view> + </subviews> + </stackView> + <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="U3c-u6-JHg"> + <rect key="frame" x="0.0" y="465" width="393" height="115"/> + <subviews> + <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="vfd-ih-YL5"> + <rect key="frame" x="13" y="0.0" width="380" height="1"/> + <color key="backgroundColor" red="0.59215686274509804" green="0.59215686274509804" blue="0.59215686274509804" alpha="0.22" colorSpace="custom" customColorSpace="sRGB"/> + <constraints> + <constraint firstAttribute="height" constant="1" id="1Nv-1K-oG8"/> + </constraints> + </view> + <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="odb-aZ-MOh"> + <rect key="frame" x="13" y="114" width="380" height="1"/> + <color key="backgroundColor" red="0.59215686270000001" green="0.59215686270000001" blue="0.59215686270000001" alpha="0.22" colorSpace="custom" customColorSpace="sRGB"/> + <constraints> + <constraint firstAttribute="height" constant="1" id="KEI-dt-Lcc"/> + </constraints> + </view> + <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="赛事费用" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="EPl-lk-9fQ"> + <rect key="frame" x="14" y="14.999999999999998" width="365" height="19.333333333333329"/> + <fontDescription key="fontDescription" type="system" weight="semibold" pointSize="16"/> + <nil key="textColor"/> + <nil key="highlightedColor"/> + </label> + <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="支付:" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="jnK-YU-DfV"> + <rect key="frame" x="14" y="46.333333333333371" width="43" height="17"/> + <fontDescription key="fontDescription" type="system" pointSize="14"/> + <color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="0.59999999999999998" colorSpace="custom" customColorSpace="sRGB"/> + <nil key="highlightedColor"/> + </label> + <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="¥0/人" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Jlz-7i-loh"> + <rect key="frame" x="57" y="46.333333333333371" width="36.666666666666657" height="17"/> + <fontDescription key="fontDescription" type="system" weight="medium" pointSize="14"/> + <color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="0.80000000000000004" colorSpace="custom" customColorSpace="sRGB"/> + <nil key="highlightedColor"/> + </label> + <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="玩湃币:" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="RJH-lZ-4jx"> + <rect key="frame" x="175" y="46.333333333333371" width="57.333333333333343" height="17"/> + <fontDescription key="fontDescription" type="system" pointSize="14"/> + <color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="0.59999999999999998" colorSpace="custom" customColorSpace="sRGB"/> + <nil key="highlightedColor"/> + </label> + <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="0币/人" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="PY6-ve-vcQ"> + <rect key="frame" x="232.33333333333334" y="46.333333333333371" width="42.000000000000028" height="17"/> + <fontDescription key="fontDescription" type="system" weight="medium" pointSize="14"/> + <color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="0.80000000000000004" colorSpace="custom" customColorSpace="sRGB"/> + <nil key="highlightedColor"/> + </label> + <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="课时:" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Il8-7z-4OU"> + <rect key="frame" x="14" y="75.333333333333371" width="43" height="17"/> + <fontDescription key="fontDescription" type="system" pointSize="14"/> + <color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="0.59999999999999998" colorSpace="custom" customColorSpace="sRGB"/> + <nil key="highlightedColor"/> + </label> + <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="0课时/人" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="RUi-U1-Ge0"> + <rect key="frame" x="57" y="75.333333333333371" width="56.333333333333343" height="17"/> + <fontDescription key="fontDescription" type="system" weight="medium" pointSize="14"/> + <color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="0.80000000000000004" colorSpace="custom" customColorSpace="sRGB"/> + <nil key="highlightedColor"/> + </label> + </subviews> + <color key="backgroundColor" systemColor="systemBackgroundColor"/> + <constraints> + <constraint firstItem="RUi-U1-Ge0" firstAttribute="centerY" secondItem="Il8-7z-4OU" secondAttribute="centerY" id="108-Gg-Z5C"/> + <constraint firstItem="EPl-lk-9fQ" firstAttribute="top" secondItem="vfd-ih-YL5" secondAttribute="bottom" constant="14" id="1cy-tp-WTw"/> + <constraint firstItem="vfd-ih-YL5" firstAttribute="top" secondItem="U3c-u6-JHg" secondAttribute="top" id="5pk-TH-5TX"/> + <constraint firstItem="RUi-U1-Ge0" firstAttribute="leading" secondItem="Il8-7z-4OU" secondAttribute="trailing" id="6Qn-I9-dNa"/> + <constraint firstItem="jnK-YU-DfV" firstAttribute="leading" secondItem="U3c-u6-JHg" secondAttribute="leading" constant="14" id="6Xs-2D-Ufa"/> + <constraint firstItem="vfd-ih-YL5" firstAttribute="leading" secondItem="U3c-u6-JHg" secondAttribute="leading" constant="13" id="82t-M9-D9u"/> + <constraint firstItem="RJH-lZ-4jx" firstAttribute="leading" secondItem="U3c-u6-JHg" secondAttribute="leading" constant="175" id="84C-3W-Xbf"/> + <constraint firstItem="odb-aZ-MOh" firstAttribute="leading" secondItem="U3c-u6-JHg" secondAttribute="leading" constant="13" id="8g5-WS-Ydh"/> + <constraint firstAttribute="trailing" secondItem="odb-aZ-MOh" secondAttribute="trailing" id="JpY-1B-Jco"/> + <constraint firstAttribute="trailing" secondItem="EPl-lk-9fQ" secondAttribute="trailing" constant="14" id="KaA-uL-TmM"/> + <constraint firstItem="PY6-ve-vcQ" firstAttribute="leading" secondItem="RJH-lZ-4jx" secondAttribute="trailing" id="Lgm-af-iCa"/> + <constraint firstItem="PY6-ve-vcQ" firstAttribute="centerY" secondItem="RJH-lZ-4jx" secondAttribute="centerY" id="N8k-rL-Uei"/> + <constraint firstItem="jnK-YU-DfV" firstAttribute="top" secondItem="EPl-lk-9fQ" secondAttribute="bottom" constant="12" id="OB8-Fv-hbP"/> + <constraint firstAttribute="bottom" secondItem="odb-aZ-MOh" secondAttribute="bottom" id="SXR-Yh-oAb"/> + <constraint firstItem="Jlz-7i-loh" firstAttribute="centerY" secondItem="jnK-YU-DfV" secondAttribute="centerY" id="T5T-NY-BxK"/> + <constraint firstItem="PY6-ve-vcQ" firstAttribute="centerY" secondItem="jnK-YU-DfV" secondAttribute="centerY" id="Ta6-Pk-9xZ"/> + <constraint firstItem="Il8-7z-4OU" firstAttribute="leading" secondItem="jnK-YU-DfV" secondAttribute="leading" id="Trp-CY-9Cs"/> + <constraint firstItem="EPl-lk-9fQ" firstAttribute="leading" secondItem="U3c-u6-JHg" secondAttribute="leading" constant="14" id="eLg-Fk-EY8"/> + <constraint firstItem="Il8-7z-4OU" firstAttribute="top" secondItem="jnK-YU-DfV" secondAttribute="bottom" constant="12" id="riS-pC-g2x"/> + <constraint firstAttribute="height" constant="115" id="rni-SZ-xvZ"/> + <constraint firstItem="RJH-lZ-4jx" firstAttribute="centerY" secondItem="jnK-YU-DfV" secondAttribute="centerY" id="tND-k7-cd2"/> + <constraint firstAttribute="trailing" secondItem="vfd-ih-YL5" secondAttribute="trailing" id="uQw-En-5QG"/> + <constraint firstItem="Jlz-7i-loh" firstAttribute="leading" secondItem="jnK-YU-DfV" secondAttribute="trailing" id="whq-IJ-0PB"/> + </constraints> + </view> + <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Jja-qF-gfn"> + <rect key="frame" x="0.0" y="580" width="393" height="115"/> + <subviews> + <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="rk4-aZ-B6H"> + <rect key="frame" x="13" y="0.0" width="380" height="1"/> + <color key="backgroundColor" red="0.59215686270000001" green="0.59215686270000001" blue="0.59215686270000001" alpha="0.22" colorSpace="custom" customColorSpace="sRGB"/> + <constraints> + <constraint firstAttribute="height" constant="1" id="bBN-Oe-mcv"/> + </constraints> + </view> + <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Kv2-VM-ITy"> + <rect key="frame" x="13" y="114" width="380" height="1"/> + <color key="backgroundColor" red="0.59215686270000001" green="0.59215686270000001" blue="0.59215686270000001" alpha="0.22" colorSpace="custom" customColorSpace="sRGB"/> + <constraints> + <constraint firstAttribute="height" constant="1" id="wae-YQ-vQ7"/> + </constraints> + </view> + <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="赛事简介" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="yt1-6p-Qba"> + <rect key="frame" x="14" y="15" width="365" height="61"/> + <fontDescription key="fontDescription" type="system" weight="semibold" pointSize="16"/> + <nil key="textColor"/> + <nil key="highlightedColor"/> + </label> + <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="natural" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="BXI-8J-fD0"> + <rect key="frame" x="14" y="83" width="365" height="17"/> + <fontDescription key="fontDescription" type="system" pointSize="14"/> + <color key="textColor" red="0.23921568627450979" green="0.24313725490196078" blue="0.27058823529411763" alpha="0.69999999999999996" colorSpace="custom" customColorSpace="sRGB"/> + <nil key="highlightedColor"/> + </label> + </subviews> + <color key="backgroundColor" systemColor="systemBackgroundColor"/> + <constraints> + <constraint firstAttribute="trailing" secondItem="Kv2-VM-ITy" secondAttribute="trailing" id="634-mg-Cnv"/> + <constraint firstItem="Kv2-VM-ITy" firstAttribute="leading" secondItem="Jja-qF-gfn" secondAttribute="leading" constant="13" id="8bD-QC-rIt"/> + <constraint firstItem="rk4-aZ-B6H" firstAttribute="leading" secondItem="Jja-qF-gfn" secondAttribute="leading" constant="13" id="MHw-m6-uf9"/> + <constraint firstAttribute="bottom" secondItem="Kv2-VM-ITy" secondAttribute="bottom" id="MjK-SG-W4j"/> + <constraint firstAttribute="trailing" secondItem="yt1-6p-Qba" secondAttribute="trailing" constant="14" id="SRw-E0-g3V"/> + <constraint firstItem="rk4-aZ-B6H" firstAttribute="top" secondItem="Jja-qF-gfn" secondAttribute="top" id="SW2-YK-2Q0"/> + <constraint firstAttribute="trailing" secondItem="BXI-8J-fD0" secondAttribute="trailing" constant="14" id="fXq-vG-n19"/> + <constraint firstItem="BXI-8J-fD0" firstAttribute="top" secondItem="yt1-6p-Qba" secondAttribute="bottom" constant="7" id="h4S-XA-RkA"/> + <constraint firstItem="BXI-8J-fD0" firstAttribute="leading" secondItem="Jja-qF-gfn" secondAttribute="leading" constant="14" id="kFS-Qp-FbB"/> + <constraint firstItem="yt1-6p-Qba" firstAttribute="leading" secondItem="Jja-qF-gfn" secondAttribute="leading" constant="14" id="wih-5T-ZAJ"/> + <constraint firstItem="Kv2-VM-ITy" firstAttribute="top" secondItem="BXI-8J-fD0" secondAttribute="bottom" constant="14" id="x1B-Fk-sQh"/> + <constraint firstAttribute="trailing" secondItem="rk4-aZ-B6H" secondAttribute="trailing" id="yIn-2b-vGb"/> + <constraint firstItem="yt1-6p-Qba" firstAttribute="top" secondItem="rk4-aZ-B6H" secondAttribute="bottom" constant="14" id="yXG-0L-rQn"/> + </constraints> + </view> + <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="89v-i4-b0B"> + <rect key="frame" x="0.0" y="695" width="393" height="149.33333333333337"/> + <subviews> + <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="aLI-Yu-lpC"> + <rect key="frame" x="13" y="0.0" width="380" height="1"/> + <color key="backgroundColor" red="0.59215686270000001" green="0.59215686270000001" blue="0.59215686270000001" alpha="0.22" colorSpace="custom" customColorSpace="sRGB"/> + <constraints> + <constraint firstAttribute="height" constant="1" id="J8K-sa-ncH"/> + </constraints> + </view> + <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="报名须知" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="AaL-Io-Olo"> + <rect key="frame" x="14" y="14.999999999999998" width="365" height="19.333333333333329"/> + <fontDescription key="fontDescription" type="system" weight="semibold" pointSize="16"/> + <nil key="textColor"/> + <nil key="highlightedColor"/> + </label> + <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="c7G-7A-ePH"> + <rect key="frame" x="0.0" y="49.333333333333371" width="393" height="100"/> + <constraints> + <constraint firstAttribute="height" constant="100" id="cJz-gp-mRM"/> + </constraints> + </imageView> + </subviews> + <color key="backgroundColor" systemColor="systemBackgroundColor"/> + <constraints> + <constraint firstItem="AaL-Io-Olo" firstAttribute="top" secondItem="aLI-Yu-lpC" secondAttribute="bottom" constant="14" id="03i-eJ-bUX"/> + <constraint firstItem="aLI-Yu-lpC" firstAttribute="leading" secondItem="89v-i4-b0B" secondAttribute="leading" constant="13" id="DJt-qo-skp"/> + <constraint firstItem="c7G-7A-ePH" firstAttribute="top" secondItem="AaL-Io-Olo" secondAttribute="bottom" constant="15" id="L6X-Gy-IuE"/> + <constraint firstItem="c7G-7A-ePH" firstAttribute="leading" secondItem="89v-i4-b0B" secondAttribute="leading" id="TpX-O7-4uP"/> + <constraint firstAttribute="trailing" secondItem="aLI-Yu-lpC" secondAttribute="trailing" id="bE2-IL-y67"/> + <constraint firstAttribute="bottom" secondItem="c7G-7A-ePH" secondAttribute="bottom" id="gZe-9Q-jM1"/> + <constraint firstAttribute="trailing" secondItem="c7G-7A-ePH" secondAttribute="trailing" id="hJ0-Um-XSr"/> + <constraint firstAttribute="trailing" secondItem="AaL-Io-Olo" secondAttribute="trailing" constant="14" id="p45-hk-B8L"/> + <constraint firstItem="AaL-Io-Olo" firstAttribute="leading" secondItem="89v-i4-b0B" secondAttribute="leading" constant="14" id="tZS-YR-Wv3"/> + <constraint firstItem="aLI-Yu-lpC" firstAttribute="top" secondItem="89v-i4-b0B" secondAttribute="top" id="wbp-yD-Kec"/> + </constraints> + </view> + </subviews> + </stackView> + </subviews> + <color key="backgroundColor" systemColor="systemBackgroundColor"/> + <constraints> + <constraint firstItem="tHB-vU-AiW" firstAttribute="leading" secondItem="L7Z-R8-Jpz" secondAttribute="leading" id="5Nv-16-sJW"/> + <constraint firstItem="HXl-f8-gCo" firstAttribute="top" secondItem="tHB-vU-AiW" secondAttribute="bottom" id="5ql-rJ-qfS"/> + <constraint firstItem="HXl-f8-gCo" firstAttribute="leading" secondItem="L7Z-R8-Jpz" secondAttribute="leading" id="8T3-BU-zfZ"/> + <constraint firstItem="tHB-vU-AiW" firstAttribute="top" secondItem="L7Z-R8-Jpz" secondAttribute="top" id="C5Z-fW-Le1"/> + <constraint firstAttribute="trailing" secondItem="tHB-vU-AiW" secondAttribute="trailing" id="ESE-Pv-sl4"/> + <constraint firstAttribute="trailing" secondItem="HXl-f8-gCo" secondAttribute="trailing" id="kCd-UX-HAd"/> + <constraint firstAttribute="bottom" secondItem="HXl-f8-gCo" secondAttribute="bottom" id="yTi-tJ-6xJ"/> + </constraints> + </view> + </subviews> + <constraints> + <constraint firstItem="L7Z-R8-Jpz" firstAttribute="top" secondItem="b8k-c2-Sjg" secondAttribute="top" id="5gT-VO-yJS"/> + <constraint firstAttribute="bottom" secondItem="L7Z-R8-Jpz" secondAttribute="bottom" id="K53-nl-f79"/> + <constraint firstItem="L7Z-R8-Jpz" firstAttribute="centerX" secondItem="b8k-c2-Sjg" secondAttribute="centerX" id="Ze4-9Y-rvT"/> + <constraint firstItem="L7Z-R8-Jpz" firstAttribute="leading" secondItem="b8k-c2-Sjg" secondAttribute="leading" id="o5M-kA-pa2"/> + <constraint firstAttribute="trailing" secondItem="L7Z-R8-Jpz" secondAttribute="trailing" id="z4L-iH-LQD"/> + </constraints> + </scrollView> + <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="lNv-6h-9fm"> + <rect key="frame" x="0.0" y="770" width="393" height="48"/> + <color key="backgroundColor" name="FE6E0D"/> + <constraints> + <constraint firstAttribute="height" constant="48" id="0go-jG-bUY"/> + </constraints> + <fontDescription key="fontDescription" type="system" weight="medium" pointSize="18"/> + <inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/> + <state key="normal" title="立即报名"/> + <connections> + <action selector="joinAction:" destination="-1" eventType="touchUpInside" id="tpK-ZS-E3q"/> + </connections> + </button> + </subviews> + <viewLayoutGuide key="safeArea" id="fnl-2z-Ty3"/> + <color key="backgroundColor" systemColor="systemBackgroundColor"/> + <constraints> + <constraint firstItem="b8k-c2-Sjg" firstAttribute="centerX" secondItem="i5M-Pr-FkT" secondAttribute="centerX" id="1a3-pb-Gnl"/> + <constraint firstItem="fnl-2z-Ty3" firstAttribute="bottom" secondItem="lNv-6h-9fm" secondAttribute="bottom" id="7EA-wd-aOi"/> + <constraint firstItem="fnl-2z-Ty3" firstAttribute="bottom" secondItem="b8k-c2-Sjg" secondAttribute="bottom" constant="48" id="ALd-Ad-n3a"/> + <constraint firstItem="fnl-2z-Ty3" firstAttribute="trailing" secondItem="b8k-c2-Sjg" secondAttribute="trailing" id="Rhl-P3-wPu"/> + <constraint firstItem="lNv-6h-9fm" firstAttribute="leading" secondItem="fnl-2z-Ty3" secondAttribute="leading" id="Rpd-eD-GWI"/> + <constraint firstItem="b8k-c2-Sjg" firstAttribute="top" secondItem="fnl-2z-Ty3" secondAttribute="top" id="Tak-Fe-kgU"/> + <constraint firstItem="fnl-2z-Ty3" firstAttribute="trailing" secondItem="lNv-6h-9fm" secondAttribute="trailing" id="U5X-Wh-bJU"/> + <constraint firstItem="b8k-c2-Sjg" firstAttribute="leading" secondItem="fnl-2z-Ty3" secondAttribute="leading" id="jmS-ku-wrt"/> + </constraints> + <point key="canvasLocation" x="136.64122137404578" y="20.422535211267608"/> + </view> + </objects> + <resources> + <image name="icon_local_mini" width="11" height="16"/> + <namedColor name="FE6E0D"> + <color red="0.99599999189376831" green="0.4309999942779541" blue="0.050999999046325684" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> + </namedColor> + <systemColor name="systemBackgroundColor"> + <color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/> + </systemColor> + <systemColor name="systemGray6Color"> + <color red="0.94901960784313721" green="0.94901960784313721" blue="0.96862745098039216" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> + </systemColor> + </resources> +</document> diff --git a/WanPai/Root/Activity/VC/ActivityListVC.swift b/WanPai/Root/Activity/VC/ActivityListVC.swift index 264f023..1ed50e9 100644 --- a/WanPai/Root/Activity/VC/ActivityListVC.swift +++ b/WanPai/Root/Activity/VC/ActivityListVC.swift @@ -6,11 +6,83 @@ // import UIKit +import QMUIKit class ActivityListVC: BaseVC { - + @IBOutlet weak var view_top: UIView! + @IBOutlet weak var tf_search: QMUITextField! + @IBOutlet weak var btn_holdCity: QMUIButton! + @IBOutlet weak var btn_joinCondition: QMUIButton! + @IBOutlet weak var btn_hotFilter: QMUIButton! + @IBOutlet weak var tableView: UITableView! + override func viewDidLoad() { super.viewDidLoad() title = "赛事活动列表" } + + override func setUI() { + tableView.delegate = self + tableView.dataSource = self + tableView.register(UINib(nibName: "ActivityInfoTCell", bundle: nil), forCellReuseIdentifier: "_ActivityInfoTCell") + + btn_holdCity.imagePosition = .right + btn_holdCity.spacingBetweenImageAndTitle = 5 + + btn_joinCondition.imagePosition = .right + btn_joinCondition.spacingBetweenImageAndTitle = 5 + + btn_hotFilter.imagePosition = .right + btn_hotFilter.spacingBetweenImageAndTitle = 5 + } + + @IBAction func searchAction(_ sender: Any) { + + } + + @IBAction func holdCityAction(_ sender: QMUIButton) { + guard !btn_holdCity.isSelected else {return} + btn_holdCity.isSelected = true + CityChooseSubTypeView.show(inView: self.view, afterView: view_top) { text in + + } closeClouse: { + self.btn_holdCity.isSelected = false + } + } + + @IBAction func signupConditionAction(_ sender: QMUIButton) { + guard !sender.isSelected else {return} + sender.isSelected = true + CourseSubTypeView.show(inView: self.view, afterView: btn_joinCondition, items: ["全部用户参与","仅限年度会员参与","仅限学员参与"]) { str in + sender.isSelected = false + + } closeClouse: { + sender.isSelected = false + } + } + + @IBAction func signupAction(_ sender: UIButton) { + let vc = ActivitySignupListVC() + push(vc: vc) + } + + +} + +extension ActivityListVC:UITableViewDelegate{ + func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { + let vc = ActivityDetailVC() + push(vc: vc) + } +} + +extension ActivityListVC:UITableViewDataSource{ + func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { + let cell = tableView.dequeueReusableCell(withIdentifier: "_ActivityInfoTCell") as! ActivityInfoTCell + return cell + } + + func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { + return 5 + } } diff --git a/WanPai/Root/Activity/VC/ActivityListVC.xib b/WanPai/Root/Activity/VC/ActivityListVC.xib index cf600ea..5119a68 100644 --- a/WanPai/Root/Activity/VC/ActivityListVC.xib +++ b/WanPai/Root/Activity/VC/ActivityListVC.xib @@ -1,22 +1,197 @@ -<?xml version="1.0" encoding="UTF-8" standalone="no"?> -<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="13142" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES"> +<?xml version="1.0" encoding="UTF-8"?> +<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="21507" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES"> + <device id="retina6_12" orientation="portrait" appearance="light"/> <dependencies> - <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="12042"/> + <deployment identifier="iOS"/> + <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="21505"/> + <capability name="Named colors" minToolsVersion="9.0"/> <capability name="Safe area layout guides" minToolsVersion="9.0"/> + <capability name="System colors in document resources" minToolsVersion="11.0"/> <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/> </dependencies> <objects> - <placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="ActivityListVC" customModuleProvider="target"> + <placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="ActivityListVC" customModule="WanPai" customModuleProvider="target"> <connections> + <outlet property="btn_holdCity" destination="Rto-cM-8TA" id="oPe-cF-qm3"/> + <outlet property="btn_hotFilter" destination="93Z-rq-u2S" id="Njj-dA-Ytf"/> + <outlet property="btn_joinCondition" destination="IUE-I2-25f" id="ShB-Cr-Y56"/> + <outlet property="tableView" destination="oPv-XK-by8" id="yiR-Iv-cWb"/> + <outlet property="tf_search" destination="EI5-wd-5bK" id="iOg-G4-nmy"/> <outlet property="view" destination="i5M-Pr-FkT" id="sfx-zR-JGt"/> + <outlet property="view_top" destination="lxS-3O-LKA" id="9JM-CT-vgh"/> </connections> </placeholder> <placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/> <view clearsContextBeforeDrawing="NO" contentMode="scaleToFill" id="i5M-Pr-FkT"> - <rect key="frame" x="0.0" y="0.0" width="375" height="667"/> + <rect key="frame" x="0.0" y="0.0" width="393" height="852"/> <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> - <color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/> + <subviews> + <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="lxS-3O-LKA"> + <rect key="frame" x="0.0" y="59" width="393" height="105"/> + <subviews> + <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="oVy-tD-SsJ"> + <rect key="frame" x="14" y="15" width="326" height="38"/> + <subviews> + <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="icon_search" translatesAutoresizingMaskIntoConstraints="NO" id="EWk-iy-k27"> + <rect key="frame" x="4" y="10.666666666666671" width="17" height="17"/> + </imageView> + <textField opaque="NO" contentMode="scaleToFill" horizontalHuggingPriority="248" contentHorizontalAlignment="left" contentVerticalAlignment="center" placeholder="输入课程名称,门店名称" textAlignment="natural" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="EI5-wd-5bK" customClass="QMUITextField"> + <rect key="frame" x="25" y="0.0" width="291" height="38"/> + <fontDescription key="fontDescription" type="system" weight="medium" pointSize="14"/> + <textInputTraits key="textInputTraits" returnKeyType="search"/> + <userDefinedRuntimeAttributes> + <userDefinedRuntimeAttribute type="color" keyPath="placeholderColor"> + <color key="value" red="0.7843137255" green="0.79215686269999996" blue="0.83921568629999999" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> + </userDefinedRuntimeAttribute> + </userDefinedRuntimeAttributes> + </textField> + </subviews> + <color key="backgroundColor" red="0.96470588239999999" green="0.96470588239999999" blue="0.96862745100000003" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> + <constraints> + <constraint firstAttribute="trailing" secondItem="EI5-wd-5bK" secondAttribute="trailing" constant="10" id="8Q4-0n-RUZ"/> + <constraint firstItem="EI5-wd-5bK" firstAttribute="leading" secondItem="EWk-iy-k27" secondAttribute="trailing" constant="4" id="HWA-I9-6Jy"/> + <constraint firstAttribute="bottom" secondItem="EI5-wd-5bK" secondAttribute="bottom" id="Hny-jH-2cR"/> + <constraint firstAttribute="height" constant="38" id="Tma-SI-hSJ"/> + <constraint firstItem="EWk-iy-k27" firstAttribute="centerY" secondItem="oVy-tD-SsJ" secondAttribute="centerY" id="VtC-qR-bkp"/> + <constraint firstItem="EI5-wd-5bK" firstAttribute="top" secondItem="oVy-tD-SsJ" secondAttribute="top" id="ZNi-hI-sTJ"/> + <constraint firstItem="EWk-iy-k27" firstAttribute="leading" secondItem="oVy-tD-SsJ" secondAttribute="leading" constant="4" id="pcD-a5-erw"/> + </constraints> + <userDefinedRuntimeAttributes> + <userDefinedRuntimeAttribute type="number" keyPath="cornerRadius"> + <real key="value" value="4.1600000000000001"/> + </userDefinedRuntimeAttribute> + </userDefinedRuntimeAttributes> + </view> + <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="O5J-eh-VVi"> + <rect key="frame" x="340" y="15" width="53" height="38"/> + <fontDescription key="fontDescription" type="system" weight="medium" pointSize="14"/> + <inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/> + <state key="normal" title="搜索"> + <color key="titleColor" name="FE6E0D"/> + </state> + <connections> + <action selector="searchAction:" destination="-1" eventType="touchUpInside" id="tLE-6H-Seu"/> + </connections> + </button> + <stackView opaque="NO" contentMode="scaleToFill" distribution="equalSpacing" spacing="34" translatesAutoresizingMaskIntoConstraints="NO" id="C5c-IL-ihi"> + <rect key="frame" x="14" y="53" width="300" height="52"/> + <subviews> + <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Rto-cM-8TA" customClass="QMUIButton"> + <rect key="frame" x="0.0" y="0.0" width="86" height="52"/> + <fontDescription key="fontDescription" type="system" weight="medium" pointSize="16"/> + <inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/> + <state key="normal" title="举办城市" image="icon_down_arrow"> + <color key="titleColor" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/> + </state> + <state key="selected" image="icon_down_arrow_s"> + <color key="titleColor" name="FE6E0D"/> + </state> + <connections> + <action selector="holdCityAction:" destination="-1" eventType="touchUpInside" id="hdQ-th-tYP"/> + </connections> + </button> + <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="IUE-I2-25f" customClass="QMUIButton"> + <rect key="frame" x="120" y="0.0" width="86" height="52"/> + <fontDescription key="fontDescription" type="system" weight="medium" pointSize="16"/> + <inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/> + <state key="normal" title="报名条件" image="icon_down_arrow"> + <color key="titleColor" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/> + </state> + <state key="selected" image="icon_down_arrow_s"> + <color key="titleColor" name="FE6E0D"/> + </state> + <connections> + <action selector="signupConditionAction:" destination="-1" eventType="touchUpInside" id="DSd-mw-hAf"/> + </connections> + </button> + <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="93Z-rq-u2S" customClass="QMUIButton"> + <rect key="frame" x="240" y="0.0" width="60" height="52"/> + <fontDescription key="fontDescription" type="system" weight="medium" pointSize="16"/> + <inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/> + <state key="normal" title="热度" image="icon_aes"> + <color key="titleColor" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/> + </state> + <state key="selected" image="icon_des"/> + <state key="highlighted" image="icon_sort_normal"/> + </button> + </subviews> + </stackView> + </subviews> + <color key="backgroundColor" systemColor="systemBackgroundColor"/> + <constraints> + <constraint firstItem="O5J-eh-VVi" firstAttribute="top" secondItem="oVy-tD-SsJ" secondAttribute="top" id="8Sb-Se-Mx4"/> + <constraint firstAttribute="bottom" secondItem="C5c-IL-ihi" secondAttribute="bottom" id="E9T-b3-bP5"/> + <constraint firstAttribute="trailing" secondItem="oVy-tD-SsJ" secondAttribute="trailing" constant="53" id="Jq9-Nv-c5V"/> + <constraint firstItem="O5J-eh-VVi" firstAttribute="leading" secondItem="oVy-tD-SsJ" secondAttribute="trailing" id="N6g-wZ-Y11"/> + <constraint firstItem="oVy-tD-SsJ" firstAttribute="leading" secondItem="lxS-3O-LKA" secondAttribute="leading" constant="14" id="R1r-ck-I3Q"/> + <constraint firstItem="oVy-tD-SsJ" firstAttribute="top" secondItem="lxS-3O-LKA" secondAttribute="top" constant="15" id="aZh-r4-und"/> + <constraint firstItem="C5c-IL-ihi" firstAttribute="top" secondItem="oVy-tD-SsJ" secondAttribute="bottom" id="gaU-FN-JmW"/> + <constraint firstAttribute="trailing" secondItem="O5J-eh-VVi" secondAttribute="trailing" id="mGq-rj-hVB"/> + <constraint firstItem="C5c-IL-ihi" firstAttribute="leading" secondItem="lxS-3O-LKA" secondAttribute="leading" constant="14" id="rV7-6H-aNn"/> + <constraint firstItem="O5J-eh-VVi" firstAttribute="bottom" secondItem="oVy-tD-SsJ" secondAttribute="bottom" id="u9g-uo-hpS"/> + <constraint firstAttribute="height" constant="105" id="zzg-Vr-rE9"/> + </constraints> + <userDefinedRuntimeAttributes> + <userDefinedRuntimeAttribute type="size" keyPath="shadowOffset"> + <size key="value" width="0.0" height="2"/> + </userDefinedRuntimeAttribute> + <userDefinedRuntimeAttribute type="color" keyPath="shadowColor"> + <color key="value" red="0.87450980389999999" green="0.87450980389999999" blue="0.87450980389999999" alpha="0.5" colorSpace="custom" customColorSpace="sRGB"/> + </userDefinedRuntimeAttribute> + <userDefinedRuntimeAttribute type="number" keyPath="shadowOpacity"> + <real key="value" value="1"/> + </userDefinedRuntimeAttribute> + </userDefinedRuntimeAttributes> + </view> + <tableView clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" style="plain" separatorStyle="default" rowHeight="-1" estimatedRowHeight="-1" sectionHeaderHeight="-1" estimatedSectionHeaderHeight="-1" sectionFooterHeight="-1" estimatedSectionFooterHeight="-1" translatesAutoresizingMaskIntoConstraints="NO" id="oPv-XK-by8"> + <rect key="frame" x="0.0" y="174" width="393" height="644"/> + <color key="backgroundColor" systemColor="systemBackgroundColor"/> + </tableView> + <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="SAi-a4-ThB"> + <rect key="frame" x="0.0" y="770" width="393" height="48"/> + <color key="backgroundColor" name="FE6E0D"/> + <constraints> + <constraint firstAttribute="height" constant="48" id="un5-eU-kfv"/> + </constraints> + <fontDescription key="fontDescription" type="system" weight="medium" pointSize="18"/> + <inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/> + <state key="normal" title="已报名赛事"> + <color key="titleColor" red="0.94901960784313721" green="0.97647058823529409" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> + </state> + <connections> + <action selector="signupAction:" destination="-1" eventType="touchUpInside" id="FwA-GP-42a"/> + </connections> + </button> + </subviews> <viewLayoutGuide key="safeArea" id="fnl-2z-Ty3"/> + <color key="backgroundColor" systemColor="systemBackgroundColor"/> + <constraints> + <constraint firstItem="lxS-3O-LKA" firstAttribute="top" secondItem="fnl-2z-Ty3" secondAttribute="top" id="1VK-iu-8pW"/> + <constraint firstItem="fnl-2z-Ty3" firstAttribute="trailing" secondItem="oPv-XK-by8" secondAttribute="trailing" id="9Dh-MK-KCH"/> + <constraint firstItem="fnl-2z-Ty3" firstAttribute="bottom" secondItem="SAi-a4-ThB" secondAttribute="bottom" id="Fgz-Rd-oq1"/> + <constraint firstItem="oPv-XK-by8" firstAttribute="leading" secondItem="fnl-2z-Ty3" secondAttribute="leading" id="LVH-gv-S08"/> + <constraint firstItem="oPv-XK-by8" firstAttribute="top" secondItem="lxS-3O-LKA" secondAttribute="bottom" constant="10" id="LhC-Y3-Mp6"/> + <constraint firstItem="SAi-a4-ThB" firstAttribute="leading" secondItem="fnl-2z-Ty3" secondAttribute="leading" id="S11-lN-ZCo"/> + <constraint firstItem="lxS-3O-LKA" firstAttribute="leading" secondItem="fnl-2z-Ty3" secondAttribute="leading" id="hfP-l9-atC"/> + <constraint firstItem="fnl-2z-Ty3" firstAttribute="bottom" secondItem="oPv-XK-by8" secondAttribute="bottom" id="vsz-9f-M98"/> + <constraint firstItem="fnl-2z-Ty3" firstAttribute="trailing" secondItem="SAi-a4-ThB" secondAttribute="trailing" id="wtG-nE-Ka9"/> + <constraint firstAttribute="trailing" secondItem="lxS-3O-LKA" secondAttribute="trailing" id="yq3-DX-WWU"/> + </constraints> + <point key="canvasLocation" x="138" y="21"/> </view> </objects> + <resources> + <image name="icon_aes" width="27" height="30"/> + <image name="icon_des" width="27" height="30"/> + <image name="icon_down_arrow" width="20" height="14"/> + <image name="icon_down_arrow_s" width="20" height="14"/> + <image name="icon_search" width="17" height="17"/> + <image name="icon_sort_normal" width="27" height="30"/> + <namedColor name="FE6E0D"> + <color red="0.99599999189376831" green="0.4309999942779541" blue="0.050999999046325684" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> + </namedColor> + <systemColor name="systemBackgroundColor"> + <color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/> + </systemColor> + </resources> </document> diff --git a/WanPai/Root/Activity/VC/ActivitySignupListSubVC.swift b/WanPai/Root/Activity/VC/ActivitySignupListSubVC.swift new file mode 100644 index 0000000..16e564f --- /dev/null +++ b/WanPai/Root/Activity/VC/ActivitySignupListSubVC.swift @@ -0,0 +1,67 @@ +// +// ActivitySignupListSubVC.swift +// WanPai +// +// Created by 杨锴 on 2023/6/14. +// + +import UIKit +import JQTools + +class ActivitySignupListSubVC: BaseVC { + + enum SignupType:Int { + case all = 0 + case ongoing + case over + case prepare + case cancel + } + + var signupType:SignupType! + + lazy private var tableView:UITableView = { + let tableView = UITableView(frame: .zero, style: .plain) + return tableView + }() + + + init(type:SignupType) { + super.init(nibName: nil, bundle: nil) + self.signupType = type + } + + required init?(coder: NSCoder) { + fatalError("init(coder:) has not been implemented") + } + + override func viewDidLoad() { + super.viewDidLoad() + view.backgroundColor = .jq_randomColor + } + + override func setUI() { + view.addSubview(tableView) + tableView.delegate = self + tableView.dataSource = self + tableView.register(UINib(nibName: "ActivityInfoTCell", bundle: nil), forCellReuseIdentifier: "_ActivityInfoTCell") + tableView.snp.makeConstraints { make in + make.edges.equalToSuperview() + } + } +} + +extension ActivitySignupListSubVC:UITableViewDelegate{ + +} + +extension ActivitySignupListSubVC:UITableViewDataSource{ + func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { + let cell = tableView.dequeueReusableCell(withIdentifier: "_ActivityInfoTCell") as! ActivityInfoTCell + return cell + } + + func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { + return 5 + } +} diff --git a/WanPai/Root/Activity/VC/ActivitySignupListVC.swift b/WanPai/Root/Activity/VC/ActivitySignupListVC.swift new file mode 100644 index 0000000..251b6a0 --- /dev/null +++ b/WanPai/Root/Activity/VC/ActivitySignupListVC.swift @@ -0,0 +1,99 @@ +// +// ActivitySignupListVC.swift +// WanPai +// +// Created by 杨锴 on 2023/6/14. +// + +import UIKit +import FFPage +import SPPageMenu +import JQTools + +class ActivitySignupListVC: BaseVC { + + private var pageMenu:SPPageMenu = { + let pageMenu = SPPageMenu(frame: .zero, trackerStyle: .line) + // 追踪线 + pageMenu.trackerWidth = 56 + pageMenu.setTrackerHeight(3, cornerRadius: 1.5) + pageMenu.tracker.backgroundColor = UIColor(hexStr: "#FF9D2E") + pageMenu.trackerFollowingMode = .always + pageMenu.contentInset = UIEdgeInsets(top: 0, left: 14, bottom: 0, right: 14) + + // 分割线 + pageMenu.dividingLine.backgroundColor = .clear + pageMenu.dividingLineHeight = 1 + + // item + pageMenu.spacing = 20.0 + pageMenu.permutationWay = .notScrollEqualWidths + pageMenu.setItems(["全部","进行中","已结束","未开始","已取消"], selectedItemIndex: 0) + + // 字体 + pageMenu.selectedItemTitleFont = UIFont.systemFont(ofSize: 14, weight: .semibold) + pageMenu.unSelectedItemTitleFont = UIFont.systemFont(ofSize: 14,weight: .medium) + // 颜色 + pageMenu.selectedItemTitleColor = .black.withAlphaComponent(0.8) + pageMenu.unSelectedItemTitleColor = .black.withAlphaComponent(0.6) + + return pageMenu + }() + + lazy var pageViewController:FFPageViewController = { + let pageVC = FFPageViewController() + pageVC.view.backgroundColor = .clear + pageVC.scrollview.backgroundColor = .clear + + pageVC.scrollview.bounces = false + return pageVC + }() + + override func viewDidLoad() { + super.viewDidLoad() + title = "我的报名" + + pageMenu.delegate = self + pageViewController.delegate = self + + } + + override func setUI() { + pageMenu.frame = CGRect(x: 0, y: view.safeAreaInsets.top + JQ_NavBarHeight + 9, width: JQ_ScreenW, height: 45) + pageMenu.layer.shadowColor = UIColor(hexStr: "#EFEEEE").withAlphaComponent(0.5).cgColor + pageMenu.layer.shadowOffset = CGSize(width: 0, height: 2) + pageMenu.layer.shadowOpacity = 1 + view.addSubview(pageMenu) + view.backgroundColor = .white + + addChild(pageViewController) + view.insertSubview(pageViewController.view, at: 0) + pageViewController.didMove(toParent: self) + + pageViewController.view.frame = CGRect(x: 0, y: view.safeAreaInsets.top + JQ_NavBarHeight + 9 + 45, width: JQ_ScreenW, height: JQ_ScreenH - view.safeAreaInsets.top - JQ_NavBarHeight - 9 - 45) + } +} + +extension ActivitySignupListVC:SPPageMenuDelegate{ + func pageMenu(_ pageMenu: SPPageMenu, itemSelectedAt index: Int) { + pageViewController.scroll(toPage: index, animation: true) + } +} + + +extension ActivitySignupListVC:FFPageViewControllerDelegate{ + + func pageViewController(_ pageViewController: FFPageViewController, currentPageChanged currentPage: Int) { + pageMenu.selectedItemIndex = currentPage + } + + func totalPagesOfpageViewController(_ pageViewConteoller: FFPageViewController) -> UInt { + return 5 + } + + func pageViewController(_ pageViewConteoller: FFPageViewController, controllerForPage page: Int) -> UIViewController { + let vc = ActivitySignupListSubVC(type: ActivitySignupListSubVC.SignupType(rawValue: page)!) + return vc + } + +} diff --git a/WanPai/Root/Activity/VC/ActivityStudentListVC.swift b/WanPai/Root/Activity/VC/ActivityStudentListVC.swift new file mode 100644 index 0000000..b169725 --- /dev/null +++ b/WanPai/Root/Activity/VC/ActivityStudentListVC.swift @@ -0,0 +1,51 @@ +// +// ActivityStudentListVC.swift +// WanPai +// +// Created by 杨锴 on 2023/6/14. +// + +import UIKit +import QMUIKit + +class ActivityStudentListVC: BaseVC { + + @IBOutlet weak var btn_addStudent: QMUIButton! + @IBOutlet weak var tableView: UITableView! + + override func viewDidLoad() { + super.viewDidLoad() + title = "选择人员" + } + + override func setUI() { + btn_addStudent.imagePosition = .right + btn_addStudent.spacingBetweenImageAndTitle = 4 + + tableView.delegate = self + tableView.dataSource = self + tableView.separatorStyle = .none + tableView.register(UINib(nibName: "StudentInfo_2_TCell", bundle: nil), forCellReuseIdentifier: "_StudentInfo_2_TCell") + } + + @IBAction func addStudentAction(_ sender: Any) { + let vc = AddStudentVC() + push(vc: vc) + } +} + +extension ActivityStudentListVC:UITableViewDelegate{ + +} + +extension ActivityStudentListVC:UITableViewDataSource{ + func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { + let cell = tableView.dequeueReusableCell(withIdentifier: "_StudentInfo_2_TCell") as! StudentInfo_2_TCell + + return cell + } + + func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { + return 5 + } +} diff --git a/WanPai/Root/Activity/VC/ActivityStudentListVC.xib b/WanPai/Root/Activity/VC/ActivityStudentListVC.xib new file mode 100644 index 0000000..3bc1dbd --- /dev/null +++ b/WanPai/Root/Activity/VC/ActivityStudentListVC.xib @@ -0,0 +1,67 @@ +<?xml version="1.0" encoding="UTF-8"?> +<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="21507" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES"> + <device id="retina6_12" orientation="portrait" appearance="light"/> + <dependencies> + <deployment identifier="iOS"/> + <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="21505"/> + <capability name="Safe area layout guides" minToolsVersion="9.0"/> + <capability name="System colors in document resources" minToolsVersion="11.0"/> + <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/> + </dependencies> + <objects> + <placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="ActivityStudentListVC" customModule="WanPai" customModuleProvider="target"> + <connections> + <outlet property="btn_addStudent" destination="uYz-dW-nG5" id="VDr-gz-R0F"/> + <outlet property="tableView" destination="3eN-Lo-KNQ" id="Flc-LS-3Y2"/> + <outlet property="view" destination="i5M-Pr-FkT" id="sfx-zR-JGt"/> + </connections> + </placeholder> + <placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/> + <view clearsContextBeforeDrawing="NO" contentMode="scaleToFill" id="i5M-Pr-FkT"> + <rect key="frame" x="0.0" y="0.0" width="393" height="852"/> + <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> + <subviews> + <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="赛事人员" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="EEd-vW-qcc"> + <rect key="frame" x="14" y="83" width="65.333333333333329" height="19.333333333333329"/> + <fontDescription key="fontDescription" type="system" weight="medium" pointSize="16"/> + <nil key="textColor"/> + <nil key="highlightedColor"/> + </label> + <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="uYz-dW-nG5" customClass="QMUIButton"> + <rect key="frame" x="305" y="84.333333333333329" width="74" height="17"/> + <fontDescription key="fontDescription" type="system" pointSize="14"/> + <inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/> + <state key="normal" title="添加人员" image="btn_add_1"> + <color key="titleColor" red="0.0" green="0.0" blue="0.0" alpha="0.56999999999999995" colorSpace="custom" customColorSpace="sRGB"/> + </state> + <connections> + <action selector="addStudentAction:" destination="-1" eventType="touchUpInside" id="WZr-mv-Q2g"/> + </connections> + </button> + <tableView clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" style="plain" separatorStyle="default" rowHeight="-1" estimatedRowHeight="-1" sectionHeaderHeight="-1" estimatedSectionHeaderHeight="-1" sectionFooterHeight="-1" estimatedSectionFooterHeight="-1" translatesAutoresizingMaskIntoConstraints="NO" id="3eN-Lo-KNQ"> + <rect key="frame" x="0.0" y="109" width="393" height="709"/> + <color key="backgroundColor" systemColor="systemBackgroundColor"/> + </tableView> + </subviews> + <viewLayoutGuide key="safeArea" id="fnl-2z-Ty3"/> + <color key="backgroundColor" systemColor="systemBackgroundColor"/> + <constraints> + <constraint firstItem="EEd-vW-qcc" firstAttribute="leading" secondItem="fnl-2z-Ty3" secondAttribute="leading" constant="14" id="1e6-28-raO"/> + <constraint firstItem="fnl-2z-Ty3" firstAttribute="trailing" secondItem="3eN-Lo-KNQ" secondAttribute="trailing" id="4ov-0E-eEc"/> + <constraint firstItem="fnl-2z-Ty3" firstAttribute="trailing" secondItem="uYz-dW-nG5" secondAttribute="trailing" constant="14" id="69Y-qk-j4U"/> + <constraint firstItem="3eN-Lo-KNQ" firstAttribute="leading" secondItem="fnl-2z-Ty3" secondAttribute="leading" id="9Is-UQ-36f"/> + <constraint firstItem="3eN-Lo-KNQ" firstAttribute="top" secondItem="EEd-vW-qcc" secondAttribute="bottom" constant="6.5" id="GBe-CB-AXG"/> + <constraint firstItem="EEd-vW-qcc" firstAttribute="top" secondItem="fnl-2z-Ty3" secondAttribute="top" constant="24" id="HzW-Sz-E2f"/> + <constraint firstItem="fnl-2z-Ty3" firstAttribute="bottom" secondItem="3eN-Lo-KNQ" secondAttribute="bottom" id="iUu-aB-Tsr"/> + <constraint firstItem="uYz-dW-nG5" firstAttribute="centerY" secondItem="EEd-vW-qcc" secondAttribute="centerY" id="pDC-kS-Pgt"/> + </constraints> + <point key="canvasLocation" x="40" y="21"/> + </view> + </objects> + <resources> + <image name="btn_add_1" width="16" height="16"/> + <systemColor name="systemBackgroundColor"> + <color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/> + </systemColor> + </resources> +</document> diff --git a/WanPai/Root/Activity/View/StoresInfoView.swift b/WanPai/Root/Activity/View/StoresInfoView.swift new file mode 100644 index 0000000..5aa0835 --- /dev/null +++ b/WanPai/Root/Activity/View/StoresInfoView.swift @@ -0,0 +1,53 @@ +// +// StoresInfoView.swift +// WanPai +// +// Created by 杨锴 on 2023/6/14. +// + +import UIKit +import JQTools + +class StoresInfoView: UIView,JQNibView{ + @IBOutlet weak var view_container: UIView! + + private var clouse:((Bool)->Void)! + + override func awakeFromNib() { + super.awakeFromNib() + view_container.transform = .init(scaleX: 0.1, y: 0.1) + alpha = 0 + layoutIfNeeded() + } + + static func show(_ clouse:@escaping (Bool)->Void){ + let storesView = StoresInfoView.jq_loadNibView() + storesView.frame = screnDelegate?.window?.frame ?? .zero + storesView.clouse = clouse + screnDelegate?.window?.addSubview(storesView) + + UIView.animate(withDuration: 0.4) { + storesView.view_container.transform = CGAffineTransform(scaleX: 1.0, y: 1.0) + storesView.alpha = 1 + } + } + + @IBAction func cancelAction(_ sender: UIButton) { + close() + clouse(false) + } + + @IBAction func completeAction(_ sender: UIButton) { + close() + clouse(true) + } + + private func close(){ + UIView.animate(withDuration: 0.4) { + self.view_container.transform = .init(scaleX: 0.1, y: 0.1) + self.alpha = 0 + } completion: { _ in + self.removeFromSuperview() + } + } +} diff --git a/WanPai/Root/Activity/View/StoresInfoView.xib b/WanPai/Root/Activity/View/StoresInfoView.xib new file mode 100644 index 0000000..14c7757 --- /dev/null +++ b/WanPai/Root/Activity/View/StoresInfoView.xib @@ -0,0 +1,179 @@ +<?xml version="1.0" encoding="UTF-8"?> +<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="21507" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES"> + <device id="retina6_12" orientation="portrait" appearance="light"/> + <dependencies> + <deployment identifier="iOS"/> + <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="21505"/> + <capability name="Named colors" minToolsVersion="9.0"/> + <capability name="Safe area layout guides" minToolsVersion="9.0"/> + <capability name="System colors in document resources" minToolsVersion="11.0"/> + <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/> + </dependencies> + <objects> + <placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/> + <placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/> + <view contentMode="scaleToFill" id="iN0-l3-epB" customClass="StoresInfoView" customModule="WanPai" customModuleProvider="target"> + <rect key="frame" x="0.0" y="0.0" width="393" height="852"/> + <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> + <subviews> + <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="YPc-hT-wLG"> + <rect key="frame" x="14" y="242.66666666666666" width="365" height="391.66666666666674"/> + <subviews> + <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="请确认报名门店" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="OBY-uG-jKE"> + <rect key="frame" x="125.33333333333334" y="17.000000000000028" width="114.33333333333334" height="19.333333333333329"/> + <fontDescription key="fontDescription" type="system" weight="semibold" pointSize="16"/> + <color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="0.80000000000000004" colorSpace="custom" customColorSpace="sRGB"/> + <nil key="highlightedColor"/> + </label> + <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="OiY-s7-UjK"> + <rect key="frame" x="0.0" y="56.333333333333357" width="365" height="182.66666666666663"/> + <color key="backgroundColor" systemColor="systemGray6Color"/> + <constraints> + <constraint firstAttribute="width" secondItem="OiY-s7-UjK" secondAttribute="height" multiplier="1:0.5" id="bfF-av-Mkl"/> + </constraints> + </imageView> + <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="--" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Uxo-kQ-Zqa"> + <rect key="frame" x="13" y="253" width="221" height="17"/> + <fontDescription key="fontDescription" type="system" weight="semibold" pointSize="14"/> + <color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="0.69999999999999996" colorSpace="custom" customColorSpace="sRGB"/> + <nil key="highlightedColor"/> + </label> + <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="v0x-OI-j4x"> + <rect key="frame" x="247" y="252" width="1" height="62"/> + <color key="backgroundColor" red="0.59215686274509804" green="0.59215686274509804" blue="0.59215686274509804" alpha="0.28000000000000003" colorSpace="custom" customColorSpace="sRGB"/> + <constraints> + <constraint firstAttribute="width" constant="1" id="EoW-eP-v7C"/> + <constraint firstAttribute="height" constant="62" id="FLM-1I-v1K"/> + </constraints> + </view> + <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="--" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="0wv-DE-XuG"> + <rect key="frame" x="13" y="275" width="221" height="14.333333333333314"/> + <fontDescription key="fontDescription" type="system" pointSize="12"/> + <color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="0.69999999999999996" colorSpace="custom" customColorSpace="sRGB"/> + <nil key="highlightedColor"/> + </label> + <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="距你0.0km" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="ZUc-jP-D3A"> + <rect key="frame" x="13" y="294.33333333333337" width="221" height="14.333333333333314"/> + <fontDescription key="fontDescription" type="system" pointSize="12"/> + <color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="0.69999999999999996" colorSpace="custom" customColorSpace="sRGB"/> + <nil key="highlightedColor"/> + </label> + <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="m3W-4D-SlY" customClass="QMUIButton"> + <rect key="frame" x="248" y="252" width="117" height="62"/> + <fontDescription key="fontDescription" type="system" weight="semibold" pointSize="12"/> + <inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/> + <state key="normal" title="更换门店" image="btn_edit_gray"> + <color key="titleColor" red="0.0" green="0.0" blue="0.0" alpha="0.69999999999999996" colorSpace="custom" customColorSpace="sRGB"/> + </state> + </button> + <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Jpw-FW-83z"> + <rect key="frame" x="27" y="331.66666666666674" width="150.66666666666666" height="40"/> + <constraints> + <constraint firstAttribute="height" constant="40" id="bSW-Lk-o13"/> + </constraints> + <fontDescription key="fontDescription" type="system" weight="medium" pointSize="15"/> + <inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/> + <state key="normal" title="取消"> + <color key="titleColor" name="FE6E0D"/> + </state> + <userDefinedRuntimeAttributes> + <userDefinedRuntimeAttribute type="color" keyPath="borderColor"> + <color key="value" name="FE6E0D"/> + </userDefinedRuntimeAttribute> + <userDefinedRuntimeAttribute type="number" keyPath="borderWidth"> + <real key="value" value="1"/> + </userDefinedRuntimeAttribute> + <userDefinedRuntimeAttribute type="number" keyPath="cornerRadius"> + <real key="value" value="20"/> + </userDefinedRuntimeAttribute> + </userDefinedRuntimeAttributes> + <connections> + <action selector="cancelAction:" destination="iN0-l3-epB" eventType="touchUpInside" id="GFP-qa-NJI"/> + </connections> + </button> + <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="IaV-fx-oMR"> + <rect key="frame" x="187.66666666666663" y="331.66666666666674" width="150.33333333333337" height="40"/> + <color key="backgroundColor" name="FE6E0D"/> + <constraints> + <constraint firstAttribute="height" constant="40" id="c1u-UD-dK1"/> + </constraints> + <fontDescription key="fontDescription" type="system" weight="medium" pointSize="15"/> + <inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/> + <state key="normal" title="确认支付"> + <color key="titleColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> + </state> + <userDefinedRuntimeAttributes> + <userDefinedRuntimeAttribute type="number" keyPath="cornerRadius"> + <real key="value" value="20"/> + </userDefinedRuntimeAttribute> + </userDefinedRuntimeAttributes> + <connections> + <action selector="completeAction:" destination="iN0-l3-epB" eventType="touchUpInside" id="9Gq-d4-Ugw"/> + </connections> + </button> + </subviews> + <color key="backgroundColor" systemColor="systemBackgroundColor"/> + <constraints> + <constraint firstItem="0wv-DE-XuG" firstAttribute="top" secondItem="Uxo-kQ-Zqa" secondAttribute="bottom" constant="5" id="1la-O0-SU9"/> + <constraint firstItem="0wv-DE-XuG" firstAttribute="leading" secondItem="YPc-hT-wLG" secondAttribute="leading" constant="13" id="26m-W2-IMm"/> + <constraint firstItem="OiY-s7-UjK" firstAttribute="top" secondItem="OBY-uG-jKE" secondAttribute="bottom" constant="20" id="28t-0l-bxD"/> + <constraint firstItem="ZUc-jP-D3A" firstAttribute="top" secondItem="0wv-DE-XuG" secondAttribute="bottom" constant="5" id="4RW-KV-tqA"/> + <constraint firstAttribute="bottom" secondItem="Jpw-FW-83z" secondAttribute="bottom" constant="20" id="5wd-51-TXY"/> + <constraint firstItem="m3W-4D-SlY" firstAttribute="bottom" secondItem="v0x-OI-j4x" secondAttribute="bottom" id="7Ma-Lk-lSN"/> + <constraint firstItem="IaV-fx-oMR" firstAttribute="width" secondItem="Jpw-FW-83z" secondAttribute="width" id="9wT-sV-KE4"/> + <constraint firstItem="m3W-4D-SlY" firstAttribute="leading" secondItem="v0x-OI-j4x" secondAttribute="trailing" id="ALd-G4-ht9"/> + <constraint firstItem="Uxo-kQ-Zqa" firstAttribute="top" secondItem="OiY-s7-UjK" secondAttribute="bottom" constant="14" id="DnD-c2-MTH"/> + <constraint firstItem="Jpw-FW-83z" firstAttribute="leading" secondItem="YPc-hT-wLG" secondAttribute="leading" constant="27" id="FRx-kC-XZk"/> + <constraint firstItem="m3W-4D-SlY" firstAttribute="top" secondItem="v0x-OI-j4x" secondAttribute="top" id="GZ9-dT-JkA"/> + <constraint firstItem="v0x-OI-j4x" firstAttribute="leading" secondItem="ZUc-jP-D3A" secondAttribute="trailing" constant="13" id="NbK-QS-1XB"/> + <constraint firstItem="OBY-uG-jKE" firstAttribute="centerX" secondItem="YPc-hT-wLG" secondAttribute="centerX" id="ORu-ER-5E9"/> + <constraint firstItem="OiY-s7-UjK" firstAttribute="leading" secondItem="YPc-hT-wLG" secondAttribute="leading" id="PsO-cV-CCj"/> + <constraint firstAttribute="trailing" secondItem="OiY-s7-UjK" secondAttribute="trailing" id="Q2G-bK-m0g"/> + <constraint firstItem="v0x-OI-j4x" firstAttribute="leading" secondItem="Uxo-kQ-Zqa" secondAttribute="trailing" constant="13" id="Qy9-x4-14Z"/> + <constraint firstAttribute="trailing" secondItem="m3W-4D-SlY" secondAttribute="trailing" id="Tac-sp-ePH"/> + <constraint firstItem="IaV-fx-oMR" firstAttribute="top" secondItem="Jpw-FW-83z" secondAttribute="top" id="Us8-fm-lps"/> + <constraint firstItem="Uxo-kQ-Zqa" firstAttribute="leading" secondItem="YPc-hT-wLG" secondAttribute="leading" constant="13" id="Vlr-gc-nis"/> + <constraint firstAttribute="trailing" secondItem="IaV-fx-oMR" secondAttribute="trailing" constant="27" id="faR-aU-yHl"/> + <constraint firstAttribute="trailing" secondItem="v0x-OI-j4x" secondAttribute="trailing" constant="117" id="gAD-QD-P9S"/> + <constraint firstItem="v0x-OI-j4x" firstAttribute="leading" secondItem="0wv-DE-XuG" secondAttribute="trailing" constant="13" id="hij-WZ-O5Q"/> + <constraint firstItem="IaV-fx-oMR" firstAttribute="leading" secondItem="Jpw-FW-83z" secondAttribute="trailing" constant="10" id="kTm-uC-Wme"/> + <constraint firstItem="OBY-uG-jKE" firstAttribute="top" secondItem="YPc-hT-wLG" secondAttribute="top" constant="17" id="oz7-FU-d5F"/> + <constraint firstItem="Jpw-FW-83z" firstAttribute="top" secondItem="ZUc-jP-D3A" secondAttribute="bottom" constant="23" id="sFO-Nd-YAs"/> + <constraint firstItem="ZUc-jP-D3A" firstAttribute="leading" secondItem="YPc-hT-wLG" secondAttribute="leading" constant="13" id="sgv-m2-qwz"/> + <constraint firstItem="v0x-OI-j4x" firstAttribute="top" secondItem="OiY-s7-UjK" secondAttribute="bottom" constant="13" id="z2a-K4-3Qz"/> + </constraints> + <userDefinedRuntimeAttributes> + <userDefinedRuntimeAttribute type="boolean" keyPath="ld_maskToBoundsXIB" value="YES"/> + <userDefinedRuntimeAttribute type="number" keyPath="ld_cornerRadiusXIB"> + <real key="value" value="6"/> + </userDefinedRuntimeAttribute> + </userDefinedRuntimeAttributes> + </view> + </subviews> + <viewLayoutGuide key="safeArea" id="vUN-kp-3ea"/> + <color key="backgroundColor" red="0.0" green="0.0" blue="0.0" alpha="0.5" colorSpace="custom" customColorSpace="sRGB"/> + <constraints> + <constraint firstItem="vUN-kp-3ea" firstAttribute="trailing" secondItem="YPc-hT-wLG" secondAttribute="trailing" constant="14" id="1v5-78-oof"/> + <constraint firstItem="YPc-hT-wLG" firstAttribute="centerY" secondItem="vUN-kp-3ea" secondAttribute="centerY" id="6pr-EF-wJO"/> + <constraint firstItem="YPc-hT-wLG" firstAttribute="leading" secondItem="vUN-kp-3ea" secondAttribute="leading" constant="14" id="cdV-1J-deP"/> + <constraint firstItem="YPc-hT-wLG" firstAttribute="centerX" secondItem="vUN-kp-3ea" secondAttribute="centerX" id="chg-wY-k2g"/> + </constraints> + <connections> + <outlet property="view_container" destination="YPc-hT-wLG" id="9n8-u0-HGJ"/> + </connections> + <point key="canvasLocation" x="38.931297709923662" y="20.422535211267608"/> + </view> + </objects> + <resources> + <image name="btn_edit_gray" width="26" height="22"/> + <namedColor name="FE6E0D"> + <color red="0.99599999189376831" green="0.4309999942779541" blue="0.050999999046325684" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> + </namedColor> + <systemColor name="systemBackgroundColor"> + <color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/> + </systemColor> + <systemColor name="systemGray6Color"> + <color red="0.94901960784313721" green="0.94901960784313721" blue="0.96862745098039216" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> + </systemColor> + </resources> +</document> diff --git a/WanPai/Root/Activity/View/StudentUpdateInfoView.swift b/WanPai/Root/Activity/View/StudentUpdateInfoView.swift new file mode 100644 index 0000000..302435c --- /dev/null +++ b/WanPai/Root/Activity/View/StudentUpdateInfoView.swift @@ -0,0 +1,44 @@ +// +// StudentUpdateInfoView.swift +// WanPai +// +// Created by 杨锴 on 2023/6/14. +// + +import UIKit +import JQTools + +class StudentUpdateInfoView: UIView,JQNibView{ + + @IBOutlet weak var view_container: UIView! + @IBOutlet weak var cons_bottom: NSLayoutConstraint! + + override func awakeFromNib() { + super.awakeFromNib() + cons_bottom.constant = -(JQ_ScreenW / 2) + alpha = 0 + layoutIfNeeded() + } + + static func show(){ + let storesView = StudentUpdateInfoView.jq_loadNibView() + storesView.frame = screnDelegate?.window?.frame ?? .zero + screnDelegate?.window?.addSubview(storesView) + storesView.cons_bottom.constant = 0 + + UIView.animate(withDuration: 0.4) { + storesView.alpha = 1 + storesView.layoutIfNeeded() + } + } + + private func close(){ + self.cons_bottom.constant = -(JQ_ScreenW / 2) + UIView.animate(withDuration: 0.4) { + self.alpha = 0 + self.layoutIfNeeded() + } completion: { _ in + self.removeFromSuperview() + } + } +} diff --git a/WanPai/Root/Activity/View/StudentUpdateInfoView.xib b/WanPai/Root/Activity/View/StudentUpdateInfoView.xib new file mode 100644 index 0000000..bb89c81 --- /dev/null +++ b/WanPai/Root/Activity/View/StudentUpdateInfoView.xib @@ -0,0 +1,252 @@ +<?xml version="1.0" encoding="UTF-8"?> +<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="21507" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES"> + <device id="retina6_12" orientation="portrait" appearance="light"/> + <dependencies> + <deployment identifier="iOS"/> + <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="21505"/> + <capability name="Named colors" minToolsVersion="9.0"/> + <capability name="System colors in document resources" minToolsVersion="11.0"/> + <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/> + </dependencies> + <objects> + <placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/> + <placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/> + <view contentMode="scaleToFill" id="iN0-l3-epB" customClass="StudentUpdateInfoView" customModule="WanPai" customModuleProvider="target"> + <rect key="frame" x="0.0" y="0.0" width="393" height="852"/> + <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> + <subviews> + <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="FQP-Da-djy"> + <rect key="frame" x="0.0" y="560.66666666666663" width="393" height="291.33333333333337"/> + <subviews> + <stackView opaque="NO" contentMode="scaleToFill" axis="vertical" translatesAutoresizingMaskIntoConstraints="NO" id="V13-39-Dea"> + <rect key="frame" x="0.0" y="16" width="393" height="151.33333333333334"/> + <subviews> + <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="cId-Io-SsC"> + <rect key="frame" x="0.0" y="0.0" width="393" height="50.666666666666664"/> + <subviews> + <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="icon_item_p" translatesAutoresizingMaskIntoConstraints="NO" id="3qc-L3-U16"> + <rect key="frame" x="15" y="19.333333333333371" width="12" height="12"/> + </imageView> + <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="vtz-9k-Oe1"> + <rect key="frame" x="14" y="50" width="365" height="0.6666666666666643"/> + <color key="backgroundColor" red="0.83137254900000002" green="0.83137254900000002" blue="0.83137254900000002" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> + <constraints> + <constraint firstAttribute="height" constant="0.40000000000000002" id="H3s-fh-FbK"/> + </constraints> + </view> + <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="身高" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="PNr-FC-H6p"> + <rect key="frame" x="30" y="17" width="28.666666666666671" height="17"/> + <fontDescription key="fontDescription" type="system" weight="medium" pointSize="14"/> + <color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="0.80000000000000004" colorSpace="custom" customColorSpace="sRGB"/> + <nil key="highlightedColor"/> + </label> + <textField opaque="NO" contentMode="scaleToFill" horizontalHuggingPriority="248" contentHorizontalAlignment="left" contentVerticalAlignment="center" placeholder="请输入学员身高" textAlignment="natural" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="Zec-I5-pJT" customClass="QMUITextField"> + <rect key="frame" x="120" y="0.0" width="233" height="50"/> + <fontDescription key="fontDescription" type="system" weight="medium" pointSize="14"/> + <textInputTraits key="textInputTraits" keyboardType="numberPad"/> + <userDefinedRuntimeAttributes> + <userDefinedRuntimeAttribute type="number" keyPath="maximumTextLength"> + <integer key="value" value="3"/> + </userDefinedRuntimeAttribute> + </userDefinedRuntimeAttributes> + </textField> + <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="cm" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="a4v-UY-Rwm"> + <rect key="frame" x="358.66666666666669" y="17" width="20.333333333333314" height="17"/> + <fontDescription key="fontDescription" type="system" weight="medium" pointSize="14"/> + <color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="0.40000000000000002" colorSpace="custom" customColorSpace="sRGB"/> + <nil key="highlightedColor"/> + </label> + </subviews> + <color key="backgroundColor" systemColor="systemBackgroundColor"/> + <constraints> + <constraint firstItem="vtz-9k-Oe1" firstAttribute="top" secondItem="Zec-I5-pJT" secondAttribute="bottom" id="28y-q6-vnR"/> + <constraint firstAttribute="bottom" secondItem="vtz-9k-Oe1" secondAttribute="bottom" id="C24-3y-FVy"/> + <constraint firstItem="vtz-9k-Oe1" firstAttribute="leading" secondItem="cId-Io-SsC" secondAttribute="leading" constant="14" id="GWt-wu-r9v"/> + <constraint firstAttribute="trailing" secondItem="vtz-9k-Oe1" secondAttribute="trailing" constant="14" id="KeD-fh-Cq4"/> + <constraint firstAttribute="height" constant="50.399999999999999" id="M0B-Mw-Vb2"/> + <constraint firstItem="Zec-I5-pJT" firstAttribute="leading" secondItem="cId-Io-SsC" secondAttribute="leading" constant="120" id="Rti-T1-qUj"/> + <constraint firstItem="Zec-I5-pJT" firstAttribute="top" secondItem="cId-Io-SsC" secondAttribute="top" id="STV-pa-9at"/> + <constraint firstItem="PNr-FC-H6p" firstAttribute="leading" secondItem="3qc-L3-U16" secondAttribute="trailing" constant="3" id="VlO-bn-DnM"/> + <constraint firstItem="a4v-UY-Rwm" firstAttribute="centerY" secondItem="3qc-L3-U16" secondAttribute="centerY" id="YYJ-8y-kxO"/> + <constraint firstItem="3qc-L3-U16" firstAttribute="leading" secondItem="cId-Io-SsC" secondAttribute="leading" constant="15" id="cOZ-eV-vCM"/> + <constraint firstAttribute="trailing" secondItem="Zec-I5-pJT" secondAttribute="trailing" constant="40" id="jdF-lS-yMr"/> + <constraint firstAttribute="trailing" secondItem="a4v-UY-Rwm" secondAttribute="trailing" constant="14" id="vqj-fs-lGT"/> + <constraint firstItem="3qc-L3-U16" firstAttribute="centerY" secondItem="cId-Io-SsC" secondAttribute="centerY" id="y4w-cQ-MUF"/> + <constraint firstItem="PNr-FC-H6p" firstAttribute="centerY" secondItem="3qc-L3-U16" secondAttribute="centerY" id="yZU-T9-JtY"/> + </constraints> + </view> + <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="sbO-PZ-2I4"> + <rect key="frame" x="0.0" y="50.666666666666742" width="393" height="50.333333333333343"/> + <subviews> + <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="icon_item_p" translatesAutoresizingMaskIntoConstraints="NO" id="4a2-W8-ZB1"> + <rect key="frame" x="15" y="19" width="12" height="12"/> + </imageView> + <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="a6r-gL-6kh"> + <rect key="frame" x="14" y="50" width="365" height="0.3333333333333357"/> + <color key="backgroundColor" red="0.83137254900000002" green="0.83137254900000002" blue="0.83137254900000002" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> + <constraints> + <constraint firstAttribute="height" constant="0.40000000000000002" id="1sU-UN-qNT"/> + </constraints> + </view> + <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="体重" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="1x1-bC-WDR"> + <rect key="frame" x="30" y="16.666666666666629" width="28.666666666666671" height="17"/> + <fontDescription key="fontDescription" type="system" weight="medium" pointSize="14"/> + <color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="0.80000000000000004" colorSpace="custom" customColorSpace="sRGB"/> + <nil key="highlightedColor"/> + </label> + <textField opaque="NO" contentMode="scaleToFill" horizontalHuggingPriority="248" contentHorizontalAlignment="left" contentVerticalAlignment="center" placeholder="请输入学员体重" textAlignment="natural" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="U4X-od-m4c" customClass="QMUITextField"> + <rect key="frame" x="120" y="0.0" width="233" height="50"/> + <fontDescription key="fontDescription" type="system" weight="medium" pointSize="14"/> + <textInputTraits key="textInputTraits" keyboardType="numberPad"/> + <userDefinedRuntimeAttributes> + <userDefinedRuntimeAttribute type="number" keyPath="maximumTextLength"> + <integer key="value" value="3"/> + </userDefinedRuntimeAttribute> + </userDefinedRuntimeAttributes> + </textField> + <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="kg" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="nbP-Hb-jry"> + <rect key="frame" x="363" y="16.666666666666629" width="16" height="17"/> + <fontDescription key="fontDescription" type="system" weight="medium" pointSize="14"/> + <color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="0.40000000000000002" colorSpace="custom" customColorSpace="sRGB"/> + <nil key="highlightedColor"/> + </label> + </subviews> + <color key="backgroundColor" systemColor="systemBackgroundColor"/> + <constraints> + <constraint firstAttribute="height" constant="50.399999999999999" id="1At-gg-tkw"/> + <constraint firstItem="a6r-gL-6kh" firstAttribute="leading" secondItem="sbO-PZ-2I4" secondAttribute="leading" constant="14" id="6kA-N0-1at"/> + <constraint firstItem="1x1-bC-WDR" firstAttribute="leading" secondItem="4a2-W8-ZB1" secondAttribute="trailing" constant="3" id="BAD-5M-TGq"/> + <constraint firstItem="1x1-bC-WDR" firstAttribute="centerY" secondItem="4a2-W8-ZB1" secondAttribute="centerY" id="MR2-Jf-n4y"/> + <constraint firstAttribute="trailing" secondItem="U4X-od-m4c" secondAttribute="trailing" constant="40" id="MdQ-eW-Pjq"/> + <constraint firstAttribute="trailing" secondItem="a6r-gL-6kh" secondAttribute="trailing" constant="14" id="MzR-QM-IOv"/> + <constraint firstItem="U4X-od-m4c" firstAttribute="leading" secondItem="sbO-PZ-2I4" secondAttribute="leading" constant="120" id="O36-nF-SQS"/> + <constraint firstItem="4a2-W8-ZB1" firstAttribute="centerY" secondItem="sbO-PZ-2I4" secondAttribute="centerY" id="OkS-n4-SEH"/> + <constraint firstAttribute="trailing" secondItem="nbP-Hb-jry" secondAttribute="trailing" constant="14" id="bBf-mE-acD"/> + <constraint firstItem="U4X-od-m4c" firstAttribute="top" secondItem="sbO-PZ-2I4" secondAttribute="top" id="c7D-ys-nMI"/> + <constraint firstAttribute="bottom" secondItem="a6r-gL-6kh" secondAttribute="bottom" id="jkh-AU-ytE"/> + <constraint firstItem="a6r-gL-6kh" firstAttribute="top" secondItem="U4X-od-m4c" secondAttribute="bottom" id="shg-FC-dtC"/> + <constraint firstItem="4a2-W8-ZB1" firstAttribute="leading" secondItem="sbO-PZ-2I4" secondAttribute="leading" constant="15" id="wzv-jF-kR6"/> + <constraint firstItem="nbP-Hb-jry" firstAttribute="centerY" secondItem="4a2-W8-ZB1" secondAttribute="centerY" id="xTS-ce-PKt"/> + </constraints> + </view> + <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Jhb-ug-p8L"> + <rect key="frame" x="0.0" y="101" width="393" height="50.333333333333343"/> + <subviews> + <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="NGC-Ss-4rN"> + <rect key="frame" x="14" y="50" width="365" height="0.3333333333333357"/> + <color key="backgroundColor" red="0.83137254900000002" green="0.83137254900000002" blue="0.83137254900000002" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> + <constraints> + <constraint firstAttribute="height" constant="0.40000000000000002" id="BFw-kj-Crd"/> + </constraints> + </view> + <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="联系方式" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="HCJ-GV-Rxl"> + <rect key="frame" x="14.000000000000004" y="16.666666666666742" width="57.333333333333343" height="17"/> + <fontDescription key="fontDescription" type="system" weight="medium" pointSize="14"/> + <color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="0.80000000000000004" colorSpace="custom" customColorSpace="sRGB"/> + <nil key="highlightedColor"/> + </label> + <textField opaque="NO" contentMode="scaleToFill" horizontalHuggingPriority="248" contentHorizontalAlignment="left" contentVerticalAlignment="center" placeholder="请输入学员联系方式" textAlignment="natural" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="Cui-v0-oxz" customClass="QMUITextField"> + <rect key="frame" x="120" y="0.0" width="233" height="50"/> + <fontDescription key="fontDescription" type="system" weight="medium" pointSize="14"/> + <textInputTraits key="textInputTraits" keyboardType="numberPad"/> + <userDefinedRuntimeAttributes> + <userDefinedRuntimeAttribute type="number" keyPath="maximumTextLength"> + <integer key="value" value="11"/> + </userDefinedRuntimeAttribute> + </userDefinedRuntimeAttributes> + </textField> + </subviews> + <color key="backgroundColor" systemColor="systemBackgroundColor"/> + <constraints> + <constraint firstItem="Cui-v0-oxz" firstAttribute="leading" secondItem="Jhb-ug-p8L" secondAttribute="leading" constant="120" id="4Pv-YD-z7e"/> + <constraint firstAttribute="bottom" secondItem="NGC-Ss-4rN" secondAttribute="bottom" id="JcQ-cP-veH"/> + <constraint firstAttribute="trailing" secondItem="NGC-Ss-4rN" secondAttribute="trailing" constant="14" id="LwZ-qK-kGg"/> + <constraint firstItem="Cui-v0-oxz" firstAttribute="top" secondItem="Jhb-ug-p8L" secondAttribute="top" id="SzZ-eU-pdC"/> + <constraint firstItem="NGC-Ss-4rN" firstAttribute="leading" secondItem="Jhb-ug-p8L" secondAttribute="leading" constant="14" id="YB3-bX-k0e"/> + <constraint firstAttribute="height" constant="50.399999999999999" id="Z9q-Sl-Nzj"/> + <constraint firstAttribute="trailing" secondItem="Cui-v0-oxz" secondAttribute="trailing" constant="40" id="bfj-EZ-VeA"/> + <constraint firstItem="NGC-Ss-4rN" firstAttribute="top" secondItem="Cui-v0-oxz" secondAttribute="bottom" id="dnL-3I-ipL"/> + <constraint firstItem="HCJ-GV-Rxl" firstAttribute="leading" secondItem="Jhb-ug-p8L" secondAttribute="leading" constant="14" id="iwe-5I-cRb"/> + <constraint firstItem="HCJ-GV-Rxl" firstAttribute="centerY" secondItem="Jhb-ug-p8L" secondAttribute="centerY" id="u53-UM-5lC"/> + </constraints> + </view> + </subviews> + </stackView> + <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="lxt-la-hhb"> + <rect key="frame" x="41" y="192.33333333333337" width="146" height="40"/> + <constraints> + <constraint firstAttribute="height" constant="40" id="LMv-4a-nfN"/> + </constraints> + <fontDescription key="fontDescription" type="system" weight="medium" pointSize="15"/> + <inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/> + <state key="normal" title="取消"> + <color key="titleColor" name="FE6E0D"/> + </state> + <userDefinedRuntimeAttributes> + <userDefinedRuntimeAttribute type="color" keyPath="jq_xibBorderColor"> + <color key="value" name="FE6E0D"/> + </userDefinedRuntimeAttribute> + <userDefinedRuntimeAttribute type="number" keyPath="jq_xibCornerRadius"> + <real key="value" value="20"/> + </userDefinedRuntimeAttribute> + <userDefinedRuntimeAttribute type="number" keyPath="jq_xibBorderWidth"> + <real key="value" value="1"/> + </userDefinedRuntimeAttribute> + </userDefinedRuntimeAttributes> + </button> + <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Pdv-hP-j5u"> + <rect key="frame" x="207" y="192.33333333333337" width="146" height="40"/> + <color key="backgroundColor" name="FE6E0D"/> + <constraints> + <constraint firstAttribute="height" constant="40" id="ock-wd-iD8"/> + </constraints> + <fontDescription key="fontDescription" type="system" weight="medium" pointSize="15"/> + <inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/> + <state key="normal" title="保存"> + <color key="titleColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/> + </state> + <userDefinedRuntimeAttributes> + <userDefinedRuntimeAttribute type="number" keyPath="jq_xibCornerRadius"> + <real key="value" value="20"/> + </userDefinedRuntimeAttribute> + </userDefinedRuntimeAttributes> + </button> + </subviews> + <color key="backgroundColor" systemColor="systemBackgroundColor"/> + <constraints> + <constraint firstAttribute="bottomMargin" secondItem="lxt-la-hhb" secondAttribute="bottom" constant="17" id="1UF-F5-Zhn"/> + <constraint firstItem="lxt-la-hhb" firstAttribute="centerY" secondItem="Pdv-hP-j5u" secondAttribute="centerY" id="34f-Jg-P4h"/> + <constraint firstItem="Pdv-hP-j5u" firstAttribute="leading" secondItem="lxt-la-hhb" secondAttribute="trailing" constant="20" id="37Z-p3-zbJ"/> + <constraint firstItem="V13-39-Dea" firstAttribute="leading" secondItem="FQP-Da-djy" secondAttribute="leading" id="71y-7f-Zhy"/> + <constraint firstAttribute="trailing" secondItem="Pdv-hP-j5u" secondAttribute="trailing" constant="40" id="By7-BM-Xsh"/> + <constraint firstItem="V13-39-Dea" firstAttribute="top" secondItem="FQP-Da-djy" secondAttribute="top" constant="16" id="Ttc-R4-gQD"/> + <constraint firstItem="lxt-la-hhb" firstAttribute="leading" secondItem="FQP-Da-djy" secondAttribute="leading" constant="41" id="XsU-vb-F0e"/> + <constraint firstItem="lxt-la-hhb" firstAttribute="top" secondItem="V13-39-Dea" secondAttribute="bottom" constant="25" id="ahr-4r-Pxy"/> + <constraint firstItem="Pdv-hP-j5u" firstAttribute="width" secondItem="lxt-la-hhb" secondAttribute="width" id="b8S-gm-3rh"/> + <constraint firstAttribute="trailing" secondItem="V13-39-Dea" secondAttribute="trailing" id="pI5-DU-DUG"/> + </constraints> + </view> + </subviews> + <color key="backgroundColor" red="0.0" green="0.0" blue="0.0" alpha="0.5" colorSpace="custom" customColorSpace="sRGB"/> + <constraints> + <constraint firstAttribute="bottom" secondItem="FQP-Da-djy" secondAttribute="bottom" id="Xfr-Bp-8jB"/> + <constraint firstItem="FQP-Da-djy" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" id="c0g-Sn-Fvg"/> + <constraint firstAttribute="trailing" secondItem="FQP-Da-djy" secondAttribute="trailing" id="pRf-XY-SYk"/> + </constraints> + <connections> + <outlet property="cons_bottom" destination="Xfr-Bp-8jB" id="IZH-JX-BFj"/> + <outlet property="view_container" destination="FQP-Da-djy" id="v8l-GZ-ns8"/> + </connections> + <point key="canvasLocation" x="-10" y="21"/> + </view> + </objects> + <resources> + <image name="icon_item_p" width="12" height="12"/> + <namedColor name="FE6E0D"> + <color red="0.99599999189376831" green="0.4309999942779541" blue="0.050999999046325684" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> + </namedColor> + <systemColor name="systemBackgroundColor"> + <color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/> + </systemColor> + </resources> +</document> diff --git a/WanPai/Root/Course/VC/AddStudentVC.swift b/WanPai/Root/Course/VC/AddStudentVC.swift index 4bce5b5..16c7c59 100644 --- a/WanPai/Root/Course/VC/AddStudentVC.swift +++ b/WanPai/Root/Course/VC/AddStudentVC.swift @@ -10,6 +10,9 @@ class AddStudentVC: BaseVC { @IBOutlet weak var tf_idCard: UITextField! + + var verifyIdCard:Bool = false + override func viewDidLoad() { super.viewDidLoad() title = "添加学员" @@ -20,6 +23,9 @@ } tf_idCard.inputView = idCardView } + + + } diff --git a/WanPai/Root/Course/VC/AddStudentVC.xib b/WanPai/Root/Course/VC/AddStudentVC.xib index 0261a0b..a4c13a8 100644 --- a/WanPai/Root/Course/VC/AddStudentVC.xib +++ b/WanPai/Root/Course/VC/AddStudentVC.xib @@ -98,10 +98,13 @@ <nil key="highlightedColor"/> </label> <textField opaque="NO" contentMode="scaleToFill" horizontalHuggingPriority="248" contentHorizontalAlignment="left" contentVerticalAlignment="center" placeholder="请选择" textAlignment="natural" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="Gwh-N7-mRQ"> - <rect key="frame" x="120" y="0.0" width="263" height="50"/> + <rect key="frame" x="120" y="0.0" width="173" height="50"/> <fontDescription key="fontDescription" type="system" weight="medium" pointSize="14"/> <textInputTraits key="textInputTraits"/> </textField> + <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="icon_calendar" translatesAutoresizingMaskIntoConstraints="NO" id="BoR-bb-Uqf"> + <rect key="frame" x="361" y="16.333333333333371" width="18" height="18"/> + </imageView> </subviews> <color key="backgroundColor" systemColor="systemBackgroundColor"/> <constraints> @@ -109,12 +112,14 @@ <constraint firstAttribute="trailing" secondItem="c21-81-tiw" secondAttribute="trailing" constant="14" id="FOF-Wc-qtH"/> <constraint firstItem="waQ-bZ-tyt" firstAttribute="leading" secondItem="PXO-vA-az9" secondAttribute="leading" constant="15" id="Hk9-W5-bIW"/> <constraint firstItem="Gwh-N7-mRQ" firstAttribute="leading" secondItem="PXO-vA-az9" secondAttribute="leading" constant="120" id="JeT-c0-HwR"/> + <constraint firstItem="BoR-bb-Uqf" firstAttribute="centerY" secondItem="PXO-vA-az9" secondAttribute="centerY" id="KeI-YC-x8G"/> <constraint firstAttribute="height" constant="50.399999999999999" id="MEQ-hH-rG7"/> <constraint firstItem="waQ-bZ-tyt" firstAttribute="centerY" secondItem="PXO-vA-az9" secondAttribute="centerY" id="O6K-3i-Egv"/> <constraint firstAttribute="bottom" secondItem="c21-81-tiw" secondAttribute="bottom" id="UXu-Ei-eiU"/> <constraint firstItem="Fjk-Kb-cDF" firstAttribute="leading" secondItem="waQ-bZ-tyt" secondAttribute="trailing" constant="3" id="h2e-8E-Cmx"/> <constraint firstItem="c21-81-tiw" firstAttribute="leading" secondItem="PXO-vA-az9" secondAttribute="leading" constant="14" id="hAG-m6-5j3"/> - <constraint firstAttribute="trailing" secondItem="Gwh-N7-mRQ" secondAttribute="trailing" constant="10" id="lOe-FC-hor"/> + <constraint firstAttribute="trailing" secondItem="BoR-bb-Uqf" secondAttribute="trailing" constant="14" id="l0h-zD-6An"/> + <constraint firstAttribute="trailing" secondItem="Gwh-N7-mRQ" secondAttribute="trailing" constant="100" id="lOe-FC-hor"/> <constraint firstItem="Gwh-N7-mRQ" firstAttribute="top" secondItem="PXO-vA-az9" secondAttribute="top" id="m5l-s5-s0l"/> <constraint firstItem="c21-81-tiw" firstAttribute="top" secondItem="Gwh-N7-mRQ" secondAttribute="bottom" id="zeS-3H-qpX"/> </constraints> @@ -276,9 +281,6 @@ <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="2nU-pk-phu"> <rect key="frame" x="0.0" y="252.00000000000003" width="393" height="50.333333333333343"/> <subviews> - <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="icon_item_p" translatesAutoresizingMaskIntoConstraints="NO" id="heO-1g-jYH"> - <rect key="frame" x="15" y="19.333333333333314" width="12" height="12"/> - </imageView> <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="c6a-Ai-3Np"> <rect key="frame" x="14" y="50" width="365" height="0.3333333333333357"/> <color key="backgroundColor" red="0.83137254900000002" green="0.83137254900000002" blue="0.83137254900000002" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> @@ -287,7 +289,7 @@ </constraints> </view> <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="联系方式" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="DPg-zi-req"> - <rect key="frame" x="30.000000000000004" y="16.666666666666686" width="57.333333333333343" height="17"/> + <rect key="frame" x="14.000000000000004" y="16.666666666666686" width="57.333333333333343" height="17"/> <fontDescription key="fontDescription" type="system" weight="medium" pointSize="14"/> <color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="0.80000000000000004" colorSpace="custom" customColorSpace="sRGB"/> <nil key="highlightedColor"/> @@ -306,25 +308,20 @@ <color key="backgroundColor" systemColor="systemBackgroundColor"/> <constraints> <constraint firstItem="eT7-mO-3I8" firstAttribute="leading" secondItem="2nU-pk-phu" secondAttribute="leading" constant="120" id="5rc-Vo-lne"/> - <constraint firstItem="heO-1g-jYH" firstAttribute="leading" secondItem="2nU-pk-phu" secondAttribute="leading" constant="15" id="Aah-sL-gPy"/> <constraint firstAttribute="trailing" secondItem="eT7-mO-3I8" secondAttribute="trailing" constant="40" id="Amx-f1-Qi4"/> + <constraint firstItem="DPg-zi-req" firstAttribute="leading" secondItem="2nU-pk-phu" secondAttribute="leading" constant="14" id="EXc-da-VkD"/> <constraint firstItem="c6a-Ai-3Np" firstAttribute="top" secondItem="eT7-mO-3I8" secondAttribute="bottom" id="GCe-gk-F1O"/> <constraint firstItem="eT7-mO-3I8" firstAttribute="top" secondItem="2nU-pk-phu" secondAttribute="top" id="GhU-m9-uTp"/> <constraint firstAttribute="trailing" secondItem="c6a-Ai-3Np" secondAttribute="trailing" constant="14" id="Jew-PT-4Tk"/> + <constraint firstItem="DPg-zi-req" firstAttribute="centerY" secondItem="2nU-pk-phu" secondAttribute="centerY" id="amO-dK-CUg"/> <constraint firstAttribute="bottom" secondItem="c6a-Ai-3Np" secondAttribute="bottom" id="btp-Pj-qXe"/> <constraint firstAttribute="height" constant="50.399999999999999" id="dxG-vK-Tf9"/> - <constraint firstItem="DPg-zi-req" firstAttribute="centerY" secondItem="heO-1g-jYH" secondAttribute="centerY" id="e3M-oc-rh7"/> - <constraint firstItem="DPg-zi-req" firstAttribute="leading" secondItem="heO-1g-jYH" secondAttribute="trailing" constant="3" id="fhE-9U-Wi3"/> <constraint firstItem="c6a-Ai-3Np" firstAttribute="leading" secondItem="2nU-pk-phu" secondAttribute="leading" constant="14" id="j7Q-C8-u2p"/> - <constraint firstItem="heO-1g-jYH" firstAttribute="centerY" secondItem="2nU-pk-phu" secondAttribute="centerY" id="yww-Ea-bDM"/> </constraints> </view> <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="eXg-lM-iFa"> <rect key="frame" x="0.0" y="302.33333333333337" width="393" height="50.333333333333314"/> <subviews> - <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="icon_item_p" translatesAutoresizingMaskIntoConstraints="NO" id="4SZ-GR-0yH"> - <rect key="frame" x="15" y="19.333333333333258" width="12" height="12"/> - </imageView> <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="NlW-dD-gIp"> <rect key="frame" x="14" y="50" width="365" height="0.3333333333333357"/> <color key="backgroundColor" red="0.83137254900000002" green="0.83137254900000002" blue="0.83137254900000002" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> @@ -333,7 +330,7 @@ </constraints> </view> <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="身份证号" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="JjF-jS-GPH"> - <rect key="frame" x="30.000000000000004" y="16.666666666666629" width="57.333333333333343" height="17"/> + <rect key="frame" x="14.000000000000004" y="16.666666666666629" width="57.333333333333343" height="17"/> <fontDescription key="fontDescription" type="system" weight="medium" pointSize="14"/> <color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="0.80000000000000004" colorSpace="custom" customColorSpace="sRGB"/> <nil key="highlightedColor"/> @@ -348,16 +345,14 @@ <constraints> <constraint firstAttribute="trailing" secondItem="LD0-ej-DmH" secondAttribute="trailing" constant="40" id="0gt-Pw-IV7"/> <constraint firstItem="LD0-ej-DmH" firstAttribute="top" secondItem="eXg-lM-iFa" secondAttribute="top" id="2K7-zV-OyA"/> - <constraint firstItem="JjF-jS-GPH" firstAttribute="centerY" secondItem="4SZ-GR-0yH" secondAttribute="centerY" id="4Wi-qJ-HQu"/> <constraint firstAttribute="bottom" secondItem="NlW-dD-gIp" secondAttribute="bottom" id="9Mu-Gg-yex"/> <constraint firstItem="LD0-ej-DmH" firstAttribute="leading" secondItem="eXg-lM-iFa" secondAttribute="leading" constant="120" id="9U6-rD-Jfd"/> - <constraint firstItem="4SZ-GR-0yH" firstAttribute="centerY" secondItem="eXg-lM-iFa" secondAttribute="centerY" id="OKc-zz-Xbr"/> + <constraint firstItem="JjF-jS-GPH" firstAttribute="leading" secondItem="eXg-lM-iFa" secondAttribute="leading" constant="14" id="IKT-yR-MXN"/> <constraint firstItem="NlW-dD-gIp" firstAttribute="leading" secondItem="eXg-lM-iFa" secondAttribute="leading" constant="14" id="Qir-9y-1mQ"/> - <constraint firstItem="4SZ-GR-0yH" firstAttribute="leading" secondItem="eXg-lM-iFa" secondAttribute="leading" constant="15" id="XwP-ey-1bY"/> <constraint firstAttribute="trailing" secondItem="NlW-dD-gIp" secondAttribute="trailing" constant="14" id="jSc-75-egP"/> <constraint firstItem="NlW-dD-gIp" firstAttribute="top" secondItem="LD0-ej-DmH" secondAttribute="bottom" id="mxF-BK-Axi"/> <constraint firstAttribute="height" constant="50.399999999999999" id="ngz-MT-wKh"/> - <constraint firstItem="JjF-jS-GPH" firstAttribute="leading" secondItem="4SZ-GR-0yH" secondAttribute="trailing" constant="3" id="qld-zr-Coe"/> + <constraint firstItem="JjF-jS-GPH" firstAttribute="centerY" secondItem="eXg-lM-iFa" secondAttribute="centerY" id="xph-Ep-7kc"/> </constraints> </view> </subviews> @@ -395,6 +390,7 @@ </view> </objects> <resources> + <image name="icon_calendar" width="18" height="18"/> <image name="icon_down_arrow" width="20" height="14"/> <image name="icon_item_p" width="12" height="12"/> <namedColor name="FE6E0D"> diff --git a/WanPai/Root/Course/VC/CourseDetailApplyVC.swift b/WanPai/Root/Course/VC/CourseDetailApplyVC.swift index 02be737..9c08359 100644 --- a/WanPai/Root/Course/VC/CourseDetailApplyVC.swift +++ b/WanPai/Root/Course/VC/CourseDetailApplyVC.swift @@ -50,7 +50,7 @@ } @IBAction func studentAction(_ sender: QMUIButton) { - StudentChooseView.show { + StudentChooseView.show(itemType:.course) { } needAddClouse: { [weak self] () in let vc = AddStudentVC() @@ -62,7 +62,7 @@ @IBAction func paymentAction(_ sender: UIButton) { PaymentView.show { status in let paymentState:PaymentResultVC.PaymentResult = status ? .success:.fail - let vc = PaymentResultVC(result: paymentState, objType: .apply) + let vc = PaymentResultVC(result: paymentState, objType: .courseApply) vc.modalPresentationStyle = .fullScreen self.present(vc, animated: true) } diff --git a/WanPai/Root/Course/View/CityChooseSubTypeView.swift b/WanPai/Root/Course/View/CityChooseSubTypeView.swift new file mode 100644 index 0000000..a587f1f --- /dev/null +++ b/WanPai/Root/Course/View/CityChooseSubTypeView.swift @@ -0,0 +1,55 @@ +// +// CityChooseSubTypeView.swift +// WanPai +// +// Created by 杨锴 on 2023/6/13. +// + +import UIKit +import JQTools + +class CityChooseSubTypeView: UIView,JQNibView{ + @IBOutlet weak var cons_viewHeight: NSLayoutConstraint! + private var closeClouse:(()->Void)? + private var clouse:((String)->Void)? + + override func awakeFromNib() { + super.awakeFromNib() + cons_viewHeight.constant = 100 + alpha = 0 + layoutIfNeeded() + } + + + static func show(inView:UIView,afterView:UIView,clouse:@escaping (String)->Void,closeClouse:@escaping ()->Void){ + let subTypeView = CityChooseSubTypeView.jq_loadNibView() + subTypeView.closeClouse = closeClouse + subTypeView.clouse = clouse + inView.addSubview(subTypeView) + subTypeView.snp.makeConstraints { make in + make.top.equalTo(afterView.snp.bottom) + make.left.right.bottom.equalToSuperview() + } + + UIView.animate(withDuration: 0.2) { + subTypeView.alpha = 1 + } completion: { _ in + subTypeView.cons_viewHeight.constant = JQ_ScreenH - 175 - UIDevice.jq_safeEdges.top - JQ_NavBarHeight + UIView.animate(withDuration: 0.2) { + subTypeView.layoutIfNeeded() + } + } + } + + + @IBAction func closeAction(_ sender: UIButton) { + self.cons_viewHeight.constant = 100 + UIView.animate(withDuration: 0.2) { + self.alpha = 0 + self.layoutIfNeeded() + } completion: { _ in + self.removeFromSuperview() + self.closeClouse!() + } + } +} diff --git a/WanPai/Root/Course/View/CityChooseSubTypeView.xib b/WanPai/Root/Course/View/CityChooseSubTypeView.xib new file mode 100644 index 0000000..ac64cab --- /dev/null +++ b/WanPai/Root/Course/View/CityChooseSubTypeView.xib @@ -0,0 +1,95 @@ +<?xml version="1.0" encoding="UTF-8"?> +<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="21507" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES"> + <device id="retina6_12" orientation="portrait" appearance="light"/> + <dependencies> + <deployment identifier="iOS"/> + <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="21505"/> + <capability name="Named colors" minToolsVersion="9.0"/> + <capability name="System colors in document resources" minToolsVersion="11.0"/> + <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/> + </dependencies> + <objects> + <placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/> + <placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/> + <view contentMode="scaleToFill" id="iN0-l3-epB" customClass="CityChooseSubTypeView" customModule="WanPai" customModuleProvider="target"> + <rect key="frame" x="0.0" y="0.0" width="393" height="852"/> + <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> + <subviews> + <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="TPq-C8-wkc"> + <rect key="frame" x="0.0" y="0.0" width="393" height="100"/> + <subviews> + <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="当前城市:" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="T2N-Sp-Usv"> + <rect key="frame" x="14" y="14" width="71.666666666666671" height="17"/> + <fontDescription key="fontDescription" type="system" pointSize="14"/> + <color key="textColor" red="0.23921568627450979" green="0.24313725490196078" blue="0.27058823529411763" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> + <nil key="highlightedColor"/> + </label> + <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="--" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="VXl-8W-S4W"> + <rect key="frame" x="85.666666666666671" y="14" width="13" height="17"/> + <fontDescription key="fontDescription" type="system" pointSize="14"/> + <color key="textColor" name="FE6E0D"/> + <nil key="highlightedColor"/> + </label> + <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="9Wx-wB-FnM"> + <rect key="frame" x="307" y="14" width="72" height="17"/> + <fontDescription key="fontDescription" type="system" weight="medium" pointSize="14"/> + <inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/> + <state key="normal" title="重新定位" image="btn_local"> + <color key="titleColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> + </state> + </button> + <tableView clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" style="plain" separatorStyle="default" rowHeight="-1" estimatedRowHeight="-1" sectionHeaderHeight="-1" estimatedSectionHeaderHeight="-1" sectionFooterHeight="-1" estimatedSectionFooterHeight="-1" translatesAutoresizingMaskIntoConstraints="NO" id="TJg-Td-Jbc"> + <rect key="frame" x="0.0" y="52" width="393" height="48"/> + <color key="backgroundColor" systemColor="systemBackgroundColor"/> + </tableView> + </subviews> + <color key="backgroundColor" systemColor="systemBackgroundColor"/> + <constraints> + <constraint firstItem="VXl-8W-S4W" firstAttribute="leading" secondItem="T2N-Sp-Usv" secondAttribute="trailing" id="3kK-GP-qmG"/> + <constraint firstAttribute="trailing" secondItem="TJg-Td-Jbc" secondAttribute="trailing" id="4C7-b3-5FG"/> + <constraint firstItem="T2N-Sp-Usv" firstAttribute="top" secondItem="TPq-C8-wkc" secondAttribute="top" constant="14" id="80U-Rh-huf"/> + <constraint firstItem="9Wx-wB-FnM" firstAttribute="centerY" secondItem="T2N-Sp-Usv" secondAttribute="centerY" id="FlO-am-21E"/> + <constraint firstAttribute="trailing" secondItem="9Wx-wB-FnM" secondAttribute="trailing" constant="14" id="PX6-jx-RzA"/> + <constraint firstItem="T2N-Sp-Usv" firstAttribute="leading" secondItem="TPq-C8-wkc" secondAttribute="leading" constant="14" id="Rjb-wt-9hY"/> + <constraint firstAttribute="bottom" secondItem="TJg-Td-Jbc" secondAttribute="bottom" id="Tab-9M-uJJ"/> + <constraint firstItem="VXl-8W-S4W" firstAttribute="centerY" secondItem="T2N-Sp-Usv" secondAttribute="centerY" id="afQ-p4-DIB"/> + <constraint firstAttribute="height" constant="100" id="eEu-f9-Ced"/> + <constraint firstItem="TJg-Td-Jbc" firstAttribute="leading" secondItem="TPq-C8-wkc" secondAttribute="leading" id="nDl-iY-VlK"/> + <constraint firstItem="TJg-Td-Jbc" firstAttribute="top" secondItem="T2N-Sp-Usv" secondAttribute="bottom" constant="21" id="tci-9o-isI"/> + </constraints> + </view> + <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="8Pc-Ig-MnB"> + <rect key="frame" x="0.0" y="100" width="393" height="752"/> + <inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/> + <connections> + <action selector="closeAction:" destination="iN0-l3-epB" eventType="touchUpInside" id="knc-ZU-pGW"/> + </connections> + </button> + </subviews> + <color key="backgroundColor" red="0.0" green="0.0" blue="0.0" alpha="0.69999999999999996" colorSpace="custom" customColorSpace="sRGB"/> + <constraints> + <constraint firstItem="TPq-C8-wkc" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" id="4me-CT-SUv"/> + <constraint firstItem="TPq-C8-wkc" firstAttribute="top" secondItem="iN0-l3-epB" secondAttribute="top" id="5nb-Uv-WlP"/> + <constraint firstAttribute="trailing" secondItem="8Pc-Ig-MnB" secondAttribute="trailing" id="GTn-Ft-epJ"/> + <constraint firstAttribute="trailing" secondItem="TPq-C8-wkc" secondAttribute="trailing" id="LXq-Rb-5v0"/> + <constraint firstItem="8Pc-Ig-MnB" firstAttribute="top" secondItem="TPq-C8-wkc" secondAttribute="bottom" id="Ocg-WP-1NT"/> + <constraint firstAttribute="bottom" secondItem="8Pc-Ig-MnB" secondAttribute="bottom" id="PK5-ZC-gOv"/> + <constraint firstItem="8Pc-Ig-MnB" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" id="hXg-t7-TtH"/> + </constraints> + <freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/> + <connections> + <outlet property="cons_viewHeight" destination="eEu-f9-Ced" id="DiD-Kz-VSh"/> + </connections> + <point key="canvasLocation" x="72" y="21"/> + </view> + </objects> + <resources> + <image name="btn_local" width="14" height="14"/> + <namedColor name="FE6E0D"> + <color red="0.99599999189376831" green="0.4309999942779541" blue="0.050999999046325684" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> + </namedColor> + <systemColor name="systemBackgroundColor"> + <color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/> + </systemColor> + </resources> +</document> diff --git a/WanPai/Root/Other/TCell/StudentInfo_2_TCell.swift b/WanPai/Root/Other/TCell/StudentInfo_2_TCell.swift new file mode 100644 index 0000000..179236b --- /dev/null +++ b/WanPai/Root/Other/TCell/StudentInfo_2_TCell.swift @@ -0,0 +1,35 @@ +// +// StudentInfo_2_TCell.swift +// WanPai +// +// Created by 杨锴 on 2023/6/14. +// + +import UIKit + +class StudentInfo_2_TCell: UITableViewCell { + + @IBOutlet weak var img_radio: UIImageView! + @IBOutlet weak var btn_delete: UIButton! + @IBOutlet weak var btn_edit: UIButton! + + + var isChoose:Bool!{ + didSet{ + img_radio.isHidden = !isChoose + btn_delete.isHidden = isChoose + btn_edit.isHidden = isChoose + } + } + + override func awakeFromNib() { + super.awakeFromNib() + selectionStyle = .none + } + + @IBAction func editAction(_ sender: UIButton) { + StudentUpdateInfoView.show() + } + + +} diff --git a/WanPai/Root/Other/TCell/StudentInfo_2_TCell.xib b/WanPai/Root/Other/TCell/StudentInfo_2_TCell.xib new file mode 100644 index 0000000..501b70f --- /dev/null +++ b/WanPai/Root/Other/TCell/StudentInfo_2_TCell.xib @@ -0,0 +1,161 @@ +<?xml version="1.0" encoding="UTF-8"?> +<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="21507" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES"> + <device id="retina6_12" orientation="portrait" appearance="light"/> + <dependencies> + <deployment identifier="iOS"/> + <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="21505"/> + <capability name="Safe area layout guides" minToolsVersion="9.0"/> + <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/> + </dependencies> + <objects> + <placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/> + <placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/> + <tableViewCell contentMode="scaleToFill" selectionStyle="default" indentationWidth="10" reuseIdentifier="_StudentInfo_2_TCell" rowHeight="104" id="KGk-i7-Jjw" customClass="StudentInfo_2_TCell" customModule="WanPai" customModuleProvider="target"> + <rect key="frame" x="0.0" y="0.0" width="372" height="104"/> + <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/> + <tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" ambiguous="YES" tableViewCell="KGk-i7-Jjw" id="H2p-sc-9uM"> + <rect key="frame" x="0.0" y="0.0" width="372" height="104"/> + <autoresizingMask key="autoresizingMask"/> + <subviews> + <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="6Lm-Eu-daG"> + <rect key="frame" x="14" y="7" width="344" height="76"/> + <subviews> + <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="姓名:" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="sgg-OU-d22"> + <rect key="frame" x="10" y="13" width="43" height="20"/> + <constraints> + <constraint firstAttribute="height" constant="20" id="D2U-yn-2NR"/> + </constraints> + <fontDescription key="fontDescription" type="system" pointSize="14"/> + <color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="0.59999999999999998" colorSpace="custom" customColorSpace="sRGB"/> + <nil key="highlightedColor"/> + </label> + <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="--" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="iDi-s9-qiA"> + <rect key="frame" x="53" y="14.666666666666668" width="13.333333333333329" height="17"/> + <fontDescription key="fontDescription" type="system" weight="medium" pointSize="14"/> + <nil key="textColor"/> + <nil key="highlightedColor"/> + </label> + <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="身份证号:" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="gOu-3c-tKG"> + <rect key="frame" x="114" y="13" width="71.666666666666686" height="20"/> + <constraints> + <constraint firstAttribute="height" constant="20" id="RGA-qN-hRc"/> + </constraints> + <fontDescription key="fontDescription" type="system" pointSize="14"/> + <color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="0.59999999999999998" colorSpace="custom" customColorSpace="sRGB"/> + <nil key="highlightedColor"/> + </label> + <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="--" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="YtF-LX-bzG"> + <rect key="frame" x="185.66666666666666" y="14.666666666666668" width="13.333333333333343" height="17"/> + <fontDescription key="fontDescription" type="system" weight="medium" pointSize="14"/> + <nil key="textColor"/> + <nil key="highlightedColor"/> + </label> + <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="年龄:" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="ea1-1b-JMG"> + <rect key="frame" x="10" y="44" width="43" height="20"/> + <constraints> + <constraint firstAttribute="height" constant="20" id="hoB-4H-Nnq"/> + </constraints> + <fontDescription key="fontDescription" type="system" pointSize="14"/> + <color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="0.59999999999999998" colorSpace="custom" customColorSpace="sRGB"/> + <nil key="highlightedColor"/> + </label> + <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="--" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="U15-qH-Kc3"> + <rect key="frame" x="53" y="45.666666666666664" width="13.333333333333329" height="17"/> + <fontDescription key="fontDescription" type="system" weight="medium" pointSize="14"/> + <nil key="textColor"/> + <nil key="highlightedColor"/> + </label> + <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="uRT-PP-Jry"> + <rect key="frame" x="320" y="12" width="16" height="22"/> + <inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/> + <state key="normal" image="btn_delete"/> + </button> + <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="联系电话:" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="yyi-BO-9d9"> + <rect key="frame" x="114" y="44" width="71.666666666666686" height="20"/> + <constraints> + <constraint firstAttribute="height" constant="20" id="Akq-Es-sfF"/> + </constraints> + <fontDescription key="fontDescription" type="system" pointSize="14"/> + <color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="0.59999999999999998" colorSpace="custom" customColorSpace="sRGB"/> + <nil key="highlightedColor"/> + </label> + <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="--" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="eQZ-Ha-dGW"> + <rect key="frame" x="185.66666666666666" y="45.666666666666664" width="13.333333333333343" height="17"/> + <fontDescription key="fontDescription" type="system" weight="medium" pointSize="14"/> + <nil key="textColor"/> + <nil key="highlightedColor"/> + </label> + <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="FQi-mi-aCF"> + <rect key="frame" x="319.66666666666669" y="53" width="17" height="22"/> + <inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/> + <state key="normal" image="btn_edit"/> + <connections> + <action selector="editAction:" destination="KGk-i7-Jjw" eventType="touchUpInside" id="fnp-se-Lcg"/> + </connections> + </button> + <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="btn_select_u" translatesAutoresizingMaskIntoConstraints="NO" id="lvC-v3-2oB"> + <rect key="frame" x="317" y="13" width="20" height="20"/> + </imageView> + </subviews> + <color key="backgroundColor" red="1" green="0.90588235289999997" blue="0.80000000000000004" alpha="0.080000000000000002" colorSpace="custom" customColorSpace="sRGB"/> + <constraints> + <constraint firstItem="FQi-mi-aCF" firstAttribute="top" secondItem="uRT-PP-Jry" secondAttribute="bottom" constant="19" id="1FK-NS-dpb"/> + <constraint firstItem="uRT-PP-Jry" firstAttribute="centerY" secondItem="sgg-OU-d22" secondAttribute="centerY" id="4Jr-EZ-QqL"/> + <constraint firstItem="eQZ-Ha-dGW" firstAttribute="leading" secondItem="yyi-BO-9d9" secondAttribute="trailing" id="6na-ib-giW"/> + <constraint firstItem="ea1-1b-JMG" firstAttribute="top" secondItem="sgg-OU-d22" secondAttribute="bottom" constant="11" id="6o3-4f-K5H"/> + <constraint firstItem="YtF-LX-bzG" firstAttribute="centerY" secondItem="gOu-3c-tKG" secondAttribute="centerY" id="Alx-c5-GYf"/> + <constraint firstAttribute="height" constant="76" id="BY0-d9-3cK"/> + <constraint firstAttribute="trailing" secondItem="lvC-v3-2oB" secondAttribute="trailing" constant="7" id="FhT-yd-etx"/> + <constraint firstItem="yyi-BO-9d9" firstAttribute="centerY" secondItem="ea1-1b-JMG" secondAttribute="centerY" id="G4R-IV-a20"/> + <constraint firstItem="lvC-v3-2oB" firstAttribute="centerY" secondItem="sgg-OU-d22" secondAttribute="centerY" id="J2J-aa-QGY"/> + <constraint firstItem="sgg-OU-d22" firstAttribute="leading" secondItem="6Lm-Eu-daG" secondAttribute="leading" constant="10" id="JfP-um-dXW"/> + <constraint firstItem="FQi-mi-aCF" firstAttribute="centerX" secondItem="uRT-PP-Jry" secondAttribute="centerX" id="Kj0-hv-fwz"/> + <constraint firstItem="eQZ-Ha-dGW" firstAttribute="centerY" secondItem="yyi-BO-9d9" secondAttribute="centerY" id="X4C-K2-buQ"/> + <constraint firstItem="YtF-LX-bzG" firstAttribute="leading" secondItem="gOu-3c-tKG" secondAttribute="trailing" id="XoR-Jo-ZvL"/> + <constraint firstItem="ea1-1b-JMG" firstAttribute="leading" secondItem="6Lm-Eu-daG" secondAttribute="leading" constant="10" id="ceW-bS-RsW"/> + <constraint firstAttribute="trailing" secondItem="uRT-PP-Jry" secondAttribute="trailing" constant="8" id="h4v-AJ-BIQ"/> + <constraint firstItem="iDi-s9-qiA" firstAttribute="leading" secondItem="sgg-OU-d22" secondAttribute="trailing" id="hsD-XL-Nhu"/> + <constraint firstItem="U15-qH-Kc3" firstAttribute="centerY" secondItem="ea1-1b-JMG" secondAttribute="centerY" id="i0k-KJ-lff"/> + <constraint firstItem="yyi-BO-9d9" firstAttribute="leading" secondItem="gOu-3c-tKG" secondAttribute="leading" id="jDa-jF-wS8"/> + <constraint firstItem="gOu-3c-tKG" firstAttribute="centerY" secondItem="sgg-OU-d22" secondAttribute="centerY" id="jcw-An-Yej"/> + <constraint firstItem="gOu-3c-tKG" firstAttribute="leading" secondItem="6Lm-Eu-daG" secondAttribute="leading" constant="114" id="lDM-aL-Eea"/> + <constraint firstItem="sgg-OU-d22" firstAttribute="top" secondItem="6Lm-Eu-daG" secondAttribute="top" constant="13" id="nmT-EF-UXS"/> + <constraint firstItem="U15-qH-Kc3" firstAttribute="leading" secondItem="ea1-1b-JMG" secondAttribute="trailing" id="oae-cJ-fcE"/> + <constraint firstItem="iDi-s9-qiA" firstAttribute="centerY" secondItem="sgg-OU-d22" secondAttribute="centerY" id="sex-Q8-Jzw"/> + </constraints> + <userDefinedRuntimeAttributes> + <userDefinedRuntimeAttribute type="color" keyPath="borderColor"> + <color key="value" red="0.99215686270000003" green="0.47450980390000003" blue="0.0078431372550000003" alpha="0.28000000000000003" colorSpace="custom" customColorSpace="sRGB"/> + </userDefinedRuntimeAttribute> + <userDefinedRuntimeAttribute type="number" keyPath="borderWidth"> + <real key="value" value="1"/> + </userDefinedRuntimeAttribute> + <userDefinedRuntimeAttribute type="boolean" keyPath="ld_maskToBoundsXIB" value="YES"/> + <userDefinedRuntimeAttribute type="number" keyPath="ld_cornerRadiusXIB"> + <real key="value" value="4"/> + </userDefinedRuntimeAttribute> + </userDefinedRuntimeAttributes> + </view> + </subviews> + <constraints> + <constraint firstItem="6Lm-Eu-daG" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="14" id="Cn2-ev-SlR"/> + <constraint firstAttribute="trailing" secondItem="6Lm-Eu-daG" secondAttribute="trailing" constant="14" id="bD7-wG-jJ2"/> + <constraint firstItem="6Lm-Eu-daG" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="top" constant="7" id="boh-jm-Mjo"/> + <constraint firstAttribute="bottom" secondItem="6Lm-Eu-daG" secondAttribute="bottom" constant="7" id="o5a-ww-rT1"/> + </constraints> + </tableViewCellContentView> + <viewLayoutGuide key="safeArea" id="njF-e1-oar"/> + <connections> + <outlet property="btn_delete" destination="uRT-PP-Jry" id="oVl-2n-p1K"/> + <outlet property="btn_edit" destination="FQi-mi-aCF" id="Utm-lZ-OLO"/> + <outlet property="img_radio" destination="lvC-v3-2oB" id="8h7-kF-JB2"/> + </connections> + <point key="canvasLocation" x="79.389312977099237" y="41.549295774647888"/> + </tableViewCell> + </objects> + <resources> + <image name="btn_delete" width="16" height="18"/> + <image name="btn_edit" width="17" height="18"/> + <image name="btn_select_u" width="20" height="20"/> + </resources> +</document> diff --git a/WanPai/Root/Other/VC/PaymentResultVC.swift b/WanPai/Root/Other/VC/PaymentResultVC.swift index d391d85..19cf0d6 100644 --- a/WanPai/Root/Other/VC/PaymentResultVC.swift +++ b/WanPai/Root/Other/VC/PaymentResultVC.swift @@ -10,10 +10,14 @@ class PaymentResultVC: BaseVC { - enum PaymentResult{case success,fail} + enum PaymentResult{ + case success + case fail + } enum PaymentObjType{ case member //会员 - case apply //报名 + case courseApply //课程报名 + case activityApply //活动报名 } @@ -40,7 +44,7 @@ override func viewDidLoad() { super.viewDidLoad() title = "成为会员" - + switch objType{ case .member: @@ -57,7 +61,7 @@ label_content.text = "支付成功,恭喜您成为玩湃会员!并获得优惠券!" case .none:break } - case .apply: + case .courseApply: btn_backHome.isHidden = true collectionView.isHidden = true switch result { @@ -73,6 +77,24 @@ label_content.text = "报名成功,请及时预约课程上课!" case .none:break } + + case .activityApply: + btn_backHome.isHidden = true + collectionView.isHidden = true + switch result { + case .fail: + btn_again.setTitle("再次支付", for: .normal) + btn_back.setTitle("返回", for: .normal) + img_paymentState.image = UIImage(named: "icon_fail") + label_content.text = "报名失败,这是失败原因!" + case .success: + btn_again.setTitle("查看报名", for: .normal) + btn_back.setTitle("返回首页", for: .normal) + img_paymentState.image = UIImage(named: "icon_success") + label_content.text = "报名成功,请注意赛事开始时间!" + case .none:break + } + case .none:break } diff --git a/WanPai/Root/Other/View/StudentChooseView.swift b/WanPai/Root/Other/View/StudentChooseView.swift index 484aa52..62751ff 100644 --- a/WanPai/Root/Other/View/StudentChooseView.swift +++ b/WanPai/Root/Other/View/StudentChooseView.swift @@ -18,6 +18,7 @@ private var clickClouse:(()->Void)! private var needAddClouse:(()->Void)! + private var itemType:ItemType! override func awakeFromNib() { super.awakeFromNib() @@ -27,14 +28,20 @@ tableView.delegate = self tableView.dataSource = self tableView.separatorStyle = .none - tableView.register(UINib(nibName: "StudentInfoTCell", bundle: nil), forCellReuseIdentifier: "_StudentInfoTCell") alpha = 0 layoutIfNeeded() } - static func show(clickClouse:@escaping ()->Void,needAddClouse:@escaping ()->Void){ + static func show(itemType:ItemType,clickClouse:@escaping ()->Void,needAddClouse:@escaping ()->Void){ let studentChooseView = StudentChooseView.jq_loadNibView() + if itemType == .course{ + studentChooseView.tableView.register(UINib(nibName: "StudentInfoTCell", bundle: nil), forCellReuseIdentifier: "_StudentInfoTCell") + }else if itemType == .activity{ + studentChooseView.tableView.register(UINib(nibName: "StudentInfo_2_TCell", bundle: nil), forCellReuseIdentifier: "_StudentInfo_2_TCell") + } + studentChooseView.frame = screnDelegate?.window?.frame ?? .zero + studentChooseView.itemType = itemType studentChooseView.clickClouse = clickClouse studentChooseView.needAddClouse = needAddClouse screnDelegate?.window?.addSubview(studentChooseView) @@ -44,12 +51,19 @@ UIView.animate(withDuration: 0.4) { studentChooseView.alpha = 1 studentChooseView.layoutIfNeeded() + studentChooseView.tableView.reloadData() } } @IBAction func addNewStudentAction(_ sender: QMUIButton) { - needAddClouse() + self.cons_bottom.constant = -(JQ_ScreenW * 1.1) + UIView.animate(withDuration: 0.4) { + self.alpha = 0 + } completion: { _ in + self.removeFromSuperview() + self.needAddClouse!() + } } @@ -68,7 +82,7 @@ self.alpha = 0 } completion: { _ in self.removeFromSuperview() - self.clickClouse() + self.clickClouse!() } } } @@ -83,8 +97,17 @@ } func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { - let cell = tableView.dequeueReusableCell(withIdentifier: "_StudentInfoTCell") as! StudentInfoTCell - return cell + + if itemType == .course{ + let cell = tableView.dequeueReusableCell(withIdentifier: "_StudentInfoTCell") as! StudentInfoTCell + return cell + }else if itemType == .activity{ + let cell = tableView.dequeueReusableCell(withIdentifier: "_StudentInfo_2_TCell") as! StudentInfo_2_TCell + return cell + } + + + return UITableViewCell() } } -- Gitblit v1.7.1