diff --git a/xml/page_enable_credit_card.xml b/xml/page_enable_credit_card.xml new file mode 100644 index 00000000..ba78f7d3 --- /dev/null +++ b/xml/page_enable_credit_card.xml @@ -0,0 +1,327 @@ + + 0 + 380 + 1080 + 1920 + "0xeae6e1" + SoundVolume + + + + Var PassPhrase = "" + Var showStatusText = "" + + ;try cache + + If EnableCreditCard = "" Then + CacheVarStr "get" EnableCreditCard + Else + CacheVarStr "put" EnableCreditCard + EndIf + + If EnableCreditCard = "true" Then + Var showStatusText = "OK" + Else + Var showStatusText = "OFF" + EndIf + + + + + 1000 + + Var Timeout = Timeout + 1 + + If Timeout > 20 Then + + Var showStatusText = "" + + Open "ROOT/taobin_project/xml/vending_info.xml" + EndIf + + Refresh + TimerReset + + + ; back + + + + 158 + 465 + "ROOT/taobin_project/image/collectiing/img_popup1.png" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0 + 673 + 1080 + Center + 62 + RobotoBlack + 0x513C2F + PassPhrase + + + + + 0 + 473 + 1080 + Center + 72 + RobotoBlack + 0xFF0000 + showStatusText + + + \ No newline at end of file diff --git a/xml/page_payment_cash-MYR.xml b/xml/page_payment_cash-MYR.xml index 760d51fb..51798ba5 100644 --- a/xml/page_payment_cash-MYR.xml +++ b/xml/page_payment_cash-MYR.xml @@ -451,6 +451,15 @@ __CMD "prepar-cup-from-order" 0 "-" "-" ;Var PayState5 = "Enable" + + + If EnableCreditCard = "true" Then + Var PayState5 = "Enable" + Else + Var PayState5 = "Disable" + EndIf + + DEBUGVAR PayState5 ;Open "ROOT/taobin_project/xml/page_page_camera.xml" diff --git a/xml/vending_info.xml b/xml/vending_info.xml index d23b7872..ca312118 100644 --- a/xml/vending_info.xml +++ b/xml/vending_info.xml @@ -805,6 +805,41 @@ + + info2_startX + info_12Y + "ROOT/taobin_project/image/tab_1.png" + eval( + If CountryName = "Malaysia" Then + Var return = "Enable" + Else + Var return = "Invisible" + EndIf +) + + + Open "/mnt/sdcard/coffeevending/taobin_project/xml/page_enable_credit_card.xml" + + + + + + info2_text_startX + info_text_12Y + 30 + fontType1 + 0x000000 + eval( + If CountryName = "Malaysia" Then + Var return = "Enable" + Else + Var return = "Invisible" + EndIf +) + "Enable CreditCard" + + + ; ; 930 ; info_cancel_y