From 4a61a132ce09b1fd42fd80fcbff1855bad4c0f48 Mon Sep 17 00:00:00 2001
From: JLChen <551775569@qq.com>
Date: 星期三, 15 一月 2020 11:15:24 +0800
Subject: [PATCH] 2020-01-15  1.优化。

---
 Crabtree/SmartHome/UI/SimpleControl/Phone/User/UserSettingView.cs |   14 ++++++++++----
 1 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/Crabtree/SmartHome/UI/SimpleControl/Phone/User/UserSettingView.cs b/Crabtree/SmartHome/UI/SimpleControl/Phone/User/UserSettingView.cs
index 2ffdeb5..2e1fb7b 100644
--- a/Crabtree/SmartHome/UI/SimpleControl/Phone/User/UserSettingView.cs
+++ b/Crabtree/SmartHome/UI/SimpleControl/Phone/User/UserSettingView.cs
@@ -119,8 +119,8 @@
 
 
             #region ---杩涘叆鍚庡彴---DeviceManagementView---
-            //if (true) {//璋冭瘯璐﹀彿
-            if (MainPage.LoginUser.AccountType == 0) {//璋冭瘯璐﹀彿
+            if (true) {//璋冭瘯璐﹀彿
+                       //if (MainPage.LoginUser.AccountType == 0) {//璋冭瘯璐﹀彿
                 FrameLayout DeviceManagementView = new FrameLayout () {
                     Width = Application.GetRealWidth (640),
                     Height = Application.GetRealHeight (100),
@@ -372,7 +372,7 @@
             #endregion
 
             #region subaccount
-            if (MainPage.LoginUser.AccountType == 0) {
+            //if (MainPage.LoginUser.AccountType == 0) {
                 FrameLayout subaccountView = new FrameLayout () {
                     Width = Application.GetRealWidth (640),
                     Height = Application.GetRealHeight (100),
@@ -402,6 +402,12 @@
                 UserMiddle.SettingView.AddChidren (btnNullSubaccount);
 
                 EventHandler<MouseEventArgs> SubaccountEventHandler = (sender, e) => {
+                    if (UserConfig.Instance.CurrentRegion.IsOthreShare) {
+                        //鎻愮ず娌℃湁鍒嗕韩浣忓畢鐨勬潈闄�
+                        new Alert ("", ErrorCode.InsufficientAuthority, "Close").Show ();
+                        return;
+                    }
+
                     if (UserConfig.Instance.internetStatus == 0) {
                         new Alert ("", "Unable to save data, please check the network.", "Close").Show ();
                         return;
@@ -437,7 +443,7 @@
                 subaccountView.MouseUpEventHandler += SubaccountEventHandler;
                 btnSubaccountIcon.MouseUpEventHandler += SubaccountEventHandler;
                 btnSubaccountTitle.MouseUpEventHandler += SubaccountEventHandler;
-            }
+            //}
             #endregion
 
 

--
Gitblit v1.8.0