Jelajahi Sumber

注销相关

Kyle Smart 2 bulan lalu
induk
melakukan
1b285ae5d2

+ 10 - 0
KulexiuForStudent/KulexiuForStudent.xcodeproj/project.pbxproj

@@ -574,6 +574,8 @@
 		BC7663172827E49900C91A1D /* NotiferMessageCell.m in Sources */ = {isa = PBXBuildFile; fileRef = BC7663122827E49800C91A1D /* NotiferMessageCell.m */; };
 		BC7663182827E49900C91A1D /* NotiferMessageCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = BC7663132827E49900C91A1D /* NotiferMessageCell.xib */; };
 		BC7DECA02C2D571A00154524 /* AudioEnginePlayer.m in Sources */ = {isa = PBXBuildFile; fileRef = BC7DEC9F2C2D571A00154524 /* AudioEnginePlayer.m */; };
+		BC7F7B762C92DD9500265AE1 /* KSDeleteAccountTipsAlert.m in Sources */ = {isa = PBXBuildFile; fileRef = BC7F7B742C92DD9500265AE1 /* KSDeleteAccountTipsAlert.m */; };
+		BC7F7B772C92DD9500265AE1 /* KSDeleteAccountTipsAlert.xib in Resources */ = {isa = PBXBuildFile; fileRef = BC7F7B752C92DD9500265AE1 /* KSDeleteAccountTipsAlert.xib */; };
 		BC7FF6A12BEB71610092E0DE /* client.p12 in Resources */ = {isa = PBXBuildFile; fileRef = BC3BF62F2B9EAFC800831494 /* client.p12 */; };
 		BC802D8528B872AB0079E350 /* KSLiveAlertView.m in Sources */ = {isa = PBXBuildFile; fileRef = BC802D8428B872AB0079E350 /* KSLiveAlertView.m */; };
 		BC802D8728B872B40079E350 /* KSLiveAlertView.xib in Resources */ = {isa = PBXBuildFile; fileRef = BC802D8628B872B40079E350 /* KSLiveAlertView.xib */; };
@@ -1917,6 +1919,9 @@
 		BC7663142827E49900C91A1D /* NotiferHeadView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = NotiferHeadView.h; sourceTree = "<group>"; };
 		BC7DEC9E2C2D571A00154524 /* AudioEnginePlayer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AudioEnginePlayer.h; sourceTree = "<group>"; };
 		BC7DEC9F2C2D571A00154524 /* AudioEnginePlayer.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AudioEnginePlayer.m; sourceTree = "<group>"; };
+		BC7F7B732C92DD9500265AE1 /* KSDeleteAccountTipsAlert.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = KSDeleteAccountTipsAlert.h; sourceTree = "<group>"; };
+		BC7F7B742C92DD9500265AE1 /* KSDeleteAccountTipsAlert.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = KSDeleteAccountTipsAlert.m; sourceTree = "<group>"; };
+		BC7F7B752C92DD9500265AE1 /* KSDeleteAccountTipsAlert.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = KSDeleteAccountTipsAlert.xib; sourceTree = "<group>"; };
 		BC802D8328B872AB0079E350 /* KSLiveAlertView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = KSLiveAlertView.h; sourceTree = "<group>"; };
 		BC802D8428B872AB0079E350 /* KSLiveAlertView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = KSLiveAlertView.m; sourceTree = "<group>"; };
 		BC802D8628B872B40079E350 /* KSLiveAlertView.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = KSLiveAlertView.xib; sourceTree = "<group>"; };
@@ -4754,6 +4759,9 @@
 				BC1E28472C77151A0063E0A1 /* KSDeleteFailedAlertView.h */,
 				BC1E28482C77151A0063E0A1 /* KSDeleteFailedAlertView.m */,
 				BC1E284A2C7715210063E0A1 /* KSDeleteFailedAlertView.xib */,
+				BC7F7B732C92DD9500265AE1 /* KSDeleteAccountTipsAlert.h */,
+				BC7F7B742C92DD9500265AE1 /* KSDeleteAccountTipsAlert.m */,
+				BC7F7B752C92DD9500265AE1 /* KSDeleteAccountTipsAlert.xib */,
 			);
 			path = View;
 			sourceTree = "<group>";
@@ -6260,6 +6268,7 @@
 				BC71D24D288804CD0010F14B /* img_12.png in Resources */,
 				BC119275280FB01100A716F7 /* AccompanyHomeworkCell.xib in Resources */,
 				BC71D1022881A2420010F14B /* WeiboSDK.bundle in Resources */,
+				BC7F7B772C92DD9500265AE1 /* KSDeleteAccountTipsAlert.xib in Resources */,
 				BC106C342A9338A7000759A9 /* TXLiveLoadingView.xib in Resources */,
 				BC71D2872888083B0010F14B /* tabbar3.json in Resources */,
 				BCC583C028A9EC6400BAB4CF /* cloud_animation_15.png in Resources */,
@@ -6901,6 +6910,7 @@
 				BC106C242A933869000759A9 /* TXTestGenerateUserSig.m in Sources */,
 				2723B61F27F157D500E0B90B /* GroupNoticeModel.m in Sources */,
 				BC83A8362AD27C470033D48B /* TenantNotiferCenterController.m in Sources */,
+				BC7F7B762C92DD9500265AE1 /* KSDeleteAccountTipsAlert.m in Sources */,
 				275FA1E627E7351900CFEA2E /* KSUpdateAlert.m in Sources */,
 				BCB5B2D52ABB1E13005BF25D /* KSEmptyStatusView.m in Sources */,
 				BCC0F6ED2A8CE4AF00C4EFA4 /* ZoomControl.m in Sources */,

+ 32 - 17
KulexiuForStudent/KulexiuForStudent/Module/Mine/Setting/DeleteAccount/Controller/AccountDeleteViewController.m

@@ -15,6 +15,8 @@
 #import "UserInfoManager.h"
 #import "GroupQuitAlert.h"
 #import "KSDeleteFailedAlertView.h"
+#import "KSDeleteAccountTipsAlert.h"
+#import "UserInfoManager.h"
 
 @interface AccountDeleteViewController ()
 {
@@ -27,6 +29,8 @@
 
 @property (nonatomic, strong) KSDeleteFailedAlertView *failAlert;
 
+@property (nonatomic, strong) KSDeleteAccountTipsAlert *mutiAccountAlert;
+
 @end
 
 @implementation AccountDeleteViewController
@@ -72,14 +76,26 @@
         [self veriCheckWithParm:parm];
     }
     else if (action == DELETEACCOUNT_SURE) {
+        
         MJWeakSelf;
-        self.alertView = [GroupQuitAlert shareInstance];
-        [self.alertView configTitle:@"提示" desc:@"注销账号后您所有的留存信息将被清空且无法恢复,请谨慎操作" callback:^(BOOL isSure) {
-            if (isSure) {
-                [weakSelf deleteAccount:[parm ks_stringValueForKey:@"code"]];
-            }
-        }];
-        [self.alertView showAlert];
+        if ([USER_MANAGER.userInfo.userType containsString:@"TEACHER"]) {
+            self.mutiAccountAlert = [KSDeleteAccountTipsAlert shareInstance];
+            [self.mutiAccountAlert tipsActionCallback:^(BOOL isSure) {
+                if (isSure) {
+                    [weakSelf deleteAccount:[parm ks_stringValueForKey:@"code"]];
+                }
+            }];
+            [self.mutiAccountAlert showAlert];
+        }
+        else {
+            self.alertView = [GroupQuitAlert shareInstance];
+            [self.alertView configTitle:@"提示" desc:@"注销账号后您所有的留存信息将被清空且无法恢复,请谨慎操作" callback:^(BOOL isSure) {
+                if (isSure) {
+                    [weakSelf deleteAccount:[parm ks_stringValueForKey:@"code"]];
+                }
+            }];
+            [self.alertView showAlert];
+        }
     }
 }
 
@@ -144,14 +160,14 @@
         }
     } faliure:^(NSError * _Nonnull error) {
         [LOADING_MANAGER removeHUD];
-
     }];
 }
 
 
 - (void)codeButtonCountDown {
     _bodyView.codeButton.userInteractionEnabled = NO;
-    [_bodyView.codeButton setTitleColor:HexRGB(0xe5e5e5) forState:UIControlStateNormal];
+    UIColor *titleUnableColor = [UserDefault(TENANT_ID) integerValue] > 0 ? HexRGBAlpha(0xFE2451, 0.4) : HexRGB(0xA4E3D7);
+    [_bodyView.codeButton setTitleColor:titleUnableColor forState:UIControlStateNormal];
     __weak typeof(self) weakSelf = self;
     _time = [NSTimer scheduledTimerWithTimeInterval:1 target:weakSelf selector:@selector(buttonChangeAction) userInfo:nil repeats:YES];
     [[NSRunLoop mainRunLoop] addTimer:_time forMode:NSRunLoopCommonModes];
@@ -159,26 +175,25 @@
 }
 
 - (void)clearButtonState {
+    [self resetButtonStatus];
+    _count = 0;
+}
+
+- (void)resetButtonStatus {
     [_time invalidate];
     _time = nil;
-    _count = 0;
     [_bodyView.codeButton setTitle:@"获取验证码" forState:UIControlStateNormal];
     [_bodyView.codeButton setTitleColor:CLIENT_THEMECOLOR forState:UIControlStateNormal];
     _bodyView.codeButton.userInteractionEnabled = YES;
 }
-
 #pragma mark  ---- 验证码按钮状态
 - (void)buttonChangeAction {
     _bodyView.codeButton.userInteractionEnabled = NO;
-    NSString *title = [NSString stringWithFormat:@"%ds",_count];
+    NSString *title = [NSString stringWithFormat:@"%ds后重试",_count];
     [_bodyView.codeButton setTitle:title forState:UIControlStateNormal];
     _count--;
     if(_count == -1){
-        [_time invalidate];
-        _time = nil;
-        [_bodyView.codeButton setTitle:@"获取验证码" forState:UIControlStateNormal];
-        [_bodyView.codeButton setTitleColor:CLIENT_THEMECOLOR forState:UIControlStateNormal];
-        _bodyView.codeButton.userInteractionEnabled = YES;
+        [self resetButtonStatus];
     }
 }
 

+ 6 - 1
KulexiuForStudent/KulexiuForStudent/Module/Mine/Setting/DeleteAccount/View/DeleteAccountBodyView.m

@@ -43,7 +43,6 @@
 }
 
 - (void)configDefault {
-    self.tipsLabel.textColor = CLIENT_THEMECOLOR;
     for (UIView *subView in self.dotsView) {
         subView.backgroundColor = CLIENT_THEMECOLOR;
     }
@@ -108,12 +107,18 @@
 - (void)setIsTenant:(BOOL)isTenant {
     _isTenant = isTenant;
     NSString *tipsImageName = @"";
+    UIColor *tipsColor = CLIENT_THEMECOLOR;
     if (isTenant) {
         tipsImageName = @"warning_image";
+        tipsColor = HexRGB(0xFE2451);
     }
     else {
         tipsImageName = @"warning_image_platform";
+        tipsColor = HexRGB(0x1BB99B);
+
     }
     [self.warnImage setImage:[UIImage imageNamed:tipsImageName]];
+    self.tipsLabel.textColor = tipsColor;
 }
+
 @end

+ 57 - 232
KulexiuForStudent/KulexiuForStudent/Module/Mine/Setting/DeleteAccount/View/DeleteAccountBodyView.xib

@@ -21,10 +21,10 @@
                             <rect key="frame" x="0.0" y="0.0" width="388" height="767"/>
                             <subviews>
                                 <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="TEx-cD-ZR6">
-                                    <rect key="frame" x="0.0" y="0.0" width="388" height="505.5"/>
+                                    <rect key="frame" x="0.0" y="0.0" width="388" height="447.5"/>
                                     <subviews>
                                         <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="1nG-sZ-TOw">
-                                            <rect key="frame" x="0.0" y="0.0" width="388" height="505.5"/>
+                                            <rect key="frame" x="0.0" y="0.0" width="388" height="447.5"/>
                                             <subviews>
                                                 <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="将***********所绑定的账号注销" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="KTf-hd-DqL">
                                                     <rect key="frame" x="66.5" y="98" width="255" height="25"/>
@@ -36,27 +36,12 @@
                                                     <nil key="highlightedColor"/>
                                                 </label>
                                                 <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="5vd-tZ-CWT">
-                                                    <rect key="frame" x="0.0" y="139" width="388" height="366.5"/>
+                                                    <rect key="frame" x="0.0" y="139" width="388" height="308.5"/>
                                                     <subviews>
                                                         <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" usesAttributedText="YES" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="c7e-F8-dgF">
-                                                            <rect key="frame" x="20" y="0.0" width="348" height="58.5"/>
+                                                            <rect key="frame" x="20" y="0.0" width="348" height="37.5"/>
                                                             <attributedString key="attributedText">
-                                                                <fragment content="注销账号后,此账号将无法登录和使用酷乐秀相关产品。账号">
-                                                                    <attributes>
-                                                                        <color key="NSColor" red="0.46666666666666667" green="0.46666666666666667" blue="0.46666666666666667" alpha="1" colorSpace="calibratedRGB"/>
-                                                                        <font key="NSFont" metaFont="system" size="14"/>
-                                                                        <font key="NSOriginalFont" metaFont="system" size="14"/>
-                                                                        <paragraphStyle key="NSParagraphStyle" alignment="natural" lineBreakMode="wordWrapping" baseWritingDirection="natural" lineSpacing="4" tighteningFactorForTruncation="0.0"/>
-                                                                    </attributes>
-                                                                </fragment>
-                                                                <fragment content="—">
-                                                                    <attributes>
-                                                                        <color key="NSColor" red="0.46666666666666667" green="0.46666666666666667" blue="0.46666666666666667" alpha="1" colorSpace="calibratedRGB"/>
-                                                                        <font key="NSFont" metaFont="system" size="14"/>
-                                                                        <paragraphStyle key="NSParagraphStyle" alignment="natural" lineBreakMode="wordWrapping" baseWritingDirection="natural" lineSpacing="4" tighteningFactorForTruncation="0.0"/>
-                                                                    </attributes>
-                                                                </fragment>
-                                                                <fragment content="旦注销完成将无法恢复,请您在注销前慎重考虑。">
+                                                                <fragment content="注销账号后,您将无法登录和使用酷乐秀相关产品,且账号无法恢复,请慎重考虑。">
                                                                     <attributes>
                                                                         <color key="NSColor" red="0.46666666666666667" green="0.46666666666666667" blue="0.46666666666666667" alpha="1" colorSpace="calibratedRGB"/>
                                                                         <font key="NSFont" metaFont="system" size="14"/>
@@ -68,123 +53,47 @@
                                                             <nil key="highlightedColor"/>
                                                         </label>
                                                         <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" usesAttributedText="YES" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="6u6-Ma-2KR">
-                                                            <rect key="frame" x="34" y="100.5" width="334" height="43.5"/>
+                                                            <rect key="frame" x="34" y="79.5" width="334" height="44"/>
                                                             <attributedString key="attributedText">
-                                                                <fragment content="1">
-                                                                    <attributes>
-                                                                        <color key="NSColor" red="0.074509803921568626" green="0.078431372549019607" blue="0.082352941176470587" alpha="1" colorSpace="calibratedRGB"/>
-                                                                        <font key="NSFont" size="14" name="PingFangSC-Semibold"/>
-                                                                        <paragraphStyle key="NSParagraphStyle" alignment="natural" lineBreakMode="wordWrapping" baseWritingDirection="natural" lineSpacing="4" tighteningFactorForTruncation="0.0"/>
-                                                                    </attributes>
-                                                                </fragment>
-                                                                <fragment content="、您将无法再以此账号登录">
-                                                                    <attributes>
-                                                                        <color key="NSColor" red="0.074509803921568626" green="0.078431372549019607" blue="0.082352941176470587" alpha="1" colorSpace="calibratedRGB"/>
-                                                                        <font key="NSFont" size="14" name="PingFangSC-Semibold"/>
-                                                                        <font key="NSOriginalFont" metaFont="system" size="14"/>
-                                                                        <paragraphStyle key="NSParagraphStyle" alignment="natural" lineBreakMode="wordWrapping" baseWritingDirection="natural" lineSpacing="4" tighteningFactorForTruncation="0.0"/>
-                                                                    </attributes>
-                                                                </fragment>
-                                                                <fragment content="/">
-                                                                    <attributes>
-                                                                        <color key="NSColor" red="0.074509803921568626" green="0.078431372549019607" blue="0.082352941176470587" alpha="1" colorSpace="calibratedRGB"/>
-                                                                        <font key="NSFont" size="14" name="PingFangSC-Semibold"/>
-                                                                        <paragraphStyle key="NSParagraphStyle" alignment="natural" lineBreakMode="wordWrapping" baseWritingDirection="natural" lineSpacing="4" tighteningFactorForTruncation="0.0"/>
-                                                                    </attributes>
-                                                                </fragment>
-                                                                <fragment content="使用酷乐秀">
-                                                                    <attributes>
-                                                                        <color key="NSColor" red="0.074509803921568626" green="0.078431372549019607" blue="0.082352941176470587" alpha="1" colorSpace="calibratedRGB"/>
-                                                                        <font key="NSFont" size="14" name="PingFangSC-Semibold"/>
-                                                                        <font key="NSOriginalFont" metaFont="system" size="14"/>
-                                                                        <paragraphStyle key="NSParagraphStyle" alignment="natural" lineBreakMode="wordWrapping" baseWritingDirection="natural" lineSpacing="4" tighteningFactorForTruncation="0.0"/>
-                                                                    </attributes>
-                                                                </fragment>
-                                                                <fragment content="APP">
+                                                                <fragment content="1、若已注册酷乐秀/酷乐秀学院,注销后将无法登录、使用酷乐秀/酷乐秀学院APP服务。">
                                                                     <attributes>
-                                                                        <color key="NSColor" red="0.074509803921568626" green="0.078431372549019607" blue="0.082352941176470587" alpha="1" colorSpace="calibratedRGB"/>
+                                                                        <color key="NSColor" red="0.074509803921568626" green="0.078431372549019607" blue="0.082352941176470587" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
                                                                         <font key="NSFont" size="14" name="PingFangSC-Semibold"/>
-                                                                        <paragraphStyle key="NSParagraphStyle" alignment="natural" lineBreakMode="wordWrapping" baseWritingDirection="natural" lineSpacing="4" tighteningFactorForTruncation="0.0"/>
-                                                                    </attributes>
-                                                                </fragment>
-                                                                <fragment content="的相关服务。">
-                                                                    <attributes>
-                                                                        <color key="NSColor" red="0.074509803921568626" green="0.078431372549019607" blue="0.082352941176470587" alpha="1" colorSpace="calibratedRGB"/>
-                                                                        <font key="NSFont" size="14" name="PingFangSC-Semibold"/>
-                                                                        <font key="NSOriginalFont" metaFont="system" size="14"/>
-                                                                        <paragraphStyle key="NSParagraphStyle" alignment="natural" lineBreakMode="wordWrapping" baseWritingDirection="natural" lineSpacing="4" tighteningFactorForTruncation="0.0"/>
+                                                                        <paragraphStyle key="NSParagraphStyle" alignment="natural" lineBreakMode="wordWrapping" baseWritingDirection="natural" minimumLineHeight="22" maximumLineHeight="22" tighteningFactorForTruncation="0.0"/>
                                                                     </attributes>
                                                                 </fragment>
                                                             </attributedString>
                                                             <nil key="highlightedColor"/>
                                                         </label>
                                                         <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" usesAttributedText="YES" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="plu-48-YfS">
-                                                            <rect key="frame" x="34" y="164" width="334" height="43.5"/>
+                                                            <rect key="frame" x="34" y="143.5" width="334" height="44"/>
                                                             <attributedString key="attributedText">
-                                                                <fragment content="2">
-                                                                    <attributes>
-                                                                        <color key="NSColor" red="0.074509803921568626" green="0.078431372549019607" blue="0.082352941176470587" alpha="1" colorSpace="calibratedRGB"/>
-                                                                        <font key="NSFont" size="14" name="PingFangSC-Semibold"/>
-                                                                        <paragraphStyle key="NSParagraphStyle" alignment="natural" lineBreakMode="wordWrapping" baseWritingDirection="natural" lineSpacing="4" tighteningFactorForTruncation="0.0"/>
-                                                                    </attributes>
-                                                                </fragment>
-                                                                <fragment content="、注销后,您在相关产品">
-                                                                    <attributes>
-                                                                        <color key="NSColor" red="0.074509803921568626" green="0.078431372549019607" blue="0.082352941176470587" alpha="1" colorSpace="calibratedRGB"/>
-                                                                        <font key="NSFont" size="14" name="PingFangSC-Semibold"/>
-                                                                        <font key="NSOriginalFont" metaFont="system" size="14"/>
-                                                                        <paragraphStyle key="NSParagraphStyle" alignment="natural" lineBreakMode="wordWrapping" baseWritingDirection="natural" lineSpacing="4" tighteningFactorForTruncation="0.0"/>
-                                                                    </attributes>
-                                                                </fragment>
-                                                                <fragment content="/">
-                                                                    <attributes>
-                                                                        <color key="NSColor" red="0.074509803921568626" green="0.078431372549019607" blue="0.082352941176470587" alpha="1" colorSpace="calibratedRGB"/>
-                                                                        <font key="NSFont" size="14" name="PingFangSC-Semibold"/>
-                                                                        <paragraphStyle key="NSParagraphStyle" alignment="natural" lineBreakMode="wordWrapping" baseWritingDirection="natural" lineSpacing="4" tighteningFactorForTruncation="0.0"/>
-                                                                    </attributes>
-                                                                </fragment>
-                                                                <fragment content="服务留存的信息将被清空且无法找回,具体包括">
-                                                                    <attributes>
-                                                                        <color key="NSColor" red="0.074509803921568626" green="0.078431372549019607" blue="0.082352941176470587" alpha="1" colorSpace="calibratedRGB"/>
-                                                                        <font key="NSFont" size="14" name="PingFangSC-Semibold"/>
-                                                                        <font key="NSOriginalFont" metaFont="system" size="14"/>
-                                                                        <paragraphStyle key="NSParagraphStyle" alignment="natural" lineBreakMode="wordWrapping" baseWritingDirection="natural" lineSpacing="4" tighteningFactorForTruncation="0.0"/>
-                                                                    </attributes>
-                                                                </fragment>
-                                                                <fragment content=":">
+                                                                <fragment content="2、账号下的所有内容、信息、数据、记录及绑定信息将被清空且无法找回。">
                                                                     <attributes>
-                                                                        <color key="NSColor" red="0.074509803921568626" green="0.078431372549019607" blue="0.082352941176470587" alpha="1" colorSpace="calibratedRGB"/>
+                                                                        <color key="NSColor" red="0.074509803921568626" green="0.078431372549019607" blue="0.082352941176470587" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
                                                                         <font key="NSFont" size="14" name="PingFangSC-Semibold"/>
-                                                                        <paragraphStyle key="NSParagraphStyle" alignment="natural" lineBreakMode="wordWrapping" baseWritingDirection="natural" lineSpacing="4" tighteningFactorForTruncation="0.0"/>
+                                                                        <paragraphStyle key="NSParagraphStyle" alignment="natural" lineBreakMode="wordWrapping" baseWritingDirection="natural" minimumLineHeight="22" maximumLineHeight="22" tighteningFactorForTruncation="0.0"/>
                                                                     </attributes>
                                                                 </fragment>
                                                             </attributedString>
                                                             <nil key="highlightedColor"/>
                                                         </label>
                                                         <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" usesAttributedText="YES" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="czQ-5I-E7e">
-                                                            <rect key="frame" x="34" y="308" width="334" height="43.5"/>
+                                                            <rect key="frame" x="34" y="207.5" width="334" height="44"/>
                                                             <attributedString key="attributedText">
-                                                                <fragment content="3">
+                                                                <fragment content="3、该账号权益信息将被清除(例如:会员时长、购买单曲、专辑信息)。">
                                                                     <attributes>
-                                                                        <color key="NSColor" red="0.074509803921568626" green="0.078431372549019607" blue="0.082352941176470587" alpha="1" colorSpace="calibratedRGB"/>
+                                                                        <color key="NSColor" red="0.074509803921568626" green="0.078431372549019607" blue="0.082352941176470587" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
                                                                         <font key="NSFont" size="14" name="PingFangSC-Semibold"/>
-                                                                        <paragraphStyle key="NSParagraphStyle" alignment="natural" lineBreakMode="wordWrapping" baseWritingDirection="natural" lineSpacing="4" tighteningFactorForTruncation="0.0"/>
-                                                                    </attributes>
-                                                                </fragment>
-                                                                <fragment content="、账号一旦注销完成,将无法恢复;您与我们曾签署过的相关用户协议、授权协议等相应终止。">
-                                                                    <attributes>
-                                                                        <color key="NSColor" red="0.074509803921568626" green="0.078431372549019607" blue="0.082352941176470587" alpha="1" colorSpace="calibratedRGB"/>
-                                                                        <font key="NSFont" size="14" name="PingFangSC-Semibold"/>
-                                                                        <font key="NSOriginalFont" metaFont="system" size="14"/>
-                                                                        <paragraphStyle key="NSParagraphStyle" alignment="natural" lineBreakMode="wordWrapping" baseWritingDirection="natural" lineSpacing="4" tighteningFactorForTruncation="0.0"/>
+                                                                        <paragraphStyle key="NSParagraphStyle" alignment="natural" lineBreakMode="wordWrapping" baseWritingDirection="natural" minimumLineHeight="22" maximumLineHeight="22" tighteningFactorForTruncation="0.0"/>
                                                                     </attributes>
                                                                 </fragment>
                                                             </attributedString>
                                                             <nil key="highlightedColor"/>
                                                         </label>
                                                         <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="GBy-Z1-n96">
-                                                            <rect key="frame" x="20" y="108.5" width="6" height="6"/>
-                                                            <color key="backgroundColor" red="0.99607843137254903" green="0.14117647058823529" blue="0.31764705882352939" alpha="1" colorSpace="calibratedRGB"/>
+                                                            <rect key="frame" x="20" y="87.5" width="6" height="6"/>
+                                                            <color key="backgroundColor" red="0.1764705882352941" green="0.7803921568627451" blue="0.66666666666666663" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
                                                             <constraints>
                                                                 <constraint firstAttribute="height" constant="6" id="cke-8U-65O"/>
                                                                 <constraint firstAttribute="width" constant="6" id="wNh-4O-3pP"/>
@@ -196,8 +105,8 @@
                                                             </userDefinedRuntimeAttributes>
                                                         </view>
                                                         <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="oHG-NB-zvk">
-                                                            <rect key="frame" x="20" y="172" width="6" height="6"/>
-                                                            <color key="backgroundColor" red="0.99607843139999996" green="0.14117647059999999" blue="0.31764705879999999" alpha="1" colorSpace="calibratedRGB"/>
+                                                            <rect key="frame" x="20" y="151.5" width="6" height="6"/>
+                                                            <color key="backgroundColor" red="0.1764705882352941" green="0.7803921568627451" blue="0.66666666666666663" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
                                                             <constraints>
                                                                 <constraint firstAttribute="height" constant="6" id="dA2-vz-Te6"/>
                                                                 <constraint firstAttribute="width" constant="6" id="gdv-Sl-1CV"/>
@@ -209,8 +118,8 @@
                                                             </userDefinedRuntimeAttributes>
                                                         </view>
                                                         <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="mjk-vg-mYk">
-                                                            <rect key="frame" x="20" y="316" width="6" height="6"/>
-                                                            <color key="backgroundColor" red="0.99607843139999996" green="0.14117647059999999" blue="0.31764705879999999" alpha="1" colorSpace="calibratedRGB"/>
+                                                            <rect key="frame" x="20" y="215.5" width="6" height="6"/>
+                                                            <color key="backgroundColor" red="0.1764705882352941" green="0.7803921568627451" blue="0.66666666666666663" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
                                                             <constraints>
                                                                 <constraint firstAttribute="height" constant="6" id="AsH-zk-onh"/>
                                                                 <constraint firstAttribute="width" constant="6" id="lHQ-RX-Ehp"/>
@@ -221,153 +130,68 @@
                                                                 </userDefinedRuntimeAttribute>
                                                             </userDefinedRuntimeAttributes>
                                                         </view>
-                                                        <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="账号注销将会对您产生以下影响:" textAlignment="natural" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="1D8-dQ-4Em">
-                                                            <rect key="frame" x="20" y="68.5" width="348" height="22"/>
+                                                        <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="注销影响:" textAlignment="natural" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="1D8-dQ-4Em">
+                                                            <rect key="frame" x="20" y="47.5" width="348" height="22"/>
                                                             <constraints>
                                                                 <constraint firstAttribute="height" constant="22" id="NMZ-zs-f0y"/>
                                                             </constraints>
                                                             <fontDescription key="fontDescription" type="system" weight="medium" pointSize="14"/>
-                                                            <color key="textColor" red="0.99607843137254903" green="0.14117647058823529" blue="0.31764705882352939" alpha="1" colorSpace="calibratedRGB"/>
+                                                            <color key="textColor" red="0.10588235294117647" green="0.72549019607843135" blue="0.60784313725490191" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
                                                             <nil key="highlightedColor"/>
                                                         </label>
-                                                        <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" usesAttributedText="YES" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="R0B-8J-ehG">
-                                                            <rect key="frame" x="34" y="213.5" width="334" height="74.5"/>
+                                                        <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" usesAttributedText="YES" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="m7X-TH-Xk6">
+                                                            <rect key="frame" x="34" y="271.5" width="334" height="22"/>
                                                             <attributedString key="attributedText">
-                                                                <fragment content="( 1 ) ">
-                                                                    <attributes>
-                                                                        <color key="NSColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="1" colorSpace="calibratedRGB"/>
-                                                                        <font key="NSFont" metaFont="system"/>
-                                                                        <paragraphStyle key="NSParagraphStyle" alignment="left" lineBreakMode="wordWrapping" baseWritingDirection="natural" lineSpacing="4" tighteningFactorForTruncation="0.0"/>
-                                                                    </attributes>
-                                                                </fragment>
-                                                                <fragment content="该账号下的所有内容、信息、数据、记录、个人资料(例如">
-                                                                    <attributes>
-                                                                        <color key="NSColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="1" colorSpace="calibratedRGB"/>
-                                                                        <font key="NSFont" metaFont="system"/>
-                                                                        <font key="NSOriginalFont" metaFont="system"/>
-                                                                        <paragraphStyle key="NSParagraphStyle" alignment="left" lineBreakMode="wordWrapping" baseWritingDirection="natural" lineSpacing="4" tighteningFactorForTruncation="0.0"/>
-                                                                    </attributes>
-                                                                </fragment>
-                                                                <fragment content=":">
-                                                                    <attributes>
-                                                                        <color key="NSColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="1" colorSpace="calibratedRGB"/>
-                                                                        <font key="NSFont" metaFont="system"/>
-                                                                        <paragraphStyle key="NSParagraphStyle" alignment="left" lineBreakMode="wordWrapping" baseWritingDirection="natural" lineSpacing="4" tighteningFactorForTruncation="0.0"/>
-                                                                    </attributes>
-                                                                </fragment>
-                                                                <fragment content="头像、昵称等)及绑定信息(例如">
-                                                                    <attributes>
-                                                                        <color key="NSColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="1" colorSpace="calibratedRGB"/>
-                                                                        <font key="NSFont" metaFont="system"/>
-                                                                        <font key="NSOriginalFont" metaFont="system"/>
-                                                                        <paragraphStyle key="NSParagraphStyle" alignment="left" lineBreakMode="wordWrapping" baseWritingDirection="natural" lineSpacing="4" tighteningFactorForTruncation="0.0"/>
-                                                                    </attributes>
-                                                                </fragment>
-                                                                <fragment content=":">
-                                                                    <attributes>
-                                                                        <color key="NSColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="1" colorSpace="calibratedRGB"/>
-                                                                        <font key="NSFont" metaFont="system"/>
-                                                                        <paragraphStyle key="NSParagraphStyle" alignment="left" lineBreakMode="wordWrapping" baseWritingDirection="natural" lineSpacing="4" tighteningFactorForTruncation="0.0"/>
-                                                                    </attributes>
-                                                                </fragment>
-                                                                <fragment content="绑定手机号等">
-                                                                    <attributes>
-                                                                        <color key="NSColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="1" colorSpace="calibratedRGB"/>
-                                                                        <font key="NSFont" metaFont="system"/>
-                                                                        <font key="NSOriginalFont" metaFont="system"/>
-                                                                        <paragraphStyle key="NSParagraphStyle" alignment="left" lineBreakMode="wordWrapping" baseWritingDirection="natural" lineSpacing="4" tighteningFactorForTruncation="0.0"/>
-                                                                    </attributes>
-                                                                </fragment>
-                                                                <fragment content=")">
+                                                                <fragment content="4、相关用户协议和授权协议将终止。">
                                                                     <attributes>
-                                                                        <color key="NSColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="1" colorSpace="calibratedRGB"/>
-                                                                        <font key="NSFont" metaFont="system"/>
-                                                                        <paragraphStyle key="NSParagraphStyle" alignment="left" lineBreakMode="wordWrapping" baseWritingDirection="natural" lineSpacing="4" tighteningFactorForTruncation="0.0"/>
-                                                                    </attributes>
-                                                                </fragment>
-                                                                <fragment content=";">
-                                                                    <attributes>
-                                                                        <color key="NSColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="1" colorSpace="calibratedRGB"/>
-                                                                        <font key="NSFont" metaFont="system"/>
-                                                                        <font key="NSOriginalFont" metaFont="system"/>
-                                                                        <paragraphStyle key="NSParagraphStyle" alignment="left" lineBreakMode="wordWrapping" baseWritingDirection="natural" lineSpacing="4" tighteningFactorForTruncation="0.0"/>
-                                                                    </attributes>
-                                                                </fragment>
-                                                                <fragment>
-                                                                    <string key="content">
-( 2 ) </string>
-                                                                    <attributes>
-                                                                        <color key="NSColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="1" colorSpace="calibratedRGB"/>
-                                                                        <font key="NSFont" metaFont="system"/>
-                                                                        <paragraphStyle key="NSParagraphStyle" alignment="left" lineBreakMode="wordWrapping" baseWritingDirection="natural" lineSpacing="4" tighteningFactorForTruncation="0.0"/>
-                                                                    </attributes>
-                                                                </fragment>
-                                                                <fragment content="该账号权益信息将被清除(例如">
-                                                                    <attributes>
-                                                                        <color key="NSColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="1" colorSpace="calibratedRGB"/>
-                                                                        <font key="NSFont" metaFont="system"/>
-                                                                        <font key="NSOriginalFont" metaFont="system"/>
-                                                                        <paragraphStyle key="NSParagraphStyle" alignment="left" lineBreakMode="wordWrapping" baseWritingDirection="natural" lineSpacing="4" tighteningFactorForTruncation="0.0"/>
-                                                                    </attributes>
-                                                                </fragment>
-                                                                <fragment content=":">
-                                                                    <attributes>
-                                                                        <color key="NSColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="1" colorSpace="calibratedRGB"/>
-                                                                        <font key="NSFont" metaFont="system"/>
-                                                                        <paragraphStyle key="NSParagraphStyle" alignment="left" lineBreakMode="wordWrapping" baseWritingDirection="natural" lineSpacing="4" tighteningFactorForTruncation="0.0"/>
-                                                                    </attributes>
-                                                                </fragment>
-                                                                <fragment content="会员时长、购买单曲、专辑信息">
-                                                                    <attributes>
-                                                                        <color key="NSColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="1" colorSpace="calibratedRGB"/>
-                                                                        <font key="NSFont" metaFont="system"/>
-                                                                        <font key="NSOriginalFont" metaFont="system"/>
-                                                                        <paragraphStyle key="NSParagraphStyle" alignment="left" lineBreakMode="wordWrapping" baseWritingDirection="natural" lineSpacing="4" tighteningFactorForTruncation="0.0"/>
-                                                                    </attributes>
-                                                                </fragment>
-                                                                <fragment content=")">
-                                                                    <attributes>
-                                                                        <color key="NSColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="1" colorSpace="calibratedRGB"/>
-                                                                        <font key="NSFont" metaFont="system"/>
-                                                                        <paragraphStyle key="NSParagraphStyle" alignment="left" lineBreakMode="wordWrapping" baseWritingDirection="natural" lineSpacing="4" tighteningFactorForTruncation="0.0"/>
-                                                                    </attributes>
-                                                                </fragment>
-                                                                <fragment content="。">
-                                                                    <attributes>
-                                                                        <color key="NSColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="1" colorSpace="calibratedRGB"/>
-                                                                        <font key="NSFont" metaFont="system"/>
-                                                                        <font key="NSOriginalFont" metaFont="system"/>
-                                                                        <paragraphStyle key="NSParagraphStyle" alignment="left" lineBreakMode="wordWrapping" baseWritingDirection="natural" lineSpacing="4" tighteningFactorForTruncation="0.0"/>
+                                                                        <color key="NSColor" red="0.074509803921568626" green="0.078431372549019607" blue="0.082352941176470587" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
+                                                                        <font key="NSFont" size="14" name="PingFangSC-Semibold"/>
+                                                                        <paragraphStyle key="NSParagraphStyle" alignment="natural" lineBreakMode="wordWrapping" baseWritingDirection="natural" minimumLineHeight="22" maximumLineHeight="22" tighteningFactorForTruncation="0.0"/>
                                                                     </attributes>
                                                                 </fragment>
                                                             </attributedString>
                                                             <nil key="highlightedColor"/>
                                                         </label>
+                                                        <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Wg7-Vu-y1y">
+                                                            <rect key="frame" x="20" y="279.5" width="6" height="6"/>
+                                                            <color key="backgroundColor" red="0.1764705882" green="0.78039215689999997" blue="0.66666666669999997" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
+                                                            <constraints>
+                                                                <constraint firstAttribute="width" constant="6" id="EmR-7K-WKI"/>
+                                                                <constraint firstAttribute="height" constant="6" id="jqU-Bk-hXs"/>
+                                                            </constraints>
+                                                            <userDefinedRuntimeAttributes>
+                                                                <userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
+                                                                    <real key="value" value="3"/>
+                                                                </userDefinedRuntimeAttribute>
+                                                            </userDefinedRuntimeAttributes>
+                                                        </view>
                                                     </subviews>
                                                     <color key="backgroundColor" systemColor="systemBackgroundColor"/>
                                                     <constraints>
                                                         <constraint firstItem="czQ-5I-E7e" firstAttribute="leading" secondItem="mjk-vg-mYk" secondAttribute="trailing" constant="8" id="3fe-hc-1jQ"/>
+                                                        <constraint firstItem="czQ-5I-E7e" firstAttribute="top" secondItem="plu-48-YfS" secondAttribute="bottom" constant="20" id="5St-0j-k6s"/>
                                                         <constraint firstItem="c7e-F8-dgF" firstAttribute="top" secondItem="5vd-tZ-CWT" secondAttribute="top" id="74w-wx-g4G"/>
                                                         <constraint firstAttribute="trailing" secondItem="c7e-F8-dgF" secondAttribute="trailing" constant="20" id="AKi-Uc-c3h"/>
                                                         <constraint firstAttribute="trailing" secondItem="plu-48-YfS" secondAttribute="trailing" constant="20" id="GNq-jw-Z22"/>
                                                         <constraint firstItem="GBy-Z1-n96" firstAttribute="leading" secondItem="5vd-tZ-CWT" secondAttribute="leading" constant="20" id="KbT-VW-j6d"/>
-                                                        <constraint firstItem="R0B-8J-ehG" firstAttribute="top" secondItem="plu-48-YfS" secondAttribute="bottom" constant="6" id="Kmg-Sa-cXN"/>
+                                                        <constraint firstItem="Wg7-Vu-y1y" firstAttribute="leading" secondItem="5vd-tZ-CWT" secondAttribute="leading" constant="20" id="Naa-4U-aBX"/>
                                                         <constraint firstItem="6u6-Ma-2KR" firstAttribute="top" secondItem="1D8-dQ-4Em" secondAttribute="bottom" constant="10" id="P9Z-vx-vNA"/>
                                                         <constraint firstAttribute="trailing" secondItem="czQ-5I-E7e" secondAttribute="trailing" constant="20" id="RGt-dD-6zV"/>
-                                                        <constraint firstItem="czQ-5I-E7e" firstAttribute="top" secondItem="R0B-8J-ehG" secondAttribute="bottom" constant="20" id="UvX-8O-e5n"/>
+                                                        <constraint firstItem="m7X-TH-Xk6" firstAttribute="top" secondItem="czQ-5I-E7e" secondAttribute="bottom" constant="20" id="Rlj-Y1-MFO"/>
+                                                        <constraint firstItem="m7X-TH-Xk6" firstAttribute="leading" secondItem="Wg7-Vu-y1y" secondAttribute="trailing" constant="8" id="SF0-6X-IQg"/>
                                                         <constraint firstItem="oHG-NB-zvk" firstAttribute="top" secondItem="plu-48-YfS" secondAttribute="top" constant="8" id="Vit-1L-bCk"/>
                                                         <constraint firstItem="plu-48-YfS" firstAttribute="leading" secondItem="oHG-NB-zvk" secondAttribute="trailing" constant="8" id="WNJ-Eg-TYh"/>
                                                         <constraint firstItem="6u6-Ma-2KR" firstAttribute="leading" secondItem="GBy-Z1-n96" secondAttribute="trailing" constant="8" id="XfW-lU-uJB"/>
-                                                        <constraint firstAttribute="bottom" secondItem="czQ-5I-E7e" secondAttribute="bottom" constant="15" id="Zxu-el-Q9z"/>
-                                                        <constraint firstItem="R0B-8J-ehG" firstAttribute="leading" secondItem="5vd-tZ-CWT" secondAttribute="leading" constant="34" id="aMv-3h-6mA"/>
+                                                        <constraint firstItem="m7X-TH-Xk6" firstAttribute="top" secondItem="Wg7-Vu-y1y" secondAttribute="top" constant="-8" id="YXt-Ux-hXv"/>
                                                         <constraint firstItem="oHG-NB-zvk" firstAttribute="leading" secondItem="5vd-tZ-CWT" secondAttribute="leading" constant="20" id="aee-FV-u0M"/>
                                                         <constraint firstItem="mjk-vg-mYk" firstAttribute="leading" secondItem="5vd-tZ-CWT" secondAttribute="leading" constant="20" id="e6v-6g-4aM"/>
+                                                        <constraint firstAttribute="bottom" secondItem="m7X-TH-Xk6" secondAttribute="bottom" constant="15" id="eAj-Q2-ktE"/>
                                                         <constraint firstItem="1D8-dQ-4Em" firstAttribute="leading" secondItem="5vd-tZ-CWT" secondAttribute="leading" constant="20" id="g7Z-bS-nt6"/>
                                                         <constraint firstItem="plu-48-YfS" firstAttribute="top" secondItem="6u6-Ma-2KR" secondAttribute="bottom" constant="20" id="hzW-RT-JQz"/>
                                                         <constraint firstAttribute="trailing" secondItem="1D8-dQ-4Em" secondAttribute="trailing" constant="20" id="jla-H3-bfX"/>
                                                         <constraint firstItem="czQ-5I-E7e" firstAttribute="top" secondItem="mjk-vg-mYk" secondAttribute="top" constant="-8" id="k8V-jQ-GSL"/>
-                                                        <constraint firstAttribute="trailing" secondItem="R0B-8J-ehG" secondAttribute="trailing" constant="20" id="nNc-cc-Nft"/>
                                                         <constraint firstItem="GBy-Z1-n96" firstAttribute="top" secondItem="6u6-Ma-2KR" secondAttribute="top" constant="8" id="pis-9p-XXq"/>
+                                                        <constraint firstAttribute="trailing" secondItem="m7X-TH-Xk6" secondAttribute="trailing" constant="20" id="qD3-Xr-I8G"/>
                                                         <constraint firstItem="c7e-F8-dgF" firstAttribute="leading" secondItem="5vd-tZ-CWT" secondAttribute="leading" constant="20" id="rBH-eL-pS0"/>
                                                         <constraint firstAttribute="trailing" secondItem="6u6-Ma-2KR" secondAttribute="trailing" constant="20" id="toW-r2-je8"/>
                                                         <constraint firstItem="1D8-dQ-4Em" firstAttribute="top" secondItem="c7e-F8-dgF" secondAttribute="bottom" constant="10" id="xUH-SI-465"/>
@@ -378,7 +202,7 @@
                                                         </userDefinedRuntimeAttribute>
                                                     </userDefinedRuntimeAttributes>
                                                 </view>
-                                                <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="warning_image" translatesAutoresizingMaskIntoConstraints="NO" id="vNh-eW-Ega">
+                                                <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="warning_image_platform" translatesAutoresizingMaskIntoConstraints="NO" id="vNh-eW-Ega">
                                                     <rect key="frame" x="169" y="24" width="50" height="50"/>
                                                     <constraints>
                                                         <constraint firstAttribute="height" constant="50" id="F6j-t6-4fP"/>
@@ -418,7 +242,7 @@
                         </scrollView>
                         <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Qi7-Np-SbU">
                             <rect key="frame" x="12" y="865" width="364" height="44"/>
-                            <color key="backgroundColor" red="0.1764705882" green="0.78039215689999997" blue="0.66666666669999997" alpha="1" colorSpace="calibratedRGB"/>
+                            <color key="backgroundColor" red="0.1764705882352941" green="0.7803921568627451" blue="0.66666666666666663" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
                             <constraints>
                                 <constraint firstAttribute="height" constant="44" id="Q5v-LL-ePg"/>
                             </constraints>
@@ -453,7 +277,7 @@
                                     </constraints>
                                     <fontDescription key="fontDescription" type="system" weight="medium" pointSize="14"/>
                                     <state key="normal" title="获取验证码">
-                                        <color key="titleColor" red="0.1764705882" green="0.78039215689999997" blue="0.66666666669999997" alpha="1" colorSpace="calibratedRGB"/>
+                                        <color key="titleColor" red="0.1764705882352941" green="0.7803921568627451" blue="0.66666666666666663" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
                                     </state>
                                     <connections>
                                         <action selector="sendCode:" destination="iN0-l3-epB" eventType="touchUpInside" id="H9d-M4-iaP"/>
@@ -537,12 +361,13 @@
                 <outletCollection property="dotsView" destination="GBy-Z1-n96" id="mxa-uf-QQB"/>
                 <outletCollection property="dotsView" destination="oHG-NB-zvk" id="Yeg-CP-6OL"/>
                 <outletCollection property="dotsView" destination="mjk-vg-mYk" id="4ko-9w-Z7A"/>
+                <outletCollection property="dotsView" destination="Wg7-Vu-y1y" id="9xz-oW-BN1"/>
             </connections>
             <point key="canvasLocation" x="131.8840579710145" y="96.763392857142847"/>
         </view>
     </objects>
     <resources>
-        <image name="warning_image" width="50" height="50"/>
+        <image name="warning_image_platform" width="50" height="50"/>
         <systemColor name="systemBackgroundColor">
             <color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
         </systemColor>

+ 26 - 0
KulexiuForStudent/KulexiuForStudent/Module/Mine/Setting/DeleteAccount/View/KSDeleteAccountTipsAlert.h

@@ -0,0 +1,26 @@
+//
+//  KSDeleteAccountTipsAlert.h
+//  KulexiuForTeacher
+//
+//  Created by 王智 on 2024/9/12.
+//
+
+#import <UIKit/UIKit.h>
+
+typedef void(^KSTipsAlertCallback)(BOOL isSure);
+
+NS_ASSUME_NONNULL_BEGIN
+
+@interface KSDeleteAccountTipsAlert : UIView
+
++ (instancetype)shareInstance;
+
+- (void)tipsActionCallback:(KSTipsAlertCallback)callback;
+
+- (void)showAlert;
+
+- (void)hiddenAction;
+
+@end
+
+NS_ASSUME_NONNULL_END

+ 73 - 0
KulexiuForStudent/KulexiuForStudent/Module/Mine/Setting/DeleteAccount/View/KSDeleteAccountTipsAlert.m

@@ -0,0 +1,73 @@
+//
+//  KSDeleteAccountTipsAlert.m
+//  KulexiuForTeacher
+//
+//  Created by 王智 on 2024/9/12.
+//
+
+#import "KSDeleteAccountTipsAlert.h"
+#import <KSToolLibrary/UIView+Animation.h>
+
+@interface KSDeleteAccountTipsAlert ()
+@property (weak, nonatomic) IBOutlet UIButton *sureButton;
+
+@property (nonatomic, copy) KSTipsAlertCallback callback;
+
+
+@end
+
+@implementation KSDeleteAccountTipsAlert
+
+- (void)awakeFromNib {
+    [super awakeFromNib];
+    [self.sureButton setBackgroundColor:CLIENT_THEMECOLOR];
+}
+
++ (instancetype)shareInstance {
+    KSDeleteAccountTipsAlert *view = [[[NSBundle mainBundle] loadNibNamed:@"KSDeleteAccountTipsAlert" owner:nil options:nil] firstObject];
+    return view;
+}
+
+- (void)tipsActionCallback:(KSTipsAlertCallback)callback {
+    if (callback) {
+        self.callback = callback;
+    }
+}
+
+- (void)showAlert {
+    UIWindow *window = [NSObject getKeyWindow];
+    [window addSubview:self];
+    [self mas_makeConstraints:^(MASConstraintMaker *make) {
+        make.left.right.top.bottom.mas_equalTo(window);
+    }];
+    
+    [self setPopAnimation];
+}
+
+- (void)hiddenAction {
+    [self removeFromSuperview];
+}
+
+
+- (IBAction)sureAction:(id)sender {
+    if (self.callback) {
+        self.callback(YES);
+    }
+    [self hiddenAction];
+}
+
+- (IBAction)cancleAction:(id)sender {
+    if (self.callback) {
+        self.callback(NO);
+    }
+    [self hiddenAction];
+}
+/*
+// Only override drawRect: if you perform custom drawing.
+// An empty implementation adversely affects performance during animation.
+- (void)drawRect:(CGRect)rect {
+    // Drawing code
+}
+*/
+
+@end

+ 157 - 0
KulexiuForStudent/KulexiuForStudent/Module/Mine/Setting/DeleteAccount/View/KSDeleteAccountTipsAlert.xib

@@ -0,0 +1,157 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="32700.99.1234" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
+    <device id="retina6_12" orientation="portrait" appearance="light"/>
+    <dependencies>
+        <deployment identifier="iOS"/>
+        <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="22685"/>
+        <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="KSDeleteAccountTipsAlert">
+            <rect key="frame" x="0.0" y="0.0" width="393" height="852"/>
+            <autoresizingMask key="autoresizingMask"/>
+            <subviews>
+                <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="br2-3O-aM2">
+                    <rect key="frame" x="44" y="325" width="305" height="202"/>
+                    <subviews>
+                        <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="注销账号" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="uBu-35-0tK">
+                            <rect key="frame" x="115.66666666666666" y="20" width="74" height="25"/>
+                            <constraints>
+                                <constraint firstAttribute="height" constant="25" id="RB2-30-oM5"/>
+                            </constraints>
+                            <fontDescription key="fontDescription" type="system" weight="semibold" pointSize="18"/>
+                            <color key="textColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
+                            <nil key="highlightedColor"/>
+                        </label>
+                        <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" usesAttributedText="YES" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="z8j-hU-m67">
+                            <rect key="frame" x="20" y="65" width="265" height="52"/>
+                            <attributedString key="attributedText">
+                                <fragment content="请确认是否注销该账号,确认后将同步注销">
+                                    <attributes>
+                                        <color key="NSColor" red="0.40000000000000002" green="0.40000000000000002" blue="0.40000000000000002" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
+                                        <font key="NSFont" size="16" name="PingFangSC-Regular"/>
+                                        <font key="NSOriginalFont" metaFont="system" size="16"/>
+                                        <paragraphStyle key="NSParagraphStyle" alignment="left" lineBreakMode="wordWrapping" baseWritingDirection="natural" minimumLineHeight="26" maximumLineHeight="26" tighteningFactorForTruncation="0.0"/>
+                                    </attributes>
+                                </fragment>
+                                <fragment content="酷乐秀">
+                                    <attributes>
+                                        <color key="NSColor" red="0.95686274509803915" green="0.27058823529411763" blue="0.31764705882352939" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
+                                        <font key="NSFont" size="16" name="PingFangSC-Medium"/>
+                                        <font key="NSOriginalFont" metaFont="system" size="16"/>
+                                        <paragraphStyle key="NSParagraphStyle" alignment="left" lineBreakMode="wordWrapping" baseWritingDirection="natural" minimumLineHeight="26" maximumLineHeight="26" tighteningFactorForTruncation="0.0"/>
+                                    </attributes>
+                                </fragment>
+                                <fragment content="/">
+                                    <attributes>
+                                        <color key="NSColor" red="0.95686274509803915" green="0.27058823529411763" blue="0.31764705882352939" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
+                                        <font key="NSFont" size="16" name="PingFangSC-Medium"/>
+                                        <paragraphStyle key="NSParagraphStyle" alignment="left" lineBreakMode="wordWrapping" baseWritingDirection="natural" minimumLineHeight="26" maximumLineHeight="26" tighteningFactorForTruncation="0.0"/>
+                                    </attributes>
+                                </fragment>
+                                <fragment content="酷乐秀学院">
+                                    <attributes>
+                                        <color key="NSColor" red="0.95686274509803915" green="0.27058823529411763" blue="0.31764705882352939" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
+                                        <font key="NSFont" size="16" name="PingFangSC-Medium"/>
+                                        <font key="NSOriginalFont" metaFont="system" size="16"/>
+                                        <paragraphStyle key="NSParagraphStyle" alignment="left" lineBreakMode="wordWrapping" baseWritingDirection="natural" minimumLineHeight="26" maximumLineHeight="26" tighteningFactorForTruncation="0.0"/>
+                                    </attributes>
+                                </fragment>
+                                <fragment content="的账号">
+                                    <attributes>
+                                        <color key="NSColor" red="0.40000000000000002" green="0.40000000000000002" blue="0.40000000000000002" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
+                                        <font key="NSFont" size="16" name="PingFangSC-Regular"/>
+                                        <font key="NSOriginalFont" metaFont="system" size="16"/>
+                                        <paragraphStyle key="NSParagraphStyle" alignment="left" lineBreakMode="wordWrapping" baseWritingDirection="natural" minimumLineHeight="26" maximumLineHeight="26" tighteningFactorForTruncation="0.0"/>
+                                    </attributes>
+                                </fragment>
+                            </attributedString>
+                            <nil key="highlightedColor"/>
+                        </label>
+                        <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Yzz-5W-rzh">
+                            <rect key="frame" x="15.000000000000007" y="142" width="127.66666666666669" height="40"/>
+                            <color key="backgroundColor" red="0.1764705882352941" green="0.7803921568627451" blue="0.66666666666666663" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
+                            <constraints>
+                                <constraint firstAttribute="height" constant="40" id="f7e-LB-YmK"/>
+                            </constraints>
+                            <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="确认"/>
+                            <userDefinedRuntimeAttributes>
+                                <userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
+                                    <real key="value" value="20"/>
+                                </userDefinedRuntimeAttribute>
+                            </userDefinedRuntimeAttributes>
+                            <connections>
+                                <action selector="sureAction:" destination="iN0-l3-epB" eventType="touchUpInside" id="y39-Fw-EoX"/>
+                            </connections>
+                        </button>
+                        <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="7ot-5U-toN">
+                            <rect key="frame" x="157.66666666666666" y="147" width="127.33333333333334" height="40"/>
+                            <constraints>
+                                <constraint firstAttribute="height" constant="40" id="yIS-km-gU5"/>
+                            </constraints>
+                            <fontDescription key="fontDescription" type="system" pointSize="16"/>
+                            <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.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
+                            </state>
+                            <userDefinedRuntimeAttributes>
+                                <userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
+                                    <real key="value" value="20"/>
+                                </userDefinedRuntimeAttribute>
+                                <userDefinedRuntimeAttribute type="number" keyPath="borderWidth">
+                                    <real key="value" value="1"/>
+                                </userDefinedRuntimeAttribute>
+                                <userDefinedRuntimeAttribute type="color" keyPath="borderColor">
+                                    <color key="value" red="0.85882352941176465" green="0.85882352941176465" blue="0.85882352941176465" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
+                                </userDefinedRuntimeAttribute>
+                            </userDefinedRuntimeAttributes>
+                            <connections>
+                                <action selector="cancleAction:" destination="iN0-l3-epB" eventType="touchUpInside" id="zTS-Bq-DEx"/>
+                            </connections>
+                        </button>
+                    </subviews>
+                    <color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
+                    <constraints>
+                        <constraint firstAttribute="trailing" secondItem="z8j-hU-m67" secondAttribute="trailing" constant="20" id="3dI-Cj-srk"/>
+                        <constraint firstAttribute="width" constant="305" id="DVQ-Br-5SE"/>
+                        <constraint firstItem="uBu-35-0tK" firstAttribute="top" secondItem="br2-3O-aM2" secondAttribute="top" constant="20" id="EXn-Dv-PHZ"/>
+                        <constraint firstItem="z8j-hU-m67" firstAttribute="leading" secondItem="br2-3O-aM2" secondAttribute="leading" constant="20" id="Oy2-kb-dCJ"/>
+                        <constraint firstItem="7ot-5U-toN" firstAttribute="width" secondItem="Yzz-5W-rzh" secondAttribute="width" id="Wcb-cE-J8P"/>
+                        <constraint firstAttribute="bottom" secondItem="7ot-5U-toN" secondAttribute="bottom" constant="15" id="X2K-Kv-cH2"/>
+                        <constraint firstAttribute="height" constant="202" id="aH2-gc-0BK"/>
+                        <constraint firstItem="uBu-35-0tK" firstAttribute="centerX" secondItem="br2-3O-aM2" secondAttribute="centerX" id="egU-Fm-DjU"/>
+                        <constraint firstAttribute="trailing" secondItem="7ot-5U-toN" secondAttribute="trailing" constant="20" id="nx1-G3-l56"/>
+                        <constraint firstItem="Yzz-5W-rzh" firstAttribute="leading" secondItem="br2-3O-aM2" secondAttribute="leading" constant="15" id="qVr-nV-bMx"/>
+                        <constraint firstItem="7ot-5U-toN" firstAttribute="leading" secondItem="Yzz-5W-rzh" secondAttribute="trailing" constant="15" id="s6U-WW-fME"/>
+                        <constraint firstItem="z8j-hU-m67" firstAttribute="top" secondItem="uBu-35-0tK" secondAttribute="bottom" constant="20" id="smc-hr-9hz"/>
+                        <constraint firstAttribute="bottom" secondItem="Yzz-5W-rzh" secondAttribute="bottom" constant="20" id="v2W-H2-sIo"/>
+                    </constraints>
+                    <userDefinedRuntimeAttributes>
+                        <userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
+                            <real key="value" value="12"/>
+                        </userDefinedRuntimeAttribute>
+                        <userDefinedRuntimeAttribute type="color" keyPath="borderColor">
+                            <color key="value" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
+                        </userDefinedRuntimeAttribute>
+                    </userDefinedRuntimeAttributes>
+                </view>
+            </subviews>
+            <color key="backgroundColor" red="0.0" green="0.0" blue="0.0" alpha="0.5" colorSpace="custom" customColorSpace="sRGB"/>
+            <constraints>
+                <constraint firstItem="br2-3O-aM2" firstAttribute="centerX" secondItem="iN0-l3-epB" secondAttribute="centerX" id="3IH-mZ-wVi"/>
+                <constraint firstItem="br2-3O-aM2" firstAttribute="centerY" secondItem="iN0-l3-epB" secondAttribute="centerY" id="WCG-AA-KDD"/>
+            </constraints>
+            <nil key="simulatedTopBarMetrics"/>
+            <nil key="simulatedBottomBarMetrics"/>
+            <freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
+            <connections>
+                <outlet property="sureButton" destination="Yzz-5W-rzh" id="EMZ-tU-Wbb"/>
+            </connections>
+            <point key="canvasLocation" x="29.770992366412212" y="19.718309859154932"/>
+        </view>
+    </objects>
+</document>

+ 158 - 15
KulexiuForStudent/KulexiuForStudent/Module/Mine/Setting/DeleteAccount/View/KSDeleteFailedAlertView.m

@@ -9,9 +9,17 @@
 
 @interface KSDeleteFailedAlertView ()
 
+@property (weak, nonatomic) IBOutlet UIButton *sureButton;
+
+@property (weak, nonatomic) IBOutlet NSLayoutConstraint *tipsContainerHeight;
+
+@property (weak, nonatomic) IBOutlet UIView *tipsContainer;
+
 @property (weak, nonatomic) IBOutlet UIView *containerView;
 
-@property (weak, nonatomic) IBOutlet UILabel *descLabel;
+@property (nonatomic, strong) UIScrollView *scrollView;
+
+@property (nonatomic, strong) UIView *layoutView;
 
 @end
 
@@ -19,6 +27,11 @@
 
 - (void)awakeFromNib {
     [super awakeFromNib];
+    [self.tipsContainer addSubview:self.scrollView];
+    [self.scrollView mas_makeConstraints:^(MASConstraintMaker *make) {
+        make.left.right.top.bottom.mas_equalTo(self.tipsContainer);
+    }];
+    [self.sureButton setBackgroundColor:CLIENT_THEMECOLOR];
 }
 
 + (instancetype)shareIntance {
@@ -26,24 +39,142 @@
     return view;
     
 }
-
+/**
+ * [{\"client\":\"STUDENT\",\"errList\":[\"账号存在待支付的订单\"]},{\"client\":\"TEACHER\",\"errList\":[\"账号存在待支付的订单\",\"账号存在未开始/进行中的直播课和未下架的视频课\"]}]"
+ */
 - (void)configWithSource:(NSArray *)messageList {
-    NSMutableArray *array = [NSMutableArray array];
-    if (messageList.count == 1) {
-        [array addObject:[messageList lastObject]];
-    }
-    else {
-        for (NSInteger index = 0; index < messageList.count; index++) {
-            NSString *desc = messageList[index];
-            NSString *formatString = [NSString stringWithFormat:@"%zd、%@",(index+1),desc];
-            [array addObject:formatString];
+    
+    self.layoutView = nil;
+    for (NSInteger index = 0; index < messageList.count; index++) {
+        NSDictionary *parm = messageList[index];
+        NSMutableArray *array = [NSMutableArray array];
+        NSString *client = [parm ks_stringValueForKey:@"client"];
+        BOOL isLast = index == messageList.count - 1;
+        if ([client isEqualToString:@"STUDENT"]) { // 酷乐秀
+            UILabel *clientStuTitle = [[UILabel alloc] initWithFrame:CGRectZero];
+            clientStuTitle.textColor = HexRGB(0x1BB99B);
+            clientStuTitle.text = @"【酷乐秀】";
+            clientStuTitle.font = [UIFont systemFontOfSize:14.0f weight:UIFontWeightMedium];
+            [self.scrollView addSubview:clientStuTitle];
+            [clientStuTitle mas_makeConstraints:^(MASConstraintMaker *make) {
+                if (!self.layoutView) {
+                    make.top.mas_equalTo(self.scrollView.mas_top).offset(8);
+                }
+                else {
+                    make.top.mas_equalTo(self.layoutView.mas_bottom).offset(8);
+                }
+                make.left.right.mas_equalTo(self.tipsContainer);
+                make.height.mas_equalTo(24);
+            }];
+            self.layoutView = clientStuTitle;
+            
+            NSArray *errorList = [parm ks_arrayValueForKey:@"errList"];
+            if (errorList.count == 1) {
+                NSString *desc = [errorList lastObject];
+                NSString *formatString = [NSString stringWithFormat:@"1、%@",desc];
+                [array addObject:formatString];
+            }
+            else {
+                for (NSInteger index = 0; index < errorList.count; index++) {
+                    NSString *desc = errorList[index];
+                    NSString *formatString = [NSString stringWithFormat:@"%zd、%@",(index+1),desc];
+                    [array addObject:formatString];
+                }
+            }
+            NSString *newString = [NSString returnNoNullStringWithString:[array componentsJoinedByString:@"\n"]];
+            NSMutableParagraphStyle *paragraphStyle = [[NSMutableParagraphStyle alloc] init];
+            paragraphStyle.maximumLineHeight = 24;
+            paragraphStyle.minimumLineHeight = 24;
+            NSMutableAttributedString *attr = [[NSMutableAttributedString alloc] initWithString:newString attributes:@{NSParagraphStyleAttributeName:paragraphStyle,NSFontAttributeName:[UIFont systemFontOfSize:14.0f],NSForegroundColorAttributeName:HexRGB(0x666666)}];
+            
+            UILabel *errorTipsLabel = [[UILabel alloc] initWithFrame:CGRectZero];
+            errorTipsLabel.numberOfLines = 0;
+            [self.scrollView addSubview:errorTipsLabel];
+            errorTipsLabel.attributedText = attr;
+            CGFloat height = [self getLabelHeight:newString];
+            [errorTipsLabel mas_makeConstraints:^(MASConstraintMaker *make) {
+                make.left.right.mas_equalTo(self.tipsContainer);
+                make.top.mas_equalTo(self.layoutView.mas_bottom);
+                make.height.mas_equalTo(height);
+                if (isLast) {
+                    make.bottom.mas_equalTo(self.scrollView.mas_bottom);
+                }
+            }];
+            self.layoutView = errorTipsLabel;
+        }
+        else if ([client isEqualToString:@"TEACHER"]) { // 酷乐秀学院
+            UILabel *clientTeaTitle = [[UILabel alloc] initWithFrame:CGRectZero];
+            clientTeaTitle.textColor = HexRGB(0x1BB99B);
+            clientTeaTitle.text = @"【酷乐秀学院】";
+            clientTeaTitle.font = [UIFont systemFontOfSize:14.0f weight:UIFontWeightMedium];
+            [self.scrollView addSubview:clientTeaTitle];
+            [clientTeaTitle mas_makeConstraints:^(MASConstraintMaker *make) {
+                make.left.right.mas_equalTo(self.tipsContainer);
+                if (!self.layoutView) {
+                    make.top.mas_equalTo(self.scrollView.mas_top).offset(8);
+                }
+                else {
+                    make.top.mas_equalTo(self.layoutView.mas_bottom).offset(8);
+                }
+                make.height.mas_equalTo(24);
+            }];
+            self.layoutView = clientTeaTitle;
+            
+            NSArray *errorList = [parm ks_arrayValueForKey:@"errList"];
+            if (errorList.count == 1) {
+                NSString *desc = [errorList lastObject];
+                NSString *formatString = [NSString stringWithFormat:@"1、%@",desc];
+                [array addObject:formatString];
+            }
+            else {
+                for (NSInteger index = 0; index < errorList.count; index++) {
+                    NSString *desc = errorList[index];
+                    NSString *formatString = [NSString stringWithFormat:@"%zd、%@",(index+1),desc];
+                    [array addObject:formatString];
+                }
+            }
+            NSString *newString = [NSString returnNoNullStringWithString:[array componentsJoinedByString:@"\n"]];
+            NSMutableParagraphStyle *paragraphStyle = [[NSMutableParagraphStyle alloc] init];
+            paragraphStyle.maximumLineHeight = 24;
+            paragraphStyle.minimumLineHeight = 24;
+            NSMutableAttributedString *attr = [[NSMutableAttributedString alloc] initWithString:newString attributes:@{NSParagraphStyleAttributeName:paragraphStyle,NSFontAttributeName:[UIFont systemFontOfSize:14.0f],NSForegroundColorAttributeName:HexRGB(0x666666)}];
+            
+            UILabel *errorTipsLabel = [[UILabel alloc] initWithFrame:CGRectZero];
+            errorTipsLabel.numberOfLines = 0;
+            [self.scrollView addSubview:errorTipsLabel];
+            errorTipsLabel.attributedText = attr;
+            CGFloat height = [self getLabelHeight:newString];
+
+            [errorTipsLabel mas_makeConstraints:^(MASConstraintMaker *make) {
+                make.left.right.mas_equalTo(self.tipsContainer);
+                make.top.mas_equalTo(self.layoutView.mas_bottom);
+                make.height.mas_equalTo(height);
+                if (isLast) {
+                    make.bottom.mas_equalTo(self.scrollView.mas_bottom);
+                }
+            }];
+            self.layoutView = errorTipsLabel;
         }
     }
-    NSString *newString = [NSString returnNoNullStringWithString:[array componentsJoinedByString:@"\n"]];
+    [self setNeedsLayout];
+}
+
+- (CGFloat)getLabelHeight:(NSString *)desc {
     NSMutableParagraphStyle *paragraphStyle = [[NSMutableParagraphStyle alloc] init];
-    [paragraphStyle setLineSpacing:6];//调整行间距
-    NSMutableAttributedString *attr = [[NSMutableAttributedString alloc] initWithString:newString attributes:@{NSParagraphStyleAttributeName:paragraphStyle,NSFontAttributeName:[UIFont systemFontOfSize:14.0f],NSForegroundColorAttributeName:HexRGB(0x666666)}];
-    self.descLabel.attributedText = attr;
+    paragraphStyle.maximumLineHeight = 24;
+    paragraphStyle.minimumLineHeight = 24;
+    return [desc boundingRectWithSize:CGSizeMake(265, CGFLOAT_MAX) options:(NSStringDrawingTruncatesLastVisibleLine | NSStringDrawingUsesLineFragmentOrigin | NSStringDrawingUsesFontLeading) attributes:@{NSParagraphStyleAttributeName:paragraphStyle,NSFontAttributeName:[UIFont systemFontOfSize:14.0f],NSForegroundColorAttributeName:HexRGB(0x666666)} context:nil].size.height + 1;
+}
+
+- (void)layoutSubviews {
+    [super layoutSubviews];
+    CGFloat contentHeight = CGRectGetMaxY(self.layoutView.frame); // 10是底部留白
+    if (contentHeight > 300) {
+        self.tipsContainerHeight.constant = 300;
+    }
+    else {
+        self.tipsContainerHeight.constant = contentHeight;
+    }
 }
 
 - (void)showAlert {
@@ -58,6 +189,18 @@
     [self removeAlert];
 }
 
+
+#pragma mark --- lazying
+- (UIScrollView *)scrollView {
+    if (!_scrollView) {
+        _scrollView = [[UIScrollView alloc] init];
+        _scrollView.bounces = NO;
+        _scrollView.backgroundColor = [UIColor clearColor];
+        _scrollView.showsHorizontalScrollIndicator = NO;
+        _scrollView.showsVerticalScrollIndicator = YES;
+    }
+    return _scrollView;
+}
 /*
 // Only override drawRect: if you perform custom drawing.
 // An empty implementation adversely affects performance during animation.

+ 17 - 14
KulexiuForStudent/KulexiuForStudent/Module/Mine/Setting/DeleteAccount/View/KSDeleteFailedAlertView.xib

@@ -3,7 +3,7 @@
     <device id="retina6_12" orientation="portrait" appearance="light"/>
     <dependencies>
         <deployment identifier="iOS"/>
-        <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="22684"/>
+        <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="22685"/>
         <capability name="System colors in document resources" minToolsVersion="11.0"/>
         <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
     </dependencies>
@@ -15,7 +15,7 @@
             <autoresizingMask key="autoresizingMask"/>
             <subviews>
                 <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="A1m-G5-f05">
-                    <rect key="frame" x="44" y="338" width="305" height="176"/>
+                    <rect key="frame" x="44" y="189" width="305" height="474"/>
                     <subviews>
                         <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="注销失败" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="PVB-qM-x6a">
                             <rect key="frame" x="115.66666666666666" y="20" width="73.666666666666657" height="25"/>
@@ -35,14 +35,15 @@
                             <color key="textColor" red="0.95686274509803915" green="0.27058823529411763" blue="0.25490196078431371" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
                             <nil key="highlightedColor"/>
                         </label>
-                        <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Tua-23-XnI">
-                            <rect key="frame" x="20" y="91" width="269" height="0.0"/>
-                            <fontDescription key="fontDescription" name=".AppleSystemUIFont" family=".AppleSystemUIFont" pointSize="14"/>
-                            <color key="textColor" red="0.40000000000000002" green="0.40000000000000002" blue="0.40000000000000002" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
-                            <nil key="highlightedColor"/>
-                        </label>
+                        <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="jS0-Sp-bPC">
+                            <rect key="frame" x="20" y="89" width="265" height="300"/>
+                            <color key="backgroundColor" systemColor="systemBackgroundColor"/>
+                            <constraints>
+                                <constraint firstAttribute="height" constant="300" id="jxw-lT-ODy"/>
+                            </constraints>
+                        </view>
                         <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="yzR-DS-KGK">
-                            <rect key="frame" x="20" y="116" width="265" height="40"/>
+                            <rect key="frame" x="20" y="414" width="265" height="40"/>
                             <color key="backgroundColor" red="0.1764705882352941" green="0.7803921568627451" blue="0.66666666666666663" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
                             <constraints>
                                 <constraint firstAttribute="height" constant="40" id="a7o-Kz-WXl"/>
@@ -63,15 +64,15 @@
                     <color key="backgroundColor" systemColor="systemBackgroundColor"/>
                     <constraints>
                         <constraint firstAttribute="bottom" secondItem="yzR-DS-KGK" secondAttribute="bottom" constant="20" id="6Q3-Fm-JeX"/>
-                        <constraint firstItem="yzR-DS-KGK" firstAttribute="top" secondItem="Tua-23-XnI" secondAttribute="bottom" constant="25" id="Aax-Nx-aK2"/>
+                        <constraint firstItem="jS0-Sp-bPC" firstAttribute="leading" secondItem="A1m-G5-f05" secondAttribute="leading" constant="20" id="749-CT-c4b"/>
                         <constraint firstItem="8w7-2y-inS" firstAttribute="leading" secondItem="A1m-G5-f05" secondAttribute="leading" constant="20" id="IQa-n3-U97"/>
                         <constraint firstAttribute="trailing" secondItem="8w7-2y-inS" secondAttribute="trailing" constant="20" id="MlC-Wt-oh8"/>
                         <constraint firstItem="yzR-DS-KGK" firstAttribute="leading" secondItem="A1m-G5-f05" secondAttribute="leading" constant="20" id="PEA-Sm-aRY"/>
+                        <constraint firstAttribute="trailing" secondItem="jS0-Sp-bPC" secondAttribute="trailing" constant="20" id="QZN-9F-ZA8"/>
                         <constraint firstItem="PVB-qM-x6a" firstAttribute="centerX" secondItem="A1m-G5-f05" secondAttribute="centerX" id="RXl-ic-FKV"/>
-                        <constraint firstAttribute="trailing" secondItem="Tua-23-XnI" secondAttribute="trailing" constant="16" id="cKx-or-yGl"/>
-                        <constraint firstItem="Tua-23-XnI" firstAttribute="leading" secondItem="A1m-G5-f05" secondAttribute="leading" constant="20" id="cT0-KC-a7J"/>
+                        <constraint firstItem="yzR-DS-KGK" firstAttribute="top" secondItem="jS0-Sp-bPC" secondAttribute="bottom" constant="25" id="XiB-84-zW3"/>
                         <constraint firstItem="PVB-qM-x6a" firstAttribute="top" secondItem="A1m-G5-f05" secondAttribute="top" constant="20" id="dwl-Vf-6pz"/>
-                        <constraint firstItem="Tua-23-XnI" firstAttribute="top" secondItem="8w7-2y-inS" secondAttribute="bottom" constant="2" id="hbF-8k-g9I"/>
+                        <constraint firstItem="jS0-Sp-bPC" firstAttribute="top" secondItem="8w7-2y-inS" secondAttribute="bottom" id="mKv-M1-OH6"/>
                         <constraint firstItem="8w7-2y-inS" firstAttribute="top" secondItem="PVB-qM-x6a" secondAttribute="bottom" constant="20" id="oai-CY-oS5"/>
                         <constraint firstAttribute="trailing" secondItem="yzR-DS-KGK" secondAttribute="trailing" constant="20" id="v7L-gE-0Va"/>
                         <constraint firstAttribute="width" constant="305" id="vZ4-Vt-GoE"/>
@@ -94,7 +95,9 @@
             <freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
             <connections>
                 <outlet property="containerView" destination="A1m-G5-f05" id="ghD-gs-9dw"/>
-                <outlet property="descLabel" destination="Tua-23-XnI" id="TaP-9q-3WF"/>
+                <outlet property="sureButton" destination="yzR-DS-KGK" id="biw-t9-COX"/>
+                <outlet property="tipsContainer" destination="jS0-Sp-bPC" id="cGf-6j-Efy"/>
+                <outlet property="tipsContainerHeight" destination="jxw-lT-ODy" id="2xC-4x-T9B"/>
             </connections>
             <point key="canvasLocation" x="26.717557251908396" y="19.718309859154932"/>
         </view>