Browse Source

1.获取不到设备信息弹框

huangxiaodong 1 year ago
parent
commit
24b6cd8273

+ 1 - 1
创维盒子/双子星云手机/Class/Guide/TipsQRCodeViewController.h

@@ -10,7 +10,7 @@
 NS_ASSUME_NONNULL_BEGIN
 
 @interface TipsQRCodeViewController : BaseViewController
-
+@property(nonatomic,assign)BOOL isNeedToShowAleatType;
 @end
 
 NS_ASSUME_NONNULL_END

+ 34 - 0
创维盒子/双子星云手机/Class/Guide/TipsQRCodeViewController.m

@@ -9,6 +9,8 @@
 #import <Masonry.h>
 #import "UIView+View.h"
 #import "QRCodeScanViewController.h"
+#import "ComontAlretViewController.h"
+
 
 @interface TipsQRCodeViewController ()
 
@@ -110,4 +112,36 @@
 }
 */
 
+- (void)viewDidAppear:(BOOL)animated
+{
+    [super viewDidAppear:animated];
+    if(_isNeedToShowAleatType){
+        [self showAlertFun];
+    }
+}
+
+- (void)showAlertFun
+{
+    
+    
+    NSString *linkErrTip = NSLocalizedString(@"scan_sn_data_error_tip",nil);
+    
+    ComontAlretViewController *linkFailAlretVC= [[ComontAlretViewController alloc] initWithTiTle:nil
+                                                                                      msg:linkErrTip
+                                                                                 imageStr:nil
+                                                                              cancelTitle:NSLocalizedString(@"guide_set_pwd_guide_know",nil)
+                                                                                  okTitle:nil isOkBtnHighlight:NO
+                                                                               didClickOk:^{
+        
+        
+     } didClickCancel:^{
+         
+     }];
+    
+     linkFailAlretVC.modalPresentationStyle = UIModalPresentationCustom;
+     
+     [self presentViewController:linkFailAlretVC animated:YES completion:^{
+         linkFailAlretVC.view.superview.backgroundColor = [UIColor clearColor];
+     }];
+}
 @end

+ 1 - 0
创维盒子/双子星云手机/en.lproj/Localizable.strings

@@ -310,3 +310,4 @@
 "image_version_pop_tip2"   = "Do not operate during device update, estimated to take 15 minutes";
 "tv_p2p_ing"   = "Casting";
 "my_set_about_version_tap_newVersion"   = "Image version to be updated";
+"scan_sn_data_error_tip"   = "Device info not found. Scan to bind a new one.";

+ 1 - 0
创维盒子/双子星云手机/ja.lproj/Localizable.strings

@@ -308,3 +308,4 @@
 "image_version_pop_tip2"   = "設備更新中は操作しないでください、15分かかる予定です";
 "tv_p2p_ing"   = "ミラーリング中";
 "my_set_about_version_tap_newVersion"   = "更新されるミラーバージョン";
+"scan_sn_data_error_tip"   = "デバイス情報未確認。新デバイスをスキャンして繋ぐる。";

+ 1 - 1
创维盒子/双子星云手机/zh-Hans.lproj/Localizable.strings

@@ -307,4 +307,4 @@
 "image_version_pop_tip2"   = "设备更新期间请勿操作,预计需15分钟";
 "tv_p2p_ing"   = "正在投屏中";
 "my_set_about_version_tap_newVersion"   = "待更新镜像版本";
-
+"scan_sn_data_error_tip"   = "设备信息不存在,请扫码绑定新设备";

+ 1 - 0
创维盒子/双子星云手机/zh-Hant.lproj/Localizable.strings

@@ -309,3 +309,4 @@
 "image_version_pop_tip2"   = "設備更新期間請勿操作,預計需15分鐘";
 "tv_p2p_ing"   = "正在投屏中";
 "my_set_about_version_tap_newVersion"   = "待更新鏡像版本";
+"scan_sn_data_error_tip"   = "設備資訊不存在,請掃碼綁定新設備";