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
bad876fe
Commit
bad876fe
authored
Sep 22, 2025
by
lyong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:增加定时颜色变化防止极化
parent
601d2b82
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
1 deletion
+32
-1
factoryTestItem/factoryTestBurnIn.evue
factoryTestItem/factoryTestBurnIn.evue
+4
-1
factoryTest_plugin/factory_antiPolarization.js
factoryTest_plugin/factory_antiPolarization.js
+28
-0
No files found.
factoryTestItem/factoryTestBurnIn.evue
View file @
bad876fe
...
...
@@ -63,7 +63,7 @@
<text class="testReturn" id="id_ng" onpress="touchedScreen" onclick="touchedNGButton" style="top: 300;left:14 ;color: #F44236;background-color: #858282;">NG</text>
<text class="testReturn" id="id_back" onpress="touchedScreen" onclick="touchedBackButton" style="top: 300;left:189;color: #000000;background-color: #858282;">back</text> -->
<div
style=
"left: 0px;width: 480; height: 480;background-color:rgb(0, 0, 0); top:-480;opacity: 0.1;"
id=
"antiPolarization"
></div>
</div>
</html>
...
...
@@ -87,6 +87,7 @@
},
/*************** struct ***************/
onInit
:
function
()
{
//this.$setImageForceUpdate(true);
...
...
@@ -96,6 +97,7 @@
this
.
$enableMouseMoveEvent
(
true
);
//console.log(this.$uri + "===========onShow=============")
factory_testBurnIn
.
initFactoryTestBurnIn
(
this
);
require
(
"
factory_antiPolarization.js
"
).
startAntiPolarization
(
this
);
},
onHide
:
function
()
{
...
...
@@ -111,6 +113,7 @@
},
quitEvent
:
function
()
{
this
.
$enableMouseMoveEvent
(
false
);
require
(
"
factory_antiPolarization.js
"
).
stopAntiPolarization
(
this
);
factory_testBurnIn
.
quitFactoryTestBurnIn
();
},
...
...
factoryTest_plugin/factory_antiPolarization.js
0 → 100644
View file @
bad876fe
var
idTimerAntiPolarization
=
null
;
function
startAntiPolarization
(
that
)
{
if
(
idTimerAntiPolarization
!=
null
)
{
clearInterval
(
idTimerAntiPolarization
);
idTimerAntiPolarization
=
null
;
}
idTimerAntiPolarization
=
setInterval
(()
=>
{
console
.
log
(
"
! startAntiPolarization event
"
);
that
.
$setY
(
"
antiPolarization
"
,
0
);
setTimeout
(()
=>
{
that
.
$setY
(
"
antiPolarization
"
,
-
480
);
},
500
);
},
5000
);
}
function
stopAntiPolarization
(
that
)
{
if
(
idTimerAntiPolarization
!=
null
)
{
clearInterval
(
idTimerAntiPolarization
);
idTimerAntiPolarization
=
null
;
}
}
// <div style="left: 0px;width: 480; height: 480;background-color:rgb(0, 0, 0); top:-480;opacity: 0.1;" id="antiPolarization"></div>
module
.
exports
=
{
startAntiPolarization
:
startAntiPolarization
,
stopAntiPolarization
:
stopAntiPolarization
,
}
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