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
87feed56
Commit
87feed56
authored
Jul 10, 2025
by
waterword
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
成功跳转
parent
6ceaf359
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
40 additions
and
4 deletions
+40
-4
factoryTestItem/factoryTestColor.evue
factoryTestItem/factoryTestColor.evue
+6
-3
factoryTestItem/factory_testList.evue
factoryTestItem/factory_testList.evue
+2
-1
factoryTest_plugin/yesJumpPage.js
factoryTest_plugin/yesJumpPage.js
+32
-0
No files found.
factoryTestItem/factoryTestColor.evue
View file @
87feed56
...
...
@@ -130,9 +130,12 @@
touchedYesButton
:
function
(
node
,
topNode
,
x
,
y
)
{
globalThis
.
factoryTest
.
color
=
1
router
.
push
({
path
:
"
factory_testList
"
});
// router.push({
// path: "factory_testList"
// }
var
yesJumpPage
=
require
(
"
yesJumpPage.js
"
);
yesJumpPage
.
yesGoToNextPage
(
this
);
//);
},
touchedNGButton
:
function
(
node
,
topNode
,
x
,
y
)
{
...
...
factoryTestItem/factory_testList.evue
View file @
87feed56
...
...
@@ -23,7 +23,7 @@
var
bglight
=
require
(
"
factory_bglight.js
"
);
// var systemCtrl = require("systemCtrl.js");
var
systemCtrl
=
require
(
"
systemCtrl.js
"
);
var
yesJumpPage
=
require
(
"
yesJumpPage.js
"
);
// var _userdata = require("userdata.js");
// var userData = _userdata.userData;
export
default
{
...
...
@@ -162,6 +162,7 @@
globalThis
.
factoryTest
=
obj
;
}
this
.
initializeFactoryTestProperties
();
yesJumpPage
.
initPage
();
},
initializeFactoryTestProperties
:
function
()
{
...
...
factoryTest_plugin/yesJumpPage.js
0 → 100644
View file @
87feed56
var
appItem
=
[];
function
initPage
(
pageAppItem
){
appItem
=
pageAppItem
;
}
function
yesGoToNextPage
(
that
)
{
// 获取当前页面索引
let
currentIndex
=
that
.
index
;
// 检查是否在列表范围内
if
(
currentIndex
<
appItem
.
length
-
1
)
{
// 增加索引以获取下一个页面信息
currentIndex
++
;
let
nextApp
=
appItem
[
currentIndex
];
// 确保下一个测试项是启用状态
if
(
nextApp
.
en
===
1
)
{
router
.
push
({
path
:
nextApp
.
startup
});
}
else
{
console
.
log
(
"
Next test item is disabled.
"
);
}
}
else
{
console
.
log
(
"
Already at the last test item.
"
);
}
}
module
.
exports
=
{
yesGoToNextPage
:
yesGoToNextPage
,
initPage
:
initPage
,
}
\ No newline at end of file
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