THAI: add waiting loading for payment topup

This commit is contained in:
Kenta420 2024-05-30 15:59:05 +07:00
parent ba89c89895
commit 8cf908243c
2 changed files with 48 additions and 7 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.9 KiB

View file

@ -6,7 +6,6 @@
<Background> "0xeae6e1" </Background> <Background> "0xeae6e1" </Background>
<Volume> SoundVolume </Volume> <Volume> SoundVolume </Volume>
<Refresh> "Partial" </Refresh>
<EventOpen> <EventOpen>
; On open ; On open
@ -16,6 +15,8 @@
Var AmountNumber = "" Var AmountNumber = ""
Var loadingReqState = "Invisible"
Var ShowTextNumber = "Enable" Var ShowTextNumber = "Enable"
Var ShowErrorText = "Invisible" Var ShowErrorText = "Invisible"
Var Tel_Confirm_State = "Invisible" Var Tel_Confirm_State = "Invisible"
@ -123,6 +124,27 @@
<EventTimeout> <EventTimeout>
Var Timeout = Timeout + 1 Var Timeout = Timeout + 1
If loadingState = "Enable" Then
If Timeout > 50 Then
If ReqPayWithCash = 1 Then
Var BmiYear = useCreditAmount
Var GetScore = "useCredit"
AddData 24 TelephoneNumber BmiYear PointCrm GetScore
EndIf
Var PayState1 = "PressForever"
Var PayState2 = "Enable"
Var QRChannel = 0
;Var Seeker.CodeChannel = 0
If CART_COUNT >= 1 Then
Open "ROOT/taobin_project/xml/page_payment_cashMore.xml"
Else
Open "ROOT/taobin_project/xml/page_payment_cash.xml"
EndIf
EndIf
EndIf
If Timeout > 60 Then If Timeout > 60 Then
Var PayState1 = "PressForever" Var PayState1 = "PressForever"
@ -651,18 +673,21 @@ If ViewBill > 0 Then
Var GetPayInfoFlag = 1 Var GetPayInfoFlag = 1
Var ReqPayInfoFlag = 1 Var ReqPayInfoFlag = 1
Refresh
EndIf
EndIf
If show_eng = "true" Then If show_eng = "true" Then
Var TextWaiting = "Please wait..." Var TextWaiting = "Please wait..."
Else Else
Var TextWaiting = "กรุณารอซักครู่..." Var TextWaiting = "กรุณารอซักครู่..."
EndIf EndIf
Var loadingReqState = "Enable"
Refresh Refresh
EndIf EndIf
EndIf EndIf
EndIf
EndIf
</EventClick> </EventClick>
@ -724,6 +749,22 @@ If ViewBill > 0 Then
;include="ROOT/taobin_project/inc/video.inc" ;include="ROOT/taobin_project/inc/video.inc"
<Image>
<X> 158 </X>
<Y> 601 </Y>
<State> loadingReqState </State>
<Filename> "ROOT/taobin_project/image/collectiing/alpha_loading.png" </Filename>
</Image>
<GIF>
<X> 494 </X>
<Y> 1078 </Y>
<Width> 94 </Width>
<Height> 94 </Height>
<State> loadingReqState </State>
<Filename> "ROOT/taobin_project/image/page_payment/loading.gif" </Filename>
</GIF>
<Text> <Text>
<X> 5 </X> <X> 5 </X>
<Y> 940 </Y> <Y> 940 </Y>