Skip to content

Commit cbbfeaf

Browse files
committed
https://coding.net/t/codingcorp/p/Coding-iOS/task/774632
1 parent b9cbb4b commit cbbfeaf

File tree

6 files changed

+35
-4
lines changed

6 files changed

+35
-4
lines changed

Coding_iOS/Controllers/AllSearchDisplayVC.m

+3-1
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,7 @@ - (void)refreshHeaderTitle{
583583
if ([_searchPros.pull_requests.totalRow longValue]==0) {
584584
titleStr=nil;
585585
}else{
586-
titleStr=[NSString stringWithFormat:@"共搜索到 %ld 个与\"%@\"相关的pull请求", [_searchPros.pull_requests.totalRow longValue],self.searchBar.text];
586+
titleStr=[NSString stringWithFormat:@"共搜索到 %ld 个与\"%@\"相关的 pull 请求", [_searchPros.pull_requests.totalRow longValue],self.searchBar.text];
587587
}
588588
break;
589589
default:
@@ -593,6 +593,8 @@ - (void)refreshHeaderTitle{
593593
}
594594

595595
-(void)requestAll{
596+
[MobClick event:kUmeng_Event_Request_ActionOfLocal label:@"全局搜索_全部(发起请求)"];
597+
596598
__weak typeof(self) weakSelf = self;
597599
[[Coding_NetAPIManager sharedManager] requestWithSearchString:self.searchBar.text typeStr:@"all" andPage:1 andBlock:^(id data, NSError *error) {
598600
if(data) {

Coding_iOS/Controllers/RootControllers/Project_RootViewController.m

+18-1
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,8 @@ - (void)viewDidLoad
115115
_myFliterMenu = [[PopFliterMenu alloc] initWithFrame:CGRectMake(0, 64, kScreen_Width, kScreen_Height-64) items:nil];
116116
__weak typeof(self) weakSelf = self;
117117
_myFliterMenu.clickBlock = ^(NSInteger pageIndex){
118+
[weakSelf mobClickFliterMenuIndex:pageIndex];
119+
118120
if (pageIndex==1000) {
119121
[weakSelf goToProjectSquareVC];
120122
}else
@@ -146,7 +148,7 @@ - (void)viewDidLoad
146148
@weakify(self);
147149
_myPopMenu.didSelectedItemCompletion = ^(MenuItem *selectedItem){
148150
[weakSelf.myPopMenu.realTimeBlurFooter disMiss];
149-
[MobClick event:kUmeng_Event_Request_ActionOfLocal label:[NSString stringWithFormat:@"快捷创建_%@", selectedItem.title]];
151+
[MobClick event:kUmeng_Event_Request_ActionOfLocal label:[NSString stringWithFormat:@"首页_添加_%@", selectedItem.title]];
150152
@strongify(self);
151153
//改下显示style
152154
[self.rightNavBtn setStyle:kFRDLivelyButtonStylePlus animated:YES];
@@ -181,6 +183,20 @@ - (void)viewDidLoad
181183

182184
[[StartImagesManager shareManager] handleStartLink];//如果 start_image 有对应的 link 的话,需要进入到相应的 web 页面
183185
}
186+
187+
- (void)mobClickFliterMenuIndex:(NSInteger)index{
188+
static NSArray *menuList;
189+
if (!menuList) {
190+
menuList = @[@"全部项目",
191+
@"我创建的",
192+
@"我参与的",
193+
@"我关注的",
194+
@"我收藏的",
195+
@"项目广场"];
196+
}
197+
[MobClick event:kUmeng_Event_Request_ActionOfLocal label:[NSString stringWithFormat:@"首页_筛选_%@", menuList.count > index? menuList[index]: menuList.lastObject]];
198+
}
199+
184200
- (void)viewWillAppear:(BOOL)animated{
185201
[super viewWillAppear:animated];
186202
[self.navigationController.navigationBar addSubview:_mySearchBar];
@@ -578,6 +594,7 @@ - (void)updateFilteredContentForSearchString:(NSString *)searchString{
578594
}
579595
#pragma mark scan QR-Code
580596
- (void)scanBtnClicked{
597+
[MobClick event:kUmeng_Event_Request_ActionOfLocal label:@"首页_扫描二维码"];
581598
ZXScanCodeViewController *vc = [ZXScanCodeViewController new];
582599
__weak typeof(self) weakSelf = self;
583600
vc.scanResultBlock = ^(ZXScanCodeViewController *vc, NSString *resultStr){

Coding_iOS/Controllers/RootControllers/Tweet_RootViewController.m

+2
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,8 @@ - (void)deleteComment:(Comment *)comment ofTweet:(Tweet *)tweet{
287287
#pragma mark - nav_LeftBtn
288288

289289
- (void)hotTopicBtnClicked:(id)sender{
290+
[MobClick event:kUmeng_Event_Request_ActionOfLocal label:@"冒泡_点击话题"];
291+
290292
CSHotTopicPagesVC *vc = [CSHotTopicPagesVC new];
291293
[self.navigationController pushViewController:vc animated:YES];
292294
}

Coding_iOS/Controllers/SearchViewController.m

+2-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ - (void)viewDidLoad {
3636
@"文档",
3737
@"用户",
3838
@"合并请求",
39-
@"pull请求"].mutableCopy;
39+
@"pull 请求"].mutableCopy;
4040
_firstLoad=TRUE;
4141
[self buildUI];
4242

@@ -200,6 +200,7 @@ -(void)popToMainVCAction
200200
}
201201

202202
- (void)menuItemClicked:(KxMenuItem *)item{
203+
[MobClick event:kUmeng_Event_Request_ActionOfLocal label:[NSString stringWithFormat:@"全局搜索_%@", item.title]];
203204
NSInteger nowSelectIndex = [_statusList indexOfObject:item.title];
204205
if (nowSelectIndex == NSNotFound || nowSelectIndex == _selectIndex) {
205206
return;

Coding_iOS/Controllers/Topic/CSHotTopicPagesVC.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ -(void)viewWillDisappear:(BOOL)animated{
5555

5656
#pragma mark -
5757
- (void)searchItemClicked:(id)sender{
58-
58+
[MobClick event:kUmeng_Event_Request_ActionOfLocal label:@"热门话题_搜索"];
5959
if(!_searchBar) {
6060

6161
_searchBar = ({

Coding_iOS/Views/Cell/TweetSendTextCell.m

+9
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,8 @@ - (UIButton *)locationButtonWithStr:(NSString *)locationStr{
174174
- (void)emotionButtonClicked:(id)sender{
175175
UIButton *emotionButton = sender;
176176
if (self.tweetContentView.inputView != self.emojiKeyboardView) {
177+
[MobClick event:kUmeng_Event_Request_ActionOfLocal label:@"冒泡_添加_表情"];
178+
177179
self.tweetContentView.inputView = self.emojiKeyboardView;
178180
[emotionButton setImage:[UIImage imageNamed:@"keyboard_keyboard"] forState:UIControlStateNormal];
179181
}else{
@@ -187,6 +189,8 @@ - (void)emotionButtonClicked:(id)sender{
187189
}
188190

189191
- (void)atButtonClicked:(id)sender{
192+
[MobClick event:kUmeng_Event_Request_ActionOfLocal label:@"冒泡_添加_@好友"];
193+
190194
@weakify(self);
191195
[UsersViewController showATSomeoneWithBlock:^(User *curUser) {
192196
@strongify(self);
@@ -198,6 +202,8 @@ - (void)atButtonClicked:(id)sender{
198202
}
199203

200204
- (void)topicButtonClicked:(id)sender{
205+
[MobClick event:kUmeng_Event_Request_ActionOfLocal label:@"冒泡_添加_话题"];
206+
201207
if ([[FunctionTipsManager shareManager] needToTip:kFunctionTipStr_TweetTopic]) {
202208
[[FunctionTipsManager shareManager] markTiped:kFunctionTipStr_TweetTopic];
203209
UIButton *btnTopic = (UIButton *)sender;
@@ -215,12 +221,15 @@ - (void)topicButtonClicked:(id)sender{
215221
}
216222

217223
- (void)photoButtonClicked:(id)sender{
224+
[MobClick event:kUmeng_Event_Request_ActionOfLocal label:@"冒泡_添加_图片"];
225+
218226
if (self.photoBtnBlock) {
219227
self.photoBtnBlock();
220228
}
221229
}
222230

223231
- (void)locationButtonClicked:(id)sender{
232+
[MobClick event:kUmeng_Event_Request_ActionOfLocal label:@"冒泡_添加_定位"];
224233
if (self.locationBtnBlock) {
225234
self.locationBtnBlock();
226235
}

0 commit comments

Comments
 (0)