fix qr web

This commit is contained in:
miggaze 2021-11-30 14:58:53 +07:00
parent 270ee86c09
commit 5eaf363774
6 changed files with 71 additions and 13 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

View file

@ -144,7 +144,15 @@
Var ShowNetworkProblemText = ""
Machine NetworkUp
GenHashWithTimeStamp QRCODE99
Var QRCODE99x = ""
GenHashWithTimeStamp QRCODE99x
Var QRCODE99 = "https://taobin-beverage.web.app/" + QRCODE99x
WEB "ENABLE"
Else

View file

@ -392,14 +392,14 @@
</EventClick>
</Button>
<QRCode>
<X> 895 </X>
<Y> QRCODE99_Y</Y>
<Width> 178 </Width>
<Height> 178 </Height>
<State> "Enable" </State>
<Service> testservice </Service>
</QRCode>
;<QRCode>
;<X> 895 </X>
;<Y> QRCODE99_Y</Y>
;<Width> 178 </Width>
;<Height> 178 </Height>
;<State> "Enable" </State>
;<Service> testservice </Service>
;</QRCode>

View file

@ -153,17 +153,28 @@
Var ButtonNext = "false"
Var NEW_MULTI = "Invisible"
</EventOpen>
<Timeout> 2000 </Timeout>
<Timeout> 1000 </Timeout>
<EventTimeout>
DEBUGVAR Timeout
Var Timeout = Timeout + 1
If Timeout > 20 Then
If Timeout > 40 Then
Var Timeout = 0
Open "ROOT/taobin_project/xml/page_back_to_main.xml"
EndIf
If MultiPayEnable = "true" Then
If NEW_MULTI = "Invisible" Then
Var NEW_MULTI = "Enable"
Else
Var NEW_MULTI = "Invisible"
EndIf
EndIf
Refresh
TimerReset
</EventTimeout>
@ -1411,6 +1422,10 @@
</EventClick>
</Button>
; add cart
<Button>
<State> btnAddCart </State>
@ -1478,6 +1493,18 @@
Var CartUpdate = "true"
</EventClick>
</Button>
<Button>
<X> 277 </X>
<Y> 1772 </Y>
<State> NEW_MULTI </State>
;<Color> "0x00BDFF" </Color>
<Interval> 500 </Interval>
<Filename> Var( DirImage + "/new_multi.png" ) </Filename>
<EventClick>
</EventClick>
</Button>
; next
<Button>
<X> 673 </X>

View file

@ -152,18 +152,29 @@
Machine DoorLidClose
Var ButtonNext = "false"
Var NEW_MULTI = "Invisible"
</EventOpen>
<Timeout> 2000 </Timeout>
<Timeout> 1000 </Timeout>
<EventTimeout>
DEBUGVAR Timeout
Var Timeout = Timeout + 1
If Timeout > 20 Then
If Timeout > 40 Then
Var Timeout = 0
Open "ROOT/taobin_project/xml/page_back_to_main.xml"
EndIf
If MultiPayEnable = "true" Then
If NEW_MULTI = "Invisible" Then
Var NEW_MULTI = "Enable"
Else
Var NEW_MULTI = "Invisible"
EndIf
EndIf
Refresh
TimerReset
</EventTimeout>
@ -1482,6 +1493,18 @@
Var CartUpdate = "true"
</EventClick>
</Button>
<Button>
<X> 277 </X>
<Y> 1772 </Y>
<State> NEW_MULTI </State>
;<Color> "0x00BDFF" </Color>
<Interval> 500 </Interval>
<Filename> Var( DirImage + "/new_multi.png" ) </Filename>
<EventClick>
</EventClick>
</Button>
; next
<Button>
<X> 673 </X>