| | |
| | | 0D60F88F23F52CBD0076630E /* ShareMainImageView.m in Sources */ = {isa = PBXBuildFile; fileRef = 0D60F88E23F52CBD0076630E /* ShareMainImageView.m */; }; |
| | | 0D60F89223F534250076630E /* QuickShareBottomView.m in Sources */ = {isa = PBXBuildFile; fileRef = 0D60F89123F534250076630E /* QuickShareBottomView.m */; }; |
| | | 0D81C2C02488D77A00BE8E8B /* SearchDetailFilterSNView.m in Sources */ = {isa = PBXBuildFile; fileRef = 0D81C2BF2488D77A00BE8E8B /* SearchDetailFilterSNView.m */; }; |
| | | 0D81C2C2248DEBD600BE8E8B /* yw_1222_baichuan.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 0D81C2C1248DEBD500BE8E8B /* yw_1222_baichuan.jpg */; }; |
| | | 0D8C2B922466A061009ABF50 /* MyTeamNavView.m in Sources */ = {isa = PBXBuildFile; fileRef = 0D8C2B912466A061009ABF50 /* MyTeamNavView.m */; }; |
| | | 0DC82667246CE85800E89D1B /* WithdrawalRecordController.m in Sources */ = {isa = PBXBuildFile; fileRef = 0DC82666246CE85800E89D1B /* WithdrawalRecordController.m */; }; |
| | | 0DC8266B246CEA7200E89D1B /* WithdrawalRecordModel.m in Sources */ = {isa = PBXBuildFile; fileRef = 0DC8266A246CEA7200E89D1B /* WithdrawalRecordModel.m */; }; |
| | |
| | | 2D64E9072271BDD10047E0AD /* StoreFootprintController.m in Sources */ = {isa = PBXBuildFile; fileRef = 2D64E9062271BDD10047E0AD /* StoreFootprintController.m */; }; |
| | | 2D66608F221BA80D0035FE50 /* RewardCouponsFooterView.m in Sources */ = {isa = PBXBuildFile; fileRef = 2D66608E221BA80D0035FE50 /* RewardCouponsFooterView.m */; }; |
| | | 2D666093221BE6A60035FE50 /* OrderRewardCouponListModel.m in Sources */ = {isa = PBXBuildFile; fileRef = 2D666092221BE6A60035FE50 /* OrderRewardCouponListModel.m */; }; |
| | | 2D68202E2276D18D002A8DC5 /* yw_1222.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 2D68202D2276D18C002A8DC5 /* yw_1222.jpg */; }; |
| | | 2D68C9BD233F16E800C4FB2D /* GuessLikeSimilarityPopView.m in Sources */ = {isa = PBXBuildFile; fileRef = 2D68C9BC233F16E800C4FB2D /* GuessLikeSimilarityPopView.m */; }; |
| | | 2D68C9C1233F42A200C4FB2D /* ShonpingShareViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 2D68C9C0233F42A200C4FB2D /* ShonpingShareViewController.m */; }; |
| | | 2D6AD2F121709896006BB487 /* ProgressLine.m in Sources */ = {isa = PBXBuildFile; fileRef = 2D6AD2F021709896006BB487 /* ProgressLine.m */; }; |
| | |
| | | 0D60F89123F534250076630E /* QuickShareBottomView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = QuickShareBottomView.m; sourceTree = "<group>"; }; |
| | | 0D81C2BE2488D77A00BE8E8B /* SearchDetailFilterSNView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SearchDetailFilterSNView.h; sourceTree = "<group>"; }; |
| | | 0D81C2BF2488D77A00BE8E8B /* SearchDetailFilterSNView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SearchDetailFilterSNView.m; sourceTree = "<group>"; }; |
| | | 0D81C2C1248DEBD500BE8E8B /* yw_1222_baichuan.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = yw_1222_baichuan.jpg; sourceTree = "<group>"; }; |
| | | 0D8C2B902466A061009ABF50 /* MyTeamNavView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = MyTeamNavView.h; sourceTree = "<group>"; }; |
| | | 0D8C2B912466A061009ABF50 /* MyTeamNavView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = MyTeamNavView.m; sourceTree = "<group>"; }; |
| | | 0DC82665246CE85800E89D1B /* WithdrawalRecordController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = WithdrawalRecordController.h; sourceTree = "<group>"; }; |
| | |
| | | 2D66608E221BA80D0035FE50 /* RewardCouponsFooterView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = RewardCouponsFooterView.m; sourceTree = "<group>"; }; |
| | | 2D666091221BE6A60035FE50 /* OrderRewardCouponListModel.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = OrderRewardCouponListModel.h; sourceTree = "<group>"; }; |
| | | 2D666092221BE6A60035FE50 /* OrderRewardCouponListModel.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = OrderRewardCouponListModel.m; sourceTree = "<group>"; }; |
| | | 2D68202D2276D18C002A8DC5 /* yw_1222.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = yw_1222.jpg; sourceTree = "<group>"; }; |
| | | 2D68C9BB233F16E800C4FB2D /* GuessLikeSimilarityPopView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GuessLikeSimilarityPopView.h; sourceTree = "<group>"; }; |
| | | 2D68C9BC233F16E800C4FB2D /* GuessLikeSimilarityPopView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = GuessLikeSimilarityPopView.m; sourceTree = "<group>"; }; |
| | | 2D68C9BF233F42A200C4FB2D /* ShonpingShareViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ShonpingShareViewController.h; sourceTree = "<group>"; }; |
| | |
| | | isa = PBXFrameworksBuildPhase; |
| | | buildActionMask = 2147483647; |
| | | files = ( |
| | | 2D19D3502334DACF00105A66 /* CoreMotion.framework in Frameworks */, |
| | | 187CF2DB1E694D1D0071421D /* CoreTelephony.framework in Frameworks */, |
| | | 2D7E1DA421466E4600BB6C7B /* libsqlite3.tbd in Frameworks */, |
| | | 187CF2DF1E694D410071421D /* libz.tbd in Frameworks */, |
| | | 0D2B2C9524849BCC003F27AE /* WebKit.framework in Frameworks */, |
| | | 187CF2DD1E694D270071421D /* SystemConfiguration.framework in Frameworks */, |
| | | 18325EB01F1C98C800432A51 /* Security.framework in Frameworks */, |
| | | 18325EB61F1C98F300432A51 /* QuartzCore.framework in Frameworks */, |
| | | 187CF2DF1E694D410071421D /* libz.tbd in Frameworks */, |
| | | 18F6653920859E350052997A /* libxml2.tbd in Frameworks */, |
| | | 0D2B2C9724849D5D003F27AE /* Foundation.framework in Frameworks */, |
| | | 2D7E1DA821466E6200BB6C7B /* AVFoundation.framework in Frameworks */, |
| | | 187CF2DB1E694D1D0071421D /* CoreTelephony.framework in Frameworks */, |
| | | 18325EB81F1C98FC00432A51 /* CoreLocation.framework in Frameworks */, |
| | | 18325EB21F1C98D700432A51 /* CoreGraphics.framework in Frameworks */, |
| | | 2D0BEEAA22E82FA900FD7009 /* AdSupport.framework in Frameworks */, |
| | | 0D2B2C9224849867003F27AE /* libGDTMobSDK.a in Frameworks */, |
| | | 0D2B2C9424849B9E003F27AE /* StoreKit.framework in Frameworks */, |
| | | 2D19D3502334DACF00105A66 /* CoreMotion.framework in Frameworks */, |
| | | 2D19D34E2334DAAC00105A66 /* libc++.tbd in Frameworks */, |
| | | 2D2AF4A422E8597E00F38DFF /* JavaScriptCore.framework in Frameworks */, |
| | | 2D0BEEBC22E83A2700FD7009 /* JDSDK.framework in Frameworks */, |
| | |
| | | 2D138BD92236401C0071D71C /* libopencore-amrwb.a in Frameworks */, |
| | | 2D138BCD2236401C0071D71C /* MeiQiaSDK.framework in Frameworks */, |
| | | 2D7E1DA621466E5400BB6C7B /* libicucore.tbd in Frameworks */, |
| | | 2D7E1DA421466E4600BB6C7B /* libsqlite3.tbd in Frameworks */, |
| | | 2D138BDA2236401C0071D71C /* libopencore-amrnb.a in Frameworks */, |
| | | 2D73332320C90D6800336CC8 /* WebP.framework in Frameworks */, |
| | | 183FD266209AC0B600903765 /* UserNotificationsUI.framework in Frameworks */, |
| | |
| | | 2D0EDBEB217ED2BA00FD934D /* image */ = { |
| | | isa = PBXGroup; |
| | | children = ( |
| | | 0D81C2C1248DEBD500BE8E8B /* yw_1222_baichuan.jpg */, |
| | | 2D10B0BA239E4F1100FE2BA9 /* å¼çº¢å
éå¸é³æ.mp3 */, |
| | | 2D573D5F232890F100DA9626 /* score_exchange_tag.png */, |
| | | 2D68202D2276D18C002A8DC5 /* yw_1222.jpg */, |
| | | 2D0EDBDD217EBEA800FD934D /* ic_share_tmall.png */, |
| | | 2D0EDBDF217EC06000FD934D /* ic_share_taobao.png */, |
| | | 2D912C9C2189990100249C98 /* pullupImage.gif */, |
| | |
| | | 18966CA820AD7F6A004CD297 /* GDDetailTableViewCell.xib in Resources */, |
| | | 2D57D8A8213CD87C00DCF8D1 /* HZPhotoBrowser.bundle in Resources */, |
| | | 2D4627DB21C7804400DB2D4F /* SJDynCShareController.xib in Resources */, |
| | | 2D68202E2276D18D002A8DC5 /* yw_1222.jpg in Resources */, |
| | | 2D10B0BB239E4F1200FE2BA9 /* å¼çº¢å
éå¸é³æ.mp3 in Resources */, |
| | | 180FA3D8207AFCD800140742 /* MainInviteTableViewCell.xib in Resources */, |
| | | 18D399AE1EA765AD00A01CD3 /* thirdClassificationViewController.xib in Resources */, |
| | | 2D15472222B78A14006B8A81 /* SpreadNoShopTableViewCell.xib in Resources */, |
| | | 2DB678FA21BA54B900B256AA /* SJShopMoreCell.xib in Resources */, |
| | | 0D81C2C2248DEBD600BE8E8B /* yw_1222_baichuan.jpg in Resources */, |
| | | 2DE39ECC22A6778900067220 /* ServiceTableViewCell.xib in Resources */, |
| | | 2D573D60232890F200DA9626 /* score_exchange_tag.png in Resources */, |
| | | 18E5AE001E5EC9C9009F85E0 /* SettingTypeOneTableViewCell.xib in Resources */, |
| | |
| | | "$(PROJECT_DIR)/MIduo/æ°æ®/lib/MQ/MQChatViewController/Vendors/MLAudioRecorder/amr_en_de/lib", |
| | | "$(PROJECT_DIR)/MIduo/æ°æ®/lib/GDT/lib", |
| | | ); |
| | | MARKETING_VERSION = 2.1.11; |
| | | MARKETING_VERSION = 2.1.2; |
| | | MiSDKRun = debug; |
| | | OTHER_LDFLAGS = ( |
| | | "$(inherited)", |
| | |
| | | "-lstdc++", |
| | | "-Objc", |
| | | "-all_load", |
| | | "-lstdc++", |
| | | ); |
| | | PODS_ROOT = "$(inherited)"; |
| | | PRODUCT_BUNDLE_IDENTIFIER = "com.xyj.ec.fanli-ios"; |
| | |
| | | "$(PROJECT_DIR)/MIduo/æ°æ®/lib/MQ/MQChatViewController/Vendors/MLAudioRecorder/amr_en_de/lib", |
| | | "$(PROJECT_DIR)/MIduo/æ°æ®/lib/GDT/lib", |
| | | ); |
| | | MARKETING_VERSION = 2.1.11; |
| | | MARKETING_VERSION = 2.1.2; |
| | | MiSDKRun = online; |
| | | OTHER_LDFLAGS = ( |
| | | "$(inherited)", |
| | |
| | | "-lstdc++", |
| | | "-Objc", |
| | | "-all_load", |
| | | "-lstdc++", |
| | | ); |
| | | PODS_ROOT = "$(inherited)"; |
| | | PRODUCT_BUNDLE_IDENTIFIER = "com.xyj.ec.fanli-ios"; |
| | |
| | | |
| | | #import "AppDelegate.h" |
| | | |
| | | //#import "XGPush.h" //信鸽 |
| | | //#import "XGSetting.h" |
| | | #import <UserNotifications/UserNotifications.h> |
| | | |
| | | #import <ShareSDK/ShareSDK.h> |
| | |
| | | |
| | | } //å¤çå
¶ä»app跳转å°èªå·±çappï¼å¦æç¾å·å¤çè¿ä¼è¿åYES |
| | | return [WXApi handleOpenURL:url delegate:self]; |
| | | |
| | | return YES; |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | - (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation { |
| | | //该URLæ¯å¦å·²ç»è¢«SDKå¤çè¿ |
| | | if ([[ALBBSDK sharedInstance] isTBBackUrl:url.absoluteString]) { |
| | | [[ALBBSDK sharedInstance] loginByURL:url]; |
| | | // 妿ç¾å·å¤çè¿ä¼è¿åYES |
| | | if (![[AlibcTradeSDK sharedInstance] application:application openURL:url sourceApplication:sourceApplication annotation:annotation]) { |
| | | // å¤çå
¶ä»app跳转å°èªå·±çapp |
| | | } |
| | | //åçå享 |
| | | BOOL result = [[UMSocialManager defaultManager] handleOpenURL:url sourceApplication:sourceApplication annotation:annotation]; |
| | |
| | | /// ç½é¡µæ¯å¦å è½½å®æ |
| | | @property (nonatomic, assign) BOOL isWebViewLoad; |
| | | |
| | | @property (nonatomic, nullable, strong) NSMutableArray *arrayShareImage; |
| | | /// æ¯å¦ä¸è½½å¤å¼ å¾ç |
| | | @property (nonatomic, assign) BOOL isDownMoreImg; |
| | | @end |
| | | |
| | | @implementation ShonpingShareViewController |
| | |
| | | [self.webView.configuration.userContentController addScriptMessageHandler:self name:@"jumpWXXCX"]; |
| | | [self.webView.configuration.userContentController addScriptMessageHandler:self name:@"shareWXXCX"]; |
| | | [self.webView.configuration.userContentController addScriptMessageHandler:self name:@"shareImgs"]; |
| | | [self.webView.configuration.userContentController addScriptMessageHandler:self name:@"savePictures"]; |
| | | |
| | | if (_isWebViewLoad) { |
| | | NSString *jsFounction = @"yestvcallback.resume()"; |
| | |
| | | [self.webView.configuration.userContentController removeScriptMessageHandlerForName:@"jumpWXXCX"]; |
| | | [self.webView.configuration.userContentController removeScriptMessageHandlerForName:@"shareWXXCX"]; |
| | | [self.webView.configuration.userContentController removeScriptMessageHandlerForName:@"shareImgs"]; |
| | | [self.webView.configuration.userContentController removeScriptMessageHandlerForName:@"savePictures"]; |
| | | |
| | | } |
| | | |
| | | - (void)setupNave { |
| | |
| | | } |
| | | |
| | | -(void)savedPhotoImage:(UIImage*)image didFinishSavingWithError: (NSError *)error contextInfo: (void *)contextInfo { |
| | | if (_isDownMoreImg) { |
| | | if (error) { |
| | | |
| | | } else { |
| | | [_arrayShareImage removeObjectAtIndex:0]; |
| | | } |
| | | [self saveToAlbumNext]; |
| | | |
| | | } else { |
| | | if (!error) { |
| | | ALToastCenter(@"å¾çä¿åå°ç¸åæå"); |
| | | } |
| | | } |
| | | } |
| | | |
| | |
| | | |
| | | - (void)shareImgs:(NSDictionary *)dictionary { |
| | | NSString *jsonString = dictionary[@"imgUrls"]; |
| | | |
| | | if (!jsonString) return; |
| | | NSData *jsonData = [jsonString dataUsingEncoding:NSUTF8StringEncoding]; |
| | | NSArray *array = [NSJSONSerialization JSONObjectWithData:jsonData options:NSJSONReadingMutableContainers error:nil]; |
| | | |
| | |
| | | [self presentViewController:activityVC animated:YES completion:nil]; |
| | | }); |
| | | }); |
| | | } |
| | | |
| | | - (void)savePictures:(NSString *)string { |
| | | if (!string) return; |
| | | NSData *jsonData = [string dataUsingEncoding:NSUTF8StringEncoding]; |
| | | NSArray *array = [NSJSONSerialization JSONObjectWithData:jsonData options:NSJSONReadingMutableContainers error:nil]; |
| | | |
| | | [self.view makeToastActivity:CSToastPositionCenter]; |
| | | self.view.userInteractionEnabled = NO; |
| | | self.isDownMoreImg = YES; |
| | | [self.arrayShareImage removeAllObjects]; |
| | | @weakify(self) |
| | | dispatch_async(dispatch_get_global_queue(0,0),^{ |
| | | @strongify(self) |
| | | for (NSString *string in array) { |
| | | UIImage *image = [UIImage imageWithData:[NSData dataWithContentsOfURL:[NSURL URLWithString:string]]]; |
| | | [self.arrayShareImage addObject:image]; |
| | | } |
| | | @weakify(self) |
| | | dispatch_async(dispatch_get_main_queue(),^{ |
| | | @strongify(self) |
| | | [self saveToAlbumNext]; |
| | | }); |
| | | }); |
| | | } |
| | | |
| | | /// ä¿åç¸å |
| | | -(void)saveToAlbumNext { |
| | | if (_arrayShareImage.count > 0) { |
| | | UIImage *image = _arrayShareImage[0]; |
| | | UIImageWriteToSavedPhotosAlbum(image, self, @selector(savedPhotoImage:didFinishSavingWithError:contextInfo:), nil); |
| | | |
| | | } else { |
| | | [self allDone]; |
| | | [self.view hideToastActivity]; |
| | | self.view.userInteractionEnabled = YES; |
| | | } |
| | | } |
| | | |
| | | - (void)allDone { |
| | | ALToastCenter(@"å享å¾ä¿åæå"); |
| | | } |
| | | |
| | | /** |
| | |
| | | } |
| | | |
| | | if ([urlStr hasPrefix:@"suning://"]) { |
| | | if ([[UIApplication sharedApplication] canOpenURL:navigationAction.request.URL]) { |
| | | [[UIApplication sharedApplication] openURL:navigationAction.request.URL]; |
| | | decisionHandler(WKNavigationActionPolicyCancel); |
| | | return; |
| | | } |
| | | } |
| | | |
| | | if ([urlStr hasPrefix:@"vipshop://"]) { |
| | | if ([[UIApplication sharedApplication] canOpenURL:navigationAction.request.URL]) { |
| | | [[UIApplication sharedApplication] openURL:navigationAction.request.URL]; |
| | | decisionHandler(WKNavigationActionPolicyCancel); |
| | |
| | | |
| | | } else if ([message.name isEqualToString:@"shareImgs"]) { |
| | | [self shareImgs:message.body]; |
| | | |
| | | } else if ([message.name isEqualToString:@"savePictures"]) { |
| | | [self savePictures:message.body]; |
| | | } |
| | | } |
| | | |
| | |
| | | return _tempOldArr; |
| | | } |
| | | |
| | | - (NSMutableArray *)arrayShareImage { |
| | | if (!_arrayShareImage) { |
| | | _arrayShareImage = [[NSMutableArray alloc] init]; |
| | | } |
| | | return _arrayShareImage; |
| | | } |
| | | |
| | | @end |
| | |
| | | #import <AlibcTradeSDK/AlibcTradeSDK.h> |
| | | #import <AlibcTradeSDK/AlibcTradeService.h> |
| | | #import <AlibcTradeSDK/AlibcTradePageFactory.h> |
| | | #import <AlibabaAuthEntrance/ALBBCompatibleSession.h> |
| | | #import <AlibabaAuthEntrance/ALBBSDK.h> |
| | | |
| | | #import <AlibabaAuthSDK/ALBBSDK.h> // æ·å®ç»å½ |
| | | #import <WXApi.h> // 微信ç»å½ |
| | | |
| | | #import "MessageCenterManger.h" |
| | |
| | | |
| | | - (void)pushOpenByUrl:(NSString *)url |
| | | identity:(nullable NSString *)identity |
| | | webView:(nullable UIWebView *)webView |
| | | webView:(nullable WKWebView *)webView |
| | | parentController:(UIViewController *)parentController |
| | | taoKeParams:(nullable AlibcTradeTaokeParams *)taoKeParams; |
| | | |
| | |
| | | |
| | | - (void)pushOpenByBizCode:(NSString *)bizCode |
| | | page:(id <AlibcTradePage>)page |
| | | webView:(nullable UIWebView *)webView |
| | | webView:(nullable WKWebView *)webView |
| | | parentController:(UIViewController *)parentController |
| | | taoKeParams:(nullable AlibcTradeTaokeParams *)taoKeParams; |
| | | |
| | |
| | | |
| | | - (void)pushOpenByUrl:(NSString *)url |
| | | identity:(NSString *)identity |
| | | webView:(UIWebView *)webView |
| | | webView:(WKWebView *)webView |
| | | parentController:(nonnull UIViewController *)parentController |
| | | taoKeParams:(nullable AlibcTradeTaokeParams *)taoKeParams { |
| | | |
| | |
| | | |
| | | - (void)pushOpenByBizCode:(NSString *)bizCode |
| | | page:(id<AlibcTradePage>)page |
| | | webView:(UIWebView *)webView |
| | | webView:(WKWebView *)webView |
| | | parentController:(UIViewController *)parentController |
| | | taoKeParams:(AlibcTradeTaokeParams *)taoKeParams { |
| | | |
| | |
| | | |
| | | if ([loginType integerValue] == 1) { |
| | | |
| | | ALBBUser *myMessage = [[ALBBSession sharedInstance] getUser]; |
| | | ALBBUser *myMessage = [[ALBBCompatibleSession sharedInstance] getUser]; |
| | | |
| | | NSDictionary *dic = @{@"nick" : myMessage.nick, @"avatarUrl" : myMessage.avatarUrl, @"openId" : myMessage.openId, @"openSid" : myMessage.openSid, @"topAccessToken" : myMessage.topAccessToken, @"topAuthCode" : myMessage.topAuthCode}; |
| | | |
| | |
| | | |
| | | [[NSUserDefaults standardUserDefaults] removeObjectForKey:@"ChangeTaobaolinks"]; |
| | | ALBBSDK *aLBBSDKloginService = [ALBBSDK sharedInstance]; |
| | | [aLBBSDKloginService setAuthOption:NormalAuth]; |
| | | [aLBBSDKloginService auth:ViewController successCallback:^(ALBBSession *session) { |
| | | |
| | | [aLBBSDKloginService auth:ViewController successCallback:^{ |
| | | if([ALUserInfoServiceManger fetchUID]) { // å½åå·²ç»è·åå°æ¿æ å¿«ççUidäºï¼åªæç»å®è´¦å·ä¸ç§å¯è½ |
| | | ALBBUser *myMessage = [[ALBBSession sharedInstance] getUser]; |
| | | ALBBUser *myMessage = [[ALBBCompatibleSession sharedInstance] getUser]; |
| | | [YTHsharedManger startManger].tbPicString = myMessage.avatarUrl; |
| | | if ([YTHsharedManger startManger].isminebound) { |
| | | block(YES,nil); |
| | |
| | | block(YES,nil); |
| | | } |
| | | } |
| | | } failureCallback:^(ALBBSession *session, NSError *error) { |
| | | |
| | | } failureCallback:^(NSError *error) { |
| | | block(NO, nil); |
| | | }]; |
| | | } |
| | |
| | | self.xuanFiamgeView.hidden = NO; |
| | | } |
| | | |
| | | - (void)onTapGes |
| | | { |
| | | if(![[ALBBSession sharedInstance] isLogin]){ |
| | | - (void)onTapGes { |
| | | if(![[ALBBCompatibleSession sharedInstance] isLogin]){ |
| | | [self LoginForTaoBao]; |
| | | |
| | | } else { |
| | |
| | | |
| | | - (void)jumpShopCar |
| | | { |
| | | if (![[NSUserDefaults standardUserDefaults] boolForKey:@"TaoBaoLogin"] || ![[ALBBSession sharedInstance] isLogin]){ |
| | | if (![[NSUserDefaults standardUserDefaults] boolForKey:@"TaoBaoLogin"] || ![[ALBBCompatibleSession sharedInstance] isLogin]){ |
| | | [self LoginForTaoBao:@"shopCar"]; |
| | | |
| | | } else { |
| | |
| | | - (void)detectionIsBindTaoBaoTips:(NSString *_Nonnull)source |
| | | { |
| | | if ([ALUserInfoServiceManger fetchUID]) { |
| | | if (![[ALBBSession sharedInstance] isLogin]){ |
| | | if (![[ALBBCompatibleSession sharedInstance] isLogin]){ |
| | | [YTHsharedManger startManger].isminebound = YES; |
| | | [self LoginForTaoBao:source]; |
| | | |
| | |
| | | } |
| | | |
| | | - (void)changeTBLinksWithType:(NSString *)type{ |
| | | // if (![[NSUserDefaults standardUserDefaults] boolForKey:@"TaoBaoLogin"] || ![[ALBBSession sharedInstance] isLogin]){ |
| | | // if (![[NSUserDefaults standardUserDefaults] boolForKey:@"TaoBaoLogin"] || ![[ALBBCompatibleSession sharedInstance] isLogin]){ |
| | | // [self.carView removeFromSuperview]; |
| | | // return; |
| | | // } |
| | |
| | | |
| | | - (void)jumpShopCar { |
| | | |
| | | if (![[NSUserDefaults standardUserDefaults] boolForKey:@"TaoBaoLogin"] || ![[ALBBSession sharedInstance] isLogin]){ |
| | | if (![[NSUserDefaults standardUserDefaults] boolForKey:@"TaoBaoLogin"] || ![[ALBBCompatibleSession sharedInstance] isLogin]){ |
| | | [self LoginForTaoBao:@"shopCar"]; |
| | | |
| | | } else { |
| | |
| | | - (void)detectionIsBindTaoBaoTips:(NSString *_Nonnull)source |
| | | { |
| | | if ([ALUserInfoServiceManger fetchUID]) { |
| | | if (![[ALBBSession sharedInstance] isLogin]){ |
| | | if (![[ALBBCompatibleSession sharedInstance] isLogin]){ |
| | | [YTHsharedManger startManger].isminebound = YES; |
| | | [self LoginForTaoBao:source]; |
| | | |
| | |
| | | |
| | | - (void)detectionIsBindTaoBaoTips { |
| | | if ([ALUserInfoServiceManger fetchUID]) { |
| | | if (![[ALBBSession sharedInstance] isLogin]){ |
| | | if (![[ALBBCompatibleSession sharedInstance] isLogin]){ |
| | | [YTHsharedManger startManger].isminebound = YES; |
| | | [self LoginForTaoBao]; |
| | | |
| | |
| | | |
| | | - (void)detectionIsBindTaoBaoTips { |
| | | if ([ALUserInfoServiceManger fetchUID]) { |
| | | if (![[ALBBSession sharedInstance] isLogin]){ |
| | | if (![[ALBBCompatibleSession sharedInstance] isLogin]){ |
| | | [YTHsharedManger startManger].isminebound = YES; |
| | | [self LoginForTaoBao]; |
| | | |
| | |
| | | |
| | | - (void)detectionIsBindTaoBaoTips { |
| | | if ([ALUserInfoServiceManger fetchUID]) { |
| | | if (![[ALBBSession sharedInstance] isLogin]){ |
| | | if (![[ALBBCompatibleSession sharedInstance] isLogin]){ |
| | | [YTHsharedManger startManger].isminebound = YES; |
| | | [self LoginForTaoBao]; |
| | | |
| | |
| | | @property (nonatomic, nullable, copy) NSString *couponLink; |
| | | ///æ¯å¦æ¯åºéºå¸ |
| | | @property (nonatomic, assign) BOOL shopCoupon; |
| | | |
| | | ///äºå忝å¦å¼å¯ |
| | | @property (nonatomic, assign) BOOL cloudOpen; |
| | | @end |
| | | |
| | | @implementation GoodDeTrViewController |
| | |
| | | */ |
| | | - (void)detectionIsBindTaoBaoTips:(NSString *_Nonnull)source { |
| | | if ([ALUserInfoServiceManger fetchUID]) { |
| | | if (![[ALBBSession sharedInstance] isLogin]){ |
| | | if (![[ALBBCompatibleSession sharedInstance] isLogin]){ |
| | | [YTHsharedManger startManger].isminebound = YES; |
| | | [self LoginForTaoBao:source]; |
| | | |
| | |
| | | self.extraDictionary = object[@"data"][@"extra"]; |
| | | self.fanliValid = [self.extraDictionary[@"fanliValid"] boolValue]; |
| | | self.shareValid = [self.extraDictionary[@"shareValid"] boolValue]; |
| | | self.cloudOpen = [self.extraDictionary[@"cloudOpen"] boolValue]; |
| | | |
| | | self.detailUrlString = self.extraDictionary[@"detailUrl"]; |
| | | |
| | | if ([NSNumber numberWithBool:[self.extraDictionary[@"fanliValid"] boolValue]]) { |
| | |
| | | cell.delegate = self; |
| | | cell.fanliValid = self.fanliValid; |
| | | cell.shareValid = self.shareValid; |
| | | cell.cloudOpen = self.cloudOpen; |
| | | cell.isExpand = self.isExpand; |
| | | cell.model = self.goodsModel; |
| | | |
| | |
| | | /// åå |
| | | @property (nonatomic, nullable, strong) ALButton *buttonHairCircle; |
| | | |
| | | |
| | | /// æ¯å¦æè¿å© |
| | | @property (nonatomic, assign) BOOL fanliValid; |
| | | /// æ¯å¦æå享 |
| | | @property (nonatomic, assign) BOOL shareValid; |
| | | /// äºå忝å¦å¼å¯ |
| | | @property (nonatomic, assign) BOOL cloudOpen; |
| | | |
| | | @property (nonatomic, nullable, strong) GoodsDetailBaseModel *model; |
| | | |
| | |
| | | _shareValid = shareValid; |
| | | } |
| | | |
| | | - (void)setCloudOpen:(BOOL)cloudOpen { |
| | | _cloudOpen = cloudOpen; |
| | | } |
| | | |
| | | - (void)setIsExpand:(BOOL)isExpand { |
| | | _isExpand = isExpand; |
| | | } |
| | |
| | | } |
| | | |
| | | self.buttonHairCircle.sd_resetLayout.leftSpaceToView(self.contentView, 10).topSpaceToView(self.viewCouponBG, topspaceButtonViewMore).widthIs((SCREEN_WIDTH - 30) / 2).heightIs(30); |
| | | |
| | | self.buttonSearch.sd_resetLayout.rightSpaceToView(self.contentView, 10).topSpaceToView(self.viewCouponBG, topspaceButtonViewMore).widthIs((SCREEN_WIDTH - 30) / 2).heightIs(30); |
| | | |
| | | if (!_shareValid) { |
| | | self.buttonHairCircle.hidden = YES; |
| | | self.buttonSearch.hidden = YES; |
| | | self.viewSXLine.hidden = YES; |
| | | } |
| | | if (!_cloudOpen) { |
| | | self.buttonHairCircle.hidden = YES; |
| | | self.viewSXLine.hidden = YES; |
| | | self.buttonSearch.sd_resetLayout.centerXEqualToView(self.contentView).topSpaceToView(self.viewCouponBG, topspaceButtonViewMore).widthIs((SCREEN_WIDTH - 30) / 2).heightIs(30); |
| | | } |
| | | } |
| | | } |
| | |
| | | @property (nonatomic, nullable, strong) GoodsDetailBaseModel *model; |
| | | @property (nonatomic, assign) BOOL fanliValid; |
| | | @property (nonatomic, assign) BOOL shareValid; |
| | | /// äºå忝å¦å¼å¯ |
| | | @property (nonatomic, assign) BOOL cloudOpen; |
| | | |
| | | @property (nonatomic, nullable, strong)UIImageView *defaultImageView; |
| | | @property (nonatomic, nullable, strong)UIImageView * labelImage; |
| | |
| | | self.quanButton.frame = CGRectMake(CGRectGetMaxX(self.quanMoney.frame), CGRectGetMinY(self.couponImage.frame), self.couponImage.frame.size.width / 5 * 2, self.couponImage.frame.size.height); |
| | | } |
| | | |
| | | - (void)setFrom:(NSString *)from |
| | | { |
| | | - (void)setFrom:(NSString *)from { |
| | | _from = from; |
| | | } |
| | | |
| | | - (void)setFanliValid:(BOOL)fanliValid |
| | | { |
| | | - (void)setFanliValid:(BOOL)fanliValid { |
| | | _fanliValid = fanliValid; |
| | | } |
| | | |
| | | - (void)setShareValid:(BOOL)shareValid |
| | | { |
| | | - (void)setShareValid:(BOOL)shareValid { |
| | | _shareValid = shareValid; |
| | | } |
| | | |
| | | - (void)setCloudOpen:(BOOL)cloudOpen { |
| | | _cloudOpen = cloudOpen; |
| | | } |
| | | |
| | | - (void)setModel:(GoodsDetailBaseModel *)model |
| | |
| | | [self setviewsFrameWithBor:NO]; |
| | | |
| | | if (!model.hasCoupon || (_from && [_from isEqualToString:@"miandan"])) { |
| | | |
| | | [UIView performWithoutAnimation:^{ |
| | | self.buttonHairCircle.frame = CGRectMake(14, CGRectGetMaxY(self.titleLabel.frame) + 10 + sapceTop, (SCREEN_WIDTH - 28) / 2, 30); |
| | | self.buttonSearch.frame = CGRectMake(SCREEN_WIDTH - 14 - (SCREEN_WIDTH - 28) / 2, CGRectGetMinY(self.buttonHairCircle.frame), (SCREEN_WIDTH - 28) / 2, 30); |
| | |
| | | if (!_shareValid) {// 没æå享 éèå享æé®è·åäº«åº |
| | | self.buttonSearch.hidden = YES; |
| | | self.buttonHairCircle.hidden = YES; |
| | | self.viewSXLine.hidden = YES; |
| | | } |
| | | |
| | | if (!_cloudOpen) { |
| | | self.buttonHairCircle.hidden = YES; |
| | | self.viewSXLine.hidden = YES; |
| | | |
| | | if (!model.hasCoupon || (_from && [_from isEqualToString:@"miandan"])) { |
| | | self.buttonSearch.frame = CGRectMake((SCREEN_WIDTH - (SCREEN_WIDTH - 28) / 2) / 2, CGRectGetMinY(self.buttonHairCircle.frame), (SCREEN_WIDTH - 28) / 2, 30); |
| | | |
| | | } else { |
| | | self.buttonSearch.frame = CGRectMake((SCREEN_WIDTH - (SCREEN_WIDTH - 28) / 2) / 2, CGRectGetMaxY(self.taokoulingImageView.frame) + 15, (SCREEN_WIDTH - 28) / 2, 30); |
| | | |
| | | if (model.couponInfo.token && ![model.couponInfo.token isEqualToString:@""]) { |
| | | |
| | | } else { |
| | | |
| | | self.buttonSearch.frame = CGRectMake((SCREEN_WIDTH - (SCREEN_WIDTH - 28) / 2) / 2, CGRectGetMaxY(self.couponImage.frame) + 15, (SCREEN_WIDTH - 28) / 2, 30); |
| | | } |
| | | } |
| | | } |
| | | |
| | | self.quanMoney.text = [NSString stringWithFormat:@"伿 å¸ Â¥ %@",model.couponInfo.amount]; |
| | |
| | | @property (nonatomic, nullable, strong) ALButton *buttonSearch; |
| | | /// åå |
| | | @property (nonatomic, nullable, strong) ALButton *buttonHairCircle; |
| | | |
| | | /// æ¯å¦æè¿å© |
| | | @property (nonatomic, assign) BOOL fanliValid; |
| | | /// æ¯å¦æå享 |
| | | @property (nonatomic, assign) BOOL shareValid; |
| | | /// äºå忝å¦å¼å¯ |
| | | @property (nonatomic, assign) BOOL cloudOpen; |
| | | |
| | | @property (nonatomic, nullable, strong) GoodsDetailBaseModel *model; |
| | | |
| | |
| | | _shareValid = shareValid; |
| | | } |
| | | |
| | | - (void)setCloudOpen:(BOOL)cloudOpen { |
| | | _cloudOpen = cloudOpen; |
| | | } |
| | | |
| | | - (void)setIsExpand:(BOOL)isExpand { |
| | | _isExpand = isExpand; |
| | | } |
| | |
| | | if (!_shareValid) { |
| | | self.buttonHairCircle.hidden = YES; |
| | | self.buttonSearch.hidden = YES; |
| | | self.viewSXLine.hidden = YES; |
| | | } |
| | | if (!_cloudOpen) { |
| | | self.buttonHairCircle.hidden = YES; |
| | | self.viewSXLine.hidden = YES; |
| | | self.buttonSearch.sd_resetLayout.centerXEqualToView(self.contentView).topSpaceToView(self.viewCouponBG, topspaceButtonViewMore).widthIs((SCREEN_WIDTH - 30) / 2).heightIs(30); |
| | | } |
| | | } |
| | | } |
| | |
| | | @property (nonatomic, assign) BOOL isRequestAPI; |
| | | /// 京ä¸å¤å¸è½¬é¾ |
| | | @property (nonatomic, nullable, copy) NSString *couponLink; |
| | | |
| | | ///äºå忝å¦å¼å¯ |
| | | @property (nonatomic, assign) BOOL cloudOpen; |
| | | @end |
| | | |
| | | @implementation JDGoodsDetailController |
| | |
| | | self.extraDictionary = object[@"data"][@"extra"]; |
| | | self.fanliValid = [self.extraDictionary[@"fanliValid"] boolValue]; |
| | | self.shareValid = [self.extraDictionary[@"shareValid"] boolValue]; |
| | | self.cloudOpen = [self.extraDictionary[@"cloudOpen"] boolValue]; |
| | | |
| | | self.detailUrlString = self.extraDictionary[@"detailUrl"]; |
| | | if ([self.extraDictionary[@"shareValid"] boolValue]) { |
| | | self.buttomView.hidden = NO; |
| | |
| | | cell.delegate = self; |
| | | cell.fanliValid = self.fanliValid; |
| | | cell.shareValid = self.shareValid; |
| | | cell.cloudOpen = self.cloudOpen; |
| | | cell.isExpand = self.isExpand; |
| | | cell.model = self.goodsModel; |
| | | |
| | |
| | | @property (nonatomic, strong) UIView *backView; |
| | | |
| | | @property (nonatomic, strong) dispatch_source_t timers; |
| | | /// äºå忝å¦å¼å¯ |
| | | @property (nonatomic, assign) BOOL cloudOpen; |
| | | |
| | | @end |
| | | |
| | |
| | | self.extraDictionary = object[@"data"][@"extra"]; |
| | | self.fanliValid = [self.extraDictionary[@"fanliValid"] boolValue]; // æ¯å¦æè¿å© |
| | | self.shareValid = [self.extraDictionary[@"shareValid"] boolValue]; // æ¯å¦æå享 |
| | | self.cloudOpen = [self.extraDictionary[@"cloudOpen"] boolValue]; |
| | | |
| | | self.isNative = [self.extraDictionary[@"isNative"] boolValue]; // æ¯å¦è·³è½¬åçAPP |
| | | self.detailUrlString = self.extraDictionary[@"detailUrl"]; // å¾æè¯¦æ
龿¥ |
| | | self.couponJumpLink = self.extraDictionary[@"couponJumpLink"]; |
| | |
| | | cell.from = self.from; |
| | | cell.fanliValid = self.fanliValid; |
| | | cell.shareValid = self.shareValid; |
| | | cell.cloudOpen = self.cloudOpen; |
| | | cell.model = self.goodsModel; |
| | | |
| | | [cell.buttonHairCircle addTarget:self action:@selector(ProLibraryTaped:) forControlEvents:UIControlEventTouchUpInside]; |
| | |
| | | @property (nonatomic, nullable, copy) NSString *jsString; |
| | | /// æ¥æºï¼share/zigouï¼ï¼ |
| | | @property (nonatomic, nullable, copy) NSString *source; |
| | | /// ç¬åå è½½çwebview |
| | | @property (nonatomic, strong) UIWebView *linkWebView; |
| | | |
| | | @property (nonatomic,assign)NSInteger type; |
| | | |
| | |
| | | @property (nonatomic, strong) UIView *backView; |
| | | |
| | | @property (nonatomic, strong) dispatch_source_t timers; |
| | | |
| | | ///äºå忝å¦å¼å¯ |
| | | @property (nonatomic, assign) BOOL cloudOpen; |
| | | @end |
| | | |
| | | @implementation SNGoodsDetailController |
| | |
| | | [self.view addSubview:self.backView]; |
| | | |
| | | [self.view addSubview:self.noNetworkViews]; |
| | | [self getAppPageNotificationWithType:@"goodsDetailPDD"]; |
| | | [self getAppPageNotificationWithType:@"goodsDetailSuning"]; |
| | | [self addNetWorkNotice]; |
| | | |
| | | [self.view addSubview:self.backButton]; |
| | |
| | | self.extraDictionary = object[@"data"][@"extra"]; |
| | | self.fanliValid = [self.extraDictionary[@"fanliValid"] boolValue]; // æ¯å¦æè¿å© |
| | | self.shareValid = [self.extraDictionary[@"shareValid"] boolValue]; // æ¯å¦æå享 |
| | | self.cloudOpen = [self.extraDictionary[@"cloudOpen"] boolValue]; |
| | | |
| | | self.isNative = [self.extraDictionary[@"isNative"] boolValue]; // æ¯å¦è·³è½¬åçAPP |
| | | self.detailUrlString = self.extraDictionary[@"detailUrl"]; // å¾æè¯¦æ
龿¥ |
| | | self.couponJumpLink = self.extraDictionary[@"couponJumpLink"]; |
| | |
| | | cell.from = self.from; |
| | | cell.fanliValid = self.fanliValid; |
| | | cell.shareValid = self.shareValid; |
| | | cell.cloudOpen = self.cloudOpen; |
| | | cell.model = self.goodsModel; |
| | | |
| | | [cell.buttonHairCircle addTarget:self action:@selector(ProLibraryTaped:) forControlEvents:UIControlEventTouchUpInside]; |
| | |
| | | @property (nonatomic, nullable, strong) GoodsDetailBaseModel *model; |
| | | @property (nonatomic, assign) BOOL fanliValid; |
| | | @property (nonatomic, assign) BOOL shareValid; |
| | | /// äºå忝å¦å¼å¯ |
| | | @property (nonatomic, assign) BOOL cloudOpen; |
| | | |
| | | @property (nonatomic, nullable, strong)UIImageView *defaultImageView; |
| | | @property (nonatomic, nullable, strong)UIImageView * labelImage; |
| | |
| | | _shareValid = shareValid; |
| | | } |
| | | |
| | | - (void)setCloudOpen:(BOOL)cloudOpen { |
| | | _cloudOpen = cloudOpen; |
| | | } |
| | | |
| | | - (void)setModel:(GoodsDetailBaseModel *)model { |
| | | _model = model; |
| | | if (model) { |
| | |
| | | |
| | | |
| | | self.quanMoney.text = [NSString stringWithFormat:@"%@",model.discount]; |
| | | |
| | | if (!_shareValid) {// 没æå享 éèå享æé®è·åäº«åº |
| | | self.buttonSearch.hidden = YES; |
| | | self.buttonHairCircle.hidden = YES; |
| | | self.viewSXLine.hidden = YES; |
| | | } |
| | | |
| | | if (!_cloudOpen) { |
| | | self.buttonHairCircle.hidden = YES; |
| | | self.viewSXLine.hidden = YES; |
| | | self.buttonSearch.frame = CGRectMake((SCREEN_WIDTH - (SCREEN_WIDTH - 28) / 2) / 2, CGRectGetMaxY(self.couponImage.frame) + 15, (SCREEN_WIDTH - 28) / 2, 30); |
| | | } |
| | | } |
| | | } |
| | | |
| | |
| | | @property (nonatomic, strong) UIView *backView; |
| | | |
| | | @property (nonatomic, strong) dispatch_source_t timers; |
| | | |
| | | ///äºå忝å¦å¼å¯ |
| | | @property (nonatomic, assign) BOOL cloudOpen; |
| | | @end |
| | | |
| | | @implementation WPHGoodsDetailController |
| | |
| | | [self.view addSubview:self.backView]; |
| | | |
| | | [self.view addSubview:self.noNetworkViews]; |
| | | [self getAppPageNotificationWithType:@"goodsDetailPDD"]; |
| | | [self getAppPageNotificationWithType:@"goodsDetailVIP"]; |
| | | [self addNetWorkNotice]; |
| | | |
| | | [self.view addSubview:self.backButton]; |
| | |
| | | self.extraDictionary = object[@"data"][@"extra"]; |
| | | self.fanliValid = [self.extraDictionary[@"fanliValid"] boolValue]; // æ¯å¦æè¿å© |
| | | self.shareValid = [self.extraDictionary[@"shareValid"] boolValue]; // æ¯å¦æå享 |
| | | self.cloudOpen = [self.extraDictionary[@"cloudOpen"] boolValue]; |
| | | |
| | | self.isNative = [self.extraDictionary[@"isNative"] boolValue]; // æ¯å¦è·³è½¬åçAPP |
| | | // self.detailUrlString = self.extraDictionary[@"detailUrl"]; // å¾æè¯¦æ
龿¥ |
| | | self.couponJumpLink = self.extraDictionary[@"couponJumpLink"]; |
| | |
| | | cell.from = self.from; |
| | | cell.fanliValid = self.fanliValid; |
| | | cell.shareValid = self.shareValid; |
| | | cell.cloudOpen = self.cloudOpen; |
| | | cell.model = self.goodsModel; |
| | | |
| | | cell.storageState = self.storageState; |
| | |
| | | _labelType = [[UILabel alloc] init]; |
| | | _labelType.font = [UIFont systemFontOfSize:11]; |
| | | _labelType.textAlignment = NSTextAlignmentCenter; |
| | | self.labelType.layer.borderWidth = 0.6; |
| | | self.labelType.layer.borderWidth = 1; |
| | | } |
| | | return _labelType; |
| | | } |
| | |
| | | */ |
| | | - (void)detectionIsBindTaoBaoTips |
| | | { |
| | | if (![[NSUserDefaults standardUserDefaults] boolForKey:@"TaoBaoLogin"] || ![[ALBBSession sharedInstance] isLogin]) { |
| | | if (![[NSUserDefaults standardUserDefaults] boolForKey:@"TaoBaoLogin"] || ![[ALBBCompatibleSession sharedInstance] isLogin]) { |
| | | [self LoginForTaoBao]; |
| | | |
| | | } else { |
| | |
| | | @interface MineSixCell : UIView; |
| | | |
| | | /// æ°æ®ä¸ä¸ºç©ºåå±ç¤ºå¯¼å¸å¾®ä¿¡ï¼å¦åä¸å±ç¤º |
| | | @property (nonatomic, nullable, copy) NSString *cloudLink; |
| | | /// æ°æ®ä¸ä¸ºç©ºåå±ç¤ºå¯¼å¸å¾®ä¿¡ï¼å¦åä¸å±ç¤º |
| | | @property (nonatomic, nullable, copy) NSString *tearcherLink; |
| | | |
| | | @property (weak, nonatomic) id<MineSixCellCellDelegate>delegate; |
| | |
| | | |
| | | @interface MineSixCell () |
| | | |
| | | @property (nonatomic, nullable, strong) NSArray *arrayTitle; |
| | | @property (nonatomic, nullable, strong) NSArray *arrayImages; |
| | | @property (nonatomic, nullable, strong) NSMutableArray *arrayTitle; |
| | | @property (nonatomic, nullable, strong) NSMutableArray *arrayImages; |
| | | |
| | | @property (strong, nonatomic) ALButton *shareRecordBtn; |
| | | @property (strong, nonatomic) ALButton *proLibBtn; |
| | |
| | | self = [super initWithFrame:frame]; |
| | | if (self) { |
| | | self.backgroundColor = XYRBackgroundColor; |
| | | self.arrayTitle = @[@"å享记å½",@"ä¸é®åå",@"龿¥è½¬æ¢"]; |
| | | self.arrayImages = @[@"icon_å享记å½",@"icon_éååº",@"mine_links_to_convert"]; |
| | | |
| | | [self.arrayTitle addObject:@"å享记å½"]; |
| | | [self.arrayImages addObject:@"icon_å享记å½"]; |
| | | |
| | | [self.arrayTitle addObject:@"龿¥è½¬æ¢"]; |
| | | [self.arrayImages addObject:@"mine_links_to_convert"]; |
| | | |
| | | [self setuoViewConfig]; |
| | | } |
| | | return self; |
| | |
| | | } |
| | | } |
| | | |
| | | - (void)setCloudLink:(NSString *)cloudLink { |
| | | _cloudLink = cloudLink; |
| | | } |
| | | |
| | | - (void)setTearcherLink:(NSString *)tearcherLink { |
| | | _tearcherLink = tearcherLink; |
| | | for (__strong UIView *view in [self.contentView subviews]) { |
| | | [view removeFromSuperview]; |
| | | view = nil; |
| | | } |
| | | if ([self isHaveValue:_tearcherLink]) { |
| | | self.arrayTitle = @[@"å享记å½",@"ä¸é®åå",@"龿¥è½¬æ¢",@"导å¸å¾®ä¿¡"]; |
| | | self.arrayImages = @[@"icon_å享记å½",@"icon_éååº",@"mine_links_to_convert",@"mine_tutor"]; |
| | | |
| | | } else { |
| | | self.arrayTitle = @[@"å享记å½",@"ä¸é®åå",@"龿¥è½¬æ¢"]; |
| | | self.arrayImages = @[@"icon_å享记å½",@"icon_éååº",@"mine_links_to_convert"]; |
| | | |
| | | for (UIView *view in [self.contentView subviews]) { |
| | | [view removeFromSuperview]; |
| | | } |
| | | |
| | | [self.arrayTitle removeAllObjects]; |
| | | [self.arrayImages removeAllObjects]; |
| | | |
| | | [self.arrayTitle addObject:@"å享记å½"]; |
| | | [self.arrayImages addObject:@"icon_å享记å½"]; |
| | | |
| | | if ([self isHaveValue:_cloudLink]) { |
| | | [self.arrayTitle addObject:@"ä¸é®åå"]; |
| | | [self.arrayImages addObject:@"icon_éååº"]; |
| | | } |
| | | |
| | | [self.arrayTitle addObject:@"龿¥è½¬æ¢"]; |
| | | [self.arrayImages addObject:@"mine_links_to_convert"]; |
| | | |
| | | if ([self isHaveValue:_tearcherLink]) { |
| | | [self.arrayTitle addObject:@"导å¸å¾®ä¿¡"]; |
| | | [self.arrayImages addObject:@"mine_tutor"]; |
| | | } |
| | | |
| | | CGFloat sizeFont = 13; |
| | | if (SCREEN_WIDTH < 375) { |
| | | sizeFont = 11; |
| | |
| | | } |
| | | } |
| | | - (void)buttounClick:(UIButton *)button { |
| | | if (button.tag == 0) { |
| | | NSString *string = _arrayTitle[button.tag]; |
| | | |
| | | if ([string isEqualToString:@"å享记å½"]) { |
| | | if (_delegate && [_delegate respondsToSelector:@selector(MineSixCellOnCliclk:)]) { |
| | | [_delegate MineSixCellOnCliclk:MineSixCellCellShareRecord]; |
| | | } |
| | | |
| | | } else if (button.tag == 1) { |
| | | } else if ([string isEqualToString:@"ä¸é®åå"]) { |
| | | if (_delegate && [_delegate respondsToSelector:@selector(MineSixCellOnCliclk:)]) { |
| | | [_delegate MineSixCellOnCliclk:MineSixCellCellSharedLibraries]; |
| | | } |
| | | |
| | | } else if (button.tag == 2) { |
| | | } else if ([string isEqualToString:@"龿¥è½¬æ¢"]) { |
| | | if (_delegate && [_delegate respondsToSelector:@selector(MineSixCellOnCliclk:)]) { |
| | | [_delegate MineSixCellOnCliclk:MineSixCellCellLinksToConvert]; |
| | | } |
| | | |
| | | } else if (button.tag == 3) { |
| | | } else if ([string isEqualToString:@"导å¸å¾®ä¿¡"]) { |
| | | if (_delegate && [_delegate respondsToSelector:@selector(MineSixCellOnCliclk:)]) { |
| | | [_delegate MineSixCellOnCliclk:MineSixCellCellTutor]; |
| | | } |
| | |
| | | return _contentView; |
| | | } |
| | | |
| | | - (NSMutableArray *)arrayTitle { |
| | | if (!_arrayTitle) { |
| | | _arrayTitle = [[NSMutableArray alloc] init]; |
| | | } |
| | | return _arrayTitle; |
| | | } |
| | | |
| | | - (NSMutableArray *)arrayImages { |
| | | if (!_arrayImages) { |
| | | _arrayImages = [[NSMutableArray alloc] init]; |
| | | } |
| | | return _arrayImages; |
| | | } |
| | | |
| | | @end |
| | |
| | | if ([self isHaveValue:self.dialog] && ![self.dialog isEqual:[NSNull null]]) { |
| | | [self showTutor]; |
| | | } |
| | | self.viewMineSix.cloudLink = self.cloudLink; |
| | | self.viewMineSix.tearcherLink = self.tearcherLink; |
| | | @weakify(self) |
| | | [UIView performWithoutAnimation:^{ |
| | |
| | | } |
| | | |
| | | [self pushAnyInterfaceController:@"ShonpingShareViewController" parms:@{@"url":newuserGL?:@""}]; |
| | | // [self pushAnyInterfaceController:@"ShonpingShareViewController" parms:@{@"url":@"http://192.168.1.114:8848/flqFront/AppInside/teamOrder/index.html"}]; |
| | | |
| | | } else if (index == 201) { |
| | | [UMCustomUser umUser_help]; |
| | | //[self pushAnyInterfaceController:@"ShonpingShareViewController" parms:@{@"url":[YTHsharedManger startManger].help?:@""}]; |
| | | [self pushAnyInterfaceController:@"ShonpingShareViewController" parms:@{@"url":[YTHsharedManger startManger].help?:@""}]; |
| | | |
| | | //[self pushAnyInterfaceController:@"ShonpingShareViewController" parms:@{@"url":@"http://192.168.1.114:8848/flqFront/AppInside/cloudPushOrder/cloudPushOrderManage.html"}]; |
| | | [self pushAnyInterfaceController:@"ShonpingShareViewController" parms:@{@"url":@"http://192.168.1.114:8848/flqFront/AppInside/activityDetailTempPage/index.html"}]; |
| | | //[self pushAnyInterfaceController:@"ShonpingShareViewController" parms:@{@"url":@"http://192.168.1.114:8848/flqFront/AppInside/activityDetailTempPage/index.html"}]; |
| | | |
| | | // [self pushAnyInterfaceController:@"WPHGoodsListShowController" parms:nil]; |
| | | |
| | |
| | | } |
| | | |
| | | [UMCustomUser umUser_order_taobao]; |
| | | if(![[ALBBSession sharedInstance] isLogin]){ |
| | | if(![[ALBBCompatibleSession sharedInstance] isLogin]){ |
| | | [self LoginForTaoBao]; |
| | | |
| | | } else { |
| | |
| | | _labelType = [[UILabel alloc] init]; |
| | | _labelType.font = [UIFont systemFontOfSize:11]; |
| | | _labelType.textAlignment = NSTextAlignmentCenter; |
| | | self.labelType.layer.borderWidth = 0.6; |
| | | self.labelType.layer.borderWidth = 1; |
| | | } |
| | | return _labelType; |
| | | } |
| | |
| | | - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { |
| | | // 鲿¢è¿ç»ç¹å»] |
| | | kPreventRepeatClickTime(0.5); |
| | | //[UMCustomUser umUser_recommend_history_list_detail]; |
| | | //[self fetchGoldCofin]; |
| | | //NSString *pageClassName = ((RecommendHistoryModel *)self.dataSource[indexPath.section]).jumpDetail.controller; |
| | | //[self jumpPage:pageClassName :((RecommendHistoryModel *)self.dataSource[indexPath.section]).params]; |
| | | [UMCustomUser umUser_recommend_history_list_detail]; |
| | | [self fetchGoldCofin]; |
| | | NSString *pageClassName = ((RecommendHistoryModel *)self.dataSource[indexPath.section]).jumpDetail.controller; |
| | | [self jumpPage:pageClassName :((RecommendHistoryModel *)self.dataSource[indexPath.section]).params]; |
| | | |
| | | [self pushAnyInterfaceController:@"RecommendDetailController" parms:nil]; |
| | | // [self pushAnyInterfaceController:@"RecommendDetailController" parms:nil]; |
| | | } |
| | | |
| | | #pragma mark - è¡¨æ ¼å°¾é¨é«åº¦ |
| | |
| | | { |
| | | @strongify(self) |
| | | if (object) { |
| | | if (![[ALBBSession sharedInstance] isLogin]){ |
| | | if (![[ALBBCompatibleSession sharedInstance] isLogin]){ |
| | | [self taobaoLoginWithAuthLink:object[@"data"][@"authLink"]]; |
| | | |
| | | } else { |
| | |
| | | |
| | | } else { |
| | | [[ALBBSDK sharedInstance] logout]; |
| | | if ([[ALBBSession sharedInstance] isLogin]) { |
| | | if ([[ALBBCompatibleSession sharedInstance] isLogin]) { |
| | | [self getTaoBaoAuthInfo]; |
| | | |
| | | } else { |
| | |
| | | if([[NSUserDefaults standardUserDefaults] boolForKey:@"TaoBaoLogin"]){ |
| | | self->_taoBaoQuanInfo=[[[result objectForKey:@"data"] objectForKey:@"taobao"] objectForKey:@"taoBaoQuanInfo"]; |
| | | |
| | | if(![[NSUserDefaults standardUserDefaults] boolForKey:@"TaoBaoLogin"] || ![[ALBBSession sharedInstance] isLogin] ){ |
| | | if(![[NSUserDefaults standardUserDefaults] boolForKey:@"TaoBaoLogin"] || ![[ALBBCompatibleSession sharedInstance] isLogin] ){ |
| | | |
| | | }else{ |
| | | [self popWebCoupon]; |
| | |
| | | if([[NSUserDefaults standardUserDefaults] boolForKey:@"TaoBaoLogin"]){ |
| | | //æ¾ç¤ºä¼æ å¸ |
| | | self->_taoBaoQuanInfo=[[[result objectForKey:@"data"] objectForKey:@"taobao"] objectForKey:@"taoBaoQuanInfo"]; |
| | | if(![[NSUserDefaults standardUserDefaults] boolForKey:@"TaoBaoLogin"] || ![[ALBBSession sharedInstance] isLogin]){ |
| | | if(![[NSUserDefaults standardUserDefaults] boolForKey:@"TaoBaoLogin"] || ![[ALBBCompatibleSession sharedInstance] isLogin]){ |
| | | |
| | | } else { |
| | | [self popWebCoupon]; |
| | |
| | | } |
| | | |
| | | - (void)noticeOrderOrShopCarBackWithLoginVc { |
| | | if(![[ALBBSession sharedInstance] isLogin]){ |
| | | if(![[ALBBCompatibleSession sharedInstance] isLogin]){ |
| | | [self LoginForTaoBao]; |
| | | |
| | | } else { |
| | |
| | | <key>AFNetworking.xcscheme_^#shared#^_</key> |
| | | <dict> |
| | | <key>orderHint</key> |
| | | <integer>18</integer> |
| | | <integer>23</integer> |
| | | </dict> |
| | | <key>CRBoxInputView.xcscheme_^#shared#^_</key> |
| | | <dict> |
| | | <key>orderHint</key> |
| | | <integer>2</integer> |
| | | <integer>11</integer> |
| | | </dict> |
| | | <key>GPUImage.xcscheme_^#shared#^_</key> |
| | | <dict> |
| | | <key>orderHint</key> |
| | | <integer>7</integer> |
| | | <integer>12</integer> |
| | | </dict> |
| | | <key>IQKeyboardManager.xcscheme_^#shared#^_</key> |
| | | <dict> |
| | | <key>orderHint</key> |
| | | <integer>13</integer> |
| | | <integer>8</integer> |
| | | </dict> |
| | | <key>MBProgressHUD.xcscheme_^#shared#^_</key> |
| | | <dict> |
| | | <key>orderHint</key> |
| | | <integer>24</integer> |
| | | <integer>26</integer> |
| | | </dict> |
| | | <key>MJRefresh.xcscheme_^#shared#^_</key> |
| | | <dict> |
| | | <key>orderHint</key> |
| | | <integer>1</integer> |
| | | <integer>16</integer> |
| | | </dict> |
| | | <key>Masonry.xcscheme_^#shared#^_</key> |
| | | <dict> |
| | | <key>orderHint</key> |
| | | <integer>23</integer> |
| | | <integer>19</integer> |
| | | </dict> |
| | | <key>Pods-MIduo.xcscheme_^#shared#^_</key> |
| | | <dict> |
| | | <key>orderHint</key> |
| | | <integer>5</integer> |
| | | <integer>25</integer> |
| | | </dict> |
| | | <key>ReactiveCocoa.xcscheme_^#shared#^_</key> |
| | | <dict> |
| | | <key>orderHint</key> |
| | | <integer>3</integer> |
| | | <integer>10</integer> |
| | | </dict> |
| | | <key>SAMKeychain.xcscheme_^#shared#^_</key> |
| | | <dict> |
| | | <key>orderHint</key> |
| | | <integer>27</integer> |
| | | <integer>7</integer> |
| | | </dict> |
| | | <key>SDAutoLayout.xcscheme_^#shared#^_</key> |
| | | <dict> |
| | | <key>orderHint</key> |
| | | <integer>16</integer> |
| | | <integer>13</integer> |
| | | </dict> |
| | | <key>SDWebImage.xcscheme_^#shared#^_</key> |
| | | <dict> |
| | | <key>orderHint</key> |
| | | <integer>26</integer> |
| | | <integer>21</integer> |
| | | </dict> |
| | | <key>SVProgressHUD.xcscheme_^#shared#^_</key> |
| | | <dict> |
| | | <key>orderHint</key> |
| | | <integer>14</integer> |
| | | <integer>3</integer> |
| | | </dict> |
| | | <key>TYSnapshotScroll.xcscheme_^#shared#^_</key> |
| | | <dict> |
| | | <key>orderHint</key> |
| | | <integer>11</integer> |
| | | <integer>14</integer> |
| | | </dict> |
| | | <key>TZImagePickerController.xcscheme_^#shared#^_</key> |
| | | <dict> |
| | | <key>orderHint</key> |
| | | <integer>15</integer> |
| | | <integer>5</integer> |
| | | </dict> |
| | | <key>Toast.xcscheme_^#shared#^_</key> |
| | | <dict> |
| | | <key>orderHint</key> |
| | | <integer>10</integer> |
| | | <integer>22</integer> |
| | | </dict> |
| | | <key>UICollectionViewLeftAlignedLayout.xcscheme_^#shared#^_</key> |
| | | <dict> |
| | | <key>orderHint</key> |
| | | <integer>22</integer> |
| | | <integer>27</integer> |
| | | </dict> |
| | | <key>UICountingLabel.xcscheme_^#shared#^_</key> |
| | | <dict> |
| | | <key>orderHint</key> |
| | | <integer>4</integer> |
| | | <integer>2</integer> |
| | | </dict> |
| | | <key>YYCache.xcscheme_^#shared#^_</key> |
| | | <dict> |
| | | <key>orderHint</key> |
| | | <integer>17</integer> |
| | | <integer>15</integer> |
| | | </dict> |
| | | <key>YYImage.xcscheme_^#shared#^_</key> |
| | | <dict> |
| | | <key>orderHint</key> |
| | | <integer>21</integer> |
| | | <integer>9</integer> |
| | | </dict> |
| | | <key>YYModel.xcscheme_^#shared#^_</key> |
| | | <dict> |
| | | <key>orderHint</key> |
| | | <integer>6</integer> |
| | | <integer>4</integer> |
| | | </dict> |
| | | <key>YYText.xcscheme_^#shared#^_</key> |
| | | <dict> |
| | | <key>orderHint</key> |
| | | <integer>12</integer> |
| | | <integer>6</integer> |
| | | </dict> |
| | | <key>YYWebImage.xcscheme_^#shared#^_</key> |
| | | <dict> |
| | | <key>orderHint</key> |
| | | <integer>20</integer> |
| | | <integer>18</integer> |
| | | </dict> |
| | | <key>mob_sharesdk-ShareSDK.xcscheme_^#shared#^_</key> |
| | | <dict> |
| | | <key>orderHint</key> |
| | | <integer>19</integer> |
| | | <integer>17</integer> |
| | | </dict> |
| | | <key>mob_sharesdk-ShareSDK_JS_QQ.xcscheme_^#shared#^_</key> |
| | | <dict> |
| | | <key>orderHint</key> |
| | | <integer>9</integer> |
| | | <integer>1</integer> |
| | | </dict> |
| | | <key>mob_sharesdk-ShareSDK_JS_SinaWeibo.xcscheme_^#shared#^_</key> |
| | | <dict> |
| | | <key>orderHint</key> |
| | | <integer>8</integer> |
| | | <integer>24</integer> |
| | | </dict> |
| | | <key>mob_sharesdk-ShareSDK_JS_WeChat.xcscheme_^#shared#^_</key> |
| | | <dict> |
| | | <key>orderHint</key> |
| | | <integer>25</integer> |
| | | <integer>20</integer> |
| | | </dict> |
| | | </dict> |
| | | </dict> |