From c6d7f1296521593b2d9097fd48526eea6e93acd8 Mon Sep 17 00:00:00 2001 From: zengjingjing Date: Tue, 2 Jul 2024 18:39:45 +0800 Subject: [PATCH] =?UTF-8?q?test=E4=B8=AD=E4=BF=AE=E6=94=B9=E4=BD=BF?= =?UTF-8?q?=E7=94=A8=E5=85=B3=E9=94=AE=E5=AD=97=E5=81=9A=E5=8F=98=E9=87=8F?= =?UTF-8?q?=E5=90=8D=E5=AF=BC=E8=87=B4=E7=BC=96=E8=AF=91=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zengjingjing --- .../main/js/default/pages/timer/setInterval02/index.hml | 2 +- .../src/main/js/default/pages/timer/setInterval02/index.js | 7 ++++--- .../src/main/js/default/pages/timer/setTimeout01/index.hml | 2 +- .../src/main/js/default/pages/timer/setTimeout01/index.js | 4 ++-- 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/test/moduletest/common/test_app/ui_manual_test/src/main/js/default/pages/timer/setInterval02/index.hml b/test/moduletest/common/test_app/ui_manual_test/src/main/js/default/pages/timer/setInterval02/index.hml index 06b3a0fa..a31662b4 100644 --- a/test/moduletest/common/test_app/ui_manual_test/src/main/js/default/pages/timer/setInterval02/index.hml +++ b/test/moduletest/common/test_app/ui_manual_test/src/main/js/default/pages/timer/setInterval02/index.hml @@ -15,7 +15,7 @@ limitations under the License.
- {{show}} + {{value}}
diff --git a/test/moduletest/common/test_app/ui_manual_test/src/main/js/default/pages/timer/setInterval02/index.js b/test/moduletest/common/test_app/ui_manual_test/src/main/js/default/pages/timer/setInterval02/index.js index d0881eb6..a2f2811e 100644 --- a/test/moduletest/common/test_app/ui_manual_test/src/main/js/default/pages/timer/setInterval02/index.js +++ b/test/moduletest/common/test_app/ui_manual_test/src/main/js/default/pages/timer/setInterval02/index.js @@ -16,16 +16,17 @@ import {backPage,routePage} from "../../../common/js/general"; var index = 0; export default { - data:{show:"show", + data:{ + value: "show", index:0}, startTimer:function() { var id = setInterval(()=> { if(index >5) { - this.show = "clearInterval"; + this.value = "clearInterval"; clearInterval(id); } index ++; - this.show = index; + this.index = index; }, 200); }, goPrevious:routePage("/pages/timer/setTimeout01/index").changePage, diff --git a/test/moduletest/common/test_app/ui_manual_test/src/main/js/default/pages/timer/setTimeout01/index.hml b/test/moduletest/common/test_app/ui_manual_test/src/main/js/default/pages/timer/setTimeout01/index.hml index 671b2bf7..2c7ad26c 100644 --- a/test/moduletest/common/test_app/ui_manual_test/src/main/js/default/pages/timer/setTimeout01/index.hml +++ b/test/moduletest/common/test_app/ui_manual_test/src/main/js/default/pages/timer/setTimeout01/index.hml @@ -15,7 +15,7 @@ limitations under the License.
- {{show}} + {{value}}
diff --git a/test/moduletest/common/test_app/ui_manual_test/src/main/js/default/pages/timer/setTimeout01/index.js b/test/moduletest/common/test_app/ui_manual_test/src/main/js/default/pages/timer/setTimeout01/index.js index 8227369c..99b5009c 100644 --- a/test/moduletest/common/test_app/ui_manual_test/src/main/js/default/pages/timer/setTimeout01/index.js +++ b/test/moduletest/common/test_app/ui_manual_test/src/main/js/default/pages/timer/setTimeout01/index.js @@ -15,9 +15,9 @@ import {backPage,routePage} from "../../../common/js/general"; export default { - data:{show:"show"}, + data:{value:"show"}, startTimer:function() { - setTimeout(()=> {this.show = "once_timer success"}, 1000); + setTimeout(()=> {this.value = "once_timer success"}, 1000); }, goPrevious:routePage("/").changePage, goHome:routePage("/").changePage, -- Gitee