Skip to content

Commit

Permalink
新增商家详情微信,新浪,人人等分享
Browse files Browse the repository at this point in the history
  • Loading branch information
lookingstars committed Jul 22, 2015
1 parent 900ca83 commit f2ad105
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 7 deletions.
Binary file not shown.
25 changes: 25 additions & 0 deletions meituan/Controller/Merchant/JZMerchantDetailViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
#import "JZMerAroundGroupCell.h"
#import "ShopViewController.h"

#import "UMSocial.h"

@interface JZMerchantDetailViewController ()<UITableViewDataSource,UITableViewDelegate>
{
UILabel *_titleLabel;
Expand Down Expand Up @@ -115,8 +117,31 @@ -(void)OnBackBtn:(UIButton *)sender{
[self.navigationController popViewControllerAnimated:YES];
}

//响应事件
-(void)OnShareBtn:(UIButton *)sender{


// [UMSocialSnsService presentSnsIconSheetView:self appKey:UMAPPKEY shareText:@"测试高仿分享" shareImage:[UIImage imageNamed:@"bg_customReview_image_default"] shareToSnsNames:[NSArray arrayWithObjects:UMShareToSina,UMShareToTencent,UMShareToRenren,UMShareToQzone, nil] delegate:self];
[UMSocialSnsService presentSnsIconSheetView:self appKey:UMAPPKEY shareText:@"在美国被禁的网站,请偷偷看" shareImage:[UIImage imageNamed:@"m1.jpg"] shareToSnsNames:[NSArray arrayWithObjects:UMShareToSina,UMShareToTencent,UMShareToRenren,UMShareToWechatTimeline,UMShareToWechatSession, nil] delegate:self];


//1.微信分享
//1.1使用UMShareToWechatSession,UMShareToWechatTimeline,UMShareToWechatFavorite分别代表微信好友、微信朋友圈、微信收藏
// [[UMSocialDataService defaultDataService] postSNSWithTypes:@[UMShareToWechatSession] content:@"分享内嵌文字" image:nil location:nil urlResource:nil presentedController:self completion:^(UMSocialResponseEntity *response){
// if (response.responseCode == UMSResponseCodeSuccess) {
// NSLog(@"分享成功!");
// }
// }];
//1.2设置分享内容跳转
// [UMSocialData defaultData].extConfig.wechatTimelineData.url = @"http://www.fityun.cn/";
//1.3设置朋友圈跳转title
// [UMSocialData defaultData].extConfig.wechatTimelineData.title = @"微信朋友圈title";
//1.4分享类型,分享app
// [UMSocialData defaultData].extConfig.wxMessageType = UMSocialWXMessageTypeApp;




}


Expand Down
14 changes: 7 additions & 7 deletions meituan/Model/Merchant/JZMerAroundGroupModel.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@

@interface JZMerAroundGroupModel : NSObject

@property (nonatomic, strong) NSString *squareimgurl;/** > 图片url */
@property (nonatomic, strong) NSString *mname;/** > 店名 */
@property (nonatomic, strong) NSString *range;/** < 范围 */
@property (nonatomic, strong) NSString *title;/** < 标题 */
@property (nonatomic, strong) NSNumber *price;/** < 现价 */
@property (nonatomic, strong) NSString *squareimgurl;/**< 图片url */
@property (nonatomic, strong) NSString *mname;/**< 店名 */
@property (nonatomic, strong) NSString *range;/**< 范围 */
@property (nonatomic, strong) NSString *title;/**< 标题 */
@property (nonatomic, strong) NSNumber *price;/**< 现价 */

@property (nonatomic, strong) NSNumber *value;/** < 原价 */
@property (nonatomic, strong) NSNumber *rating;/** < 评分 */
@property (nonatomic, strong) NSNumber *value;/**< 原价 */
@property (nonatomic, strong) NSNumber *rating;/**< 评分 */
@property (nonatomic, strong) NSNumber *rate_count;
@property (nonatomic, strong) NSNumber *id;

Expand Down

0 comments on commit f2ad105

Please sign in to comment.