Commit e020ae9f authored by lmj_521aiau@163.com's avatar lmj_521aiau@163.com

Merge branch 'master' of gitlab.huolea.com:lmi/dolphins

# Conflicts:
#	.DS_Store
parents 1b8adee2 837aa30b
No preview for this file type
...@@ -12,7 +12,6 @@ ...@@ -12,7 +12,6 @@
A95A97B124D1132A0035A684 /* ZJGuardCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = A95A97AF24D1132A0035A684 /* ZJGuardCell.xib */; }; A95A97B124D1132A0035A684 /* ZJGuardCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = A95A97AF24D1132A0035A684 /* ZJGuardCell.xib */; };
A95A97B424D120F20035A684 /* ZJElectricalRemindVC.m in Sources */ = {isa = PBXBuildFile; fileRef = A95A97B324D120F20035A684 /* ZJElectricalRemindVC.m */; }; A95A97B424D120F20035A684 /* ZJElectricalRemindVC.m in Sources */ = {isa = PBXBuildFile; fileRef = A95A97B324D120F20035A684 /* ZJElectricalRemindVC.m */; };
A95A97B824D121140035A684 /* ZJCoulometricRemindCell.m in Sources */ = {isa = PBXBuildFile; fileRef = A95A97B624D121140035A684 /* ZJCoulometricRemindCell.m */; }; A95A97B824D121140035A684 /* ZJCoulometricRemindCell.m in Sources */ = {isa = PBXBuildFile; fileRef = A95A97B624D121140035A684 /* ZJCoulometricRemindCell.m */; };
A95A97B924D121140035A684 /* ZJCoulometricRemindCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = A95A97B724D121140035A684 /* ZJCoulometricRemindCell.xib */; };
A95F5C9E248DE272001DB97E /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A95F5C9D248DE272001DB97E /* Security.framework */; }; A95F5C9E248DE272001DB97E /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A95F5C9D248DE272001DB97E /* Security.framework */; };
A95F5CBE248F2506001DB97E /* CoreTelephony.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A95F5CBD248F2506001DB97E /* CoreTelephony.framework */; }; A95F5CBE248F2506001DB97E /* CoreTelephony.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A95F5CBD248F2506001DB97E /* CoreTelephony.framework */; };
A95F5CC0248F6D25001DB97E /* libc++.1.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = A95F5CBF248F6D25001DB97E /* libc++.1.tbd */; }; A95F5CC0248F6D25001DB97E /* libc++.1.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = A95F5CBF248F6D25001DB97E /* libc++.1.tbd */; };
...@@ -853,10 +852,10 @@ ...@@ -853,10 +852,10 @@
A9C2B89224D039B400010EAE /* Network */ = { A9C2B89224D039B400010EAE /* Network */ = {
isa = PBXGroup; isa = PBXGroup;
children = ( children = (
A9C2B89324D039B400010EAE /* ZJAESCommonCrypto.m */,
A9C2B89424D039B400010EAE /* AESCipher */, A9C2B89424D039B400010EAE /* AESCipher */,
A9C2B89724D039B400010EAE /* TQNetworkTools.h */,
A9C2B89824D039B400010EAE /* ZJAESCommonCrypto.h */, A9C2B89824D039B400010EAE /* ZJAESCommonCrypto.h */,
A9C2B89324D039B400010EAE /* ZJAESCommonCrypto.m */,
A9C2B89724D039B400010EAE /* TQNetworkTools.h */,
A9C2B89924D039B400010EAE /* TQNetworkTools.m */, A9C2B89924D039B400010EAE /* TQNetworkTools.m */,
); );
path = Network; path = Network;
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<Workspace <Workspace
version = "1.0"> version = "1.0">
<FileRef <FileRef
location = "group:/Users/mingjinli/Documents/GIT/Dolphins/Dolphins.xcodeproj"> location = "group:Dolphins.xcodeproj">
</FileRef> </FileRef>
<FileRef <FileRef
location = "group:Pods/Pods.xcodeproj"> location = "group:Pods/Pods.xcodeproj">
......
...@@ -3,17 +3,4 @@ ...@@ -3,17 +3,4 @@
uuid = "05A8EC5D-3D7B-4194-AF9F-73A026E946A1" uuid = "05A8EC5D-3D7B-4194-AF9F-73A026E946A1"
type = "0" type = "0"
version = "2.0"> version = "2.0">
<Breakpoints>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.ExceptionBreakpoint">
<BreakpointContent
uuid = "C59D3D3D-C4C8-4509-B8B8-06E2EA4C9D35"
shouldBeEnabled = "Yes"
ignoreCount = "0"
continueAfterRunningActions = "No"
scope = "1"
stopOnStyle = "0">
</BreakpointContent>
</BreakpointProxy>
</Breakpoints>
</Bucket> </Bucket>
...@@ -32,6 +32,9 @@ NS_ASSUME_NONNULL_BEGIN ...@@ -32,6 +32,9 @@ NS_ASSUME_NONNULL_BEGIN
@property (nonatomic, copy) NSString * editNickName; @property (nonatomic, copy) NSString * editNickName;
@property(nonatomic,assign)BOOL choose;
@end @end
NS_ASSUME_NONNULL_END NS_ASSUME_NONNULL_END
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
#import "Dolphins-Swift.h" #import "Dolphins-Swift.h"
#import "ZJReminderMainController.h" #import "ZJReminderMainController.h"
#import "ZJAddReminderController.h" #import "ZJAddReminderController.h"
#import "ZJReminder.h"
@interface ZJGuardViewController ()<UICollectionViewDelegate, UICollectionViewDataSource> @interface ZJGuardViewController ()<UICollectionViewDelegate, UICollectionViewDataSource>
...@@ -36,14 +37,15 @@ ...@@ -36,14 +37,15 @@
[super viewDidLoad]; [super viewDidLoad];
_dataSource = [[NSMutableArray alloc] init]; _dataSource = [[NSMutableArray alloc] init];
_dataSource = @[@{@"title":@"多吃蔬菜", @"image":@"remind_cell_2_3"}, // _dataSource = @[@{@"title":@"多吃蔬菜", @"image":@"remind_cell_2_3"},
@{@"title":@"记得起床", @"image":@"remind_cell_3_2"}, // @{@"title":@"记得起床", @"image":@"remind_cell_3_2"},
@{@"title":@"多吃水果", @"image":@"remind_cell_2_0"}, // @{@"title":@"多吃水果", @"image":@"remind_cell_2_0"},
@{@"title":@"多喝水", @"image":@"remind_cell_0_2"}, // @{@"title":@"多喝水", @"image":@"remind_cell_0_2"},
@{@"title":@"添加提醒", @"image":@"remind_cell_Add"}].mutableCopy; // @{@"title":@"添加提醒", @"image":@"remind_cell_Add"}].mutableCopy;
[self setUI]; [self setUI];
[self getFriendList]; [self getFriendList];
[self requestRemindList];
} }
- (void)setUI{ - (void)setUI{
...@@ -77,6 +79,26 @@ ...@@ -77,6 +79,26 @@
} }
} }
-(void)requestRemindList
{
[[TQNetworkTools shared] getWithAction:reminderTypeList parameters:@{} success:^(id _Nonnull response) {
if ([response[@"status"] intValue] == 200) {
[self.dataSource removeAllObjects];
if ([response[@"result"][@"data"] isKindOfClass:[NSArray class]]) {
for (NSDictionary *dict in response[@"result"][@"data"]) {
ZJChooseIcon *model = [ZJChooseIcon yy_modelWithJSON:dict];
[self.dataSource addObject:model];
}
ZJChooseIcon *model = [ZJChooseIcon yy_modelWithJSON:@{@"name":@"添加提醒", @"iconUrl":@"remind_cell_Add"}];
[self.dataSource addObject:model];
}
}
[self.collectView reloadData];
} failure:^(NSError * _Nonnull error) {
}];
}
#pragma mark 好友列表 #pragma mark 好友列表
- (void)getFriendList{ - (void)getFriendList{
...@@ -139,10 +161,16 @@ ...@@ -139,10 +161,16 @@
ZJGuardCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:@"ZJGuardCell" forIndexPath:indexPath]; ZJGuardCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:@"ZJGuardCell" forIndexPath:indexPath];
NSDictionary * dic = _dataSource[indexPath.item]; if (self.dataSource.count) {
ZJChooseIcon *model = _dataSource[indexPath.item];
cell.iconImV.image = [UIImage imageNamed:[dic objectForKey:@"image"]]; if (indexPath.row == self.dataSource.count - 1) {
cell.titleLab.text = [dic objectForKey:@"title"]; cell.iconImV.image = [UIImage imageNamed:model.iconUrl];
cell.titleLab.text = model.name;
}else{
[cell.iconImV sd_setImageWithURL:[NSURL URLWithString:model.iconUrl]];
cell.titleLab.text = model.name;
}
}
return cell; return cell;
} }
...@@ -186,7 +214,8 @@ ...@@ -186,7 +214,8 @@
[self.navigationController pushViewController:vc animated:YES]; [self.navigationController pushViewController:vc animated:YES];
}else{ }else{
ZJReminderMainController *vc = [ZJReminderMainController new]; ZJReminderMainController *vc = [ZJReminderMainController new];
vc.title = _dataSource[indexPath.row][@"title"]; ZJChooseIcon *model = _dataSource[indexPath.item];
vc.model = model;
[self.navigationController pushViewController:vc animated:YES]; [self.navigationController pushViewController:vc animated:YES];
} }
} }
......
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="16097.2" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES"> <document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="15505" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<device id="retina6_1" orientation="portrait" appearance="light"/> <device id="retina6_1" orientation="portrait" appearance="light"/>
<dependencies> <dependencies>
<deployment identifier="iOS"/> <deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="16087"/> <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="15510"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/> <capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/> <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies> </dependencies>
...@@ -19,6 +19,10 @@ ...@@ -19,6 +19,10 @@
<subviews> <subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="remind_cell_Add" translatesAutoresizingMaskIntoConstraints="NO" id="wdg-vm-tUc"> <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="remind_cell_Add" translatesAutoresizingMaskIntoConstraints="NO" id="wdg-vm-tUc">
<rect key="frame" x="132.5" y="56.5" width="40" height="40"/> <rect key="frame" x="132.5" y="56.5" width="40" height="40"/>
<constraints>
<constraint firstAttribute="height" constant="40" id="Cw1-FS-hD9"/>
<constraint firstAttribute="width" constant="40" id="skZ-oG-oDx"/>
</constraints>
</imageView> </imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="mve-uo-rrt"> <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="mve-uo-rrt">
<rect key="frame" x="138.5" y="104.5" width="28.5" height="13.5"/> <rect key="frame" x="138.5" y="104.5" width="28.5" height="13.5"/>
......
...@@ -8,11 +8,13 @@ ...@@ -8,11 +8,13 @@
#import "ZJAddReminderController.h" #import "ZJAddReminderController.h"
#import "ZJChooseIconController.h" #import "ZJChooseIconController.h"
#import "ZJReminder.h"
@interface ZJAddReminderController () @interface ZJAddReminderController ()
@property (weak, nonatomic) IBOutlet UITextField *textField; @property (weak, nonatomic) IBOutlet UITextField *textField;
@property (weak, nonatomic) IBOutlet UIImageView *icon; @property (weak, nonatomic) IBOutlet UIImageView *icon;
@property(nonatomic,strong)ZJChooseIcon *chooseModel;
...@@ -33,11 +35,35 @@ ...@@ -33,11 +35,35 @@
[MBProgressHUD showMessage:@"请输入名称"]; [MBProgressHUD showMessage:@"请输入名称"];
return; return;
} }
if (self.chooseModel == nil) {
[MBProgressHUD showMessage:@"请输入选择图片"];
return;
}
NSDictionary *dict = @{@"iconId":@(self.chooseModel.id),@"name":self.textField.text};
// dict[@"remindTypeInsert"] = @{@"iconId":@(self.chooseModel.id),@"name":self.textField.text};
[[TQNetworkTools shared] postWithBodyAction:reminderAddRemindType parameters:@{} body:dict success:^(NSDictionary * _Nonnull response) {
if ([response[@"status"] intValue] == 200) {
[self.navigationController popViewControllerAnimated:YES];
}else{
[MBProgressHUD showMessage:@"服务出错,请稍后重试!"];
}
} failure:^(NSError * _Nonnull error) {
}];
} }
- (IBAction)addIconAction:(UIButton *)sender { - (IBAction)addIconAction:(UIButton *)sender {
ZJChooseIconController *vc = [ZJChooseIconController new]; ZJChooseIconController *vc = [ZJChooseIconController new];
__weak typeof(self) weakSelf = self;
vc.backIcon = ^(ZJChooseIcon * _Nonnull model) {
weakSelf.chooseModel = model;
if (model.url) {
[weakSelf.icon sd_setImageWithURL:[NSURL URLWithString:model.url]];
}
};
[self.navigationController pushViewController:vc animated:YES]; [self.navigationController pushViewController:vc animated:YES];
} }
......
...@@ -62,7 +62,7 @@ ...@@ -62,7 +62,7 @@
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="icon_More" translatesAutoresizingMaskIntoConstraints="NO" id="nUU-By-QqR"> <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="icon_More" translatesAutoresizingMaskIntoConstraints="NO" id="nUU-By-QqR">
<rect key="frame" x="356" y="28" width="14" height="14"/> <rect key="frame" x="356" y="28" width="14" height="14"/>
</imageView> </imageView>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="remind_cell_0_1" translatesAutoresizingMaskIntoConstraints="NO" id="nDX-Z7-3Jj"> <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="nDX-Z7-3Jj">
<rect key="frame" x="311" y="20" width="30" height="30"/> <rect key="frame" x="311" y="20" width="30" height="30"/>
<constraints> <constraints>
<constraint firstAttribute="width" constant="30" id="CGZ-kg-NZk"/> <constraint firstAttribute="width" constant="30" id="CGZ-kg-NZk"/>
...@@ -129,6 +129,5 @@ ...@@ -129,6 +129,5 @@
</objects> </objects>
<resources> <resources>
<image name="icon_More" width="14" height="14"/> <image name="icon_More" width="14" height="14"/>
<image name="remind_cell_0_1" width="40" height="40"/>
</resources> </resources>
</document> </document>
...@@ -10,8 +10,13 @@ ...@@ -10,8 +10,13 @@
NS_ASSUME_NONNULL_BEGIN NS_ASSUME_NONNULL_BEGIN
@class ZJChooseIcon;
@interface ZJChooseIconController : UIViewController @interface ZJChooseIconController : UIViewController
@property(nonatomic,copy)void (^backIcon)(ZJChooseIcon *model);
@end @end
NS_ASSUME_NONNULL_END NS_ASSUME_NONNULL_END
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
#import "ZJChooseIconController.h" #import "ZJChooseIconController.h"
#import "ZJChooseIconCell.h" #import "ZJChooseIconCell.h"
#import "ZJReminder.h"
@interface ZJChooseIconController ()<UICollectionViewDelegate,UICollectionViewDataSource> @interface ZJChooseIconController ()<UICollectionViewDelegate,UICollectionViewDataSource>
...@@ -35,21 +36,55 @@ ...@@ -35,21 +36,55 @@
self.view.backgroundColor = [UIColor colorWithHexString:@"fafafa"]; self.view.backgroundColor = [UIColor colorWithHexString:@"fafafa"];
[self.view addSubview:self.collectionView]; [self.view addSubview:self.collectionView];
[self requestData];
}
-(void)requestData
{
[[TQNetworkTools shared] getWithAction:reminderIconList parameters:@{} success:^(id _Nonnull response) {
if ([response[@"status"] intValue] == 200) {
[self.dataArray removeAllObjects];
if ([response[@"result"][@"data"] isKindOfClass:[NSArray class]]) {
for (NSDictionary *dict in response[@"result"][@"data"]) {
ZJChooseIcon *model = [ZJChooseIcon yy_modelWithJSON:dict];
[self.dataArray addObject:model];
}
}
}
[self.collectionView reloadData];
} failure:^(NSError * _Nonnull error) {
}];
} }
-(NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section -(NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section
{ {
return 10; return self.dataArray.count;
} }
-(UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath -(UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath
{ {
ZJChooseIconCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:@"cell" forIndexPath:indexPath]; ZJChooseIconCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:@"cell" forIndexPath:indexPath];
if (self.dataArray.count) {
ZJChooseIcon *model = self.dataArray[indexPath.row];
[cell.icon sd_setImageWithURL:[NSURL URLWithString:model.url]];
}
return cell; return cell;
} }
-(void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath
{
if (self.dataArray.count) {
ZJChooseIcon *model = self.dataArray[indexPath.row];
if (self.backIcon) {
self.backIcon(model);
}
[self.navigationController popViewControllerAnimated:YES];
}
}
-(UICollectionView *)collectionView -(UICollectionView *)collectionView
{ {
......
...@@ -10,9 +10,10 @@ ...@@ -10,9 +10,10 @@
NS_ASSUME_NONNULL_BEGIN NS_ASSUME_NONNULL_BEGIN
@class ZJFriendModel;
@interface ZJReminderCareController : UIViewController @interface ZJReminderCareController : UIViewController
@property(nonatomic,copy)void (^backData)(NSString *data); @property(nonatomic,copy)void (^backData)(ZJFriendModel *model);
@end @end
......
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
#import "ZJReminderCareController.h" #import "ZJReminderCareController.h"
#import "ZJReminderCareCell.h" #import "ZJReminderCareCell.h"
#import "ZJFriendModel.h"
static NSString * const ZJReminderCareCellID = @"ZJReminderCareCellID"; static NSString * const ZJReminderCareCellID = @"ZJReminderCareCellID";
@interface ZJReminderCareController ()<UITableViewDataSource,UITableViewDelegate> @interface ZJReminderCareController ()<UITableViewDataSource,UITableViewDelegate>
...@@ -53,14 +54,23 @@ static NSString * const ZJReminderCareCellID = @"ZJReminderCareCellID"; ...@@ -53,14 +54,23 @@ static NSString * const ZJReminderCareCellID = @"ZJReminderCareCellID";
-(void)requestData -(void)requestData
{ {
[self.dataArray removeAllObjects]; [self.dataArray removeAllObjects];
NSArray *res = @[@{@"name":@"关心的人",@"subName":@"选择关心的人"}, [[TQNetworkTools shared] getWithAction:findFriendList parameters:@{} success:^(id _Nonnull response) {
@{@"name":@"提醒图片",@"subName":@""}, if([[response objectForKey:@"status"] integerValue] == 200){
@{@"name":@"提醒事项",@"subName":@"多吃蔬菜"}, if ([response[@"result"][@"data"] isKindOfClass:[NSArray class]]) {
@{@"name":@"提醒时间",@"subName":@""}, for (NSDictionary *dict in response[@"result"][@"data"]) {
@{@"name":@"重复",@"subName":@"每天"}]; ZJFriendModel *model = [ZJFriendModel yy_modelWithJSON:dict];
[self.dataArray addObject:model];
[self.dataArray addObjectsFromArray:res]; }
[self.tableView reloadData]; }
}else{
[MBProgressHUD showError:[NSString stringWithFormat:@"%@", [response objectForKey:@"msg"]] toView:self.view];
}
[self.tableView reloadData];
} failure:^(NSError * _Nonnull error) {
}];
} }
-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section -(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
...@@ -73,6 +83,10 @@ static NSString * const ZJReminderCareCellID = @"ZJReminderCareCellID"; ...@@ -73,6 +83,10 @@ static NSString * const ZJReminderCareCellID = @"ZJReminderCareCellID";
ZJReminderCareCell *cell = [tableView dequeueReusableCellWithIdentifier:ZJReminderCareCellID]; ZJReminderCareCell *cell = [tableView dequeueReusableCellWithIdentifier:ZJReminderCareCellID];
cell.selectionStyle = UITableViewCellSelectionStyleNone; cell.selectionStyle = UITableViewCellSelectionStyleNone;
if (self.dataArray.count) {
ZJFriendModel *model = self.dataArray[indexPath.row];
cell.model = model;
}
return cell; return cell;
} }
...@@ -80,10 +94,16 @@ static NSString * const ZJReminderCareCellID = @"ZJReminderCareCellID"; ...@@ -80,10 +94,16 @@ static NSString * const ZJReminderCareCellID = @"ZJReminderCareCellID";
-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath -(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{ {
[tableView deselectRowAtIndexPath:indexPath animated:YES]; [tableView deselectRowAtIndexPath:indexPath animated:YES];
ZJFriendModel *model = self.dataArray[indexPath.row];
model.choose = !model.choose;
if (self.backData) { if (self.backData) {
self.backData(@"关心的人"); self.backData(model);
} }
[self.navigationController popViewControllerAnimated:YES];
[self.tableView reloadData];
} }
-(CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath -(CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
......
...@@ -9,9 +9,11 @@ ...@@ -9,9 +9,11 @@
#import <UIKit/UIKit.h> #import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN NS_ASSUME_NONNULL_BEGIN
@class ZJChooseIcon;
@interface ZJReminderCateAddController : UIViewController @interface ZJReminderCateAddController : UIViewController
@property(nonatomic,strong)ZJChooseIcon *model;
@end @end
NS_ASSUME_NONNULL_END NS_ASSUME_NONNULL_END
...@@ -12,6 +12,8 @@ ...@@ -12,6 +12,8 @@
#import "ZJReminderCareController.h" #import "ZJReminderCareController.h"
#import "ZJReminderTimeController.h" #import "ZJReminderTimeController.h"
#import "QFTimePickerView.h" #import "QFTimePickerView.h"
#import "ZJFriendModel.h"
#import "ZJReminder.h"
static NSString * const ZJReminderCateAddCellID = @"ZJReminderCateAddCellID"; static NSString * const ZJReminderCateAddCellID = @"ZJReminderCateAddCellID";
static NSString * const ZJReminderFooterViewID = @"ZJReminderFooterViewID"; static NSString * const ZJReminderFooterViewID = @"ZJReminderFooterViewID";
...@@ -19,6 +21,9 @@ static NSString * const ZJReminderFooterViewID = @"ZJReminderFooterViewID"; ...@@ -19,6 +21,9 @@ static NSString * const ZJReminderFooterViewID = @"ZJReminderFooterViewID";
@property(nonatomic,strong)UITableView *tableView; @property(nonatomic,strong)UITableView *tableView;
@property(nonatomic,strong)NSMutableArray *dataArray; @property(nonatomic,strong)NSMutableArray *dataArray;
@property(nonatomic,strong)ZJFriendModel *friendModel;
@property(nonatomic,copy)NSString *timeString;
@end @end
...@@ -58,13 +63,18 @@ static NSString * const ZJReminderFooterViewID = @"ZJReminderFooterViewID"; ...@@ -58,13 +63,18 @@ static NSString * const ZJReminderFooterViewID = @"ZJReminderFooterViewID";
-(void)requestData -(void)requestData
{ {
[self.dataArray removeAllObjects]; [self.dataArray removeAllObjects];
NSArray *res = @[@{@"name":@"关心的人",@"subName":@"选择关心的人"}, NSArray *names = @[@[@"关心的人",@"选择关心的人"],@[@"提醒图片",@""],@[@"提醒事项",@"多吃蔬菜"],@[@"提醒时间",@""],@[@"重复",@"每天"]];
@{@"name":@"提醒图片",@"subName":@""}, for (int i = 0; i < names.count; i++) {
@{@"name":@"提醒事项",@"subName":@"多吃蔬菜"}, NSArray *sub = names[i];
@{@"name":@"提醒时间",@"subName":@""}, ZJChooseIcon *model = [ZJChooseIcon new];
@{@"name":@"重复",@"subName":@"每天"}]; model.name = sub[0];
model.subName = sub[1];
if (i == 1) {
model.iconUrl = self.model.iconUrl;
}
[self.dataArray addObject:model];
}
[self.dataArray addObjectsFromArray:res];
[self.tableView reloadData]; [self.tableView reloadData];
} }
...@@ -76,24 +86,39 @@ static NSString * const ZJReminderFooterViewID = @"ZJReminderFooterViewID"; ...@@ -76,24 +86,39 @@ static NSString * const ZJReminderFooterViewID = @"ZJReminderFooterViewID";
-(UIView *)tableView:(UITableView *)tableView viewForFooterInSection:(NSInteger)section -(UIView *)tableView:(UITableView *)tableView viewForFooterInSection:(NSInteger)section
{ {
ZJReminderFooterView *footer = [tableView dequeueReusableHeaderFooterViewWithIdentifier:ZJReminderFooterViewID]; ZJReminderFooterView *footer = [tableView dequeueReusableHeaderFooterViewWithIdentifier:ZJReminderFooterViewID];
// footer.backgroundColor = [UIColor redColor]; [footer.saveBtn addTarget:self action:@selector(saveButtonAction:) forControlEvents:UIControlEventTouchUpInside];
return footer; return footer;
} }
-(void)saveButtonAction:(UIButton *)sender
{
if (self.timeString.length == 0) {
[MBProgressHUD showMessage:@"请选择时间"];
return;
}
NSMutableDictionary *dict = @{}.mutableCopy;
// @{@"typeId":@"1", @"status":sender.selected?@"1":@"0", @"friendId":[NSString stringWithFormat:@"%ld", (long)model.friendId], @"id":[NSString stringWithFormat:@"%ld", (long)model.id]}
dict[@"typeId"] = @(self.model.id);
dict[@"friendId"] = self.friendModel.id;
dict[@"remindTime"] = self.timeString;
dict[@"weekSetting"] = @"";
[[TQNetworkTools shared] postWithBodyAction:userRemindInfoSet parameters:@{} body:dict success:^(NSDictionary * _Nonnull response) {
} failure:^(NSError * _Nonnull error) {
}];
}
-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath -(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{ {
ZJReminderCateAddCell *cell = [tableView dequeueReusableCellWithIdentifier:ZJReminderCateAddCellID]; ZJReminderCateAddCell *cell = [tableView dequeueReusableCellWithIdentifier:ZJReminderCateAddCellID];
cell.selectionStyle = UITableViewCellSelectionStyleNone; cell.selectionStyle = UITableViewCellSelectionStyleNone;
if (self.dataArray.count) { if (self.dataArray.count) {
cell.icon.hidden = indexPath.row == 1 ? NO : YES; ZJChooseIcon *model = self.dataArray[indexPath.row];
cell.subName.hidden = !cell.icon.hidden; [cell reloadData:model indexPath:indexPath];
cell.arrow.hidden = (indexPath.row == 1 || indexPath.row == 2) ? YES : NO;
NSDictionary *dict = self.dataArray[indexPath.row];
cell.name.text = dict[@"name"];
cell.subName.text = dict[@"subName"];
} }
return cell; return cell;
...@@ -107,8 +132,14 @@ static NSString * const ZJReminderFooterViewID = @"ZJReminderFooterViewID"; ...@@ -107,8 +132,14 @@ static NSString * const ZJReminderFooterViewID = @"ZJReminderFooterViewID";
case 0: case 0:
{// 关心的人 {// 关心的人
ZJReminderCareController *vc = [ZJReminderCareController new]; ZJReminderCareController *vc = [ZJReminderCareController new];
vc.backData = ^(NSString * _Nonnull data) { __weak typeof(self) weakSelf = self;
vc.backData = ^(ZJFriendModel * _Nonnull model) {
weakSelf.friendModel = model;
if (weakSelf.dataArray.count) {
ZJChooseIcon *item = weakSelf.dataArray[0];
item.subName = model.phoneNo;
}
[weakSelf.tableView reloadData];
}; };
[self.navigationController pushViewController:vc animated:YES]; [self.navigationController pushViewController:vc animated:YES];
} }
...@@ -125,9 +156,17 @@ static NSString * const ZJReminderFooterViewID = @"ZJReminderFooterViewID"; ...@@ -125,9 +156,17 @@ static NSString * const ZJReminderFooterViewID = @"ZJReminderFooterViewID";
break; break;
case 3: case 3:
{// 提醒时间 {// 提醒时间
__weak typeof(self) weakSelf = self;
QFTimePickerView *pickerView = [[QFTimePickerView alloc] initDatePackerWithStartHour:@"00" endHour:@"24" period:1 response:^(NSString *str) { QFTimePickerView *pickerView = [[QFTimePickerView alloc] initDatePackerWithStartHour:@"00" endHour:@"24" period:1 response:^(NSString *str) {
NSString *string = str; if ([str containsString:@"时"] && [str containsString:@"分"]) {
NSLog(@"str = %@",string); weakSelf.timeString = [str stringByReplacingOccurrencesOfString:@"时" withString:@""];
weakSelf.timeString = [weakSelf.timeString stringByReplacingOccurrencesOfString:@"分" withString:@""];
}
if (weakSelf.dataArray.count > 3) {
ZJChooseIcon *item = weakSelf.dataArray[3];
item.subName = weakSelf.timeString;
}
[weakSelf.tableView reloadData];
}]; }];
[pickerView show]; [pickerView show];
} }
......
...@@ -10,8 +10,12 @@ ...@@ -10,8 +10,12 @@
NS_ASSUME_NONNULL_BEGIN NS_ASSUME_NONNULL_BEGIN
@class ZJChooseIcon;
@interface ZJReminderMainController : UIViewController @interface ZJReminderMainController : UIViewController
@property(nonatomic,strong)ZJChooseIcon *model;
@end @end
NS_ASSUME_NONNULL_END NS_ASSUME_NONNULL_END
...@@ -37,6 +37,9 @@ static NSString *ZJReminderMainCellID = @"ZJReminderMainCellID"; ...@@ -37,6 +37,9 @@ static NSString *ZJReminderMainCellID = @"ZJReminderMainCellID";
[super viewDidLoad]; [super viewDidLoad];
// Do any additional setup after loading the view. // Do any additional setup after loading the view.
if (self.model) {
self.title = self.model.name;
}
self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"管理" style:UIBarButtonItemStyleDone target:self action:@selector(chooseAction)]; self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"管理" style:UIBarButtonItemStyleDone target:self action:@selector(chooseAction)];
self.navigationItem.rightBarButtonItem.tintColor = [UIColor blackColor]; self.navigationItem.rightBarButtonItem.tintColor = [UIColor blackColor];
...@@ -75,6 +78,7 @@ static NSString *ZJReminderMainCellID = @"ZJReminderMainCellID"; ...@@ -75,6 +78,7 @@ static NSString *ZJReminderMainCellID = @"ZJReminderMainCellID";
}else{ }else{
NSLog(@"添加提醒"); NSLog(@"添加提醒");
ZJReminderCateAddController *vc = [ZJReminderCateAddController new]; ZJReminderCateAddController *vc = [ZJReminderCateAddController new];
vc.model = self.model;
[weakSelf.navigationController pushViewController:vc animated:YES]; [weakSelf.navigationController pushViewController:vc animated:YES];
} }
}; };
...@@ -111,13 +115,21 @@ static NSString *ZJReminderMainCellID = @"ZJReminderMainCellID"; ...@@ -111,13 +115,21 @@ static NSString *ZJReminderMainCellID = @"ZJReminderMainCellID";
-(void)requestData -(void)requestData
{ {
for (int i = 0; i < 10; i++) { if (self.model == nil) return;
ZJReminder *model = [ZJReminder new]; [[TQNetworkTools shared] getWithAction:userRemindInfo parameters:@{@"typeId":@(self.model.id)} success:^(id _Nonnull response) {
model.choose = NO;
[self.dataArray addObject:model]; if([[response objectForKey:@"status"] integerValue] == 200){
}
}else{
[MBProgressHUD showError:[NSString stringWithFormat:@"%@", response[@"msg"]] toView:self.view];
}
[self.tableView reloadData];
} failure:^(NSError * _Nonnull error) {
}];
[self.tableView reloadData];
} }
-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section -(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
......
...@@ -107,13 +107,8 @@ static NSString * const ZJReminderTimeCellID = @"ZJReminderTimeCellID"; ...@@ -107,13 +107,8 @@ static NSString * const ZJReminderTimeCellID = @"ZJReminderTimeCellID";
-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath -(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{ {
[tableView deselectRowAtIndexPath:indexPath animated:YES]; [tableView deselectRowAtIndexPath:indexPath animated:YES];
ZJReminderTime *model = self.dataArray[indexPath.row];
for (int i = 0; i < self.dataArray.count; i++) { model.choose = !model.choose;
ZJReminderTime *model = self.dataArray[indexPath.row];
if (i == indexPath.row) {
model.choose = !model.choose;
}
}
[self.tableView reloadData]; [self.tableView reloadData];
} }
......
...@@ -172,9 +172,7 @@ ...@@ -172,9 +172,7 @@
if (sender.tag == 10) { if (sender.tag == 10) {
[self dismiss]; [self dismiss];
} else { } else {
restr = [NSString stringWithFormat:@"%@:%@",selectedHour,selectedMin]; restr = [NSString stringWithFormat:@"%@:%@",selectedHour,selectedMin];
backBlock(restr); backBlock(restr);
[self dismiss]; [self dismiss];
} }
...@@ -186,7 +184,7 @@ ...@@ -186,7 +184,7 @@
[[UIApplication sharedApplication].keyWindow addSubview:self]; [[UIApplication sharedApplication].keyWindow addSubview:self];
[UIView animateWithDuration:0.4 animations:^{ [UIView animateWithDuration:0.4 animations:^{
contentView.center = CGPointMake(self.frame.size.width/2, contentView.center.y - contentView.frame.size.height); self->contentView.center = CGPointMake(self.frame.size.width/2, self->contentView.center.y - self->contentView.frame.size.height);
}]; }];
} }
...@@ -194,7 +192,7 @@ ...@@ -194,7 +192,7 @@
- (void)dismiss{ - (void)dismiss{
[UIView animateWithDuration:0.4 animations:^{ [UIView animateWithDuration:0.4 animations:^{
contentView.center = CGPointMake(self.frame.size.width/2, contentView.center.y + contentView.frame.size.height); self->contentView.center = CGPointMake(self.frame.size.width/2, self->contentView.center.y + self->contentView.frame.size.height);
} completion:^(BOOL finished) { } completion:^(BOOL finished) {
[self removeFromSuperview]; [self removeFromSuperview];
}]; }];
......
...@@ -26,7 +26,15 @@ NS_ASSUME_NONNULL_BEGIN ...@@ -26,7 +26,15 @@ NS_ASSUME_NONNULL_BEGIN
@property(nonatomic,assign)BOOL choose; @property(nonatomic,assign)BOOL choose;
@end
@interface ZJChooseIcon : NSObject
@property(nonatomic,assign)NSInteger id;
@property(nonatomic,copy)NSString *url;
@property(nonatomic,copy)NSString *iconUrl;
@property(nonatomic,copy)NSString *name;
@property(nonatomic,copy)NSString *subName;
@end @end
......
...@@ -15,3 +15,7 @@ ...@@ -15,3 +15,7 @@
@implementation ZJReminderTime @implementation ZJReminderTime
@end @end
@implementation ZJChooseIcon
@end
...@@ -12,6 +12,9 @@ NS_ASSUME_NONNULL_BEGIN ...@@ -12,6 +12,9 @@ NS_ASSUME_NONNULL_BEGIN
@interface ZJChooseIconCell : UICollectionViewCell @interface ZJChooseIconCell : UICollectionViewCell
@property (weak, nonatomic) IBOutlet UIImageView *icon;
@end @end
NS_ASSUME_NONNULL_END NS_ASSUME_NONNULL_END
...@@ -30,6 +30,9 @@ ...@@ -30,6 +30,9 @@
<constraint firstItem="nuB-Rn-VdK" firstAttribute="centerY" secondItem="gTV-IL-0wX" secondAttribute="centerY" id="yDR-GO-KrF"/> <constraint firstItem="nuB-Rn-VdK" firstAttribute="centerY" secondItem="gTV-IL-0wX" secondAttribute="centerY" id="yDR-GO-KrF"/>
</constraints> </constraints>
<size key="customSize" width="91" height="108"/> <size key="customSize" width="91" height="108"/>
<connections>
<outlet property="icon" destination="nuB-Rn-VdK" id="rEb-zm-eut"/>
</connections>
<point key="canvasLocation" x="167.39130434782609" y="119.19642857142857"/> <point key="canvasLocation" x="167.39130434782609" y="119.19642857142857"/>
</collectionViewCell> </collectionViewCell>
</objects> </objects>
......
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
NS_ASSUME_NONNULL_BEGIN NS_ASSUME_NONNULL_BEGIN
@class ZJFriendModel;
@interface ZJReminderCareCell : UITableViewCell @interface ZJReminderCareCell : UITableViewCell
@property (weak, nonatomic) IBOutlet UIImageView *icon; @property (weak, nonatomic) IBOutlet UIImageView *icon;
...@@ -18,6 +19,8 @@ NS_ASSUME_NONNULL_BEGIN ...@@ -18,6 +19,8 @@ NS_ASSUME_NONNULL_BEGIN
@property (weak, nonatomic) IBOutlet UIView *baseView; @property (weak, nonatomic) IBOutlet UIView *baseView;
@property (weak, nonatomic) IBOutlet UIView *mainView; @property (weak, nonatomic) IBOutlet UIView *mainView;
@property (weak, nonatomic) IBOutlet UIImageView *iconSelect; @property (weak, nonatomic) IBOutlet UIImageView *iconSelect;
@property(nonatomic,strong)ZJFriendModel *model;
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
// //
#import "ZJReminderCareCell.h" #import "ZJReminderCareCell.h"
#import "ZJFriendModel.h"
@implementation ZJReminderCareCell @implementation ZJReminderCareCell
...@@ -30,4 +31,15 @@ ...@@ -30,4 +31,15 @@
// Configure the view for the selected state // Configure the view for the selected state
} }
-(void)setModel:(ZJFriendModel *)model
{
_model = model;
[self.icon sd_setImageWithURL:[NSURL URLWithString:model.headImage]];
self.name.text = model.phoneNo;
self.iconSelect.image = model.choose ? [UIImage imageNamed:@"caring_person_listed"] : [UIImage imageNamed:@"caring_person_list"];
}
@end @end
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
NS_ASSUME_NONNULL_BEGIN NS_ASSUME_NONNULL_BEGIN
@class ZJChooseIcon;
@interface ZJReminderCateAddCell : UITableViewCell @interface ZJReminderCateAddCell : UITableViewCell
@property (weak, nonatomic) IBOutlet UILabel *name; @property (weak, nonatomic) IBOutlet UILabel *name;
...@@ -17,6 +18,8 @@ NS_ASSUME_NONNULL_BEGIN ...@@ -17,6 +18,8 @@ NS_ASSUME_NONNULL_BEGIN
@property (weak, nonatomic) IBOutlet UIImageView *icon; @property (weak, nonatomic) IBOutlet UIImageView *icon;
@property (weak, nonatomic) IBOutlet UIImageView *arrow; @property (weak, nonatomic) IBOutlet UIImageView *arrow;
-(void)reloadData:(ZJChooseIcon *)model indexPath:(NSIndexPath *)indexPath;
@end @end
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
// //
#import "ZJReminderCateAddCell.h" #import "ZJReminderCateAddCell.h"
#import "ZJReminder.h"
@interface ZJReminderCateAddCell () @interface ZJReminderCateAddCell ()
...@@ -25,4 +26,27 @@ ...@@ -25,4 +26,27 @@
// Configure the view for the selected state // Configure the view for the selected state
} }
-(void)reloadData:(ZJChooseIcon *)model indexPath:(NSIndexPath *)indexPath
{
self.icon.hidden = indexPath.row == 1 ? NO : YES;
self.subName.hidden = !self.icon.hidden;
self.arrow.hidden = (indexPath.row == 1 || indexPath.row == 2) ? YES : NO;
self.name.text = model.name;
self.subName.text = model.subName;
if (indexPath.row == 1) {
[self.icon sd_setImageWithURL:[NSURL URLWithString:model.iconUrl]];
}else{
[self.icon sd_setImageWithURL:[NSURL URLWithString:@""]];
}
if (indexPath.row == 3) {
self.subName.textColor = [UIColor colorWithHexString:@"528BFF"];
}else{
self.subName.textColor = [UIColor colorWithHexString:@"999999"];
}
}
@end @end
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
<color key="textColor" red="0.59999999999999998" green="0.59999999999999998" blue="0.59999999999999998" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> <color key="textColor" red="0.59999999999999998" green="0.59999999999999998" blue="0.59999999999999998" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/> <nil key="highlightedColor"/>
</label> </label>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="remind_cell_0_0" translatesAutoresizingMaskIntoConstraints="NO" id="IY7-bN-UvX"> <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="IY7-bN-UvX">
<rect key="frame" x="307" y="15" width="30" height="30"/> <rect key="frame" x="307" y="15" width="30" height="30"/>
<constraints> <constraints>
<constraint firstAttribute="height" constant="30" id="Dkr-Rp-0Vh"/> <constraint firstAttribute="height" constant="30" id="Dkr-Rp-0Vh"/>
...@@ -78,6 +78,5 @@ ...@@ -78,6 +78,5 @@
</objects> </objects>
<resources> <resources>
<image name="icon_More" width="14" height="14"/> <image name="icon_More" width="14" height="14"/>
<image name="remind_cell_0_0" width="40" height="40"/>
</resources> </resources>
</document> </document>
...@@ -45,7 +45,9 @@ typedef enum : NSUInteger { ...@@ -45,7 +45,9 @@ typedef enum : NSUInteger {
PaymentConfiguration,//支付配置 PaymentConfiguration,//支付配置
payPageData,//支付页面数据 payPageData,//支付页面数据
addFriendHintStyle, //用户注销 addFriendHintStyle, //用户注销
userRemindInfo //用户提醒列表信息 typeId = 1 电量 userRemindInfo, //用户提醒列表信息 typeId = 1 电量
reminderIconList, // 图标列表
reminderTypeList
} TQNetwortGetAction; } TQNetwortGetAction;
...@@ -92,7 +94,8 @@ typedef enum : NSUInteger { ...@@ -92,7 +94,8 @@ typedef enum : NSUInteger {
iosIPAVerifyReceipt, iosIPAVerifyReceipt,
logCollection, //埋点 logCollection, //埋点
userRemindInfoSet //上报用户提醒信息 userRemindInfoSet, //上报用户提醒信息
reminderAddRemindType // 添加提醒类型
} TQNetwortPostAction; } TQNetwortPostAction;
......
...@@ -327,6 +327,10 @@ static TQNetworkTools* _tools = nil; ...@@ -327,6 +327,10 @@ static TQNetworkTools* _tools = nil;
return @"/app/v1/location/reminder-copywriting"; return @"/app/v1/location/reminder-copywriting";
case userRemindInfo: case userRemindInfo:
return @"/app/v1/location/remind-list"; return @"/app/v1/location/remind-list";
case reminderIconList:
return @"/app/v1/location/remind/icon-list";
case reminderTypeList:
return @"/app/v1/location/remind/remind-type";
default: default:
return @""; return @"";
} }
...@@ -399,6 +403,8 @@ static TQNetworkTools* _tools = nil; ...@@ -399,6 +403,8 @@ static TQNetworkTools* _tools = nil;
return @"/logCollection/log/v1/userLogCollection"; return @"/logCollection/log/v1/userLogCollection";
case userRemindInfoSet: case userRemindInfoSet:
return @"/app/v1/location/remind/remind"; return @"/app/v1/location/remind/remind";
case reminderAddRemindType:
return @"/app/v1/location/remind/add-remind-type";
default: default:
return @""; return @"";
} }
......
File added
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 to comment