Commit c83fd134 by tanghuan

openSetting指令增加打开绑定手机号码的界面

1 parent 95c34f90
...@@ -43,6 +43,7 @@ class OpenSettingHandler extends MessageHandler { ...@@ -43,6 +43,7 @@ class OpenSettingHandler extends MessageHandler {
'clear': _handleClear, 'clear': _handleClear,
'logout': _handleLogout, 'logout': _handleLogout,
'vconsole': _handleToggleDebug, 'vconsole': _handleToggleDebug,
'bindphone': _openBindPhone,
'wifi': _openWifiSettings, 'wifi': _openWifiSettings,
}; };
...@@ -102,6 +103,12 @@ class OpenSettingHandler extends MessageHandler { ...@@ -102,6 +103,12 @@ class OpenSettingHandler extends MessageHandler {
return true; return true;
} }
/// 打开绑定手机页面
Future<bool> _openBindPhone() async {
router.push('/account/phone');
return true;
}
/// 打开系统WIFI设置界面 /// 打开系统WIFI设置界面
Future<bool> _openWifiSettings() async { Future<bool> _openWifiSettings() async {
await AppSettings.openAppSettings( await AppSettings.openAppSettings(
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!