Commit f54c92a9 authored by Sandy's avatar Sandy

Merge branch 'master' of git.oschina.net:gomore/Opple-iOS

parents f58f7c24 2015f1e0
...@@ -273,6 +273,7 @@ ...@@ -273,6 +273,7 @@
} }
shareController.shareID = goodsID; shareController.shareID = goodsID;
shareController.shareImage = [self capture]; shareController.shareImage = [self capture];
shareController.type = SHARE_GOODS;
shareController.preferredContentSize = CGSizeMake(290, 120); shareController.preferredContentSize = CGSizeMake(290, 120);
shareController.modalPresentationStyle = UIModalPresentationPopover; shareController.modalPresentationStyle = UIModalPresentationPopover;
UIPopoverPresentationController *popover = shareController.popoverPresentationController; UIPopoverPresentationController *popover = shareController.popoverPresentationController;
......
...@@ -116,8 +116,8 @@ ...@@ -116,8 +116,8 @@
switch (self.type) { switch (self.type) {
case SHARE_GOODS: case SHARE_GOODS:
{ {
UMShareImageObject *shareObject = [[UMShareImageObject alloc] init]; UMShareWebpageObject *shareObject = [UMShareWebpageObject shareObjectWithTitle:@"欧立方体验中心一键分享" descr:@"欧立方体验中心一键分享" thumImage:self.shareImage];
[shareObject setShareImage:self.shareImage]; shareObject.webpageUrl = shareWeb;
messageObject.shareObject = shareObject; messageObject.shareObject = shareObject;
} }
......
...@@ -538,7 +538,13 @@ NSString *const PROMOTIONALSTRING = @"促销信息"; ...@@ -538,7 +538,13 @@ NSString *const PROMOTIONALSTRING = @"促销信息";
weChatModel.total = weakSelf.weChatModel.wxcardDenomation;break; weChatModel.total = weakSelf.weChatModel.wxcardDenomation;break;
} }
} }
NSString *message = MESSAGE(returnValue);
if ([[self class] isBlankString: message]) {
[XBLoadingView showHUDViewWithText:[NSString stringWithFormat:@"微信卡劵(%ld元)使用成功",weakSelf.weChatModel.wxcardDenomation]]; [XBLoadingView showHUDViewWithText:[NSString stringWithFormat:@"微信卡劵(%ld元)使用成功",weakSelf.weChatModel.wxcardDenomation]];
}else {
[XBLoadingView showHUDViewWithText:message];
}
[weakSelf promotionInformationExecutionOrder]; [weakSelf promotionInformationExecutionOrder];
}else{ }else{
ShowDefaultAlertView(self, nil, [NSString stringWithFormat:@"微信卡劵使用失败:(%@),是否重试?",returnValue[@"msg"]], UIAlertControllerStyleAlert, ^{ ShowDefaultAlertView(self, nil, [NSString stringWithFormat:@"微信卡劵使用失败:(%@),是否重试?",returnValue[@"msg"]], UIAlertControllerStyleAlert, ^{
......
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