Commit ceaa02d1 authored by 曹云霄's avatar 曹云霄

优化使用微信卡劵提示

parent 6d585141
......@@ -273,6 +273,7 @@
}
shareController.shareID = goodsID;
shareController.shareImage = [self capture];
shareController.type = SHARE_GOODS;
shareController.preferredContentSize = CGSizeMake(290, 120);
shareController.modalPresentationStyle = UIModalPresentationPopover;
UIPopoverPresentationController *popover = shareController.popoverPresentationController;
......
......@@ -116,8 +116,8 @@
switch (self.type) {
case SHARE_GOODS:
{
UMShareImageObject *shareObject = [[UMShareImageObject alloc] init];
[shareObject setShareImage:self.shareImage];
UMShareWebpageObject *shareObject = [UMShareWebpageObject shareObjectWithTitle:@"欧立方体验中心一键分享" descr:@"欧立方体验中心一键分享" thumImage:self.shareImage];
shareObject.webpageUrl = shareWeb;
messageObject.shareObject = shareObject;
}
......
......@@ -538,7 +538,13 @@ NSString *const PROMOTIONALSTRING = @"促销信息";
weChatModel.total = weakSelf.weChatModel.wxcardDenomation;break;
}
}
[XBLoadingView showHUDViewWithText:[NSString stringWithFormat:@"微信卡劵(%ld元)使用成功",weakSelf.weChatModel.wxcardDenomation]];
NSString *message = MESSAGE(returnValue);
if ([[self class] isBlankString: message]) {
[XBLoadingView showHUDViewWithText:[NSString stringWithFormat:@"微信卡劵(%ld元)使用成功",weakSelf.weChatModel.wxcardDenomation]];
}else {
[XBLoadingView showHUDViewWithText:message];
}
[weakSelf promotionInformationExecutionOrder];
}else{
ShowDefaultAlertView(self, nil, [NSString stringWithFormat:@"微信卡劵使用失败:(%@),是否重试?",returnValue[@"msg"]], UIAlertControllerStyleAlert, ^{
......
......@@ -96,14 +96,14 @@ typedef NS_ENUM(NSInteger,COMMENT_PRAISE) {
/**
* 服务器开发地址
*/
//#define SERVERREQUESTURL(URL) [NSString stringWithFormat:@"http://gomoredev:8082/opple-web/app%@",URL]
#define SERVERREQUESTURL(URL) [NSString stringWithFormat:@"http://gomoredev:8082/opple-web/app%@",URL]
//外网http://debenson.picp.io/opple-web/
/**
* 服务器测试地址
*/
#define SERVERREQUESTURL(URL) [NSString stringWithFormat:@"http://dg-dev.opple.com/opple-web/app%@",URL]
//#define SERVERREQUESTURL(URL) [NSString stringWithFormat:@"http://dg-dev.opple.com/opple-web/app%@",URL]
//**
// * 服务器正式地址
......
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