From 985cfb267fda08719ccdbf4cd101a87b4bf83d01 Mon Sep 17 00:00:00 2001 From: Kenta420 Date: Wed, 19 Jun 2024 11:32:49 +0700 Subject: [PATCH] THAI: Added loading topup --- xml/page_topup_credit-ChooseNumber.xml | 30 +++++++++++++++++++++++++- xml/page_topup_credit3-Topup.xml | 23 +++++++++++++++----- 2 files changed, 47 insertions(+), 6 deletions(-) diff --git a/xml/page_topup_credit-ChooseNumber.xml b/xml/page_topup_credit-ChooseNumber.xml index 2c4bb8f5..353846af 100644 --- a/xml/page_topup_credit-ChooseNumber.xml +++ b/xml/page_topup_credit-ChooseNumber.xml @@ -6,7 +6,6 @@ "0xeae6e1" SoundVolume - "Partial" ; On open @@ -20,6 +19,7 @@ Var ShowErrorText = "Invisible" Var ShowErrorText2 = "Invisible" Var Tel_Confirm_State = "Invisible" + Var LoadingState = "Invisible" Var GetCreditFlag = 0 @@ -47,6 +47,14 @@ Var Timeout = Timeout + 1 + + If GetAccFlag = 1 Then + If Timeout > 20 Then + Var LoadingState = "Invisible" + Var ShowErrorText = "Enable" + EndIf + EndIf + If Timeout > 60 Then ;Open "ROOT/taobin_project/xml/page_catalog2.xml" @@ -189,6 +197,24 @@ + + 493 + 1020 + 94 + 94 + LoadingState + "ROOT/taobin_project/image/page_payment/loading.gif" + + + + 267 + 1120 + LoadingState + Var( DirImage + "/loadingText.png" ) + + + + ;include="ROOT/taobin_project/inc/video.inc" @@ -214,6 +240,8 @@ Var GetAccFlag = 1 GETACCEXT TelephoneNumber 19 + Var LoadingState = "Enable" + Refresh Else Var ShowErrorText2 = "Enable" diff --git a/xml/page_topup_credit3-Topup.xml b/xml/page_topup_credit3-Topup.xml index 3b49890a..c80a5ca0 100644 --- a/xml/page_topup_credit3-Topup.xml +++ b/xml/page_topup_credit3-Topup.xml @@ -6,7 +6,6 @@ "0xeae6e1" SoundVolume - "Partial" ; On open @@ -19,6 +18,7 @@ Var ShowTextNumber = "Enable" Var ShowErrorText = "Invisible" Var Tel_Confirm_State = "Invisible" + Var loadingReqState = "Invisible" Var GetCreditFlag = 0 @@ -629,6 +629,8 @@ If ViewBill > 0 Then Var TextWaiting = "กรุณารอซักครู่..." EndIf + Var loadingReqState = "Enable" + Refresh EndIf @@ -681,10 +683,21 @@ If ViewBill > 0 Then Var( DirImage + text_show_error ) + + 158 + 601 + loadingReqState + "ROOT/taobin_project/image/collectiing/alpha_loading.png" + - - -;include="ROOT/taobin_project/inc/video.inc" + + 494 + 1078 + 94 + 94 + loadingReqState + "ROOT/taobin_project/image/page_payment/loading.gif" + @@ -700,7 +713,7 @@ If ViewBill > 0 Then - +;include="ROOT/taobin_project/inc/video.inc"