mirror of
https://github.com/wu736139669/ManagerDemo.git
synced 2026-08-05 05:55:42 +00:00
修改密码功能
This commit is contained in:
BIN
Binary file not shown.
@@ -17,6 +17,7 @@
|
||||
|
||||
+(void)presentLoginView
|
||||
{
|
||||
[ManagerUser shareInstance].isLogin = NO;
|
||||
LoginViewController *login = [[LoginViewController alloc] init];
|
||||
UINavigationController *nav =[[UINavigationController alloc]initWithRootViewController:login];
|
||||
|
||||
|
||||
@@ -52,13 +52,13 @@
|
||||
#pragma mark ImagePlayerDelegate
|
||||
- (void)imagePlayerView:(ImagePlayerView *)imagePlayerView loadImageForImageView:(UIImageView *)imageView index:(NSInteger)index
|
||||
{
|
||||
[imageView sd_setImageWithURL:[[_bannerInfo objectAtIndex:index]objectForKey:@"url"] placeholderImage:[UIImage imageNamed:@"adview"]];
|
||||
[imageView sd_setImageWithURL:[[_bannerInfo objectAtIndex:index]objectForKey:@"bannerUrl"] placeholderImage:[UIImage imageNamed:@"adview"]];
|
||||
}
|
||||
- (void)imagePlayerView:(ImagePlayerView *)imagePlayerView didTapAtIndex:(NSInteger)index
|
||||
{
|
||||
|
||||
if (_superViewController) {
|
||||
SVWebViewController* webViewController = [[SVWebViewController alloc] initWithURL:[NSURL URLWithString:[[_bannerInfo objectAtIndex:index] objectForKey:@"value"]]];
|
||||
SVWebViewController* webViewController = [[SVWebViewController alloc] initWithURL:[NSURL URLWithString:[[_bannerInfo objectAtIndex:index] objectForKey:@"contUrl"]]];
|
||||
webViewController.hidesBottomBarWhenPushed = YES;
|
||||
[_superViewController.navigationController pushViewController:webViewController animated:YES];
|
||||
}
|
||||
|
||||
@@ -18,20 +18,20 @@
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES" flexibleMaxY="YES"/>
|
||||
<subviews>
|
||||
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="监管部门规定,购买理财产品需提供实名信息以确保投资安全" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="7qF-7l-Ygs">
|
||||
<rect key="frame" x="20" y="20" width="280" height="42"/>
|
||||
<rect key="frame" x="20" y="15" width="280" height="57"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES" flexibleMaxY="YES"/>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="14"/>
|
||||
<color key="textColor" white="0.33333333333333331" alpha="1" colorSpace="calibratedWhite"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<textField opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" borderStyle="line" placeholder="请填写18位身份证好吗" minimumFontSize="17" id="hOz-kb-F4I">
|
||||
<rect key="frame" x="15" y="122" width="280" height="44"/>
|
||||
<rect key="frame" x="15" y="132" width="280" height="44"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES" flexibleMaxY="YES"/>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="14"/>
|
||||
<textInputTraits key="textInputTraits" keyboardType="numberPad"/>
|
||||
</textField>
|
||||
<textField opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" borderStyle="line" placeholder="请填写您的真实姓名" minimumFontSize="17" id="HzR-cA-16z">
|
||||
<rect key="frame" x="15" y="70" width="280" height="44"/>
|
||||
<rect key="frame" x="15" y="80" width="280" height="44"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES" flexibleMaxY="YES"/>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="14"/>
|
||||
<textInputTraits key="textInputTraits"/>
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
</textField>
|
||||
<label hidden="YES" opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="21b-R2-QIH">
|
||||
<rect key="frame" x="12" y="124" width="296" height="40"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES" flexibleMaxY="YES"/>
|
||||
<color key="backgroundColor" red="1" green="0.83810605820836981" blue="0.24953396881744794" alpha="1" colorSpace="calibratedRGB"/>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="22"/>
|
||||
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
|
||||
@@ -34,7 +34,7 @@
|
||||
</label>
|
||||
<view contentMode="scaleToFill" id="XWc-eN-89L">
|
||||
<rect key="frame" x="10" y="130" width="300" height="120"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES" flexibleMaxY="YES"/>
|
||||
<subviews>
|
||||
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="贷贷不会在任何地方泄漏您的号码" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="fpY-NW-BZm">
|
||||
<rect key="frame" x="11" y="0.0" width="198" height="21"/>
|
||||
|
||||
@@ -152,7 +152,10 @@
|
||||
|
||||
if (_isRealName) {
|
||||
if (_nameTextFiel.text.length>0 && _idCardTextField.text.length>0) {
|
||||
if (![_timer isValid]) {
|
||||
_cmsBtn.enabled = YES;
|
||||
}
|
||||
|
||||
if (_cmsNumTextField.text.length>0) {
|
||||
_nextBtn.enabled = YES;
|
||||
}else{
|
||||
@@ -185,12 +188,17 @@
|
||||
if (_isRealName) {
|
||||
dic = [NSDictionary dictionaryWithObjectsAndKeys:_phoneNum,@"phoneNum",_idCardTextField.text,@"idcardNo", _nameTextFiel.text, @"realName", nil];
|
||||
}else{
|
||||
[NSDictionary dictionaryWithObjectsAndKeys:_phoneNum,@"phoneNum", nil];
|
||||
dic = [NSDictionary dictionaryWithObjectsAndKeys:_phoneNum,@"phoneNum", nil];
|
||||
}
|
||||
|
||||
[daiDaiTongTestApi getApiWithParam:dic withApiType:@"getVerCode" completionBlock:^(id jsonRes) {
|
||||
if ([[jsonRes objectForKey:@"resultflag"] integerValue] == 1) {
|
||||
[MBProgressHUD errorHudWithView:self.view label:[jsonRes objectForKey:@"resultMsg"] hidesAfter:0.5];
|
||||
}else{
|
||||
if (![ManagerUser shareInstance].isLogin) {
|
||||
[ManagerUser shareInstance].token = [jsonRes objectForKeyWithoutNull:@"token"];
|
||||
[ManagerUser shareInstance].userId = [jsonRes objectForKeyWithoutNull:@"userid"];
|
||||
}
|
||||
[MBProgressHUD hideAllHUDsForView:self.view animated:YES];
|
||||
[_cmsNumTextField becomeFirstResponder];
|
||||
_nameTextFiel.enabled = NO;
|
||||
@@ -211,11 +219,12 @@
|
||||
[MBProgressHUD hudWithView:self.view label:@"安全加载中"];
|
||||
DaiDaiTongTestApi* daiDaiTongTestApi = [DaiDaiTongTestApi shareInstance];
|
||||
|
||||
[daiDaiTongTestApi getApiWithParam:[NSDictionary dictionaryWithObjectsAndKeys:_cmsNumTextField.text,@"verCode", nil] withApiType:@"getVerCode" completionBlock:^(id jsonRes) {
|
||||
[daiDaiTongTestApi getApiWithParam:[NSDictionary dictionaryWithObjectsAndKeys:_cmsNumTextField.text,@"verCode", nil] withApiType:@"changePswCheck" completionBlock:^(id jsonRes) {
|
||||
if ([[jsonRes objectForKey:@"resultflag"] integerValue] == 1) {
|
||||
[MBProgressHUD errorHudWithView:self.view label:[jsonRes objectForKey:@"resultMsg"] hidesAfter:0.5];
|
||||
[MBProgressHUD errorHudWithView:self.view label:[jsonRes objectForKey:@"resultMsg"] hidesAfter:1.0];
|
||||
}else{
|
||||
[MBProgressHUD hideAllHUDsForView:self.view animated:YES];
|
||||
|
||||
if (_type == 0) {
|
||||
SetPassWordViewController* setPassWordViewController = [[SetPassWordViewController alloc] init];
|
||||
[self.navigationController pushViewController:setPassWordViewController animated:YES];
|
||||
|
||||
@@ -65,20 +65,21 @@
|
||||
- (void)headerRereshing
|
||||
{
|
||||
|
||||
DaiDaiTongApi* daiDaiTongApi = [DaiDaiTongApi shareInstance];
|
||||
//广告条
|
||||
[daiDaiTongApi getBannerInfoWithcompletionBlock:^(id jsonRes) {
|
||||
if ([[jsonRes objectForKey:@"succ"] integerValue] == 1) {
|
||||
NSMutableArray* bannerInfo = [jsonRes objectForKey:@"infos"];
|
||||
//广告
|
||||
DaiDaiTongTestApi* daiDaiTongTestApi = [DaiDaiTongTestApi shareInstance];
|
||||
[daiDaiTongTestApi getApiWithParam:nil withApiType:@"getBanner" completionBlock:^(id jsonRes) {
|
||||
if ([[jsonRes objectForKey:@"resultflag"] integerValue] == 1) {
|
||||
[MBProgressHUD errorHudWithView:self.view label:[jsonRes objectForKey:@"resultMsg"] hidesAfter:1.0];
|
||||
}else{
|
||||
[MBProgressHUD hideAllHUDsForView:self.view animated:YES];
|
||||
NSMutableArray* bannerInfo = [jsonRes objectForKey:@"banners"];
|
||||
[_homeAdView setBannerInfo:bannerInfo];
|
||||
}
|
||||
} failedBlock:^(NSError *error) {
|
||||
DLog(@"失败");
|
||||
[MBProgressHUD errorHudWithView:nil label:@"网络出错" hidesAfter:1.0];
|
||||
[MBProgressHUD errorHudWithView:self.view label:@"网络出错" hidesAfter:1.0];
|
||||
}];
|
||||
_homeMainView.hidden = YES;
|
||||
|
||||
DaiDaiTongTestApi* daiDaiTongTestApi = [DaiDaiTongTestApi shareInstance];
|
||||
[daiDaiTongTestApi getApiWithParam:[NSDictionary dictionaryWithObjectsAndKeys:[NSNumber numberWithInteger:1],@"pageNum", nil] withApiType:@"proList" completionBlock:^(id jsonRes) {
|
||||
if ([[jsonRes objectForKey:@"resultflag"] integerValue] == 0) {
|
||||
NSDictionary* dic = [[jsonRes objectForKeyWithoutNull:@"proList"] objectAtIndex:0];
|
||||
|
||||
@@ -236,8 +236,8 @@
|
||||
break;
|
||||
case 2:
|
||||
{
|
||||
_myTotalProfitCellView.totalMoneyLabel.text = [_myInfoDic objectForKeyWithoutNull:@"totalAssets"] ;
|
||||
_myTotalProfitCellView.profitMoneyLabel.text = [_myInfoDic objectForKeyWithoutNull:@"totalProfit"];
|
||||
_myTotalProfitCellView.totalMoneyLabel.text = [NSString stringWithFormat:@"%.2f",[[_myInfoDic objectForKeyWithoutNull:@"totalAssets"] floatValue]];
|
||||
_myTotalProfitCellView.profitMoneyLabel.text = [NSString stringWithFormat:@"%.2f",[[_myInfoDic objectForKeyWithoutNull:@"totalProfit"] floatValue]];
|
||||
}
|
||||
break;
|
||||
case 4:
|
||||
|
||||
Reference in New Issue
Block a user