|
@@ -562,7 +562,8 @@ static void onUI_intent(const Intent *intentPtr) {
|
|
|
_functionWindows == "init" ||
|
|
|
_functionWindows == "reboot" ||
|
|
|
_functionWindows == "nursing2" ||
|
|
|
- _functionWindows == "deviceAdd"
|
|
|
+ _functionWindows == "deviceAdd" ||
|
|
|
+ _functionWindows == "deviceInfo"
|
|
|
) {
|
|
|
pwdWindowInfo();
|
|
|
}
|
|
@@ -621,6 +622,18 @@ static void onUI_intent(const Intent *intentPtr) {
|
|
|
_functionText = intentPtr->getExtra(functionText);
|
|
|
setLanguage(_functionText);
|
|
|
}
|
|
|
+ else if (_functionWindows == "serverChange2") {
|
|
|
+ mServerWindowPtr->showWnd();
|
|
|
+
|
|
|
+ string serverIp = StoragePreferences::getString(STORE_GATEWAY, "172.28.100.100");
|
|
|
+ int serverPort = StoragePreferences::getInt(STORE_HTTP_PORT, 8006);
|
|
|
+ mServerIpEditTextPtr->setText(serverIp);
|
|
|
+ mServerPortEditTextPtr->setText(to_string(serverPort));
|
|
|
+ }
|
|
|
+ else if (_functionWindows == "reboot2") {
|
|
|
+ // 打开初始化界面
|
|
|
+ mRebootWindowPtr->showWnd();
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -1008,7 +1021,25 @@ static void onEditTextChanged_PwdEditText(const std::string &text) {
|
|
|
mPwdPromptTextViewPtr->setTextTr("PasswordWrong");
|
|
|
mPwdPromptTextViewPtr->setTextColor(0xFFFF0000);
|
|
|
}
|
|
|
-
|
|
|
+ }
|
|
|
+ else if (_functionWindows == "deviceInfo") {
|
|
|
+ if (pwd == "888"){
|
|
|
+ // 关闭密码输入界面
|
|
|
+ mPwdWindowPtr->hideWnd();
|
|
|
+ EASYUICONTEXT->closeActivity("functionActivity");
|
|
|
+ EASYUICONTEXT->openActivity("deviceInfoActivity");
|
|
|
+ }
|
|
|
+ else if (pwd == "999") {
|
|
|
+ // 关闭密码输入界面
|
|
|
+ mPwdWindowPtr->hideWnd();
|
|
|
+ EASYUICONTEXT->closeActivity("functionActivity");
|
|
|
+ // 打开设置界面
|
|
|
+ EASYUICONTEXT->openActivity("settingActivity");
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ mPwdPromptTextViewPtr->setTextTr("PasswordWrong");
|
|
|
+ mPwdPromptTextViewPtr->setTextColor(0xFFFF0000);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|