重庆迈尖科技有限公司
2018-07-02 1d560171b17226a01c43475273a22ae3086d589f
no message
19个文件已修改
161 ■■■■■ 已修改文件
MIduo.xcworkspace/xcuserdata/mj.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MIduo/AppDelegate.m 11 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MIduo/数据/Common.h 16 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MIduo/数据/DataNet/YTHNetdata.m 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MIduo/数据/FileSignature.m 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MIduo/数据/WeexDomain/Module/WXUtilModule.m 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MIduo/数据/YTHsharedManger.m 28 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MIduo/界面/BaseViewController.m 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MIduo/界面/优惠券/推荐/OtherCouponViewController.m 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MIduo/界面/动态/DynamicViewController.m 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MIduo/界面/我的/LoginViewController.m 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MIduo/界面/我的/MineViewController.m 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MIduo/界面/我的/SettingViewController.m 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MIduo/界面/我的/weex_firstlessons/SJModule.m 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MIduo/界面/网页视图/SureWebViewController.m 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MIduo/界面/网页视图/商品详情/ButtomCarView.m 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MIduo/界面/网页视图/商品详情/FeignGoodsDetaiViewController.m 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MIduo/界面/购物车/shoppingCartViewController.m 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MIduo/界面/首页/NEWHomeViewController.m 60 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MIduo.xcworkspace/xcuserdata/mj.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist
@@ -58,11 +58,11 @@
            ignoreCount = "0"
            continueAfterRunningActions = "No"
            filePath = "MIduo/界面/购物车/shoppingCartViewController.m"
            timestampString = "551873944.958539"
            timestampString = "551959500.218684"
            startingColumnNumber = "9223372036854775807"
            endingColumnNumber = "9223372036854775807"
            startingLineNumber = "399"
            endingLineNumber = "399"
            startingLineNumber = "397"
            endingLineNumber = "397"
            landmarkName = "-webView:shouldStartLoadWithRequest:navigationType:"
            landmarkType = "7">
         </BreakpointContent>
MIduo/AppDelegate.m
@@ -36,9 +36,7 @@
//#import "MiPushSDK.h"
#import  <UserNotifications/UserNotifications.h>
#define Version [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleVersion"]  //build号
#define Package @"com.yeshi.ec.RebateTicket"  //相当于包名
#define IOS_VERSION [[[UIDevice currentDevice] systemVersion] floatValue] //系统版本号
#import <WeexSDK/WXSDKInstance.h>
#import <WeexSDK/WeexSDK.h>
@@ -240,12 +238,7 @@
    
    // business configuration
    NSDictionary *infoDictionary = [[NSBundle mainBundle] infoDictionary];
    //    CFShow(infoDictionary);
    // app名称
    NSString *app_Name = [infoDictionary objectForKey:@"CFBundleDisplayName"];
    // app版本
    NSString *app_Version = [infoDictionary objectForKey:@"CFBundleShortVersionString"];
    [WXAppConfiguration setAppGroup:@"AliApp"];
    [WXAppConfiguration setAppName:app_Name];
    [WXAppConfiguration setAppVersion:app_Version];
MIduo/Êý¾Ý/Common.h
@@ -182,14 +182,18 @@
// 6.每张图片前面的前缀
#define ImageUrl @"http://sovideo.cn:8080/BuWan"
// 7.Log输出格式
///------
/// NSLog
///------
#ifdef DEBUG
#define ALLog(...) NSLog(@"%s ç¬¬%d行 \n %@\n\n",__func__,__LINE__,[NSString stringWithFormat:__VA_ARGS__])
#else
#define ALLog(...)
#endif
// --------------- å„种宽高 -------------
///------
/// App View
///------
// å±å¹•宽高
#define SCREEN_WIDTH [UIScreen mainScreen].bounds.size.width
#define SCREEN_HEIGHT [UIScreen mainScreen].bounds.size.height
@@ -204,3 +208,11 @@
// åŠ è½½æœ¬åœ°å›¾ç‰‡
#define ALIMAGE_NAMED(name)[UIImage imageNamed:name]
///---------
/// App Info
///---------
#define Version [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleVersion"]  //build号
#define Package @"com.yeshi.ec.RebateTicket"  //相当于包名
#define IOS_VERSION [[[UIDevice currentDevice] systemVersion] floatValue] //系统版本号
#define app_Version [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleShortVersionString"]
#define app_Name [infoDictionary objectForKey:@"CFBundleDisplayName"]
MIduo/Êý¾Ý/DataNet/YTHNetdata.m
@@ -9,9 +9,6 @@
#import "YTHNetdata.h"
#import "FileSignature.h"
#define Version [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleVersion"]  //build号
#define Package @"com.yeshi.ec.RebateTicket"  //相当于包名
@implementation YTHNetdata
//#pragma mark é€šç”¨å‚æ•°
MIduo/Êý¾Ý/FileSignature.m
@@ -8,9 +8,6 @@
#import "FileSignature.h"
#define Version [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleVersion"]  //build号
#define Package @"com.yeshi.ec.RebateTicket"  //相当于包名
@implementation FileSignature
+ (NSMutableDictionary *)CommonDictionary:(NSDictionary *)dictionary{
MIduo/Êý¾Ý/WeexDomain/Module/WXUtilModule.m
@@ -11,9 +11,6 @@
#import "SureWebViewController.h"
#import "GoodDeTrViewController.h"
#define Version [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleVersion"]  //build号
#define Package @"com.yeshi.ec.RebateTicket"  //相当于包名
@implementation WXUtilModule
@synthesize weexInstance;
MIduo/Êý¾Ý/YTHsharedManger.m
@@ -17,35 +17,51 @@
@implementation YTHsharedManger
+ (YTHsharedManger *)startManger{
+ (YTHsharedManger *)startManger {
    if (!sharedManger) {
        sharedManger = [[YTHsharedManger alloc] init];
    }
    return sharedManger;
}
//返利券登录(第三方登录成功后都需要调用这个方法)
-(void)LogInForFanliQuanWithLoginType:(NSString *)type WithWXCode:(NSString *)WXcode  create:(NSString *)create uid:(NSString *)uid isfirst:(BOOL)isfirst block:(YTHUserInfo)block{
-(void)LogInForFanliQuanWithLoginType:(NSString *)type
                           WithWXCode:(NSString *)WXcode
                               create:(NSString *)create
                                  uid:(NSString *)uid
                              isfirst:(BOOL)isfirst
                                block:(YTHUserInfo)block{
    //type: 1.淘宝登陆 2.微信登录
    
    NSString *Openid = nil;
    NSString *NickName = nil;
    NSString *Portrait = nil;
    
    if([type intValue]==1 || [YTHsharedManger startManger].isBound){//淘宝登陆
    if ([type intValue] ==1 || [YTHsharedManger startManger].isBound) {//淘宝登陆
        ALBBUser *myMessage = [[ALBBSession sharedInstance] getUser];
        Openid = myMessage.openId;
        NickName = myMessage.nick;
        Portrait = myMessage.avatarUrl;
    }
    self.boundDic = @{}.mutableCopy;
    if (Openid!=nil) {
    if (Openid) {
        [self.boundDic setObject:Openid forKey:@"openid"];
    }
    if (WXcode!=nil) {
    if (WXcode) {
        [self.boundDic setObject:WXcode forKey:@"code"];
    }
    if (type != nil) {
    if (type) {
        [self.boundDic setObject:type forKey:@"type"];
    }
    
MIduo/½çÃæ/BaseViewController.m
@@ -9,9 +9,6 @@
#import "BaseViewController.h"
@interface BaseViewController ()
#define Version [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleVersion"]  //build号
#define Package @"com.yeshi.ec.RebateTicket"  //相当于包名
@end
@implementation BaseViewController
MIduo/½çÃæ/ÓÅ»Ýȯ/ÍÆ¼ö/OtherCouponViewController.m
@@ -8,8 +8,6 @@
#import "OtherCouponViewController.h"
#import "CoupleCollectionReusableView.h"
#import "recommendCollectionViewCell.h"
#define Version [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleVersion"]  //build号
#define Package @"com.yeshi.ec.RebateTicket"  //相当于包名
@interface OtherCouponViewController ()<UICollectionViewDelegate,UICollectionViewDataSource,UICollectionViewDelegateFlowLayout,UIScrollViewDelegate>{
    int Page;
MIduo/½çÃæ/¶¯Ì¬/DynamicViewController.m
@@ -14,9 +14,6 @@
#import "XHWebImageAutoSize.h"
#import "UIImageView+WebCache.h"
#define Version [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleVersion"]  //build号
#define Package @"com.yeshi.ec.RebateTicket"  //相当于包名
@interface DynamicViewController()
<UITableViewDelegate, UITableViewDataSource, DynamicTableViewCellDelegate,
HXEasyCustomShareViewDelegate, WINCopyLabelDelegate> {
MIduo/½çÃæ/ÎÒµÄ/LoginViewController.m
@@ -290,8 +290,6 @@
    }
}
#define Version [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleVersion"]  //build号
#define Package @"com.yeshi.ec.RebateTicket"  //相当于包名
-(NSMutableDictionary *)CommonDictionary{
    NSString *device=[NSString DeviceIdentifier];
    NSString *AppSecre=@"23649898";
MIduo/½çÃæ/ÎÒµÄ/MineViewController.m
@@ -43,8 +43,6 @@
#import "WeexNativeController.h"
#define Version [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleVersion"]  //build号
#define Package @"com.yeshi.ec.RebateTicket"  //相当于包名
@interface MineViewController ()<UITableViewDelegate,UITableViewDataSource,LXAlertViewDelegate>{
    UILabel *titleLabel;
    UITableView *_MineTableView;
MIduo/½çÃæ/ÎÒµÄ/SettingViewController.m
@@ -189,8 +189,7 @@
        }else{
            cell.accessoryType=UITableViewCellAccessoryNone;
            cell.title.text=@"版本信息";
            NSString *app_Version = [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleShortVersionString"];
            cell.info.text = [NSString stringWithFormat:@"%@    ",app_Version];
            
        }
MIduo/½çÃæ/ÎÒµÄ/weex_firstlessons/SJModule.m
@@ -9,10 +9,6 @@
#import "SJModule.h"
#import "SJFirstLessonsViewController.h"
#import <WeexSDK/WeexSDK.h>
#define Version [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleVersion"]  //build号
#define IOS_VERSION [[[UIDevice currentDevice] systemVersion] floatValue] //系统版本号
#define app_Version [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleShortVersionString"]
@implementation SJModule
MIduo/½çÃæ/ÍøÒ³ÊÓͼ/SureWebViewController.m
@@ -17,10 +17,9 @@
#import "UMMobClick/MobClick.h"
#import "HXEasyCustomShareView.h"//分享界面
#define Version [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleVersion"]  //build号
#define Package @"com.yeshi.ec.RebateTicket"  //相当于包名
#import "ShonpingShareViewController.h"
#import "SearchTip.h"
@interface SureWebViewController ()<UIGestureRecognizerDelegate,UIWebViewDelegate,LXAlertViewDelegate>{
    KLCPopup *popWebCoupon;//网页优惠券的弹出视图
    webCouponChildView *webCouponChildV;
MIduo/½çÃæ/ÍøÒ³ÊÓͼ/ÉÌÆ·ÏêÇé/ButtomCarView.m
@@ -7,8 +7,6 @@
//
#import "ButtomCarView.h"
#define Version [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleVersion"]  //build号
#define Package @"com.yeshi.ec.RebateTicket"  //相当于包名
@interface ButtomCarView()
@property (nonatomic,strong)UIImageView *heartImage;
MIduo/½çÃæ/ÍøÒ³ÊÓͼ/ÉÌÆ·ÏêÇé/FeignGoodsDetaiViewController.m
@@ -7,10 +7,11 @@
//
#import "FeignGoodsDetaiViewController.h"
#define Version [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleVersion"]  //build号
#define Package @"com.yeshi.ec.RebateTicket"  //相当于包名
@interface FeignGoodsDetaiViewController ()<UIWebViewDelegate>
@property (nonatomic,strong)UIWebView *webView;
@end
@implementation FeignGoodsDetaiViewController
MIduo/½çÃæ/¹ºÎï³µ/shoppingCartViewController.m
@@ -10,8 +10,6 @@
#import "LXAlertView.h"
#import "TipView.h"
#define Version [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleVersion"]  //build号
#define Package @"com.yeshi.ec.RebateTicket"  //相当于包名
@interface shoppingCartViewController ()<UIWebViewDelegate,TipViewDelegate>{
    UIButton *loginBtn;//未登录或未绑定时的登录按钮,要在用户登录的时候隐藏
MIduo/½çÃæ/Ê×Ò³/NEWHomeViewController.m
@@ -17,9 +17,6 @@
#import "MineMessageViewController.h"
#import "SearchTip.h"
#define Version [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleVersion"]  //build号
#define Package @"com.yeshi.ec.RebateTicket"  //相当于包名
@interface NEWHomeViewController ()<ZJScrollPageViewDelegate>{
    NSInteger SpeciesNumber;    //细分类的位置
    
@@ -59,57 +56,83 @@
    
    BOOL isExpand = [[NSUserDefaults standardUserDefaults] boolForKey:@"isExpand"];
    [self.navigationController setNavigationBarHidden:!isExpand animated:NO];
    if (isExpand) {
        _scrollPageView.frame=CGRectMake(0, 0, KScreenW, KScreenH);
    }else{
    } else {
        _scrollPageView.frame=CGRectMake(0, kStatusBarH, KScreenW, KScreenH-kStatusBarH-kToolBarH-kNavigationBarH);
    }
    [YTHsharedManger startManger].isBound = NO;
    //    [self loadOldData];
    
    [YTHsharedManger startManger].isBound = NO;
    // [self loadOldData];
}
-(void)viewWillDisappear:(BOOL)animated{
    [super viewWillDisappear:animated];
    [self.navigationController setNavigationBarHidden:NO animated:NO];
}
- (void)viewDidLoad {
    [super viewDidLoad];
    [YTHsharedManger startManger].isBound = NO;
    [[NSUserDefaults standardUserDefaults] setBool:YES forKey:@"isExpand"];
    
    //定制导航栏
    // å®šåˆ¶å¯¼èˆªæ 
    [self CreatNavigationBar];
    [self CreatNoNetView];
    //加载数据
    // åŠ è½½æ•°æ®
    [self loadOldData];
    [self isJumpTaobao];
    [YTHsharedManger startManger].isDetailWebValue =[[[NSUserDefaults standardUserDefaults] objectForKey:@"isDetailWebValue"]integerValue];
    
    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(pushInfomationClicked:) name:@"pushInfomation" object:nil];
    //
    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(NetWorkStatesChange:) name:@"netWorkChangeEventNotification" object:nil];
    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(getExpandChanged) name:@"ExpandHasChange" object:nil];
    [YTHsharedManger startManger].isDetailWebValue = [[[NSUserDefaults standardUserDefaults] objectForKey:@"isDetailWebValue"]integerValue];
    
    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(guessYouLike:) name:@"GUESSYOULIKE" object:nil];
    [[NSNotificationCenter defaultCenter] addObserver:self
                                             selector:@selector(pushInfomationClicked:)
                                                 name:@"pushInfomation"
                                               object:nil];
    [[NSNotificationCenter defaultCenter] addObserver:self
                                             selector:@selector(NetWorkStatesChange:)
                                                 name:@"netWorkChangeEventNotification"
                                               object:nil];
    [[NSNotificationCenter defaultCenter] addObserver:self
                                             selector:@selector(getExpandChanged)
                                                 name:@"ExpandHasChange"
                                               object:nil];
    [[NSNotificationCenter defaultCenter] addObserver:self
                                             selector:@selector(guessYouLike:)
                                                 name:@"GUESSYOULIKE"
                                               object:nil];
    if ([YTHsharedManger startManger].infomation != nil) {
        [[NSNotificationCenter defaultCenter] postNotificationName:@"pushInfomation" object:[YTHsharedManger startManger].infomation];
        [YTHsharedManger startManger].infomation = nil;
    }
}
- (UIViewController *)getPresentedViewController
{
- (UIViewController *)getPresentedViewController {
    UIViewController *appRootVC = [UIApplication sharedApplication].keyWindow.rootViewController;
    UIViewController *topVC = appRootVC;
    if (topVC.presentedViewController) {
        topVC = topVC.presentedViewController;
    }
    
    return topVC;
}
- (UIViewController *)_topViewController:(UIViewController *)vc {
    if ([vc isKindOfClass:[UINavigationController class]]) {
        return [self _topViewController:[(UINavigationController *)vc topViewController]];
@@ -121,6 +144,7 @@
    return nil;
}
- (UIViewController *)topViewController {
    UIViewController *resultVC;
    resultVC = [self _topViewController:[[UIApplication sharedApplication].keyWindow rootViewController]];
    while (resultVC.presentedViewController) {
@@ -129,7 +153,8 @@
    return resultVC;
}
- (void)pushInfomationClicked:(NSNotification *)notice{
- (void)pushInfomationClicked:(NSNotification *)notice {
    NSDictionary *dic = notice.object[@"aps"][@"alert"];
    NSLog(@"%@",dic);
    NSString * url = dic[@"url"];
@@ -141,6 +166,7 @@
        messageVC.hidesBottomBarWhenPushed=YES;
        [controller.navigationController pushViewController:messageVC animated:YES];
    }
    if (type == 1) {
        [YTHsharedManger startManger].isDetailWebValue =[[[NSUserDefaults standardUserDefaults] objectForKey:@"isDetailWebValue"]integerValue];
        if ([YTHsharedManger startManger].isDetailWebValue) {