This commit is contained in:
lianxiang
2018-09-27 00:20:01 +08:00
parent d0230f55ed
commit cb0accdb66
60 changed files with 1063 additions and 290 deletions
@@ -163,6 +163,7 @@
self.registBtn.layer.masksToBounds = YES;
self.registBtn.layer.cornerRadius = self.registBtn.frame.size.height / 2;
self.registBtn.userInteractionEnabled = NO;
}
@@ -247,15 +248,15 @@
-(void)checkBtnAction:(UIButton *)btn{
btn.selected = !btn.selected;
if (btn.selected) {
[btn setImage:[UIImage imageNamed:@"btn_turndown"] forState:UIControlStateSelected];
[self.registBtn setBackgroundColor:[UIColor lightGrayColor]];
self.registBtn.userInteractionEnabled = NO;
[btn setImage:[UIImage imageNamed:@"btn_right"] forState:UIControlStateNormal];
[self.registBtn setBackgroundColor:GIGARGB(181,14,14, 1)];
self.registBtn.userInteractionEnabled = YES;
}else{
[btn setImage:[UIImage imageNamed:@"btn_right"] forState:UIControlStateNormal];
[self.registBtn setBackgroundColor:GIGARGB(0, 222, 189, 1)];
self.registBtn.userInteractionEnabled = YES;
[btn setImage:[UIImage imageNamed:@"btn_turndown"] forState:UIControlStateSelected];
[self.registBtn setBackgroundColor:[UIColor lightGrayColor]];
self.registBtn.userInteractionEnabled = NO;
}
}
@@ -91,7 +91,7 @@
</view>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="hZA-nj-Wmu">
<rect key="frame" x="84" y="437" width="207" height="41"/>
<color key="backgroundColor" red="0.70980392156862748" green="0.054901960784313725" blue="0.054901960784313725" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<color key="backgroundColor" white="0.66666666666666663" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="height" constant="41" id="IZZ-Wn-zMh"/>
</constraints>
@@ -120,7 +120,7 @@
<constraint firstAttribute="height" constant="37" id="sLA-cD-5zI"/>
</constraints>
<inset key="imageEdgeInsets" minX="14" minY="0.0" maxX="0.0" maxY="0.0"/>
<state key="normal" image="btn_right"/>
<state key="normal" image="btn_turndown"/>
</button>
</subviews>
<constraints>
@@ -171,7 +171,7 @@
</objects>
<resources>
<image name="btn_meaasag" width="76" height="22"/>
<image name="btn_right" width="14" height="14"/>
<image name="btn_turndown" width="14" height="14"/>
<image name="img_circle_avatar" width="114" height="114"/>
</resources>
</document>
@@ -245,7 +245,9 @@
-(void)WeiXinLongIn:(NSNotification *)notification{
//检查网络
//[self testNetworkStatus];
[self.view makeToastActivity:CSToastPositionCenter];
NSDictionary *param = @{
@"appid":WXin_APPID,
@"secret":WXin_APPSecret,