Commit 37fe80be by ludi

修复私房童话价格选择的bug

parent 999b4358
...@@ -493,7 +493,7 @@ ...@@ -493,7 +493,7 @@
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CODE_SIGN_ENTITLEMENTS = FuSiLive/FuSiLive.entitlements; CODE_SIGN_ENTITLEMENTS = FuSiLive/FuSiLive.entitlements;
CODE_SIGN_STYLE = Automatic; CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 20250402113554; CURRENT_PROJECT_VERSION = 20250402113555;
DEFINES_MODULE = YES; DEFINES_MODULE = YES;
DEVELOPMENT_TEAM = 6GG26BHUMC; DEVELOPMENT_TEAM = 6GG26BHUMC;
ENABLE_ON_DEMAND_RESOURCES = NO; ENABLE_ON_DEMAND_RESOURCES = NO;
...@@ -761,7 +761,7 @@ ...@@ -761,7 +761,7 @@
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CODE_SIGN_ENTITLEMENTS = FuSiLive/FuSiLive.entitlements; CODE_SIGN_ENTITLEMENTS = FuSiLive/FuSiLive.entitlements;
CODE_SIGN_STYLE = Automatic; CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 20250402113554; CURRENT_PROJECT_VERSION = 20250402113555;
DEFINES_MODULE = YES; DEFINES_MODULE = YES;
DEVELOPMENT_TEAM = 6GG26BHUMC; DEVELOPMENT_TEAM = 6GG26BHUMC;
ENABLE_ON_DEMAND_RESOURCES = NO; ENABLE_ON_DEMAND_RESOURCES = NO;
......
...@@ -7,12 +7,12 @@ ...@@ -7,12 +7,12 @@
<key>FUSChatCenterBundle.xcscheme_^#shared#^_</key> <key>FUSChatCenterBundle.xcscheme_^#shared#^_</key>
<dict> <dict>
<key>orderHint</key> <key>orderHint</key>
<integer>80</integer> <integer>83</integer>
</dict> </dict>
<key>FUSChatCenterModule.xcscheme_^#shared#^_</key> <key>FUSChatCenterModule.xcscheme_^#shared#^_</key>
<dict> <dict>
<key>orderHint</key> <key>orderHint</key>
<integer>81</integer> <integer>80</integer>
</dict> </dict>
</dict> </dict>
</dict> </dict>
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
<key>FUSShowRoomModule.xcscheme_^#shared#^_</key> <key>FUSShowRoomModule.xcscheme_^#shared#^_</key>
<dict> <dict>
<key>orderHint</key> <key>orderHint</key>
<integer>83</integer> <integer>79</integer>
</dict> </dict>
</dict> </dict>
</dict> </dict>
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
<key>FUSUserCenterModuleBundle.xcscheme_^#shared#^_</key> <key>FUSUserCenterModuleBundle.xcscheme_^#shared#^_</key>
<dict> <dict>
<key>orderHint</key> <key>orderHint</key>
<integer>79</integer> <integer>81</integer>
</dict> </dict>
</dict> </dict>
</dict> </dict>
......
...@@ -370,18 +370,27 @@ ...@@ -370,18 +370,27 @@
}]; }];
} }
__block BOOL showTips = NO; // __block BOOL showTips = NO;
[self.priceModel.priceList enumerateObjectsUsingBlock:^(FUSPrivateLivePriceItemModel * _Nonnull obj, NSUInteger idx, BOOL * _Nonnull stop) { // [self.priceModel.priceList enumerateObjectsUsingBlock:^(FUSPrivateLivePriceItemModel * _Nonnull obj, NSUInteger idx, BOOL * _Nonnull stop) {
if (obj.status == 0) { // if (obj.status == 0) {
showTips = YES; // showTips = YES;
*stop = YES; // *stop = YES;
} // }
}]; // }];
//
// if (showTips) {
// cell.priceLabelTop.constant = 22;
// cell.nexttipsLabel.hidden = NO;
// cell.nexttipsLabel.text = price.remark;
// }else {
// cell.priceLabelTop.constant = 38;
// cell.nexttipsLabel.hidden = YES;
// }
if (showTips) { if (price.status == 0) {
cell.priceLabelTop.constant = 22; cell.priceLabelTop.constant = 22;
cell.nexttipsLabel.hidden = NO; cell.nexttipsLabel.hidden = NO;
cell.nexttipsLabel.text = price.remark; cell.nexttipsLabel.text = price.nexttips;
}else { }else {
cell.priceLabelTop.constant = 38; cell.priceLabelTop.constant = 38;
cell.nexttipsLabel.hidden = YES; cell.nexttipsLabel.hidden = YES;
...@@ -414,26 +423,26 @@ ...@@ -414,26 +423,26 @@
return; return;
} }
if (price.price.integerValue > 0) { // if (price.price.integerValue > 0) {
if (self.detailCompleteStage == -1) { // if (self.detailCompleteStage == -1) {
//未完善 // //未完善
[FUSAlertView showAlertWithTitle:[NSString fus_localString:@"私房价格"] message:[NSString fus_localString:@"完善个人资料设定,可解锁价格"] cancelButtonTitle:[NSString fus_localString:@"取消"] otherButtonTitles:@[[NSString fus_localString:@"确认"]] clickBlock:^(NSInteger buttonIndex) { // [FUSAlertView showAlertWithTitle:[NSString fus_localString:@"私房价格"] message:[NSString fus_localString:@"完善个人资料设定,可解锁价格"] cancelButtonTitle:[NSString fus_localString:@"取消"] otherButtonTitles:@[[NSString fus_localString:@"确认"]] clickBlock:^(NSInteger buttonIndex) {
if (buttonIndex == 1) { // if (buttonIndex == 1) {
FUSCompleteUserInfoViewController *vc = [[FUSCompleteUserInfoViewController alloc] init]; // FUSCompleteUserInfoViewController *vc = [[FUSCompleteUserInfoViewController alloc] init];
[vc fus_setControllerTypeWithType:1]; // [vc fus_setControllerTypeWithType:1];
[[UIViewController fus_topViewController].navigationController pushViewController:vc animated:YES]; // [[UIViewController fus_topViewController].navigationController pushViewController:vc animated:YES];
} // }
}]; // }];
return; // return;
} // }
else if (self.detailCompleteStage == 0){ // else if (self.detailCompleteStage == 0){
// 审核中 // // 审核中
[FUSAlertView showAlertWithTitle:[NSString fus_localString:@"私房价格"] message:[NSString fus_localString:@"个人资料正在审核中,请耐心等候"] cancelButtonTitle:nil otherButtonTitles:@[[NSString fus_localString:@"我知道了"]] clickBlock:^(NSInteger buttonIndex) { // [FUSAlertView showAlertWithTitle:[NSString fus_localString:@"私房价格"] message:[NSString fus_localString:@"个人资料正在审核中,请耐心等候"] cancelButtonTitle:nil otherButtonTitles:@[[NSString fus_localString:@"我知道了"]] clickBlock:^(NSInteger buttonIndex) {
//
}]; // }];
return; // return;
} // }
} // }
MJWeakSelf MJWeakSelf
// 发起请求以 // 发起请求以
...@@ -472,15 +481,45 @@ ...@@ -472,15 +481,45 @@
}]; }];
} }
else if (code == -3035) { else if (code == -3035) {
[FUSAlertView showAlertWithTitle:msg message:nil cancelButtonTitle:[NSString fus_localString:@"取消"] otherButtonTitles:@[[NSString fus_localString:@"确定"]] clickBlock:^(NSInteger buttonIndex) { // [FUSAlertView showAlertWithTitle:msg message:nil cancelButtonTitle:[NSString fus_localString:@"取消"] otherButtonTitles:@[[NSString fus_localString:@"确定"]] clickBlock:^(NSInteger buttonIndex) {
//
if (buttonIndex == 1) { // if (buttonIndex == 1) {
FUSCompleteUserInfoViewController *vc = [[FUSCompleteUserInfoViewController alloc] init]; // FUSCompleteUserInfoViewController *vc = [[FUSCompleteUserInfoViewController alloc] init];
[vc fus_setControllerTypeWithType:1]; // [vc fus_setControllerTypeWithType:1];
[[UIViewController fus_topViewController].navigationController pushViewController:vc animated:YES]; // [[UIViewController fus_topViewController].navigationController pushViewController:vc animated:YES];
} // }
//
}]; // }];
if (weakSelf.detailCompleteStage == -1) {
//未完善
[FUSAlertView showAlertWithTitle:[NSString fus_localString:@"私房价格"] message:[NSString fus_localString:@"完善个人资料设定,可解锁价格"] cancelButtonTitle:[NSString fus_localString:@"取消"] otherButtonTitles:@[[NSString fus_localString:@"确认"]] clickBlock:^(NSInteger buttonIndex) {
if (buttonIndex == 1) {
FUSCompleteUserInfoViewController *vc = [[FUSCompleteUserInfoViewController alloc] init];
[vc fus_setControllerTypeWithType:1];
[[UIViewController fus_topViewController].navigationController pushViewController:vc animated:YES];
}
}];
return;
}
else if (weakSelf.detailCompleteStage == 0){
// 审核中
[FUSAlertView showAlertWithTitle:[NSString fus_localString:@"私房价格"] message:[NSString fus_localString:@"个人资料正在审核中,请耐心等候"] cancelButtonTitle:nil otherButtonTitles:@[[NSString fus_localString:@"我知道了"]] clickBlock:^(NSInteger buttonIndex) {
}];
return;
}
else {
[FUSAlertView showAlertWithTitle:msg message:nil cancelButtonTitle:[NSString fus_localString:@"取消"] otherButtonTitles:@[[NSString fus_localString:@"确定"]] clickBlock:^(NSInteger buttonIndex) {
if (buttonIndex == 1) {
FUSCompleteUserInfoViewController *vc = [[FUSCompleteUserInfoViewController alloc] init];
[vc fus_setControllerTypeWithType:1];
[[UIViewController fus_topViewController].navigationController pushViewController:vc animated:YES];
}
}];
}
} }
else { else {
[FUSAlertView showAlertWithTitle:msg message:nil cancelButtonTitle:[NSString fus_localString:@"知道了"] otherButtonTitles:nil clickBlock:nil]; [FUSAlertView showAlertWithTitle:msg message:nil cancelButtonTitle:[NSString fus_localString:@"知道了"] otherButtonTitles:nil clickBlock:nil];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment