Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
O
Opple-iOS
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张杰
Opple-iOS
Commits
0430be6c
Commit
0430be6c
authored
Feb 23, 2017
by
曹云霄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化分享第三方平台漏洞
parent
27974eb3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
ForumItemDetailViewController.m
...r/ComprehensiveDiscussion/ForumItemDetailViewController.m
+2
-1
ForumItemTableViewCell.m
...ngCenter/ComprehensiveDiscussion/ForumItemTableViewCell.m
+2
-0
ShareGoodsViewController.m
Tools/ShareGoodsViewController.m
+0
-3
No files found.
Class/LearningCenter/ComprehensiveDiscussion/ForumItemDetailViewController.m
View file @
0430be6c
...
...
@@ -151,7 +151,7 @@
#pragma mark - 设置评论个数
-
(
void
)
setUpCommentNumber
{
self
.
commentNumberLabel
.
text
=
[
NSString
stringWithFormat
:
@"已有%ld条评论"
,
self
.
commentsArray
.
count
];
self
.
commentNumberLabel
.
text
=
[
NSString
stringWithFormat
:
@"已有%ld条评论"
,
(
unsigned
long
)
self
.
commentsArray
.
count
];
self
.
praiseButton
.
selected
=
!
self
.
topicDetail
.
canLike
;
}
...
...
@@ -315,6 +315,7 @@
ShareGoodsViewController
*
shareController
=
[[
ShareGoodsViewController
alloc
]
init
];
shareController
.
type
=
SHARE_INVITATION
;
shareController
.
shareID
=
self
.
topicDetail
.
fid
;
shareController
.
shareImage
=
[
UIImage
imageNamed
:
@"Icon-83.5"
];
shareController
.
preferredContentSize
=
CGSizeMake
(
290
,
120
);
shareController
.
modalPresentationStyle
=
UIModalPresentationPopover
;
UIPopoverPresentationController
*
popover
=
shareController
.
popoverPresentationController
;
...
...
Class/LearningCenter/ComprehensiveDiscussion/ForumItemTableViewCell.m
View file @
0430be6c
...
...
@@ -35,6 +35,8 @@
self
.
imageBackView
.
imageArray
=
_topicEntity
.
attachments
;
}
self
.
imageBackView
.
indexPath
=
self
.
indexPath
;
NSString
*
headerurl
=
[
Shoppersmanager
manager
].
Shoppers
.
employee
.
picture
;
[
self
.
headerImageView
sd_setImageWithURL
:[
NSURL
URLWithString
:
headerurl
]
placeholderImage
:
ReplaceImage
];
}
}
...
...
Tools/ShareGoodsViewController.m
View file @
0430be6c
...
...
@@ -28,7 +28,6 @@
-
(
IBAction
)
ShareWeiChatAntWeiboAction
:
(
UIButton
*
)
sender
{
WS
(
weakSelf
);
[
self
dismissViewControllerAnimated
:
YES
completion
:
nil
];
switch
(
self
.
type
)
{
case
SHARE_GOODS
:
{
...
...
@@ -102,11 +101,9 @@
}];
}
break
;
default
:
break
;
}
}
#pragma mark - 调用分享
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment