Browse Source

1.分享规则页面显示

huangxiaodong 1 year ago
parent
commit
ef9f696253

+ 15 - 2
创维盒子/双子星云手机/Class/Set/previewFile/shareRecordViewController.m

@@ -9,6 +9,8 @@
 #import "shareRecordTableViewCell.h"
 #import "shareRecordDetailsHWViewController.h"
 #import "ShareRecordModel.h"
+#import "CustomerWebViewController.h"
+
 @interface shareRecordViewController ()<UITableViewDelegate,UITableViewDataSource,DZNEmptyDataSetSource, DZNEmptyDataSetDelegate>
 {
     BOOL isEditType;
@@ -305,7 +307,7 @@
     NSInteger tag = but.tag;
     
     if(tag == 1){
-        [[iToast makeText:@"分享规则"] show];
+        [self ruleBtnClick];
     }
     else if(tag == 2){
         [self setEditTypeFun];
@@ -577,5 +579,16 @@
     }];
 }
 
-
+- (void)ruleBtnClick {
+//https://cliys.armclouding.com/h5/protocol/protocol.html?agreementCoding=YSZYHXY2002&type=1
+//    [self gotoProtocolWKWebVCByPush:YES];
+    CustomerWebViewController *vc = [[CustomerWebViewController alloc] init];
+    vc.titleStr = NSLocalizedString(@"share_rule_title",nil);
+    NSString *url = @"http://testprivacy.phone.armclouding.com:1801/h5/rule.html";
+    if([CloudService rangeOfString:@"hiboxde.armclouding.com"].location != NSNotFound){
+        url = @"";
+    }
+    vc.webUrl = url;
+    [self.navigationController pushViewController:vc animated:YES];
+}
 @end