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
e79add47
Commit
e79add47
authored
Nov 28, 2016
by
曹云霄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改项说明:
parent
912fec60
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
22 deletions
+3
-22
ExperienceCentreViewController.m
Tools/ExperienceCentreViewController.m
+0
-3
ShareGoodsViewController.m
Tools/ShareGoodsViewController.m
+3
-19
No files found.
Tools/ExperienceCentreViewController.m
View file @
e79add47
...
@@ -287,9 +287,6 @@
...
@@ -287,9 +287,6 @@
{
{
if
(
error
!=
NULL
)
{
if
(
error
!=
NULL
)
{
[
self
ErrorMBProgressView
:
@"保存相册失败"
];
[
self
ErrorMBProgressView
:
@"保存相册失败"
];
}
else
{
[
self
SuccessMBProgressView
:
@"保存相册成功"
];
}
}
}
}
...
...
Tools/ShareGoodsViewController.m
View file @
e79add47
...
@@ -41,11 +41,9 @@
...
@@ -41,11 +41,9 @@
}
}
}
WithErrorCodeBlock
:^
(
id
errorCodeValue
)
{
}
WithErrorCodeBlock
:^
(
id
errorCodeValue
)
{
[
weakSelf
RemoveMBProgressHUDLoding
];
[
weakSelf
ErrorMBProgressView
:
NETWORK
];
[
weakSelf
SHOWPrompttext
:
NETWORK
];
}
WithFailureBlock
:^
(
NSError
*
error
)
{
}
WithFailureBlock
:^
(
NSError
*
error
)
{
[
weakSelf
RemoveMBProgressHUDLoding
];
[
weakSelf
ErrorMBProgressView
:
error
.
localizedDescription
];
[
weakSelf
SHOWPrompttext
:
error
.
localizedDescription
];
}];
}];
}
else
//分享商品
}
else
//分享商品
{
{
...
@@ -55,42 +53,31 @@
...
@@ -55,42 +53,31 @@
NSDictionary
*
parameterDict
=
[
NSDictionary
dictionaryWithObjectsAndKeys
:[
goodsID
substringToIndex
:
self
.
goodsIds
.
length
-
1
],
@"goodsIds"
,
@""
,
@"title"
,
@""
,
@"remark"
,
nil
];
NSDictionary
*
parameterDict
=
[
NSDictionary
dictionaryWithObjectsAndKeys
:[
goodsID
substringToIndex
:
self
.
goodsIds
.
length
-
1
],
@"goodsIds"
,
@""
,
@"title"
,
@""
,
@"remark"
,
nil
];
//上传图片
//上传图片
[[
NetworkRequestClassManager
Manager
]
UploadImageWithURL
:
SERVERREQUESTURL
(
SHARE
)
WithRequestType
:
0
WithImageDatas
:
imageData
WithParameter
:
parameterDict
WithReturnValueBlock
:^
(
id
returnValue
)
{
[[
NetworkRequestClassManager
Manager
]
UploadImageWithURL
:
SERVERREQUESTURL
(
SHARE
)
WithRequestType
:
0
WithImageDatas
:
imageData
WithParameter
:
parameterDict
WithReturnValueBlock
:^
(
id
returnValue
)
{
if
([
returnValue
[
@"code"
]
isEqualToNumber
:
@0
])
{
if
([
returnValue
[
@"code"
]
isEqualToNumber
:
@0
])
{
NSString
*
shareWeb
=
returnValue
[
@"data"
][
@"url"
];
NSString
*
shareWeb
=
returnValue
[
@"data"
][
@"url"
];
[
weakSelf
callSharePlatform
:
shareWeb
withPlatformTag
:
sender
withTitle
:
ShareTitle
];
[
weakSelf
callSharePlatform
:
shareWeb
withPlatformTag
:
sender
withTitle
:
ShareTitle
];
}
else
}
else
{
{
if
([
weakSelf
.
delegate
respondsToSelector
:
@selector
(
CodeNotEqualZERO
:)])
{
if
([
weakSelf
.
delegate
respondsToSelector
:
@selector
(
CodeNotEqualZERO
:)])
{
[
weakSelf
.
delegate
CodeNotEqualZERO
:
returnValue
[
@"message"
]];
[
weakSelf
.
delegate
CodeNotEqualZERO
:
returnValue
[
@"message"
]];
}
}
}
}
}
WithprogressBlock
:^
(
double
progress
)
{
}
WithprogressBlock
:^
(
double
progress
)
{
if
(
progress
>=
1
)
{
if
(
progress
>=
1
)
{
if
([
weakSelf
.
delegate
respondsToSelector
:
@selector
(
UploadImageSuccess
)])
{
if
([
weakSelf
.
delegate
respondsToSelector
:
@selector
(
UploadImageSuccess
)])
{
[
weakSelf
.
delegate
UploadImageSuccess
];
[
weakSelf
.
delegate
UploadImageSuccess
];
}
}
}
else
}
else
{
{
if
([
weakSelf
.
delegate
respondsToSelector
:
@selector
(
UploadImageProgress
:)])
{
if
([
weakSelf
.
delegate
respondsToSelector
:
@selector
(
UploadImageProgress
:)])
{
[
weakSelf
.
delegate
UploadImageProgress
:
progress
];
[
weakSelf
.
delegate
UploadImageProgress
:
progress
];
}
}
}
}
}
WithErrorCodeBlock
:^
(
id
errorCodeValue
)
{
}
WithErrorCodeBlock
:^
(
id
errorCodeValue
)
{
[
weakSelf
ErrorMBProgressView
:
NETWORK
];
}
WithFailureBlock
:^
(
NSError
*
error
)
{
}
WithFailureBlock
:^
(
NSError
*
error
)
{
if
([
weakSelf
.
delegate
respondsToSelector
:
@selector
(
UploadImageFailue
)])
{
if
([
weakSelf
.
delegate
respondsToSelector
:
@selector
(
UploadImageFailue
)])
{
[
weakSelf
.
delegate
UploadImageFailue
];
[
weakSelf
.
delegate
UploadImageFailue
];
}
}
[
weakSelf
ErrorMBProgressView
:
error
.
localizedDescription
];
[
weakSelf
ErrorMBProgressView
:
error
.
localizedDescription
];
...
@@ -109,7 +96,6 @@
...
@@ -109,7 +96,6 @@
[
UMSocialData
defaultData
].
extConfig
.
wechatSessionData
.
url
=
shareWeb
;
[
UMSocialData
defaultData
].
extConfig
.
wechatSessionData
.
url
=
shareWeb
;
[[
UMSocialDataService
defaultDataService
]
postSNSWithTypes
:@[
UMShareToWechatSession
]
content
:
title
image
:
self
.
shareImage
location
:
nil
urlResource
:
nil
presentedController
:
self
completion
:^
(
UMSocialResponseEntity
*
response
){
[[
UMSocialDataService
defaultDataService
]
postSNSWithTypes
:@[
UMShareToWechatSession
]
content
:
title
image
:
self
.
shareImage
location
:
nil
urlResource
:
nil
presentedController
:
self
completion
:^
(
UMSocialResponseEntity
*
response
){
if
(
response
.
responseCode
==
UMSResponseCodeSuccess
)
{
if
(
response
.
responseCode
==
UMSResponseCodeSuccess
)
{
[
self
SuccessMBProgressView
:
@"分享微信好友成功"
];
[
self
SuccessMBProgressView
:
@"分享微信好友成功"
];
}
}
}];
}];
...
@@ -122,7 +108,6 @@
...
@@ -122,7 +108,6 @@
[
UMSocialData
defaultData
].
extConfig
.
wechatTimelineData
.
url
=
shareWeb
;
[
UMSocialData
defaultData
].
extConfig
.
wechatTimelineData
.
url
=
shareWeb
;
[[
UMSocialDataService
defaultDataService
]
postSNSWithTypes
:@[
UMShareToWechatTimeline
]
content
:
title
image
:
self
.
shareImage
location
:
nil
urlResource
:
nil
presentedController
:
self
completion
:^
(
UMSocialResponseEntity
*
response
){
[[
UMSocialDataService
defaultDataService
]
postSNSWithTypes
:@[
UMShareToWechatTimeline
]
content
:
title
image
:
self
.
shareImage
location
:
nil
urlResource
:
nil
presentedController
:
self
completion
:^
(
UMSocialResponseEntity
*
response
){
if
(
response
.
responseCode
==
UMSResponseCodeSuccess
)
{
if
(
response
.
responseCode
==
UMSResponseCodeSuccess
)
{
[
self
SuccessMBProgressView
:
@"分享微信朋友圈成功"
];
[
self
SuccessMBProgressView
:
@"分享微信朋友圈成功"
];
}
}
}];
}];
...
@@ -135,7 +120,6 @@
...
@@ -135,7 +120,6 @@
[
UMSocialData
defaultData
].
extConfig
.
sinaData
.
shareText
=
[
NSString
stringWithFormat
:
@"%@%@"
,
@"欧普照明"
,
shareWeb
];
[
UMSocialData
defaultData
].
extConfig
.
sinaData
.
shareText
=
[
NSString
stringWithFormat
:
@"%@%@"
,
@"欧普照明"
,
shareWeb
];
[[
UMSocialDataService
defaultDataService
]
postSNSWithTypes
:@[
UMShareToSina
]
content
:
title
image
:
self
.
shareImage
location
:
nil
urlResource
:
nil
presentedController
:
self
completion
:^
(
UMSocialResponseEntity
*
shareResponse
){
[[
UMSocialDataService
defaultDataService
]
postSNSWithTypes
:@[
UMShareToSina
]
content
:
title
image
:
self
.
shareImage
location
:
nil
urlResource
:
nil
presentedController
:
self
completion
:^
(
UMSocialResponseEntity
*
shareResponse
){
if
(
shareResponse
.
responseCode
==
UMSResponseCodeSuccess
)
{
if
(
shareResponse
.
responseCode
==
UMSResponseCodeSuccess
)
{
[
self
SuccessMBProgressView
:
@"分享新浪微博成功"
];
[
self
SuccessMBProgressView
:
@"分享新浪微博成功"
];
}
}
}];
}];
...
...
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