Drew 6 anni fa
parent
commit
7a4eb43ae3

+ 6 - 0
千模/MyInfo/MineViewController.m

@@ -28,6 +28,8 @@
 @property(weak, nonatomic) IBOutlet UIButton *promoteBtn;
 @property (weak, nonatomic) IBOutlet MineItemView *shop;
 @property (weak, nonatomic) IBOutlet NSLayoutConstraint *consHeight;
+@property (weak, nonatomic) IBOutlet UIView *inviteView;
+@property (weak, nonatomic) IBOutlet NSLayoutConstraint *inviteHeight;
 
 @end
 
@@ -56,6 +58,8 @@
     self.promoteBtn.layer.shadowRadius = 10;
     self.shop.hidden = YES;
     self.consHeight.constant = 0.f;
+    self.inviteView.hidden = YES;
+    self.inviteHeight.constant = 0.f;
     [self.shop layoutIfNeeded];
     
     NSString *str = [NSString stringWithFormat:@"%@memberInfo?action=auditStatus", webURL];
@@ -69,6 +73,8 @@
                  if([@"true" isEqualToString: data]){
                      self.shop.hidden = NO;
                      self.consHeight.constant = 60.f;
+                     self.inviteView.hidden = NO;
+                     self.inviteHeight.constant = 86;
                      [self.shop layoutIfNeeded];
                  }
              }

+ 2 - 0
千模/MyInfo/MineViewController.xib

@@ -15,6 +15,8 @@
                 <outlet property="bgView" destination="r9j-ZU-SlD" id="m1X-LN-lPe"/>
                 <outlet property="consHeight" destination="4ez-c9-hvI" id="OAl-8w-Iz1"/>
                 <outlet property="headView" destination="JMR-FE-a0P" id="Oyz-DF-L4X"/>
+                <outlet property="inviteHeight" destination="2ta-5m-k1i" id="f6k-Jq-6Ay"/>
+                <outlet property="inviteView" destination="eL3-C5-FD8" id="gL1-dO-0lv"/>
                 <outlet property="nameLabel" destination="tnV-pA-N5a" id="4Yj-BS-G5M"/>
                 <outlet property="promoteBtn" destination="bzN-aj-YPb" id="MuZ-vU-MqS"/>
                 <outlet property="shop" destination="ofV-pQ-teD" id="d8F-Xq-3vT"/>