@ -104,32 +104,32 @@
} ;
} ;
[ setView DevicePosition ] ;
[ setView DevicePosition ] ;
/ / / 远程关机
/ / / / / 远程关机
UIButton * shutdownBtn = [ UICommon ui_buttonSimple : CGRectMake ( 10 , setView . bottom + Adapted ( 60 ) , SCREEN_WIDTH - 20 , Adapted ( 44 ) ) font : FontADA_ ( 15 ) normalColor : KKWhiteColorColor normalText : GJText ( @ "远程关机") click : ^( id x ) {
/ / UIButton * shutdownBtn = [ UICommon ui_buttonSimple : CGRectMake ( 10 , setView . bottom + Adapted ( 60 ) , SCREEN_WIDTH - 20 , Adapted ( 44 ) ) font : FontADA_ ( 15 ) normalColor : KKWhiteColorColor normalText : GJText ( @ "远程关机") click : ^( id x ) {
/ /
EasyAlertView * alertV = [ EasyAlertView alertViewWithTitle : GJText ( @ "远程关机") subtitle : GJText ( @ "\ n设备将会远程关机 ,”是否“确认") AlertViewType : AlertViewTypeSystemAlert config : nil ] ;
/ / EasyAlertView * alertV = [ EasyAlertView alertViewWithTitle : GJText ( @ "远程关机") subtitle : GJText ( @ "\ n设备将会远程关机 ,”是否“确认") AlertViewType : AlertViewTypeSystemAlert config : nil ] ;
[ alertV addAlertItem : ^EasyAlertItem * {
/ / [ alertV addAlertItem : ^EasyAlertItem * {
return [ EasyAlertItem itemWithTitle : GJText ( @ "取消") type : AlertItemTypeSystemCancel callback : nil ] ;
/ / return [ EasyAlertItem itemWithTitle : GJText ( @ "取消") type : AlertItemTypeSystemCancel callback : nil ] ;
} ] ;
/ / } ] ;
[ alertV addAlertItem : ^EasyAlertItem * {
/ / [ alertV addAlertItem : ^EasyAlertItem * {
return [ EasyAlertItem itemWithTitle : GJText ( @ "确定") type : AlertItemTypeSystemDefault callback : ^( EasyAlertView * showview , long index ) {
/ / return [ EasyAlertItem itemWithTitle : GJText ( @ "确定") type : AlertItemTypeSystemDefault callback : ^( EasyAlertView * showview , long index ) {
[ self DeviceShutDown ] ;
/ / [ self DeviceShutDown ] ;
} ] ;
/ / } ] ;
} ] ;
/ / } ] ;
[ alertV showAlertView ] ;
/ / [ alertV showAlertView ] ;
/ /
} ] ;
/ / } ] ;
shutdownBtn . backgroundColor = KKMainColor ;
/ / shutdownBtn . backgroundColor = KKMainColor ;
shutdownBtn . layer . cornerRadius = Adapted ( 22 ) ;
/ / shutdownBtn . layer . cornerRadius = Adapted ( 22 ) ;
shutdownBtn . layer . masksToBounds = YES ;
/ / shutdownBtn . layer . masksToBounds = YES ;
[ self . menuScroll addSubview : shutdownBtn ] ;
/ / [ self . menuScroll addSubview : shutdownBtn ] ;
NSString * msg = GJText ( @ "\ n解除绑定后 , 将无法对设备进行监护, 设备将重启, 其他绑定该设备的用户, 将自动解绑") ;
NSString * msg = GJText ( @ "\ n解除绑定后 , 将无法对设备进行监护, 设备将重启, 其他绑定该设备的用户, 将自动解绑") ;
if ( APIManager . sharedManager . deviceModel . identity == 2 )
if ( APIManager . sharedManager . deviceModel . identity == 2 )
msg = GJText ( @ "\ n您是设备的管理员 , 如果您进行解绑, 其他绑定该设备的用户, 将自动解绑, 确认解除绑定吗?") ;
msg = GJText ( @ "\ n您是设备的管理员 , 如果您进行解绑, 其他绑定该设备的用户, 将自动解绑, 确认解除绑定吗?") ;
/ / / 解除与设备的绑定
/ / / 解除与设备的绑定
UIButton * unbundleBtn = [ UICommon ui_buttonSimple : CGRectMake ( 10 , shutdownBtn . bottom + Adapted ( 15 ) , SCREEN_WIDTH - 20 , Adapted ( 44 ) ) font : FontADA_ ( 15 ) normalColor : KKMainColor normalText : GJText ( @ "解除与设备的绑定") click : ^( id x ) {
UIButton * unbundleBtn = [ UICommon ui_buttonSimple : CGRectMake ( 10 , setView . bottom + Adapted ( 60 ) , SCREEN_WIDTH - 20 , Adapted ( 44 ) ) font : FontADA_ ( 15 ) normalColor : KKMainColor normalText : GJText ( @ "解除与设备的绑定") click : ^( id x ) {
EasyAlertView * alertV = [ EasyAlertView alertViewWithTitle : GJText ( @ "设备解绑") subtitle : GJText ( msg ) AlertViewType : AlertViewTypeSystemAlert config : nil ] ;
EasyAlertView * alertV = [ EasyAlertView alertViewWithTitle : GJText ( @ "设备解绑") subtitle : GJText ( msg ) AlertViewType : AlertViewTypeSystemAlert config : nil ] ;
[ alertV addAlertItem : ^EasyAlertItem * {
[ alertV addAlertItem : ^EasyAlertItem * {