Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
re860_factory
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
waterword
re860_factory
Commits
6d70ad27
Commit
6d70ad27
authored
Sep 15, 2025
by
lyong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化产测wifi
parent
203587ef
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
303 additions
and
282 deletions
+303
-282
factoryTestItem/factoryTestWifi.evue
factoryTestItem/factoryTestWifi.evue
+239
-239
factoryTestItem/factoryTestWifi.evue.q.min.js.bc
factoryTestItem/factoryTestWifi.evue.q.min.js.bc
+0
-0
factoryTestItem/factory_testList.evue
factoryTestItem/factory_testList.evue
+2
-1
factoryTestItem/factory_testList.evue.q.min.js.bc
factoryTestItem/factory_testList.evue.q.min.js.bc
+0
-0
factoryTest_plugin/factory_testWifi.js
factoryTest_plugin/factory_testWifi.js
+62
-42
No files found.
factoryTestItem/factoryTestWifi.evue
View file @
6d70ad27
...
@@ -5,57 +5,46 @@
...
@@ -5,57 +5,46 @@
<!-- </div> -->
<!-- </div> -->
<div
id=
"wifiHmoe"
class=
"screen"
>
<div
id=
"wifiHmoe"
class=
"screen"
>
<div
style=
"left:10;top: 10;width: 460;height: 55; background-color: #99D0F7;"
>
<div
style=
"left:10;top: 10;width: 460;height: 55; background-color: #99D0F7;"
>
<text
class=
"fontsize40"
id=
"title_TEXT"
<text
class=
"fontsize40"
id=
"title_TEXT"
style=
"left:0;top: 0;width: 460;height: 55;text-align: center; background-color: transparent;color: black;"
>
{{
style=
"left:0;top: 0;width: 460;height: 55;text-align: center; background-color: transparent;color: black;"
>
{{
title_TEXT }}
</text>
title_TEXT }}
</text>
</div>
</div>
<div
style=
"left:0;top: 70;width: 480;height: 55; background-color: transparent;"
>
<div
style=
"left:0;top: 70;width: 480;height: 55; background-color: transparent;"
>
<text
class=
"fontsize16"
id=
"Reminder_TEXT"
<text
class=
"fontsize16"
id=
"Reminder_TEXT"
style=
"left:0;top: 0;width: 480;height: 55;text-align: center; background-color: transparent;color: black;"
>
{{
style=
"left:0;top: 0;width: 480;height: 55;text-align: center; background-color: transparent;color: black;"
>
{{
Reminder_TEXT }}
</text>
Reminder_TEXT }}
</text>
</div>
</div>
<div
style=
"left:10;top: 130;width: 460;height: 55; background-color: #99D0F7;"
>
<div
style=
"left:10;top: 130;width: 460;height: 55; background-color: #99D0F7;"
>
<text
class=
"fontsize24"
id=
"wifiInfo_TEXT"
<text
class=
"fontsize24"
id=
"wifiInfo_TEXT"
style=
"left:0;top: 10;width: 460;height: 55;text-align: center; background-color: transparent;color: #357E43"
>
{{
style=
"left:0;top: 10;width: 460;height: 55;text-align: center; background-color: transparent;color: #357E43"
>
{{
wifiInfo_TEXT }}
</text>
wifiInfo_TEXT }}
</text>
</div>
</div>
<div
style=
"left:10;top: 195;width: 460;height: 55; background-color: transparent"
>
<div
style=
"left:10;top: 195;width: 460;height: 55; background-color: transparent"
>
<text
class=
"fontsize24"
id=
"wifiInfoWarn_TEXT"
<text
class=
"fontsize24"
id=
"wifiInfoWarn_TEXT"
style=
"left:0;top: 10;width: 460;height: 55;text-align: center; background-color: transparent;color: #E2E64D"
>
{{
style=
"left:0;top: 10;width: 460;height: 55;text-align: center; background-color: transparent;color: #E2E64D"
>
{{
wifiInfoWarn_TEXT }}
</text>
wifiInfoWarn_TEXT }}
</text>
</div>
</div>
<div
style=
"left:10;top: 260;width: 480;height: 96; background-color: transparent;"
>
<div
style=
"left:10;top: 260;width: 480;height: 96; background-color: transparent;"
>
<text
class=
"fontsize24"
id=
"wifiInfoState_TEXT"
<text
class=
"fontsize24"
id=
"wifiInfoState_TEXT"
style=
"left: 0;top: 36;width: 350;height: 40;text-align: center; background-color: transparent;color: #ffffff"
>
{{
style=
"left: 0;top: 36;width: 350;height: 40;text-align: center; background-color: transparent;color: #ffffff"
>
{{
wifiInfoState_TEXT }}
</text>
wifiInfoState_TEXT }}
</text>
<div
style=
"top:0; left:360 ; width: 100;height: 96;background-color: #FF9700;"
>
<div
style=
"top:0; left:360 ; width: 100;height: 96;background-color: #FF9700;"
>
<text
class=
"testReturn"
id=
"id_startscanWifi"
onpress=
"touchedScreen"
<text
class=
"testReturn"
id=
"id_startscanWifi"
onpress=
"touchedScreen"
onclick=
"touchedStartScanWifiButton"
style=
"top: 0;color: #000000;"
>
开始测试
</text>
onclick=
"touchedStartScanWifiButton"
style=
"top: 0;color: #000000;"
>
开始扫描
</text>
</div>
</div>
<div
id=
"id_startscanWifiHide"
<div
id=
"id_startscanWifiHide"
style=
"top:-480; left:360 ; width: 100;height: 96;background-color: #FF9700;"
onclick=
"noclickBuntton"
></div>
style=
"top:-480; left:360 ; width: 100;height: 96;background-color: #FF9700;"
></div>
</div>
</div>
<div
style=
"left:10;top: 366;width: 460;height: 96; background-color: transparent;"
>
<div
style=
"left:10;top: 366;width: 460;height: 96; background-color: transparent;"
>
<div
style=
"left:10 ; width: 100;height: 96;background-color: #858282;"
>
<div
style=
"left:10 ; width: 100;height: 96;background-color: #858282;"
>
<text
class=
"testReturn"
id=
"id_back"
onpress=
"touchedScreen"
onclick=
"touchedBackButton"
<text
class=
"testReturn"
id=
"id_back"
onpress=
"touchedScreen"
onclick=
"touchedBackButton"
style=
"color: #000000; top: 15;"
>
back
</text>
style=
"color: #000000; top: 15;"
>
back
</text>
</div>
</div>
<div
style=
"left:130 ; width: 100;height: 96;background-color: #858282;"
>
<div
style=
"left:130 ; width: 100;height: 96;background-color: #858282;"
>
<text
class=
"testReturn"
id=
"id_ng"
onpress=
"touchedScreen"
onclick=
"touchedNGButton"
<text
class=
"testReturn"
id=
"id_ng"
onpress=
"touchedScreen"
onclick=
"touchedNGButton"
style=
"color: #F44236;top: 15;"
>
NG
</text>
style=
"color: #F44236;top: 15;"
>
NG
</text>
</div>
</div>
<div
id=
"id_yes"
style=
"top:-480; left:360 ; width: 100;height: 96;background-color: #FF9700;"
>
<div
id=
"id_yes"
style=
"top:-480; left:360 ; width: 100;height: 96;background-color: #FF9700;"
>
<text
class=
"testReturn"
onpress=
"touchedScreen"
onclick=
"touchedYesButton"
<text
class=
"testReturn"
onpress=
"touchedScreen"
onclick=
"touchedYesButton"
style=
"color: #000000;top: 15;left: 0; "
>
PASS
</text>
style=
"color: #000000;top: 15;left: 0; "
>
PASS
</text>
</div>
</div>
<div
style=
"left:250 ; width: 100;height: 96;background-color: #858282;"
>
<div
style=
"left:250 ; width: 100;height: 96;background-color: #858282;"
>
<text
class=
"testReturn"
id=
"id_scanWifiList"
onpress=
"touchedScreen"
onclick=
"touchedscanWifiList"
<text
class=
"testReturn"
id=
"id_scanWifiList"
onpress=
"touchedScreen"
onclick=
"touchedscanWifiList"
style=
"color: #000000;"
>
WIFI列表
</text>
style=
"color: #000000;"
>
WIFI列表
</text>
</div>
</div>
</div>
</div>
...
@@ -63,31 +52,25 @@
...
@@ -63,31 +52,25 @@
<div
id=
"id_enableWLANChooseOnDiv"
class=
"screen"
style=
"top: -480;"
>
<div
id=
"id_enableWLANChooseOnDiv"
class=
"screen"
style=
"top: -480;"
>
<div
style=
"left:10;top: 10;width: 460;height: 35; background-color: transparent;"
>
<div
style=
"left:10;top: 10;width: 460;height: 35; background-color: transparent;"
>
<text
class=
"fontsize24"
id=
"title_TEXT"
<text
class=
"fontsize24"
id=
"title_TEXT"
style=
"left:0;top: 0;width: 460;height: 35;text-align: center; background-color: transparent;color: black;"
>
{{
style=
"left:0;top: 0;width: 460;height: 35;text-align: center; background-color: transparent;color: black;"
>
{{
title_TEXT }}
</text>
title_TEXT }}
</text>
</div>
</div>
<list
id=
"id_enableWLANPageList"
direction=
"vertical"
style=
"top:55;left:30;height:300;width: 420;"
>
<list
id=
"id_enableWLANPageList"
direction=
"vertical"
style=
"top:55;left:30;height:300;width: 420;"
>
<list-item
id=
"id_enableWLANListItemTemplate"
style=
"top:0;height:1100;width: 420;"
>
<list-item
id=
"id_enableWLANListItemTemplate"
style=
"top:0;height:1100;width: 420;"
>
<div
style=
"top:0;width: 420;background-color: #000000;height:1100;"
<div
style=
"top:0;width: 420;background-color: #000000;height:1100;"
id=
"id_enableWLANListItemSearchDiv"
></div>
id=
"id_enableWLANListItemSearchDiv"
></div>
</list-item>
</list-item>
</list>
</list>
<div
style=
"left:10;top: 366;width: 460;height: 96; background-color: transparent;"
>
<div
style=
"left:10;top: 366;width: 460;height: 96; background-color: transparent;"
>
<div
style=
"left:60 ; width: 150;height: 96;background-color: #858282;"
>
<div
style=
"left:60 ; width: 150;height: 96;background-color: #858282;"
>
<text
class=
"testReturn"
id=
"id_backWifiList"
onpress=
"touchedScreen"
onclick=
"touchedDetailsBackButton"
<text
class=
"testReturn"
id=
"id_backWifiList"
onpress=
"touchedScreen"
onclick=
"touchedDetailsBackButton"
style=
"top: 25; color: #000000; width: 150;font-size: 34;"
>
back
</text>
style=
"top: 25; color: #000000; width: 150;font-size: 34;"
>
back
</text>
</div>
</div>
<div
style=
"top:0; left:250; width: 150;height: 96;background-color: #FF9700;"
>
<div
style=
"top:0; left:250; width: 150;height: 96;background-color: #FF9700;"
>
<text
class=
"testReturn"
id=
"id_startscanWifi_List"
onpress=
"touchedScreen"
<text
class=
"testReturn"
id=
"id_startscanWifi_List"
onpress=
"touchedScreen"
onclick=
"touchedStartScanWifiDetailsButton"
style=
"top: 25;color: #000000; width: 150;font-size: 34;"
>
开始扫描
</text>
onclick=
"touchedStartScanWifiDetailsButton"
style=
"top: 25;color: #000000; width: 150;font-size: 34;"
>
开始扫描
</text>
</div>
</div>
<div
id=
"id_startscanWifi_List_hide"
<div
id=
"id_startscanWifi_List_hide"
style=
"top:-480; left:250; width: 150;height: 96;background-color: #FF9700;"
onclick=
"noclickBuntton"
>
style=
"top:-480; left:250; width: 150;height: 96;background-color: #FF9700;"
>
</div>
</div>
</div>
</div>
...
@@ -97,22 +80,17 @@
...
@@ -97,22 +80,17 @@
<div
class=
"totalPageDiv"
id=
"id_wlanEnterPasswordPage"
style=
"top:-480;background-color: #000000;"
<div
class=
"totalPageDiv"
id=
"id_wlanEnterPasswordPage"
style=
"top:-480;background-color: #000000;"
onrelease=
"onKeyboardRelease"
>
onrelease=
"onKeyboardRelease"
>
<!-- <div class="titleDiv" onclick="backToWirelessNetworkBasicPage">
<!-- <div class="titleDiv" onclick="backToWirelessNetworkBasicPage">
<image class="backPng" :src="backPngSrc"></image>
<image class="backPng" :src="backPngSrc"></image>
<text class="titleFontsize" id="titleWlanEnterPasswordText">{{crtTitleWlanEnterPasswordText}}</text>
<text class="titleFontsize" id="titleWlanEnterPasswordText">{{crtTitleWlanEnterPasswordText}}</text>
</div> -->
</div> -->
<div
style=
"left:10;top: 10;width: 460;height: 96; background-color: transparent;"
>
<div
style=
"left:10;top: 10;width: 460;height: 96; background-color: transparent;"
>
<div
style=
"left:60 ; width: 150;height: 96;background-color: #858282;"
>
<div
style=
"left:60 ; width: 150;height: 96;background-color: #858282;"
>
<text
class=
"testReturn"
id=
"id_backWifiList_InputPassword"
onpress=
"touchedScreen"
<text
class=
"testReturn"
id=
"id_backWifiList_InputPassword"
onpress=
"touchedScreen"
onclick=
"touchedDetailsBackInputPasswordButton"
style=
"top: 25; color: red; width: 150;font-size: 34;"
>
back
</text>
onclick=
"touchedDetailsBackInputPasswordButton"
style=
"top: 25; color: red; width: 150;font-size: 34;"
>
back
</text>
</div>
</div>
<div
style=
"top:0; left:250; width: 150;height: 96;background-color: #FF9700;"
>
<div
style=
"top:0; left:250; width: 150;height: 96;background-color: #FF9700;"
>
<text
class=
"testReturn"
id=
"id_startscanWifi_List_InputPassword"
onpress=
"touchedScreen"
<text
class=
"testReturn"
id=
"id_startscanWifi_List_InputPassword"
onpress=
"touchedScreen"
onclick=
"touchedStartScanWifiDetailsInputPasswordButton"
style=
"top: 25;color: #000000; width: 150;font-size: 34;"
>
connect
</text>
onclick=
"touchedStartScanWifiDetailsInputPasswordButton"
style=
"top: 25;color: #000000; width: 150;font-size: 34;"
>
connect
</text>
</div>
</div>
<div
id=
"id_hide"
style=
"top:0; left:250; width: 150;height: 96;background-color: #FF9700;"
>
<div
id=
"id_hide"
style=
"top:0; left:250; width: 150;height: 96;background-color: #FF9700;"
>
...
@@ -121,13 +99,11 @@
...
@@ -121,13 +99,11 @@
<div
class=
"wlanEnterPasswordBox"
id=
"id_wlanEnterPasswordBox"
style=
"top:80;"
>
<div
class=
"wlanEnterPasswordBox"
id=
"id_wlanEnterPasswordBox"
style=
"top:80;"
>
<!-- <text class="fontsize22" id="passwordText">{{crtPasswordText}}</text> -->
<!-- <text class="fontsize22" id="passwordText">{{crtPasswordText}}</text> -->
<text
class=
"fontsize22"
id=
"titleWlanEnterPasswordText"
<text
class=
"fontsize22"
id=
"titleWlanEnterPasswordText"
style=
"top: 30; left: 12; text-align: left;width: 480;"
>
{{crtTitleWlanEnterPasswordText}}
</text>
style=
"top: 30; left: 12; text-align: left;width: 480;"
>
{{crtTitleWlanEnterPasswordText}}
</text>
<div
class=
"wlanEnterPasswordShowDiv"
id=
"id_wlanEnterPasswordShowDiv"
>
<div
class=
"wlanEnterPasswordShowDiv"
id=
"id_wlanEnterPasswordShowDiv"
>
<div
class=
"wlanEnterPasswordShowLoadDiv"
style=
""
></div>
<div
class=
"wlanEnterPasswordShowLoadDiv"
style=
""
></div>
<text
class=
"fontsize22Left"
id=
"enterPasswordReminderText"
>
{{crtEnterPasswordReminderText}}
</text>
<text
class=
"fontsize22Left"
id=
"enterPasswordReminderText"
>
{{crtEnterPasswordReminderText}}
</text>
<text
class=
"fontsize22Left"
id=
"enterPasswordShowText"
<text
class=
"fontsize22Left"
id=
"enterPasswordShowText"
style=
"top:-480"
>
{{crtEnterPasswordShowText}}
</text>
style=
"top:-480"
>
{{crtEnterPasswordShowText}}
</text>
<text
class=
"fontsize22Left"
id=
"enterPasswordShowInvisiableText"
>
{{
<text
class=
"fontsize22Left"
id=
"enterPasswordShowInvisiableText"
>
{{
crtEnterPasswordShowInvisiableText}}
</text>
crtEnterPasswordShowInvisiableText}}
</text>
<image
class=
"visibilityPng"
:src=
"visibilityPngSrc"
></image>
<image
class=
"visibilityPng"
:src=
"visibilityPngSrc"
></image>
...
@@ -139,146 +115,114 @@
...
@@ -139,146 +115,114 @@
<div
class=
"keyboardBox"
>
<div
class=
"keyboardBox"
>
<div
class=
"keyboardDiv"
>
<div
class=
"keyboardDiv"
>
<div
class=
"row1"
style=
"top:0"
>
<div
class=
"row1"
style=
"top:0"
>
<div
class=
"key"
onclick=
"onKeyboardClick"
onpress=
"onKeyboardPress"
onrelease=
"onKeyboardRelease"
<div
class=
"key"
onclick=
"onKeyboardClick"
onpress=
"onKeyboardPress"
onrelease=
"onKeyboardRelease"
value=
"0"
style=
"left:0"
>
value=
"0"
style=
"left:0"
>
<text
class=
"txt"
>
Q
</text>
<text
class=
"txt"
>
Q
</text>
</div>
</div>
<div
class=
"key"
onclick=
"onKeyboardClick"
onpress=
"onKeyboardPress"
onrelease=
"onKeyboardRelease"
<div
class=
"key"
onclick=
"onKeyboardClick"
onpress=
"onKeyboardPress"
onrelease=
"onKeyboardRelease"
value=
"1"
style=
"left:46"
>
value=
"1"
style=
"left:46"
>
<text
class=
"txt"
>
W
</text>
<text
class=
"txt"
>
W
</text>
</div>
</div>
<div
class=
"key"
onclick=
"onKeyboardClick"
onpress=
"onKeyboardPress"
onrelease=
"onKeyboardRelease"
<div
class=
"key"
onclick=
"onKeyboardClick"
onpress=
"onKeyboardPress"
onrelease=
"onKeyboardRelease"
value=
"2"
style=
"left:92"
>
value=
"2"
style=
"left:92"
>
<text
class=
"txt"
>
E
</text>
<text
class=
"txt"
>
E
</text>
</div>
</div>
<div
class=
"key"
onclick=
"onKeyboardClick"
onpress=
"onKeyboardPress"
onrelease=
"onKeyboardRelease"
<div
class=
"key"
onclick=
"onKeyboardClick"
onpress=
"onKeyboardPress"
onrelease=
"onKeyboardRelease"
value=
"3"
style=
"left:138"
>
value=
"3"
style=
"left:138"
>
<text
class=
"txt"
>
R
</text>
<text
class=
"txt"
>
R
</text>
</div>
</div>
<div
class=
"key"
onclick=
"onKeyboardClick"
onpress=
"onKeyboardPress"
onrelease=
"onKeyboardRelease"
<div
class=
"key"
onclick=
"onKeyboardClick"
onpress=
"onKeyboardPress"
onrelease=
"onKeyboardRelease"
value=
"4"
style=
"left:184"
>
value=
"4"
style=
"left:184"
>
<text
class=
"txt"
>
T
</text>
<text
class=
"txt"
>
T
</text>
</div>
</div>
<div
class=
"key"
onclick=
"onKeyboardClick"
onpress=
"onKeyboardPress"
onrelease=
"onKeyboardRelease"
<div
class=
"key"
onclick=
"onKeyboardClick"
onpress=
"onKeyboardPress"
onrelease=
"onKeyboardRelease"
value=
"5"
style=
"left:230"
>
value=
"5"
style=
"left:230"
>
<text
class=
"txt"
>
Y
</text>
<text
class=
"txt"
>
Y
</text>
</div>
</div>
<div
class=
"key"
onclick=
"onKeyboardClick"
onpress=
"onKeyboardPress"
onrelease=
"onKeyboardRelease"
<div
class=
"key"
onclick=
"onKeyboardClick"
onpress=
"onKeyboardPress"
onrelease=
"onKeyboardRelease"
value=
"6"
style=
"left:276"
>
value=
"6"
style=
"left:276"
>
<text
class=
"txt"
>
U
</text>
<text
class=
"txt"
>
U
</text>
</div>
</div>
<div
class=
"key"
onclick=
"onKeyboardClick"
onpress=
"onKeyboardPress"
onrelease=
"onKeyboardRelease"
<div
class=
"key"
onclick=
"onKeyboardClick"
onpress=
"onKeyboardPress"
onrelease=
"onKeyboardRelease"
value=
"7"
style=
"left:322"
>
value=
"7"
style=
"left:322"
>
<text
class=
"txt"
>
I
</text>
<text
class=
"txt"
>
I
</text>
</div>
</div>
<div
class=
"key"
onclick=
"onKeyboardClick"
onpress=
"onKeyboardPress"
onrelease=
"onKeyboardRelease"
<div
class=
"key"
onclick=
"onKeyboardClick"
onpress=
"onKeyboardPress"
onrelease=
"onKeyboardRelease"
value=
"8"
style=
"left:368"
>
value=
"8"
style=
"left:368"
>
<text
class=
"txt"
>
O
</text>
<text
class=
"txt"
>
O
</text>
</div>
</div>
<div
class=
"key"
onclick=
"onKeyboardClick"
onpress=
"onKeyboardPress"
onrelease=
"onKeyboardRelease"
<div
class=
"key"
onclick=
"onKeyboardClick"
onpress=
"onKeyboardPress"
onrelease=
"onKeyboardRelease"
value=
"9"
style=
"left:414"
>
value=
"9"
style=
"left:414"
>
<text
class=
"txt"
>
P
</text>
<text
class=
"txt"
>
P
</text>
</div>
</div>
</div>
</div>
<div
class=
"row1"
style=
"top:47"
>
<div
class=
"row1"
style=
"top:47"
>
<div
class=
"key"
style=
"left:23"
onclick=
"onKeyboardClick"
onpress=
"onKeyboardPress"
<div
class=
"key"
style=
"left:23"
onclick=
"onKeyboardClick"
onpress=
"onKeyboardPress"
onrelease=
"onKeyboardRelease"
value=
"10"
>
onrelease=
"onKeyboardRelease"
value=
"10"
>
<text
class=
"txt"
>
A
</text>
<text
class=
"txt"
>
A
</text>
</div>
</div>
<div
class=
"key"
onclick=
"onKeyboardClick"
onpress=
"onKeyboardPress"
onrelease=
"onKeyboardRelease"
<div
class=
"key"
onclick=
"onKeyboardClick"
onpress=
"onKeyboardPress"
onrelease=
"onKeyboardRelease"
value=
"11"
style=
"left:69"
>
value=
"11"
style=
"left:69"
>
<text
class=
"txt"
>
S
</text>
<text
class=
"txt"
>
S
</text>
</div>
</div>
<div
class=
"key"
onclick=
"onKeyboardClick"
onpress=
"onKeyboardPress"
onrelease=
"onKeyboardRelease"
<div
class=
"key"
onclick=
"onKeyboardClick"
onpress=
"onKeyboardPress"
onrelease=
"onKeyboardRelease"
value=
"12"
style=
"left:115"
>
value=
"12"
style=
"left:115"
>
<text
class=
"txt"
>
D
</text>
<text
class=
"txt"
>
D
</text>
</div>
</div>
<div
class=
"key"
onclick=
"onKeyboardClick"
onpress=
"onKeyboardPress"
onrelease=
"onKeyboardRelease"
<div
class=
"key"
onclick=
"onKeyboardClick"
onpress=
"onKeyboardPress"
onrelease=
"onKeyboardRelease"
value=
"13"
style=
"left:161"
>
value=
"13"
style=
"left:161"
>
<text
class=
"txt"
>
F
</text>
<text
class=
"txt"
>
F
</text>
</div>
</div>
<div
class=
"key"
onclick=
"onKeyboardClick"
onpress=
"onKeyboardPress"
onrelease=
"onKeyboardRelease"
<div
class=
"key"
onclick=
"onKeyboardClick"
onpress=
"onKeyboardPress"
onrelease=
"onKeyboardRelease"
value=
"14"
style=
"left:207"
>
value=
"14"
style=
"left:207"
>
<text
class=
"txt"
>
G
</text>
<text
class=
"txt"
>
G
</text>
</div>
</div>
<div
class=
"key"
onclick=
"onKeyboardClick"
onpress=
"onKeyboardPress"
onrelease=
"onKeyboardRelease"
<div
class=
"key"
onclick=
"onKeyboardClick"
onpress=
"onKeyboardPress"
onrelease=
"onKeyboardRelease"
value=
"15"
style=
"left:253"
>
value=
"15"
style=
"left:253"
>
<text
class=
"txt"
>
H
</text>
<text
class=
"txt"
>
H
</text>
</div>
</div>
<div
class=
"key"
onclick=
"onKeyboardClick"
onpress=
"onKeyboardPress"
onrelease=
"onKeyboardRelease"
<div
class=
"key"
onclick=
"onKeyboardClick"
onpress=
"onKeyboardPress"
onrelease=
"onKeyboardRelease"
value=
"16"
style=
"left:299"
>
value=
"16"
style=
"left:299"
>
<text
class=
"txt"
>
J
</text>
<text
class=
"txt"
>
J
</text>
</div>
</div>
<div
class=
"key"
onclick=
"onKeyboardClick"
onpress=
"onKeyboardPress"
onrelease=
"onKeyboardRelease"
<div
class=
"key"
onclick=
"onKeyboardClick"
onpress=
"onKeyboardPress"
onrelease=
"onKeyboardRelease"
value=
"17"
style=
"left:345"
>
value=
"17"
style=
"left:345"
>
<text
class=
"txt"
>
K
</text>
<text
class=
"txt"
>
K
</text>
</div>
</div>
<div
class=
"key"
style=
"left:391"
onclick=
"onKeyboardClick"
onpress=
"onKeyboardPress"
<div
class=
"key"
style=
"left:391"
onclick=
"onKeyboardClick"
onpress=
"onKeyboardPress"
onrelease=
"onKeyboardRelease"
value=
"18"
>
onrelease=
"onKeyboardRelease"
value=
"18"
>
<text
class=
"txt"
>
L
</text>
<text
class=
"txt"
>
L
</text>
</div>
</div>
</div>
</div>
<div
class=
"row1"
style=
"top:94"
>
<div
class=
"row1"
style=
"top:94"
>
<div
id=
"ABC"
style=
"width:65"
onclick=
"onKeyboardClick"
onpress=
"onKeyboardPress"
<div
id=
"ABC"
style=
"width:65"
onclick=
"onKeyboardClick"
onpress=
"onKeyboardPress"
onrelease=
"onKeyboardRelease"
special=
"ABC"
>
onrelease=
"onKeyboardRelease"
special=
"ABC"
>
<text
id=
"ABC_txt"
>
ABC
</text>
<text
id=
"ABC_txt"
>
ABC
</text>
</div>
</div>
<div
class=
"key"
onclick=
"onKeyboardClick"
onpress=
"onKeyboardPress"
onrelease=
"onKeyboardRelease"
<div
class=
"key"
onclick=
"onKeyboardClick"
onpress=
"onKeyboardPress"
onrelease=
"onKeyboardRelease"
value=
"20"
style=
"left:69"
>
value=
"20"
style=
"left:69"
>
<text
class=
"txt"
>
Z
</text>
<text
class=
"txt"
>
Z
</text>
</div>
</div>
<div
class=
"key"
onclick=
"onKeyboardClick"
onpress=
"onKeyboardPress"
onrelease=
"onKeyboardRelease"
<div
class=
"key"
onclick=
"onKeyboardClick"
onpress=
"onKeyboardPress"
onrelease=
"onKeyboardRelease"
value=
"21"
style=
"left:115"
>
value=
"21"
style=
"left:115"
>
<text
class=
"txt"
>
X
</text>
<text
class=
"txt"
>
X
</text>
</div>
</div>
<div
class=
"key"
onclick=
"onKeyboardClick"
onpress=
"onKeyboardPress"
onrelease=
"onKeyboardRelease"
<div
class=
"key"
onclick=
"onKeyboardClick"
onpress=
"onKeyboardPress"
onrelease=
"onKeyboardRelease"
value=
"22"
style=
"left:161"
>
value=
"22"
style=
"left:161"
>
<text
class=
"txt"
>
C
</text>
<text
class=
"txt"
>
C
</text>
</div>
</div>
<div
class=
"key"
onclick=
"onKeyboardClick"
onpress=
"onKeyboardPress"
onrelease=
"onKeyboardRelease"
<div
class=
"key"
onclick=
"onKeyboardClick"
onpress=
"onKeyboardPress"
onrelease=
"onKeyboardRelease"
value=
"23"
style=
"left:207"
>
value=
"23"
style=
"left:207"
>
<text
class=
"txt"
>
V
</text>
<text
class=
"txt"
>
V
</text>
</div>
</div>
<div
class=
"key"
onclick=
"onKeyboardClick"
onpress=
"onKeyboardPress"
onrelease=
"onKeyboardRelease"
<div
class=
"key"
onclick=
"onKeyboardClick"
onpress=
"onKeyboardPress"
onrelease=
"onKeyboardRelease"
value=
"24"
style=
"left:253"
>
value=
"24"
style=
"left:253"
>
<text
class=
"txt"
>
B
</text>
<text
class=
"txt"
>
B
</text>
</div>
</div>
<div
class=
"key"
onclick=
"onKeyboardClick"
onpress=
"onKeyboardPress"
onrelease=
"onKeyboardRelease"
<div
class=
"key"
onclick=
"onKeyboardClick"
onpress=
"onKeyboardPress"
onrelease=
"onKeyboardRelease"
value=
"25"
style=
"left:299"
>
value=
"25"
style=
"left:299"
>
<text
class=
"txt"
>
N
</text>
<text
class=
"txt"
>
N
</text>
</div>
</div>
<div
class=
"key"
onclick=
"onKeyboardClick"
onpress=
"onKeyboardPress"
onrelease=
"onKeyboardRelease"
<div
class=
"key"
onclick=
"onKeyboardClick"
onpress=
"onKeyboardPress"
onrelease=
"onKeyboardRelease"
value=
"26"
style=
"left:345"
>
value=
"26"
style=
"left:345"
>
<text
class=
"txt"
>
M
</text>
<text
class=
"txt"
>
M
</text>
</div>
</div>
<div
id=
"backspace"
style=
"left:391;width:65"
onclick=
"onKeyboardClick"
onpress=
"onKeyboardPress"
<div
id=
"backspace"
style=
"left:391;width:65"
onclick=
"onKeyboardClick"
onpress=
"onKeyboardPress"
onrelease=
"onKeyboardRelease"
special=
"backspace"
>
onrelease=
"onKeyboardRelease"
special=
"backspace"
>
<text
id=
"backspace_txt"
>
back
</text>
<text
id=
"backspace_txt"
>
back
</text>
</div>
</div>
</div>
</div>
<div
class=
"row1"
style=
"top:141"
>
<div
class=
"row1"
style=
"top:141"
>
<div
id=
"Num123"
onclick=
"onKeyboardClick"
onpress=
"onKeyboardPress"
onrelease=
"onKeyboardRelease"
<div
id=
"Num123"
onclick=
"onKeyboardClick"
onpress=
"onKeyboardPress"
onrelease=
"onKeyboardRelease"
special=
"Num123"
>
special=
"Num123"
>
<text
id=
"Num123_txt"
>
123
</text>
<text
id=
"Num123_txt"
>
123
</text>
</div>
</div>
<div
class=
"space"
onclick=
"onKeyboardClick"
onpress=
"onKeyboardPress"
onrelease=
"onKeyboardRelease"
<div
class=
"space"
onclick=
"onKeyboardClick"
onpress=
"onKeyboardPress"
onrelease=
"onKeyboardRelease"
special=
"space"
style=
"left:69"
>
special=
"space"
style=
"left:69"
>
<text
class=
"space_txt"
>
Space
</text>
<text
class=
"space_txt"
>
Space
</text>
</div>
</div>
<div
class=
"enter"
onclick=
"onKeyboardClick"
onpress=
"onKeyboardPress"
onrelease=
"onKeyboardRelease"
<div
class=
"enter"
onclick=
"onKeyboardClick"
onpress=
"onKeyboardPress"
onrelease=
"onKeyboardRelease"
special=
"enter"
style=
"left:391"
>
special=
"enter"
style=
"left:391"
>
<text
class=
"enter_txt"
>
Go
</text>
<text
class=
"enter_txt"
>
Go
</text>
</div>
</div>
</div>
</div>
<image
class=
"totalKeyBoardBgPng"
:src=
"totalKeyBoardBgPngSrc"
></image>
<image
class=
"totalKeyBoardBgPng"
:src=
"totalKeyBoardBgPngSrc"
></image>
<image
class=
"keyBoardGoPng"
:src=
"keyBoardGoPngSrc"
></image>
<image
class=
"keyBoardGoPng"
:src=
"keyBoardGoPngSrc"
></image>
<image
class=
"keyBoardGoFeedbackPng"
id=
"id_keyBoardGoFeedbackPng"
style=
"top:-480"
<image
class=
"keyBoardGoFeedbackPng"
id=
"id_keyBoardGoFeedbackPng"
style=
"top:-480"
:src=
"keyBoardGoFeedbackPngSrc"
></image>
:src=
"keyBoardGoFeedbackPngSrc"
></image>
<image
id=
"id_upperOrLowerCaseAtIcon"
style=
"top:-480"
:src=
"upperOrLowerCaseAtIconSrc"
></image>
<image
id=
"id_upperOrLowerCaseAtIcon"
style=
"top:-480"
:src=
"upperOrLowerCaseAtIconSrc"
></image>
<image
id=
"id_backSpaceFeedbackPng"
style=
"top:-480"
:src=
"backSpaceFeedbackPngSrc"
>
<image
id=
"id_backSpaceFeedbackPng"
style=
"top:-480"
:src=
"backSpaceFeedbackPngSrc"
>
</image>
</image>
...
@@ -316,15 +260,18 @@
...
@@ -316,15 +260,18 @@
var
initWifisig
=
undefined
;
var
initWifisig
=
undefined
;
var
pathflag
=
1
;
var
pathflag
=
1
;
var
initpngPath
=
pathflag
==
1
?
"
./../RE860A
"
:
"
./../re860a-v1.0
"
;
var
initpngPath
=
pathflag
==
1
?
"
./../RE860A
"
:
"
./../re860a-v1.0
"
;
var
idtimerOutScanWifiList
=
null
;
var
scanWifiFlag
=
false
;
var
connectWifiFlag
=
false
;
export
default
{
export
default
{
data
:
{
data
:
{
title_TEXT
:
"
WIFI
"
,
title_TEXT
:
"
WIFI
"
,
initWifissid
:
"
Midea_WifiBT
"
,
initWifissid
:
"
Midea_WifiBT
"
,
initWifipwd
:
""
,
initWifipwd
:
"
12345678
"
,
initencryptedMode
:
"
"
,
initencryptedMode
:
"
WPA
"
,
Reminder_TEXT
:
"
请配置SSID为Midea_WifiBT,密码为
空
的WIFI路由器,且确保路由器能连上外网
"
,
Reminder_TEXT
:
"
请配置SSID为Midea_WifiBT,密码为
12345678
的WIFI路由器,且确保路由器能连上外网
"
,
wifiInfo_TEXT
:
"
Midea_WifiBT
"
,
wifiInfo_TEXT
:
"
Midea_WifiBT
"
,
wifiInfoWarn_TEXT
:
"
Midea_WifiBT信号强度需要大于-38dB
"
,
wifiInfoWarn_TEXT
:
"
Midea_WifiBT信号强度需要大于-38dB
"
,
wifiInfoState_TEXT
:
"
"
,
wifiInfoState_TEXT
:
"
"
,
...
@@ -1140,16 +1087,9 @@
...
@@ -1140,16 +1087,9 @@
"
./../RE860A/images/settings/passwordVisiable.png
"
,
"
./../RE860A/images/settings/passwordVisiable.png
"
,
];
];
},
},
updateMainConnectWifiShowUI
:
function
()
{
InterValTime
:
function
()
{
//console.log("=========================InterValTime====================");
wifiEventJS
.
connect_wifi
(
this
.
initWifissid
,
this
.
initWifipwd
,
this
.
initencryptedMode
);
this
.
$setY
(
"
id_hide
"
,
0
)
this
.
$setY
(
"
id_hide
"
,
0
)
var
wifiInfo
=
wifiEventJS
.
getWifiInfo
(
this
.
initWifissid
);
var
wifiInfo
=
wifiEventJS
.
getWifiInfo
(
this
.
initWifissid
);
if
(
wifiInfo
)
{
if
(
wifiInfo
)
{
this
.
initWifipwd
=
(
this
.
initWifipwd
==
""
)
?
"
空
"
:
this
.
initWifipwd
this
.
initWifipwd
=
(
this
.
initWifipwd
==
""
)
?
"
空
"
:
this
.
initWifipwd
...
@@ -1160,19 +1100,19 @@
...
@@ -1160,19 +1100,19 @@
// this.wifiInfoState_TEXT = connectStatus ? "WIFI测试成功" : "WIFI测试失败"
// this.wifiInfoState_TEXT = connectStatus ? "WIFI测试成功" : "WIFI测试失败"
this
.
$setTextColor
(
"
wifiInfoState_TEXT
"
,
connectStatus
?
"
#ff0000
"
:
"
#000000
"
);
this
.
$setTextColor
(
"
wifiInfoState_TEXT
"
,
connectStatus
?
"
#ff0000
"
:
"
#000000
"
);
//
console.log("SSID: " + wifiInfo.ssid);
console
.
log
(
"
SSID:
"
+
wifiInfo
.
ssid
);
//
console.log("Signal Level: " + wifiInfo.signalLevel + " dBm");
console
.
log
(
"
Signal Level:
"
+
wifiInfo
.
signalLevel
+
"
dBm
"
);
//
console.log("Is Encrypted: " + (wifiInfo.isEncrypted ? "Yes" : "No"));
console
.
log
(
"
Is Encrypted:
"
+
(
wifiInfo
.
isEncrypted
?
"
Yes
"
:
"
No
"
));
//
console.log("Is Connected: " + (wifiInfo.isConnected ? "WIFI测试成功" : "WIFI测试失败"));
console
.
log
(
"
Is Connected:
"
+
(
wifiInfo
.
isConnected
?
"
WIFI测试成功
"
:
"
WIFI测试失败
"
));
if
(
wifiInfo
.
isConnected
)
{
if
(
wifiInfo
.
isConnected
)
{
if
(
wifiInfo
.
signalLevel
>
-
38
)
{
if
(
wifiInfo
.
signalLevel
>
-
38
)
{
//
console.log("okok");
console
.
log
(
"
okok
"
);
this
.
$setY
(
"
id_yes
"
,
0
);
this
.
$setY
(
"
id_yes
"
,
0
);
this
.
wifiInfoState_TEXT
=
"
WIFI测试成功
"
this
.
wifiInfoState_TEXT
=
"
WIFI测试成功
"
return
;
return
;
}
else
{
}
else
{
//
console.log("no");
console
.
log
(
"
no
"
);
this
.
$setY
(
"
id_yes
"
,
-
480
);
this
.
$setY
(
"
id_yes
"
,
-
480
);
// this.wifiInfoState_TEXT = connectStatus + "但是信号强度需要大于-38dB"
// this.wifiInfoState_TEXT = connectStatus + "但是信号强度需要大于-38dB"
...
@@ -1184,10 +1124,15 @@
...
@@ -1184,10 +1124,15 @@
this
.
$setY
(
"
id_yes
"
,
-
480
);
this
.
$setY
(
"
id_yes
"
,
-
480
);
}
}
}
else
{
}
else
{
//
console.log("No WiFi information available.");
console
.
log
(
"
No WiFi information available.
"
);
}
}
this
.
wifiInfoState_TEXT
=
"
WIFI测试失败
"
this
.
wifiInfoState_TEXT
=
"
WIFI测试失败
"
},
InterValTime
:
function
()
{
console
.
log
(
"
=========================InterValTime====================
"
);
// wifiEventJS.connect_wifi(this.initWifissid, this.initWifipwd, this.initencryptedMode);
this
.
goToConnectWifi
();
},
},
onShow
:
function
()
{
onShow
:
function
()
{
...
@@ -1197,7 +1142,8 @@
...
@@ -1197,7 +1142,8 @@
this
.
$setOpacity
(
"
id_hide
"
,
0.5
)
this
.
$setOpacity
(
"
id_hide
"
,
0.5
)
document
.
setAttribute
(
'
id_enableWLANPageList
'
,
'
list-set-edge-flash
'
,
false
);
document
.
setAttribute
(
'
id_enableWLANPageList
'
,
'
list-set-edge-flash
'
,
false
);
wifiEventJS
.
connect_wifi
(
this
.
initWifissid
,
this
.
initWifipwd
,
this
.
initencryptedMode
);
// wifiEventJS.connect_wifi(this.initWifissid, this.initWifipwd, this.initencryptedMode);
this
.
goToConnectWifi
();
// wifiEventJS.enableWLANSwitch();
// wifiEventJS.enableWLANSwitch();
this
.
testTimer
=
this
.
$setTimeout
(
this
.
InterValTime
,
5000
,
[],
this
);
this
.
testTimer
=
this
.
$setTimeout
(
this
.
InterValTime
,
5000
,
[],
this
);
...
@@ -1252,20 +1198,20 @@
...
@@ -1252,20 +1198,20 @@
// this.proxy = new InstallationGeneralSettingProxy(this);
// this.proxy = new InstallationGeneralSettingProxy(this);
// this.mounted = true;
// this.mounted = true;
//}
//}
//
//
console.log("this.proxy=" + this.proxy);
//console.log("this.proxy=" + this.proxy);
//
//
console.log("\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'''''''''''''''''''''''''''''''''''''''''''''''''");
//console.log("\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'''''''''''''''''''''''''''''''''''''''''''''''''");
//this.proxy.emit("onInstallationEnableWLANSwitch");
//this.proxy.emit("onInstallationEnableWLANSwitch");
// document.setAttribute('id_dateTimeBasicPageList', 'list-set-edge-flash', false)
// document.setAttribute('id_dateTimeBasicPageList', 'list-set-edge-flash', false)
},
},
onHide
:
function
()
{
onHide
:
function
()
{
//
console.log(this.$uri + "===========onHide=============");
console
.
log
(
this
.
$uri
+
"
===========onHide=============
"
);
this
.
clearTimer
();
this
.
clearTimer
();
},
},
onQuit
:
function
()
{
onQuit
:
function
()
{
//
console.log(this.$uri + "===========onQuit=============");
console
.
log
(
this
.
$uri
+
"
===========onQuit=============
"
);
this
.
clearTimer
();
this
.
clearTimer
();
},
},
clearTimer
:
function
()
{
clearTimer
:
function
()
{
...
@@ -1277,7 +1223,7 @@
...
@@ -1277,7 +1223,7 @@
touchedYesButton
:
function
(
node
,
topNode
,
x
,
y
)
{
touchedYesButton
:
function
(
node
,
topNode
,
x
,
y
)
{
globalThis
.
factoryTest
.
wifi
=
1
;
globalThis
.
factoryTest
.
wifi
=
1
;
var
yesJumpPage
=
require
(
"
factoryYesJumpPage.js
"
);
var
yesJumpPage
=
require
(
"
factoryYesJumpPage.js
"
);
//
console.log("=====yesJumpPage.yesGoToNextPage(factoryTestWifi);")
console
.
log
(
"
=====yesJumpPage.yesGoToNextPage(factoryTestWifi);
"
)
yesJumpPage
.
yesGoToNextPage
(
"
factoryTestWifi
"
);
yesJumpPage
.
yesGoToNextPage
(
"
factoryTestWifi
"
);
},
},
touchedNGButton
:
function
(
node
,
topNode
,
x
,
y
)
{
touchedNGButton
:
function
(
node
,
topNode
,
x
,
y
)
{
...
@@ -1292,8 +1238,9 @@
...
@@ -1292,8 +1238,9 @@
});
});
},
},
touchedscanWifiList
:
function
(
node
,
topNode
,
x
,
y
)
{
touchedscanWifiList
:
function
(
node
,
topNode
,
x
,
y
)
{
//console.log("================touchedscanWifiList===============");
console
.
log
(
"
================touchedscanWifiList===============
"
);
wifiEventJS
.
enableWLANSwitch
();
// wifiEventJS.enableWLANSwitch();
this
.
scanWifiList
();
factoryDivPageJump
.
movePage
(
"
id_enableWLANChooseOnDiv
"
);
factoryDivPageJump
.
movePage
(
"
id_enableWLANChooseOnDiv
"
);
},
},
//touchedStartScanWifiButton: function (node, topNode, x, y) {
//touchedStartScanWifiButton: function (node, topNode, x, y) {
...
@@ -1304,14 +1251,14 @@
...
@@ -1304,14 +1251,14 @@
// wifiEventJS.enableWLANSwitch();
// wifiEventJS.enableWLANSwitch();
//},
//},
hideShowConnectbutton
:
function
(
option
)
{
hideShowConnectbutton
:
function
(
option
)
{
//
console.log("hideShowConnectbutton option=" + option);
console
.
log
(
"
hideShowConnectbutton option=
"
+
option
);
switch
(
option
)
{
switch
(
option
)
{
case
0
:
case
0
:
//
console.log("id_startscanWifiHide --> 0");
console
.
log
(
"
id_startscanWifiHide --> 0
"
);
this
.
$setY
(
"
id_startscanWifiHide
"
,
0
)
this
.
$setY
(
"
id_startscanWifiHide
"
,
0
)
break
;
break
;
case
1
:
case
1
:
//
console.log("id_startscanWifiHide -->1");
console
.
log
(
"
id_startscanWifiHide -->1
"
);
this
.
$setY
(
"
id_startscanWifiHide
"
,
-
480
)
this
.
$setY
(
"
id_startscanWifiHide
"
,
-
480
)
break
;
break
;
default
:
default
:
...
@@ -1320,48 +1267,100 @@
...
@@ -1320,48 +1267,100 @@
},
},
touchedStartScanWifiButton
:
function
(
node
,
topNode
,
x
,
y
)
{
touchedStartScanWifiButton
:
function
(
node
,
topNode
,
x
,
y
)
{
//console.log("touchedStartScanWifiButton");
console
.
log
(
"
touchedStartScanWifiButton
"
);
//console.log("====================================================");
console
.
log
(
"
====================================================
"
);
this
.
goToConnectWifi
();
},
preInitMainConnectWifiShowUI
:
function
()
{
this
.
initWifipwd
=
(
this
.
initWifipwd
==
""
)
?
"
空
"
:
this
.
initWifipwd
this
.
Reminder_TEXT
=
"
请配置SSID为
"
+
this
.
initWifissid
+
"
密码为
"
+
this
.
initWifipwd
+
"
的WIFI路由器,且确保路由器能连上外网
"
;
this
.
wifiInfo_TEXT
=
this
.
initWifissid
+
"
当前信号强度:
"
;
this
.
wifiInfoWarn_TEXT
=
this
.
initWifissid
+
"
信号强度需要大于-38dB
"
;
this
.
wifiInfoState_TEXT
=
"
"
;
},
goToConnectWifi
:
function
()
{
console
.
log
(
"
re goToConnectWifi
"
);
if
(
connectWifiFlag
)
return
;
// 正在连接,直接忽略
connectWifiFlag
=
true
;
// 上锁
this
.
preInitMainConnectWifiShowUI
();
this
.
hideShowConnectbutton
(
0
);
this
.
hideShowConnectbutton
(
0
);
wifiEventJS
.
connect_wifi
(
this
.
initWifissid
,
this
.
initWifipwd
,
this
.
initencryptedMode
);
wifiEventJS
.
enableWLANScanValue
();
wifiEventJS
.
connect_wifi
(
this
.
initWifissid
,
this
.
initWifipwd
,
this
.
initencryptedMode
);
setTimeout
(()
=>
{
setTimeout
(()
=>
{
this
.
hideShowConnectbutton
(
1
);
this
.
hideShowConnectbutton
(
1
);
this
.
updateMainConnectWifiShowUI
();
connectWifiFlag
=
false
;
// 解锁,允许再次点击
},
5000
);
},
5000
);
},
},
hideShowConnectListbutton
:
function
(
option
)
{
hideShowConnectListbutton
:
function
(
option
)
{
//
console.log("hideShowConnectbutton option=" + option);
console
.
log
(
"
hideShowConnectbutton option=
"
+
option
);
switch
(
option
)
{
switch
(
option
)
{
case
0
:
case
0
:
//
console.log("id_startscanWifi_List_hide --> 0");
console
.
log
(
"
id_startscanWifi_List_hide --> 0
"
);
this
.
$setY
(
"
id_startscanWifi_List_hide
"
,
0
)
this
.
$setY
(
"
id_startscanWifi_List_hide
"
,
0
)
break
;
break
;
case
1
:
case
1
:
//
console.log("id_startscanWifi_List_hide -->1");
console
.
log
(
"
id_startscanWifi_List_hide -->1
"
);
this
.
$setY
(
"
id_startscanWifi_List_hide
"
,
-
480
)
this
.
$setY
(
"
id_startscanWifi_List_hide
"
,
-
480
)
break
;
break
;
default
:
default
:
break
;
break
;
}
}
},
},
noclickBuntton
:
function
(
node
,
topNode
,
x
,
y
)
{
},
touchedStartScanWifiDetailsButton
:
function
(
node
,
topNode
,
x
,
y
)
{
// scanWifiList: function () {
//console.log("========touchedStartScanWifiDetailsButton=======");
// if (scanWifiFlag == true)
this
.
hideShowConnectListbutton
(
0
)
// return;
wifiEventJS
.
enableWLANSwitch
();
// if (idtimerOutScanWifiList != null) {
// clearTimeout(idtimerOutScanWifiList);
// idtimerOutScanWifiList = null;
// }
// idtimerOutScanWifiList = setTimeout(() => {
// var scanWifiFlag = true;
// console.log("========scanWifiList=======");
// this.hideShowConnectListbutton(0)
// wifiEventJS.enableWLANSwitch();
// setTimeout(() => {
// this.hideShowConnectListbutton(1);
// scanWifiFlag = false;
// }, 5000);
// }, 100);
// },
scanWifiList
:
function
()
{
if
(
scanWifiFlag
)
return
;
// 正在扫描中,直接忽略
scanWifiFlag
=
true
;
// 上锁
this
.
hideShowConnectListbutton
(
0
);
// 显示“扫描中”遮罩
// 5 秒后无论结果如何都结束
setTimeout
(()
=>
{
setTimeout
(()
=>
{
this
.
hideShowConnectListbutton
(
1
);
this
.
hideShowConnectListbutton
(
1
);
// 放开按钮
scanWifiFlag
=
false
;
// 解锁,允许下一次
},
5000
);
},
5000
);
wifiEventJS
.
enableWLANSwitch
();
// 真正开始扫描
},
touchedStartScanWifiDetailsButton
:
function
(
node
,
topNode
,
x
,
y
)
{
console
.
log
(
"
========touchedStartScanWifiDetailsButton=======
"
);
this
.
scanWifiList
();
},
},
touchedDetailsBackButton
:
function
(
node
,
topNode
,
x
,
y
)
{
touchedDetailsBackButton
:
function
(
node
,
topNode
,
x
,
y
)
{
//
console.log("========touchedDetailsBackButton=======");
console
.
log
(
"
========touchedDetailsBackButton=======
"
);
factoryDivPageJump
.
movePage
(
"
wifiHmoe
"
);
factoryDivPageJump
.
movePage
(
"
wifiHmoe
"
);
},
},
touchedStartScanWifiDetailsInputPasswordButton
:
function
(
node
,
topNode
,
x
,
y
)
{
touchedStartScanWifiDetailsInputPasswordButton
:
function
(
node
,
topNode
,
x
,
y
)
{
//
console.log("========touchedStartScanWifiDetailsInputPasswordButton=======");
console
.
log
(
"
========touchedStartScanWifiDetailsInputPasswordButton=======
"
);
//wifiEventJS.enableWLANSwitch();
//wifiEventJS.enableWLANSwitch();
factoryDivPageJump
.
movePage
(
"
wifiHmoe
"
);
factoryDivPageJump
.
movePage
(
"
wifiHmoe
"
);
var
factory_testWifi
=
require
(
"
factory_testWifi.js
"
);
var
factory_testWifi
=
require
(
"
factory_testWifi.js
"
);
...
@@ -1370,7 +1369,7 @@
...
@@ -1370,7 +1369,7 @@
},
},
touchedDetailsBackInputPasswordButton
:
function
(
node
,
topNode
,
x
,
y
)
{
touchedDetailsBackInputPasswordButton
:
function
(
node
,
topNode
,
x
,
y
)
{
//
console.log("========touchedDetailsBackInputPasswordButton=======");
console
.
log
(
"
========touchedDetailsBackInputPasswordButton=======
"
);
factoryDivPageJump
.
movePage
(
"
id_enableWLANChooseOnDiv
"
);
factoryDivPageJump
.
movePage
(
"
id_enableWLANChooseOnDiv
"
);
},
},
...
@@ -1475,7 +1474,7 @@
...
@@ -1475,7 +1474,7 @@
break
;
break
;
}
}
default
:
{
default
:
{
//
console.log("id is not defined!");
console
.
log
(
"
id is not defined!
"
);
break
;
break
;
}
}
}
}
...
@@ -1610,20 +1609,20 @@
...
@@ -1610,20 +1609,20 @@
},
},
chooseLanguagePickSelVal
:
function
(
node
,
value
)
{
chooseLanguagePickSelVal
:
function
(
node
,
value
)
{
//
console.log("choosed language=" + value);
console
.
log
(
"
choosed language=
"
+
value
);
this
.
chooseLanguagePickSel
=
value
;
this
.
chooseLanguagePickSel
=
value
;
// userData.languageChooseFlag = value;
// userData.languageChooseFlag = value;
},
},
chooseCountryPickSelVal
:
function
(
node
,
value
)
{
chooseCountryPickSelVal
:
function
(
node
,
value
)
{
//
console.log("choosed country=" + value);
console
.
log
(
"
choosed country=
"
+
value
);
this
.
chooseCountryPickSel
=
value
;
this
.
chooseCountryPickSel
=
value
;
// userData.countryChooseValue = value;
// userData.countryChooseValue = value;
},
},
chooseTimeZonePickSelVal
:
function
(
node
,
value
)
{
chooseTimeZonePickSelVal
:
function
(
node
,
value
)
{
//
console.log("choosed timeZone=" + value);
console
.
log
(
"
choosed timeZone=
"
+
value
);
this
.
chooseTimeZonePickSel
=
value
;
this
.
chooseTimeZonePickSel
=
value
;
// userData.timeZoneChooseValue = value;
// userData.timeZoneChooseValue = value;
},
},
...
@@ -1634,7 +1633,7 @@
...
@@ -1634,7 +1633,7 @@
var
yearNum
=
userData
.
setTime
.
setYear
;
var
yearNum
=
userData
.
setTime
.
setYear
;
var
monthNum
=
userData
.
setTime
.
setMonth
;
var
monthNum
=
userData
.
setTime
.
setMonth
;
var
maxDayNum
=
this
.
checkMonthToMaxDay
(
yearNum
,
monthNum
);
var
maxDayNum
=
this
.
checkMonthToMaxDay
(
yearNum
,
monthNum
);
//
console.log("maxDayNum=" + maxDayNum);
console
.
log
(
"
maxDayNum=
"
+
maxDayNum
);
switch
(
maxDayNum
)
{
switch
(
maxDayNum
)
{
case
28
:
{
case
28
:
{
this
.
setTimePickerDayOpt
=
this
.
setTimePickerDayOptMax28
;
this
.
setTimePickerDayOpt
=
this
.
setTimePickerDayOptMax28
;
...
@@ -1661,7 +1660,7 @@
...
@@ -1661,7 +1660,7 @@
break
;
break
;
}
}
default
:
{
default
:
{
//
console.log("This month day is error!");
console
.
log
(
"
This month day is error!
"
);
break
;
break
;
}
}
}
}
...
@@ -1672,10 +1671,10 @@
...
@@ -1672,10 +1671,10 @@
var
maxDay
=
0
;
var
maxDay
=
0
;
if
(
yeatValue
%
4
==
0
&&
yeatValue
%
100
!=
0
||
yeatValue
%
400
==
0
)
{
if
(
yeatValue
%
4
==
0
&&
yeatValue
%
100
!=
0
||
yeatValue
%
400
==
0
)
{
leapOrCommonFlag
=
1
;
leapOrCommonFlag
=
1
;
//
console.log("This year is a leap year!")
console
.
log
(
"
This year is a leap year!
"
)
}
else
{
}
else
{
leapOrCommonFlag
=
0
;
leapOrCommonFlag
=
0
;
//
console.log("This year is a common year!")
console
.
log
(
"
This year is a common year!
"
)
}
}
switch
(
monthValue
)
{
switch
(
monthValue
)
{
case
1
:
{
}
case
1
:
{
}
...
@@ -1704,7 +1703,7 @@
...
@@ -1704,7 +1703,7 @@
break
;
break
;
}
}
default
:
default
:
//
console.log("This year num is error!");
console
.
log
(
"
This year num is error!
"
);
break
;
break
;
}
}
return
maxDay
;
return
maxDay
;
...
@@ -1749,9 +1748,9 @@
...
@@ -1749,9 +1748,9 @@
}
else
{
}
else
{
this
.
setTimePickerDaySel
=
dayNum
-
1
;
this
.
setTimePickerDaySel
=
dayNum
-
1
;
}
}
//
console.log("this.setTimePickerYearSel=" + this.setTimePickerYearSel);
console
.
log
(
"
this.setTimePickerYearSel=
"
+
this
.
setTimePickerYearSel
);
//
console.log("this.setTimePickerMonthSel=" + this.setTimePickerMonthSel);
console
.
log
(
"
this.setTimePickerMonthSel=
"
+
this
.
setTimePickerMonthSel
);
//
console.log("this.setTimePickerDaySel=" + this.setTimePickerDaySel);
console
.
log
(
"
this.setTimePickerDaySel=
"
+
this
.
setTimePickerDaySel
);
},
},
loadToSet12HTimeValuePage
:
function
()
{
loadToSet12HTimeValuePage
:
function
()
{
...
@@ -1800,33 +1799,33 @@
...
@@ -1800,33 +1799,33 @@
this
.
setTimePickerYearSel
=
value
;
this
.
setTimePickerYearSel
=
value
;
userData
.
setTime
.
setYear
=
this
.
setTimePickerYearSel
+
2020
;
userData
.
setTime
.
setYear
=
this
.
setTimePickerYearSel
+
2020
;
this
.
setDayOpt
();
this
.
setDayOpt
();
//
console.log("this.setTimePickerYearSel=" + this.setTimePickerYearSel);
console
.
log
(
"
this.setTimePickerYearSel=
"
+
this
.
setTimePickerYearSel
);
//
console.log("year val=" + userData.setTime.setYear);
console
.
log
(
"
year val=
"
+
userData
.
setTime
.
setYear
);
},
},
setTimePickerMonthVal
:
function
(
node
,
value
)
{
setTimePickerMonthVal
:
function
(
node
,
value
)
{
this
.
setTimePickerMonthSel
=
value
;
this
.
setTimePickerMonthSel
=
value
;
userData
.
setTime
.
setMonth
=
this
.
setTimePickerMonthSel
+
1
;
userData
.
setTime
.
setMonth
=
this
.
setTimePickerMonthSel
+
1
;
this
.
setDayOpt
();
this
.
setDayOpt
();
//
console.log("this.setTimePickerMonthSel=" + this.setTimePickerMonthSel);
console
.
log
(
"
this.setTimePickerMonthSel=
"
+
this
.
setTimePickerMonthSel
);
//
console.log("month val=" + userData.setTime.setMonth);
console
.
log
(
"
month val=
"
+
userData
.
setTime
.
setMonth
);
},
},
setTimePickerDayVal
:
function
(
node
,
value
)
{
setTimePickerDayVal
:
function
(
node
,
value
)
{
var
fixValue
=
0
;
var
fixValue
=
0
;
if
(
value
>=
this
.
setTimePickerDayOpt
.
length
)
{
if
(
value
>=
this
.
setTimePickerDayOpt
.
length
)
{
//
console.log("This is a error value=" + value);
console
.
log
(
"
This is a error value=
"
+
value
);
//
console.log("in setTimePickerDayVal functions value is error!");
console
.
log
(
"
in setTimePickerDayVal functions value is error!
"
);
fixValue
=
this
.
setTimePickerDayOpt
.
length
-
1
;
fixValue
=
this
.
setTimePickerDayOpt
.
length
-
1
;
this
.
setTimePickerDaySel
=
fixValue
-
1
;
this
.
setTimePickerDaySel
=
fixValue
-
1
;
//
console.log("After fix ,this value=" + fixValue);
console
.
log
(
"
After fix ,this value=
"
+
fixValue
);
this
.
setTimePickerDaySel
=
fixValue
;
this
.
setTimePickerDaySel
=
fixValue
;
}
else
{
}
else
{
this
.
setTimePickerDaySel
=
value
;
this
.
setTimePickerDaySel
=
value
;
}
}
userData
.
setTime
.
setDay
=
this
.
setTimePickerDaySel
+
1
;
userData
.
setTime
.
setDay
=
this
.
setTimePickerDaySel
+
1
;
//
console.log("this.setTimePickerDaySel=" + this.setTimePickerDaySel);
console
.
log
(
"
this.setTimePickerDaySel=
"
+
this
.
setTimePickerDaySel
);
//
console.log("day val=" + userData.setTime.setDay);
console
.
log
(
"
day val=
"
+
userData
.
setTime
.
setDay
);
},
},
setTimePicker24HourVal
:
function
(
node
,
value
)
{
setTimePicker24HourVal
:
function
(
node
,
value
)
{
...
@@ -1837,8 +1836,8 @@
...
@@ -1837,8 +1836,8 @@
}
else
{
}
else
{
userData
.
AMPMFlag
=
1
;
userData
.
AMPMFlag
=
1
;
}
}
//
console.log("this.setTimePicker24HourSel=" + this.setTimePicker24HourSel);
console
.
log
(
"
this.setTimePicker24HourSel=
"
+
this
.
setTimePicker24HourSel
);
//
console.log("hour val=" + userData.setTime.setHour);
console
.
log
(
"
hour val=
"
+
userData
.
setTime
.
setHour
);
},
},
setTimePicker12HourVal
:
function
(
node
,
value
)
{
setTimePicker12HourVal
:
function
(
node
,
value
)
{
...
@@ -1856,23 +1855,23 @@
...
@@ -1856,23 +1855,23 @@
}
}
}
}
userData
.
setTime
.
setHour
=
hourValue
;
userData
.
setTime
.
setHour
=
hourValue
;
//
console.log("this.setTimePicker12HourSel=" + this.setTimePicker12HourSel);
console
.
log
(
"
this.setTimePicker12HourSel=
"
+
this
.
setTimePicker12HourSel
);
//
console.log("hour val=" + userData.setTime.setHour);
console
.
log
(
"
hour val=
"
+
userData
.
setTime
.
setHour
);
},
},
setTimePickerMinuteVal
:
function
(
node
,
value
)
{
setTimePickerMinuteVal
:
function
(
node
,
value
)
{
this
.
setTimePickerMinuteSel
=
value
;
this
.
setTimePickerMinuteSel
=
value
;
userData
.
setTime
.
setMinute
=
this
.
setTimePickerMinuteSel
;
userData
.
setTime
.
setMinute
=
this
.
setTimePickerMinuteSel
;
//
console.log("this.setTimePickerMinuteSel=" + this.setTimePickerMinuteSel);
console
.
log
(
"
this.setTimePickerMinuteSel=
"
+
this
.
setTimePickerMinuteSel
);
//
console.log("minute val=" + userData.setTime.setMinute);
console
.
log
(
"
minute val=
"
+
userData
.
setTime
.
setMinute
);
},
},
setTimePickerAMPMVal
:
function
(
node
,
value
)
{
setTimePickerAMPMVal
:
function
(
node
,
value
)
{
this
.
setTimePickerAMPMSel
=
value
;
this
.
setTimePickerAMPMSel
=
value
;
userData
.
AMPMFlag
=
this
.
setTimePickerAMPMSel
;
userData
.
AMPMFlag
=
this
.
setTimePickerAMPMSel
;
//
console.log("this.setTimePickerAMPMSel=" + this.setTimePickerAMPMSel);
console
.
log
(
"
this.setTimePickerAMPMSel=
"
+
this
.
setTimePickerAMPMSel
);
//
console.log("AMPM val=" + userData.AMPMFlag);
console
.
log
(
"
AMPM val=
"
+
userData
.
AMPMFlag
);
//
console.log("userData.setTime.setHour=" + userData.setTime.setHour);
console
.
log
(
"
userData.setTime.setHour=
"
+
userData
.
setTime
.
setHour
);
},
},
leftAreaButtonClick
:
function
(
node
,
topnode
,
x
,
y
)
{
leftAreaButtonClick
:
function
(
node
,
topnode
,
x
,
y
)
{
...
@@ -1887,7 +1886,7 @@
...
@@ -1887,7 +1886,7 @@
var
special
=
node
.
attributes
.
special
;
var
special
=
node
.
attributes
.
special
;
if
(
special
)
{
if
(
special
)
{
//
//
console.log("special=" + special);
// console.log("special=" + special);
if
(
special
==
"
backspace
"
)
{
if
(
special
==
"
backspace
"
)
{
if
(
this
.
output
.
length
>=
1
)
{
if
(
this
.
output
.
length
>=
1
)
{
this
.
output
=
this
.
output
.
slice
(
0
,
-
1
);
this
.
output
=
this
.
output
.
slice
(
0
,
-
1
);
...
@@ -1918,8 +1917,8 @@
...
@@ -1918,8 +1917,8 @@
if
(
this
.
output
.
length
>
18
)
{
//设置一个最大的范围,最多输入多少位? 暂时设置最多18位
if
(
this
.
output
.
length
>
18
)
{
//设置一个最大的范围,最多输入多少位? 暂时设置最多18位
return
;
return
;
}
}
//
console.log("special=" + special);
console
.
log
(
"
special=
"
+
special
);
//
console.log("this.letterOrSOrBSymbolFlag=" + this.letterOrSOrBSymbolFlag);
console
.
log
(
"
this.letterOrSOrBSymbolFlag=
"
+
this
.
letterOrSOrBSymbolFlag
);
if
(
ch
)
{
if
(
ch
)
{
this
.
output
+=
this
.
keyBoardValueArray
[
this
.
letterOrSOrBSymbolFlag
][
ch
];
this
.
output
+=
this
.
keyBoardValueArray
[
this
.
letterOrSOrBSymbolFlag
][
ch
];
this
.
invisiableOutput
+=
"
`
"
;
this
.
invisiableOutput
+=
"
`
"
;
...
@@ -1933,7 +1932,7 @@
...
@@ -1933,7 +1932,7 @@
this
.
invisiableOutput
+=
"
`
"
;
this
.
invisiableOutput
+=
"
`
"
;
}
}
if
(
special
==
"
enter
"
&&
this
.
output
.
length
>=
8
)
{
if
(
special
==
"
enter
"
&&
this
.
output
.
length
>=
8
)
{
//
console.log("send onInstallationGeneralSettingConnectWifi signal!");
console
.
log
(
"
send onInstallationGeneralSettingConnectWifi signal!
"
);
factoryDivPageJump
.
movePage
(
"
wifiHmoe
"
);
factoryDivPageJump
.
movePage
(
"
wifiHmoe
"
);
var
factory_testWifi
=
require
(
"
factory_testWifi.js
"
);
var
factory_testWifi
=
require
(
"
factory_testWifi.js
"
);
...
@@ -1944,7 +1943,7 @@
...
@@ -1944,7 +1943,7 @@
}
}
}
}
//
console.log("this.output=" + this.output);
console
.
log
(
"
this.output=
"
+
this
.
output
);
if
(
this
.
input_id
==
"
username
"
)
{
if
(
this
.
input_id
==
"
username
"
)
{
document
.
setAttribute
(
"
username
"
,
"
text
"
,
this
.
output
)
document
.
setAttribute
(
"
username
"
,
"
text
"
,
this
.
output
)
this
.
username
=
this
.
output
;
this
.
username
=
this
.
output
;
...
@@ -1974,8 +1973,8 @@
...
@@ -1974,8 +1973,8 @@
// this.setOpacity(node, 0.5)
// this.setOpacity(node, 0.5)
var
ch
=
node
.
attributes
.
value
;
var
ch
=
node
.
attributes
.
value
;
var
special
=
node
.
attributes
.
special
;
var
special
=
node
.
attributes
.
special
;
//
console.log("ch=" + ch);
console
.
log
(
"
ch=
"
+
ch
);
//
console.log("special=" + special);
console
.
log
(
"
special=
"
+
special
);
if
(
this
.
output
.
length
<
8
&&
special
==
"
enter
"
)
{
if
(
this
.
output
.
length
<
8
&&
special
==
"
enter
"
)
{
//this.$setY("id_hide", 0)
//this.$setY("id_hide", 0)
...
@@ -2003,7 +2002,7 @@
...
@@ -2003,7 +2002,7 @@
this
.
$setY
(
"
id_normalKeyboardPng
"
,
setPngY
);
this
.
$setY
(
"
id_normalKeyboardPng
"
,
setPngY
);
var
normalPngName
=
"
./images/settings/keyboardSlices/
"
+
this
.
concatenationFieldName
[
this
var
normalPngName
=
"
./images/settings/keyboardSlices/
"
+
this
.
concatenationFieldName
[
this
.
letterOrSOrBSymbolFlag
]
+
"
LineFeedback
"
+
ch
+
"
.png
"
;
.
letterOrSOrBSymbolFlag
]
+
"
LineFeedback
"
+
ch
+
"
.png
"
;
//
console.log("normalPngName=" + normalPngName);
console
.
log
(
"
normalPngName=
"
+
normalPngName
);
this
.
normalKeyboardPngSrc
=
normalPngName
;
this
.
normalKeyboardPngSrc
=
normalPngName
;
}
}
...
@@ -2074,19 +2073,19 @@
...
@@ -2074,19 +2073,19 @@
windowWlanButtonBoxClick
:
function
(
node
,
topNode
,
x
,
y
)
{
windowWlanButtonBoxClick
:
function
(
node
,
topNode
,
x
,
y
)
{
//
console.log("send onWindowWlanButtonBoxClick signal!");
console
.
log
(
"
send onWindowWlanButtonBoxClick signal!
"
);
// //this.proxy.emit("onInstallationWindowWlanButtonBoxClick");
// //this.proxy.emit("onInstallationWindowWlanButtonBoxClick");
//this.evenSimu("onWindowButtonBoxClick")
//this.evenSimu("onWindowButtonBoxClick")
},
},
windowWlanButtonCancelBoxClick
:
function
(
node
,
topNode
,
x
,
y
)
{
windowWlanButtonCancelBoxClick
:
function
(
node
,
topNode
,
x
,
y
)
{
//
console.log("send onInstallationWindowWlanButtonCancelBoxClick signal!");
console
.
log
(
"
send onInstallationWindowWlanButtonCancelBoxClick signal!
"
);
// //this.proxy.emit("onInstallationWindowWlanButtonCancelBoxClick");
// //this.proxy.emit("onInstallationWindowWlanButtonCancelBoxClick");
// this.evenSimu("onWindowWlanButtonCancelBoxClick")
// this.evenSimu("onWindowWlanButtonCancelBoxClick")
},
},
enableCancelAtiveWLANClick
:
function
(
node
,
topNode
,
x
,
y
)
{
enableCancelAtiveWLANClick
:
function
(
node
,
topNode
,
x
,
y
)
{
//
console.log("send onEnableCancelAtiveWLANClick signal!");
console
.
log
(
"
send onEnableCancelAtiveWLANClick signal!
"
);
////this.proxy.emit("onEnableCancelAtiveWLANClick");
////this.proxy.emit("onEnableCancelAtiveWLANClick");
// this.evenSimu("onEnableWLANSwitchClick")
// this.evenSimu("onEnableWLANSwitchClick")
...
@@ -2106,7 +2105,7 @@
...
@@ -2106,7 +2105,7 @@
gotoCountrySetPageClick
:
function
(
node
,
topNode
,
x
,
y
)
{
gotoCountrySetPageClick
:
function
(
node
,
topNode
,
x
,
y
)
{
//this.proxy.emit("onInstallationGeneralSettingGotoCountrySetPageClick");
//this.proxy.emit("onInstallationGeneralSettingGotoCountrySetPageClick");
//this.evenSimu("onGeneralSettingGotoCountrySetPageClick")
//this.evenSimu("onGeneralSettingGotoCountrySetPageClick")
//
console.log("send onInstallationGeneralSettingGotoCountrySetPageClick signal!");
console
.
log
(
"
send onInstallationGeneralSettingGotoCountrySetPageClick signal!
"
);
},
},
chooseCountryBackClick
:
function
(
node
,
topNode
,
x
,
y
)
{
chooseCountryBackClick
:
function
(
node
,
topNode
,
x
,
y
)
{
...
@@ -2115,20 +2114,20 @@
...
@@ -2115,20 +2114,20 @@
}
}
//this.proxy.emit("onChooseCountryBackClick");
//this.proxy.emit("onChooseCountryBackClick");
// this.evenSimu("onCountrySetConfirmButtonClick")
// this.evenSimu("onCountrySetConfirmButtonClick")
//
console.log("send onChooseCountryBackClick signal!");
console
.
log
(
"
send onChooseCountryBackClick signal!
"
);
},
},
countrySetConfirmButtonClick
:
function
(
node
,
topNode
,
x
,
y
)
{
countrySetConfirmButtonClick
:
function
(
node
,
topNode
,
x
,
y
)
{
//this.proxy.emit("onInstallationCountrySetConfirmButtonClick");
//this.proxy.emit("onInstallationCountrySetConfirmButtonClick");
// this.evenSimu("onCountrySetConfirmButtonClick")
// this.evenSimu("onCountrySetConfirmButtonClick")
//
console.log("send onInstallationCountrySetConfirmButtonClick signal!");
console
.
log
(
"
send onInstallationCountrySetConfirmButtonClick signal!
"
);
},
},
backToWirelessNetworkBasicPage
:
function
(
node
,
topNode
,
x
,
y
)
{
backToWirelessNetworkBasicPage
:
function
(
node
,
topNode
,
x
,
y
)
{
if
(
x
>
120
)
{
if
(
x
>
120
)
{
return
;
return
;
}
}
//
console.log("send onBackToWirelessNetworkBasicPage signal!");
console
.
log
(
"
send onBackToWirelessNetworkBasicPage signal!
"
);
//this.proxy.emit("onBackToWirelessNetworkBasicPage");
//this.proxy.emit("onBackToWirelessNetworkBasicPage");
},
},
...
@@ -2138,18 +2137,18 @@
...
@@ -2138,18 +2137,18 @@
}
}
//this.proxy.emit("onChooseTimeZoneBackClick");
//this.proxy.emit("onChooseTimeZoneBackClick");
// this.evenSimu("onTimeZoneSetConfirmButtonClick")
// this.evenSimu("onTimeZoneSetConfirmButtonClick")
//
console.log("send onChooseTimeZoneBackClick signal!");
console
.
log
(
"
send onChooseTimeZoneBackClick signal!
"
);
},
},
timeZoneSetConfirmButtonClick
:
function
(
node
,
topNode
,
x
,
y
)
{
timeZoneSetConfirmButtonClick
:
function
(
node
,
topNode
,
x
,
y
)
{
//this.proxy.emit("onInstallationTimeZoneSetConfirmButtonClick");
//this.proxy.emit("onInstallationTimeZoneSetConfirmButtonClick");
// this.evenSimu("onTimeZoneSetConfirmButtonClick")
// this.evenSimu("onTimeZoneSetConfirmButtonClick")
//
console.log("send onInstallationTimeZoneSetConfirmButtonClick signal!");
console
.
log
(
"
send onInstallationTimeZoneSetConfirmButtonClick signal!
"
);
},
},
gotoTimeZoneSetPageClick
:
function
(
node
,
topNode
,
x
,
y
)
{
gotoTimeZoneSetPageClick
:
function
(
node
,
topNode
,
x
,
y
)
{
//this.proxy.emit("onInstallationGeneralSettingGotoTimeZoneSetPageClick");
//this.proxy.emit("onInstallationGeneralSettingGotoTimeZoneSetPageClick");
//this.evenSimu("onInstallationGeneralSettingGotoTimeZoneSetPageClick")
//this.evenSimu("onInstallationGeneralSettingGotoTimeZoneSetPageClick")
//
console.log("send onInstallationGeneralSettingGotoTimeZoneSetPageClick signal!");
console
.
log
(
"
send onInstallationGeneralSettingGotoTimeZoneSetPageClick signal!
"
);
},
},
refreshDateTimePage
:
function
(
dateFlag
,
timeFlag
)
{
refreshDateTimePage
:
function
(
dateFlag
,
timeFlag
)
{
if
(
dateFlag
==
0
)
{
if
(
dateFlag
==
0
)
{
...
@@ -2195,7 +2194,7 @@
...
@@ -2195,7 +2194,7 @@
},
},
gotoSetDateFormatPage
:
function
()
{
gotoSetDateFormatPage
:
function
()
{
//
console.log("run gotoSetDateFormatPage function!");
console
.
log
(
"
run gotoSetDateFormatPage function!
"
);
this
.
showDateFormatFlag
=
1
-
this
.
showDateFormatFlag
;
this
.
showDateFormatFlag
=
1
-
this
.
showDateFormatFlag
;
this
.
showTimeFormatFlag
=
0
;
this
.
showTimeFormatFlag
=
0
;
this
.
refreshDateTimePage
(
this
.
showDateFormatFlag
,
this
.
showTimeFormatFlag
);
this
.
refreshDateTimePage
(
this
.
showDateFormatFlag
,
this
.
showTimeFormatFlag
);
...
@@ -2203,7 +2202,7 @@
...
@@ -2203,7 +2202,7 @@
gotoSetDateValuePage
:
function
()
{
gotoSetDateValuePage
:
function
()
{
this
.
loadToSetDateValuePage
();
this
.
loadToSetDateValuePage
();
//
console.log("send onInstallationOnGotoGeneralSettingSetDateValuePage signal!");
console
.
log
(
"
send onInstallationOnGotoGeneralSettingSetDateValuePage signal!
"
);
//this.proxy.emit("onInstallationOnGotoGeneralSettingSetDateValuePage");
//this.proxy.emit("onInstallationOnGotoGeneralSettingSetDateValuePage");
this
.
evenSimu
(
"
onInstallationGotoGeneralSettingSetDateValuePage
"
)
this
.
evenSimu
(
"
onInstallationGotoGeneralSettingSetDateValuePage
"
)
...
@@ -2212,17 +2211,17 @@
...
@@ -2212,17 +2211,17 @@
backToDateTimePageClick
:
function
(
node
,
topNode
,
x
,
y
)
{
backToDateTimePageClick
:
function
(
node
,
topNode
,
x
,
y
)
{
// this.saveDateValue();
// this.saveDateValue();
//this.proxy.emit("onBackToDateTimePageClick");
//this.proxy.emit("onBackToDateTimePageClick");
//
console.log("send onBackToDateTimePageClick signal!");
console
.
log
(
"
send onBackToDateTimePageClick signal!
"
);
},
},
dateSetConfirmButtonClick
:
function
(
node
,
topNode
,
x
,
y
)
{
dateSetConfirmButtonClick
:
function
(
node
,
topNode
,
x
,
y
)
{
// this.saveDateValue();
// this.saveDateValue();
//this.proxy.emit("onInstallationDateSetConfirmButtonClick");
//this.proxy.emit("onInstallationDateSetConfirmButtonClick");
this
.
evenSimu
(
"
onInstallationDateSetConfirmButtonClick
"
)
this
.
evenSimu
(
"
onInstallationDateSetConfirmButtonClick
"
)
//
console.log("send onInstallationDateSetConfirmButtonClick signal!");
console
.
log
(
"
send onInstallationDateSetConfirmButtonClick signal!
"
);
},
},
evenSimu
:
function
(
emitName
,
value
)
{
evenSimu
:
function
(
emitName
,
value
)
{
//
console.log("{evenSimu}emitName=" + emitName + " value=" + value)
console
.
log
(
"
{evenSimu}emitName=
"
+
emitName
+
"
value=
"
+
value
)
switch
(
emitName
)
{
switch
(
emitName
)
{
case
"
onInstallationGotoGeneralSettingSetDateValuePage
"
:
{
case
"
onInstallationGotoGeneralSettingSetDateValuePage
"
:
{
this
.
$setY
(
this
.
activePage
,
-
480
);
this
.
$setY
(
this
.
activePage
,
-
480
);
...
@@ -2269,7 +2268,7 @@
...
@@ -2269,7 +2268,7 @@
break
;
break
;
}
}
default
:
{
default
:
{
//
console.log("undefined emitName:" + emitName);
console
.
log
(
"
undefined emitName:
"
+
emitName
);
break
;
break
;
}
}
}
}
...
@@ -2278,18 +2277,18 @@
...
@@ -2278,18 +2277,18 @@
// this.saveTimeValue();
// this.saveTimeValue();
//this.proxy.emit("installationOnTimeSetConfirmButtonClick");
//this.proxy.emit("installationOnTimeSetConfirmButtonClick");
this
.
evenSimu
(
"
installationOnTimeSetConfirmButtonClick
"
)
this
.
evenSimu
(
"
installationOnTimeSetConfirmButtonClick
"
)
//
console.log("send installationOnTimeSetConfirmButtonClick signal!");
console
.
log
(
"
send installationOnTimeSetConfirmButtonClick signal!
"
);
},
},
setTime24HConfirmButtonClick
:
function
(
node
,
topNode
,
x
,
y
)
{
setTime24HConfirmButtonClick
:
function
(
node
,
topNode
,
x
,
y
)
{
// this.saveTimeValue();
// this.saveTimeValue();
//this.proxy.emit("installationOnTimeSetConfirmButtonClick");
//this.proxy.emit("installationOnTimeSetConfirmButtonClick");
this
.
evenSimu
(
"
installationOnTimeSetConfirmButtonClick
"
)
this
.
evenSimu
(
"
installationOnTimeSetConfirmButtonClick
"
)
//
console.log("send installationOnTimeSetConfirmButtonClick signal!");
console
.
log
(
"
send installationOnTimeSetConfirmButtonClick signal!
"
);
},
},
gotoSetTimeFormatPage
:
function
()
{
gotoSetTimeFormatPage
:
function
()
{
//
console.log("run gotoSetTimeFormatPage function!");
console
.
log
(
"
run gotoSetTimeFormatPage function!
"
);
this
.
showDateFormatFlag
=
0
;
this
.
showDateFormatFlag
=
0
;
this
.
showTimeFormatFlag
=
1
-
this
.
showTimeFormatFlag
;
this
.
showTimeFormatFlag
=
1
-
this
.
showTimeFormatFlag
;
...
@@ -2302,7 +2301,7 @@
...
@@ -2302,7 +2301,7 @@
}
else
if
(
userData
.
timeFormatFlag
==
1
)
{
}
else
if
(
userData
.
timeFormatFlag
==
1
)
{
this
.
loadToSet24HTimeValuePage
();
this
.
loadToSet24HTimeValuePage
();
}
}
//
console.log("send onInstallationOnGotoSetTimeValuePage signal!");
console
.
log
(
"
send onInstallationOnGotoSetTimeValuePage signal!
"
);
//this.proxy.emit("onInstallationOnGotoSetTimeValuePage");
//this.proxy.emit("onInstallationOnGotoSetTimeValuePage");
this
.
evenSimu
(
"
onInstallationOnGotoSetTimeValuePage
"
)
this
.
evenSimu
(
"
onInstallationOnGotoSetTimeValuePage
"
)
},
},
...
@@ -2319,15 +2318,15 @@
...
@@ -2319,15 +2318,15 @@
},
},
clickDateTimeList
:
function
(
node
,
topNode
,
x
,
y
)
{
clickDateTimeList
:
function
(
node
,
topNode
,
x
,
y
)
{
//
//
console.log(x);
// console.log(x);
//
//
console.log(y);
// console.log(y);
var
id
=
this
.
$eval
(
topNode
,
"
id
"
)
var
id
=
this
.
$eval
(
topNode
,
"
id
"
)
//
console.log("clicked id=" + id);
console
.
log
(
"
clicked id=
"
+
id
);
if
(
id
==
undefined
)
{
if
(
id
==
undefined
)
{
return
;
return
;
}
}
var
clickValue
=
Number
(
id
.
replace
(
"
id_dateTimeListAreaCover
"
,
""
));
var
clickValue
=
Number
(
id
.
replace
(
"
id_dateTimeListAreaCover
"
,
""
));
//
console.log("clickValue=" + clickValue);
console
.
log
(
"
clickValue=
"
+
clickValue
);
if
(
Number
.
isNaN
(
clickValue
))
{
if
(
Number
.
isNaN
(
clickValue
))
{
return
;
return
;
}
}
...
@@ -2379,7 +2378,7 @@
...
@@ -2379,7 +2378,7 @@
}
}
break
;
break
;
default
:
default
:
//
console.log("clickDateTimeList clickValue error!");
console
.
log
(
"
clickDateTimeList clickValue error!
"
);
break
;
break
;
}
}
},
},
...
@@ -2393,11 +2392,11 @@
...
@@ -2393,11 +2392,11 @@
return
'
0
'
+
num
.
toString
();
return
'
0
'
+
num
.
toString
();
}
else
{
}
else
{
// 如果是小于0或三位数以上的数,这里可以根据需要处理
// 如果是小于0或三位数以上的数,这里可以根据需要处理
//
console.log('Number is not within expected range');
console
.
log
(
'
Number is not within expected range
'
);
}
}
},
},
chooseDateFormatClick
:
function
(
node
,
topNode
,
x
,
y
)
{
chooseDateFormatClick
:
function
(
node
,
topNode
,
x
,
y
)
{
//
console.log("send onChooseDateFormatClick signal!");
console
.
log
(
"
send onChooseDateFormatClick signal!
"
);
//this.proxy.emit("onChooseDateFormatClick");
//this.proxy.emit("onChooseDateFormatClick");
this
.
evenSimu
(
"
onChooseDateFormatClick
"
)
this
.
evenSimu
(
"
onChooseDateFormatClick
"
)
},
},
...
@@ -2443,7 +2442,7 @@
...
@@ -2443,7 +2442,7 @@
return
'
0
'
+
num
.
toString
();
return
'
0
'
+
num
.
toString
();
}
else
{
}
else
{
// 如果是小于0或三位数以上的数,这里可以根据需要处理
// 如果是小于0或三位数以上的数,这里可以根据需要处理
//
console.log('Number is not within expected range');
console
.
log
(
'
Number is not within expected range
'
);
}
}
},
},
...
@@ -2455,9 +2454,9 @@
...
@@ -2455,9 +2454,9 @@
this
.
dateMonth
=
userData
.
time
.
month
;
this
.
dateMonth
=
userData
.
time
.
month
;
this
.
dateDay
=
userData
.
time
.
day
;
this
.
dateDay
=
userData
.
time
.
day
;
//
console.log("show userData.time.year " + userData.time.year);
console
.
log
(
"
show userData.time.year
"
+
userData
.
time
.
year
);
//
console.log("show userData.time.month " + userData.time.month);
console
.
log
(
"
show userData.time.month
"
+
userData
.
time
.
month
);
//
console.log("show userData.time.day " + userData.time.day);
console
.
log
(
"
show userData.time.day
"
+
userData
.
time
.
day
);
if
(
this
.
dateFormatFlag
==
0
)
{
if
(
this
.
dateFormatFlag
==
0
)
{
...
@@ -2467,13 +2466,13 @@
...
@@ -2467,13 +2466,13 @@
this
.
crtDateValue
=
this
.
padNumberWithZero
(
this
.
dateDay
)
+
"
-
"
+
this
.
padNumberWithZero
(
this
this
.
crtDateValue
=
this
.
padNumberWithZero
(
this
.
dateDay
)
+
"
-
"
+
this
.
padNumberWithZero
(
this
.
dateMonth
)
+
"
-
"
+
this
.
dateYear
;
.
dateMonth
)
+
"
-
"
+
this
.
dateYear
;
}
}
//
console.log(this.crtDateValue);
console
.
log
(
this
.
crtDateValue
);
},
},
saveDateTimeToRTC
:
function
()
{
saveDateTimeToRTC
:
function
()
{
var
process
=
require
(
"
@system.process
"
);
var
process
=
require
(
"
@system.process
"
);
if
(
process
.
platform
==
"
win32
"
)
{
if
(
process
.
platform
==
"
win32
"
)
{
//
console.log("process.platform == win32,can't run so function!Please retry on Linux board!");
console
.
log
(
"
process.platform == win32,can't run so function!Please retry on Linux board!
"
);
}
else
{
}
else
{
librtc
.
ctrl
(
"
set
"
,
{
librtc
.
ctrl
(
"
set
"
,
{
year
:
userData
.
setTime
.
setYear
,
year
:
userData
.
setTime
.
setYear
,
...
@@ -2515,8 +2514,8 @@
...
@@ -2515,8 +2514,8 @@
userData
.
setTime
.
setHour
=
hourValue
;
userData
.
setTime
.
setHour
=
hourValue
;
userData
.
time
.
hour
=
userData
.
setTime
.
setHour
;
userData
.
time
.
hour
=
userData
.
setTime
.
setHour
;
userData
.
time
.
minute
=
userData
.
setTime
.
setMinute
;
userData
.
time
.
minute
=
userData
.
setTime
.
setMinute
;
//
console.log("userData.time.hour=" + userData.time.hour);
console
.
log
(
"
userData.time.hour=
"
+
userData
.
time
.
hour
);
//
console.log("userData.setTime.setHour=" + userData.setTime.setHour);
console
.
log
(
"
userData.setTime.setHour=
"
+
userData
.
setTime
.
setHour
);
this
.
refreshTimeValue
();
this
.
refreshTimeValue
();
this
.
saveDateTimeToRTC
();
this
.
saveDateTimeToRTC
();
},
},
...
@@ -2565,14 +2564,14 @@
...
@@ -2565,14 +2564,14 @@
this
.
crtTimeValue
=
this
.
padNumberWithZero
(
this
.
timeHour
)
+
"
:
"
+
this
.
padNumberWithZero
(
this
this
.
crtTimeValue
=
this
.
padNumberWithZero
(
this
.
timeHour
)
+
"
:
"
+
this
.
padNumberWithZero
(
this
.
timeMinute
);
.
timeMinute
);
}
}
//
console.log(+this.crtTimeValue);
console
.
log
(
+
this
.
crtTimeValue
);
},
},
dateOverturnSetConfirmButtonClick
:
function
(
node
,
topNode
,
x
,
y
)
{
dateOverturnSetConfirmButtonClick
:
function
(
node
,
topNode
,
x
,
y
)
{
// this.saveDateValue();
// this.saveDateValue();
//this.proxy.emit("onInstallationOnDateOverturnSetConfirmButtonClick");
//this.proxy.emit("onInstallationOnDateOverturnSetConfirmButtonClick");
this
.
evenSimu
(
"
onInstallationOnDateOverturnSetConfirmButtonClick
"
)
this
.
evenSimu
(
"
onInstallationOnDateOverturnSetConfirmButtonClick
"
)
//
console.log("send onInstallationOnDateOverturnSetConfirmButtonClick signal!");
console
.
log
(
"
send onInstallationOnDateOverturnSetConfirmButtonClick signal!
"
);
},
},
...
@@ -2641,8 +2640,8 @@
...
@@ -2641,8 +2640,8 @@
gotoGeneralSettingsDateTimePage
:
function
()
{
gotoGeneralSettingsDateTimePage
:
function
()
{
this
.
refreshDateValue
();
this
.
refreshDateValue
();
this
.
refreshTimeValue
();
this
.
refreshTimeValue
();
//
console.log("====================================test date time picker value=========================================");
console
.
log
(
"
====================================test date time picker value=========================================
"
);
//
console.log("send onInstallationGotoGeneralSettingsDateTimePage signal!");
console
.
log
(
"
send onInstallationGotoGeneralSettingsDateTimePage signal!
"
);
//this.proxy.emit("onInstallationGotoGeneralSettingsDateTimePage");
//this.proxy.emit("onInstallationGotoGeneralSettingsDateTimePage");
// this.evenSimu("onGotoGeneralSettingsDateTimePage");
// this.evenSimu("onGotoGeneralSettingsDateTimePage");
},
},
...
@@ -3718,6 +3717,7 @@
...
@@ -3718,6 +3717,7 @@
color
:
#ffffff
;
color
:
#ffffff
;
background-color
:
transparent
;
background-color
:
transparent
;
}
}
.fontsize16
{
.fontsize16
{
font-size
:
16
;
font-size
:
16
;
text-align
:
center
;
text-align
:
center
;
...
...
factoryTestItem/factoryTestWifi.evue.q.min.js.bc
View file @
6d70ad27
No preview for this file type
factoryTestItem/factory_testList.evue
View file @
6d70ad27
...
@@ -260,6 +260,7 @@
...
@@ -260,6 +260,7 @@
//console.log("wifiEventJS.enableWLANScanValue()================================================1");
//console.log("wifiEventJS.enableWLANScanValue()================================================1");
if
(
onestart
)
{
if
(
onestart
)
{
var
wifiEventJS
=
require
(
"
factory_testWifi.js
"
);
var
wifiEventJS
=
require
(
"
factory_testWifi.js
"
);
if
(
globalThis
.
factoryTest
.
wifi
!=
0
)
wifiEventJS
.
enableWLANScanValue
();
wifiEventJS
.
enableWLANScanValue
();
//console.log("wifiEventJS.enableWLANScanValue()================================================2");
//console.log("wifiEventJS.enableWLANScanValue()================================================2");
onestart
=
0
;
onestart
=
0
;
...
...
factoryTestItem/factory_testList.evue.q.min.js.bc
View file @
6d70ad27
No preview for this file type
factoryTest_plugin/factory_testWifi.js
View file @
6d70ad27
...
@@ -138,14 +138,14 @@ function parseWifiScanResults(output) {
...
@@ -138,14 +138,14 @@ function parseWifiScanResults(output) {
function
onGotoWlanEnterPasswordPageEvent
(
value
,
signal
,
encrypted
)
{
function
onGotoWlanEnterPasswordPageEvent
(
value
,
signal
,
encrypted
)
{
//
console.log("receive onGotoWlanEnterPasswordPage singal!");
console
.
log
(
"
receive onGotoWlanEnterPasswordPage singal!
"
);
// var activePage = that.activePage;
// var activePage = that.activePage;
that
.
crtTitleWlanEnterPasswordText
=
value
;
//刷新标题
that
.
crtTitleWlanEnterPasswordText
=
value
;
//刷新标题
that
.
crtTitleWlanConnectingText
=
value
;
that
.
crtTitleWlanConnectingText
=
value
;
connectWifiSSID
=
value
;
connectWifiSSID
=
value
;
signalLevel
=
signal
;
signalLevel
=
signal
;
_encryptedMode
=
encrypted
;
_encryptedMode
=
encrypted
;
//
console.log("==========signalLevel :" + signalLevel + "connectWifiSSID :" + connectWifiSSID + "=======");
console
.
log
(
"
==========signalLevel :
"
+
signalLevel
+
"
connectWifiSSID :
"
+
connectWifiSSID
+
"
=======
"
);
that
.
crtEnterPasswordShowText
=
""
;
that
.
crtEnterPasswordShowText
=
""
;
that
.
crtEnterPasswordShowInvisiableText
=
""
;
that
.
crtEnterPasswordShowInvisiableText
=
""
;
that
.
output
=
""
;
//每次从外面进入页面时,还原已经输入的字符
that
.
output
=
""
;
//每次从外面进入页面时,还原已经输入的字符
...
@@ -157,7 +157,7 @@ function onGotoWlanEnterPasswordPageEvent(value, signal, encrypted) {
...
@@ -157,7 +157,7 @@ function onGotoWlanEnterPasswordPageEvent(value, signal, encrypted) {
// function connect_wifi(ssid, psk) {
// function connect_wifi(ssid, psk) {
function
connect_wifi
(
ssid
,
psk
,
mode
)
{
function
connect_wifi
(
ssid
,
psk
,
mode
)
{
//
console.log("===============connect_wifi: " + ssid + "===psk: " + psk + "===mode: " + mode);
console
.
log
(
"
===============connect_wifi:
"
+
ssid
+
"
===psk:
"
+
psk
+
"
===mode:
"
+
mode
);
writeWpaConf
.
set
(
ssid
,
psk
,
mode
)
writeWpaConf
.
set
(
ssid
,
psk
,
mode
)
systemCtrl
.
executeSystemCommand
(
"
/tmp/wlanInit.sh &
"
)
//重启wifi连接
systemCtrl
.
executeSystemCommand
(
"
/tmp/wlanInit.sh &
"
)
//重启wifi连接
return
return
...
@@ -184,7 +184,7 @@ function connect_wifi(ssid, psk, mode) {
...
@@ -184,7 +184,7 @@ function connect_wifi(ssid, psk, mode) {
// }
// }
// else {
// else {
//
console.log("ssid: " + ssid + "psk " + psk + "mode " + mode);
console
.
log
(
"
ssid:
"
+
ssid
+
"
psk
"
+
psk
+
"
mode
"
+
mode
);
// writeWpaConf.set(ssid, psk, mode)
// writeWpaConf.set(ssid, psk, mode)
// systemCtrl.executeSystemCommand("/tmp/wlanInit.sh &") //重启wifi连接
// systemCtrl.executeSystemCommand("/tmp/wlanInit.sh &") //重启wifi连接
// // return
// // return
...
@@ -203,7 +203,7 @@ function diConnectWifi() {
...
@@ -203,7 +203,7 @@ function diConnectWifi() {
}
}
function
WifiNoActive
()
{
function
WifiNoActive
()
{
//
console.log("=====WifiNoActive=====");
console
.
log
(
"
=====WifiNoActive=====
"
);
userData
.
wlanSsid
=
null
;
userData
.
wlanSsid
=
null
;
userData
.
wlanSignalLevel
=
0
;
userData
.
wlanSignalLevel
=
0
;
...
@@ -217,7 +217,7 @@ function WifiNoActive() {
...
@@ -217,7 +217,7 @@ function WifiNoActive() {
systemCtrl
.
executeSystemCommand
(
"
ifconfig wlan0 down
"
)
systemCtrl
.
executeSystemCommand
(
"
ifconfig wlan0 down
"
)
}
}
function
r
efreshWifiList
(
wifi_list
)
{
function
scanR
efreshWifiList
(
wifi_list
)
{
var
enableWLANListItemSearchDiv
=
document
.
getElementById
(
'
id_enableWLANListItemSearchDiv
'
)
var
enableWLANListItemSearchDiv
=
document
.
getElementById
(
'
id_enableWLANListItemSearchDiv
'
)
...
@@ -231,7 +231,7 @@ function refreshWifiList(wifi_list) {
...
@@ -231,7 +231,7 @@ function refreshWifiList(wifi_list) {
width
:
420
,
width
:
420
,
},
enableWLANListItemSearchDiv
)
},
enableWLANListItemSearchDiv
)
}
}
//
console.log("=====refreshWifiListlog=====1");
console
.
log
(
"
=====refreshWifiListlog=====1
"
);
// if (wifi_list_div) {
// if (wifi_list_div) {
// wifi_div.removeChild(wifi_list_div)
// wifi_div.removeChild(wifi_list_div)
// }
// }
...
@@ -242,7 +242,7 @@ function refreshWifiList(wifi_list) {
...
@@ -242,7 +242,7 @@ function refreshWifiList(wifi_list) {
width
:
420
,
width
:
420
,
"
background-color
"
:
"
#000000
"
,
"
background-color
"
:
"
#000000
"
,
},
wifi_div
)
},
wifi_div
)
//
console.log("=====refreshWifiListlog=====2");
console
.
log
(
"
=====refreshWifiListlog=====2
"
);
var
top
=
0
;
var
top
=
0
;
for
(
var
i
=
0
;
i
<
wifi_list
.
length
;
i
++
)
{
for
(
var
i
=
0
;
i
<
wifi_list
.
length
;
i
++
)
{
// if (wifi_list[i].ssid == userData.wlanSsid) {
// if (wifi_list[i].ssid == userData.wlanSsid) {
...
@@ -252,7 +252,7 @@ function refreshWifiList(wifi_list) {
...
@@ -252,7 +252,7 @@ function refreshWifiList(wifi_list) {
var
signalLevel
=
wifi_list
[
i
].
signalLevel
var
signalLevel
=
wifi_list
[
i
].
signalLevel
var
isEncrypted
=
wifi_list
[
i
].
isEncrypted
var
isEncrypted
=
wifi_list
[
i
].
isEncrypted
var
encryptedMode
=
wifi_list
[
i
].
encryptedMode
var
encryptedMode
=
wifi_list
[
i
].
encryptedMode
//
console.log("========ssid:" + ssid + " signalLevel:" + signalLevel + " isEncrypted:" + isEncrypted + " encryptedMode:" + encryptedMode + "=====")
console
.
log
(
"
========ssid:
"
+
ssid
+
"
signalLevel:
"
+
signalLevel
+
"
isEncrypted:
"
+
isEncrypted
+
"
encryptedMode:
"
+
encryptedMode
+
"
=====
"
)
if
(
ssid
.
length
==
0
)
if
(
ssid
.
length
==
0
)
continue
continue
...
@@ -304,9 +304,9 @@ function refreshWifiList(wifi_list) {
...
@@ -304,9 +304,9 @@ function refreshWifiList(wifi_list) {
onclick
:
function
(
node
,
topNode
,
x
,
y
)
{
onclick
:
function
(
node
,
topNode
,
x
,
y
)
{
// node.attributes.text = "selected";
// node.attributes.text = "selected";
// systemCtrl.executeSystemCommand("/mnt/app/quicknode/shell/eAplay.sh /mnt/app/voice_click.wav");
// systemCtrl.executeSystemCommand("/mnt/app/quicknode/shell/eAplay.sh /mnt/app/voice_click.wav");
//
console.log("node.attributes.text = " + this.attributes.text + " node.attributes.signalValue = " + this.attributes.signalValue);
console
.
log
(
"
node.attributes.text =
"
+
this
.
attributes
.
text
+
"
node.attributes.signalValue =
"
+
this
.
attributes
.
signalValue
);
//
console.log("click wlan_list_item"); //需要添加一个点击事件
console
.
log
(
"
click wlan_list_item
"
);
//需要添加一个点击事件
//
console.log("this.attributes.ssid = " + this.attributes.ssid);
console
.
log
(
"
this.attributes.ssid =
"
+
this
.
attributes
.
ssid
);
onGotoWlanEnterPasswordPageEvent
(
this
.
attributes
.
ssid
,
this
.
attributes
.
signalValue
,
this
.
attributes
.
encryptedMode
);
onGotoWlanEnterPasswordPageEvent
(
this
.
attributes
.
ssid
,
this
.
attributes
.
signalValue
,
this
.
attributes
.
encryptedMode
);
// proxy.emit("onGotoWlanEnterPasswordPage", this.attributes.text, this.attributes.signalValue);
// proxy.emit("onGotoWlanEnterPasswordPage", this.attributes.text, this.attributes.signalValue);
}
}
...
@@ -345,24 +345,25 @@ function refreshWifiList(wifi_list) {
...
@@ -345,24 +345,25 @@ function refreshWifiList(wifi_list) {
wifi_list_div
.
setAttribute
(
'
height
'
,
top
)
wifi_list_div
.
setAttribute
(
'
height
'
,
top
)
wifi_div
.
setAttribute
(
'
height
'
,
top
)
wifi_div
.
setAttribute
(
'
height
'
,
top
)
//
console.log("top=", top)
console
.
log
(
"
top=
"
,
top
)
// that.$setHeight("id_enableWLANListItemTemplate",top);
// that.$setHeight("id_enableWLANListItemTemplate",top);
}
}
function
enableWLANSwitch
()
{
function
enableWLANSwitch
()
{
//
console.log("Is @@@@@@@@@@@@@@@@@@@@@@@@@@#3333333")
console
.
log
(
"
Is @@@@@@@@@@@@@@@@@@@@@@@@@@#3333333
"
)
// if (!userData.enableWLANSwitchFlag) {
// if (!userData.enableWLANSwitchFlag) {
// return;
// return;
// }
// }
var
process
=
require
(
"
@system.process
"
)
var
process
=
require
(
"
@system.process
"
)
if
(
process
.
platform
==
"
win32
"
)
{
if
(
process
.
platform
==
"
win32
"
)
{
//
console.log("its win32.")
console
.
log
(
"
its win32.
"
)
return
;
return
;
}
}
console
.
log
(
"
resultsWifiList:
"
)
if
(
resultsWifiList
&&
oneFlag
)
{
if
(
resultsWifiList
&&
oneFlag
)
{
r
efreshWifiList
(
resultsWifiList
)
scanR
efreshWifiList
(
resultsWifiList
)
oneFlag
=
0
;
oneFlag
=
0
;
}
}
...
@@ -372,11 +373,14 @@ function enableWLANSwitch() {
...
@@ -372,11 +373,14 @@ function enableWLANSwitch() {
systemCtrl
.
executeSystemCommand
(
"
wpa_cli -p /tmp/wpa_supplicant/sockets scan_results > /tmp/scan_result.txt
"
)
systemCtrl
.
executeSystemCommand
(
"
wpa_cli -p /tmp/wpa_supplicant/sockets scan_results > /tmp/scan_result.txt
"
)
var
content
=
fs
.
read
(
"
/tmp/scan_result.txt
"
,
"
r
"
)
var
content
=
fs
.
read
(
"
/tmp/scan_result.txt
"
,
"
r
"
)
//
console.log("====================content")
console
.
log
(
"
====================content
"
)
if
(
content
)
{
if
(
content
)
{
resultsWifiList
=
parseWifiScanResults
(
content
)
var
listScanValue
=
parseWifiScanResults
(
content
)
//console.log(JSON.stringify(resultsWifiList))
if
(
listScanValue
.
length
>
0
)
{
refreshWifiList
(
resultsWifiList
)
resultsWifiList
=
listScanValue
;
console
.
log
(
JSON
.
stringify
(
resultsWifiList
))
scanRefreshWifiList
(
resultsWifiList
)
}
}
}
},
5000
)
},
5000
)
...
@@ -386,30 +390,32 @@ function enableWLANSwitch() {
...
@@ -386,30 +390,32 @@ function enableWLANSwitch() {
function
getWifiInfo
(
ssid
)
{
function
getWifiInfo
(
ssid
)
{
//
console.log("getWifiInfo called with SSID: " + ssid);
console
.
log
(
"
getWifiInfo called with SSID:
"
+
ssid
);
if
(
!
resultsWifiList
)
{
if
(
!
resultsWifiList
)
{
//
console.log("resultsWifiList is not available.");
console
.
log
(
"
resultsWifiList is not available.
"
);
return
null
;
// 如果 resultsWifiList 为空,则返回 null
return
null
;
// 如果 resultsWifiList 为空,则返回 null
}
}
// console.log("!!GET resultsWifiList: " + resultsWifiList);
// 遍历 resultsWifiList 查找指定 SSID
// 遍历 resultsWifiList 查找指定 SSID
let
foundWifi
=
null
;
let
foundWifi
=
null
;
for
(
let
i
=
0
;
i
<
resultsWifiList
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
resultsWifiList
.
length
;
i
++
)
{
if
(
resultsWifiList
[
i
].
ssid
===
ssid
)
{
if
(
resultsWifiList
[
i
].
ssid
===
ssid
)
{
//
console.log("Found SSID: " + ssid);
console
.
log
(
"
Found SSID:
"
+
ssid
);
foundWifi
=
resultsWifiList
[
i
];
foundWifi
=
resultsWifiList
[
i
];
break
;
break
;
}
}
}
}
if
(
!
foundWifi
)
{
if
(
!
foundWifi
)
{
//
console.log("SSID not found: " + ssid);
console
.
log
(
"
SSID not found:
"
+
ssid
);
return
{
return
{
ssid
:
ssid
,
ssid
:
ssid
,
signalLevel
:
null
,
// 信号强度为空
signalLevel
:
null
,
// 信号强度为空
isEncrypted
:
null
,
// 加密状态为空
isEncrypted
:
null
,
// 加密状态为空
isConnected
:
false
// 未连接
isConnected
:
false
// 未连接
};
};
}
else
{
console
.
log
(
"
Found WiFi:
"
+
JSON
.
stringify
(
foundWifi
));
}
}
// 检查当前 WiFi 状态
// 检查当前 WiFi 状态
...
@@ -445,9 +451,9 @@ function getWifiInfo(ssid) {
...
@@ -445,9 +451,9 @@ function getWifiInfo(ssid) {
function
onInstallationGeneralSettingConnectWifi
(
value
)
{
function
onInstallationGeneralSettingConnectWifi
(
value
)
{
//
console.log("receive onInstallationGeneralSettingConnectWifi singal!");
console
.
log
(
"
receive onInstallationGeneralSettingConnectWifi singal!
"
);
//
console.log("Send cmd to connect wifi,connecting...");
console
.
log
(
"
Send cmd to connect wifi,connecting...
"
);
if
(
value
!=
undefined
)
{
if
(
value
!=
undefined
)
{
connectWifiPassword
=
value
;
connectWifiPassword
=
value
;
...
@@ -463,7 +469,7 @@ function onInstallationGeneralSettingConnectWifi(value) {
...
@@ -463,7 +469,7 @@ function onInstallationGeneralSettingConnectWifi(value) {
var
passWordBytes
=
Array
.
from
(
passWordCode
,
char
=>
char
.
charCodeAt
(
0
));
var
passWordBytes
=
Array
.
from
(
passWordCode
,
char
=>
char
.
charCodeAt
(
0
));
var
passWordHexString
=
passWordBytes
.
map
(
byte
=>
byte
.
toString
(
16
).
padStart
(
2
,
'
0
'
)).
join
(
'
|
'
);
var
passWordHexString
=
passWordBytes
.
map
(
byte
=>
byte
.
toString
(
16
).
padStart
(
2
,
'
0
'
)).
join
(
'
|
'
);
cmdStr
+=
passWordHexString
+
"
|
"
;
cmdStr
+=
passWordHexString
+
"
|
"
;
//
console.log("aaaaaaaaaaaaaaaaaaaaaaaa==================")
console
.
log
(
"
aaaaaaaaaaaaaaaaaaaaaaaa==================
"
)
var
msdk6ACmdArr
=
cloudComSerial
.
serialMsdkCmdArrayPack
(
0x6A
,
cmdStr
);
var
msdk6ACmdArr
=
cloudComSerial
.
serialMsdkCmdArrayPack
(
0x6A
,
cmdStr
);
cloudComSerial
.
sendCmd
(
msdk6ACmdArr
);
cloudComSerial
.
sendCmd
(
msdk6ACmdArr
);
...
@@ -482,7 +488,7 @@ function onInstallationGeneralSettingConnectWifi(value) {
...
@@ -482,7 +488,7 @@ function onInstallationGeneralSettingConnectWifi(value) {
connectTimeout
++
;
connectTimeout
++
;
}
else
{
}
else
{
connectTimeout
=
0
;
connectTimeout
=
0
;
//
console.log("wifi connect success!");
console
.
log
(
"
wifi connect success!
"
);
setAreaButtonDivOn
();
setAreaButtonDivOn
();
...
@@ -497,7 +503,7 @@ function onInstallationGeneralSettingConnectWifi(value) {
...
@@ -497,7 +503,7 @@ function onInstallationGeneralSettingConnectWifi(value) {
}
}
if
(
connectTimeout
>
60
)
{
if
(
connectTimeout
>
60
)
{
//
console.log("wifi connect timeout!");
console
.
log
(
"
wifi connect timeout!
"
);
setAreaButtonDivOn
();
setAreaButtonDivOn
();
WifiNoActive
();
WifiNoActive
();
...
@@ -512,7 +518,7 @@ function onInstallationGeneralSettingConnectWifi(value) {
...
@@ -512,7 +518,7 @@ function onInstallationGeneralSettingConnectWifi(value) {
//使用wpa模式去连wifi
//使用wpa模式去连wifi
connectWifiByWpa
(
connectWifiSSID
,
connectWifiPassword
,
function
(
result
)
{
connectWifiByWpa
(
connectWifiSSID
,
connectWifiPassword
,
function
(
result
)
{
if
(
result
==
0
)
{
if
(
result
==
0
)
{
//
console.log("Connect wifi success");
console
.
log
(
"
Connect wifi success
"
);
setTimeout
(()
=>
{
setTimeout
(()
=>
{
// console.debug("Will send 0xF3 request to msdk");
// console.debug("Will send 0xF3 request to msdk");
//向msdk发送0xF3请求联网命令
//向msdk发送0xF3请求联网命令
...
@@ -523,7 +529,7 @@ function onInstallationGeneralSettingConnectWifi(value) {
...
@@ -523,7 +529,7 @@ function onInstallationGeneralSettingConnectWifi(value) {
connectingState
=
1
connectingState
=
1
// gotoConnectSuccessPage()
// gotoConnectSuccessPage()
}
else
{
}
else
{
//
console.log("Connect wifi failed");
console
.
log
(
"
Connect wifi failed
"
);
//跳转失败页面
//跳转失败页面
connectTimeout
=
70
connectTimeout
=
70
// gotoConnectFailedPage()
// gotoConnectFailedPage()
...
@@ -539,28 +545,33 @@ function ConnectWifi(value) {
...
@@ -539,28 +545,33 @@ function ConnectWifi(value) {
var
ssid
=
connectWifiSSID
;
var
ssid
=
connectWifiSSID
;
var
pwd
=
value
;
var
pwd
=
value
;
var
encrypte
=
_encryptedMode
;
var
encrypte
=
_encryptedMode
;
//
//
console.log("ConnectWifi: " + ssid + "pwd: " + pwd + "encrypte: " + encrypte);
// console.log("ConnectWifi: " + ssid + "pwd: " + pwd + "encrypte: " + encrypte);
// var factory_wifi = require("factory_wifi.js");
// var factory_wifi = require("factory_wifi.js");
// factory_wifi.testWifiConnect(ssid, pwd);
// factory_wifi.testWifiConnect(ssid, pwd);
// connect_wifi(ssid,pwd);
// connect_wifi(ssid,pwd);
that
.
initWifissid
=
ssid
;
that
.
initWifissid
=
ssid
;
that
.
initWifipwd
=
pwd
;
that
.
initWifipwd
=
pwd
;
that
.
initencryptedMode
=
encrypte
;
that
.
initencryptedMode
=
encrypte
;
//
//
console.log("that.initWifissid: " + that.initWifissid + "that.initWifipwd: " + that.initWifipwd + "that.initencryptedMode: " + that.initencryptedMode);
// console.log("that.initWifissid: " + that.initWifissid + "that.initWifipwd: " + that.initWifipwd + "that.initencryptedMode: " + that.initencryptedMode);
that
.
InterValTime
();
that
.
InterValTime
();
//
//
console.log("===================ConnectWifi: " + that.initWifissid + "--pwd: " + that.initWifipwd);
// console.log("===================ConnectWifi: " + that.initWifissid + "--pwd: " + that.initWifipwd);
}
}
function
enableWLANScanValue
()
{
function
enableWLANScanValue
()
{
//
console.log("Is @@@@@@@@@@@@@@@@@@@@@@@@@@#3333333")
console
.
log
(
"
Is @@@@@@@@@@@@@@@@@@@@@@@@@@#3333333
"
)
// if (!userData.enableWLANSwitchFlag) {
// if (!userData.enableWLANSwitchFlag) {
// return;
// return;
// }
// }
var
process
=
require
(
"
@system.process
"
)
var
process
=
require
(
"
@system.process
"
)
if
(
process
.
platform
==
"
win32
"
)
{
if
(
process
.
platform
==
"
win32
"
)
{
//
console.log("its win32.")
console
.
log
(
"
its win32.
"
)
return
;
return
;
}
}
console
.
log
(
"
resultsWifiList:
"
)
if
(
resultsWifiList
&&
oneFlag
)
{
scanRefreshWifiList
(
resultsWifiList
)
oneFlag
=
0
;
}
systemCtrl
.
executeSystemCommand
(
"
rm -fr /tmp/scan_result.txt
"
)
systemCtrl
.
executeSystemCommand
(
"
rm -fr /tmp/scan_result.txt
"
)
systemCtrl
.
executeSystemCommand
(
"
wpa_cli -p /tmp/wpa_supplicant/sockets scan
"
)
systemCtrl
.
executeSystemCommand
(
"
wpa_cli -p /tmp/wpa_supplicant/sockets scan
"
)
...
@@ -569,13 +580,22 @@ function enableWLANScanValue() {
...
@@ -569,13 +580,22 @@ function enableWLANScanValue() {
systemCtrl
.
executeSystemCommand
(
"
wpa_cli -p /tmp/wpa_supplicant/sockets scan_results > /tmp/scan_result.txt
"
)
systemCtrl
.
executeSystemCommand
(
"
wpa_cli -p /tmp/wpa_supplicant/sockets scan_results > /tmp/scan_result.txt
"
)
var
content
=
fs
.
read
(
"
/tmp/scan_result.txt
"
,
"
r
"
)
var
content
=
fs
.
read
(
"
/tmp/scan_result.txt
"
,
"
r
"
)
if
(
content
)
{
if
(
content
)
{
resultsWifiList
=
parseWifiScanResults
(
content
)
//console.log(JSON.stringify(resultsWifiList))
var
listScanValue
=
parseWifiScanResults
(
content
)
if
(
listScanValue
.
length
>
0
)
{
resultsWifiList
=
listScanValue
;
console
.
log
(
JSON
.
stringify
(
resultsWifiList
))
}
// resultsWifiList = parseWifiScanResults(content)
// console.log(JSON.stringify(resultsWifiList))
// refreshWifiList(resultsWifiList)
// refreshWifiList(resultsWifiList)
}
}
},
5000
)
},
5000
)
}
}
//touchedStartScanWifiDetailsButton 点击开始扫描
//touchedscanWifiList 进入wifi列表页面
module
.
exports
=
{
module
.
exports
=
{
enableWLANSwitch
:
enableWLANSwitch
,
enableWLANSwitch
:
enableWLANSwitch
,
connect_wifi
:
connect_wifi
,
connect_wifi
:
connect_wifi
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment