123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- //
- // YOUPAIUesrInfoEditModen.m
- // MSYOUPAI
- //
- // Created by admin on 2022/3/5.
- // Copyright © 2022 MS. All rights reserved.
- //
- #import "YOUPAIUesrInfoEditModel.h"
- @implementation YOUPAIUesrInfoEditModel
- -(NSMutableArray *)youpaipalbums{
- if(_youpaipalbums == nil){
- _youpaipalbums = [[NSMutableArray alloc]initWithCapacity:0];
- }
- return _youpaipalbums;
- }
- // 计算进度
- -(CGFloat)youpaifProgress{
- CGFloat progress = 0;
- if(_youpaipbirthday.length>0){
- progress = progress+1;
- }
- if([_youpaipheight integerValue]>0){
- progress = progress+1;
- }
- if([_youpaipweight integerValue]>0){
- progress = progress+1;
- }
- if([_youpaipcityId length ]>0){
- progress = progress+1;
- }
- if(_youpaipoccupation.length>0){
- progress = progress+1;
- }
- if(_youpaipannual_income.length>0){
- progress = progress+1;
- }
- if(_youpaipeducation.length>0){
- progress = progress+1;
- }
- if(_youpaipis_marriage.length>0){
- progress = progress+1;
- }
- if(_youpaiplabel.count>0){
- progress = progress+1;
- }
- if(_youpaipnickname.length>0){
- progress = progress+1;
- }
- if(_youpaipalbums.count>0){
- progress = progress+1;
- }
- // 签名
- if(_youpaipsignature.length>0){
- progress = progress+1;
- }
- // 语音
- if(_youpaipvoice.length>0){
- progress = progress+1;
- }
- // 视频
- if(_youpaipvideo.length>0){
- progress = progress+1;
- }
- return progress/14.0;
-
- }
- @end
|