MYS: Promotion Fruity Raya & Turn off coin @ payment start.

This commit is contained in:
Pakin 2024-03-14 13:45:24 +07:00
parent a4497f5c5f
commit 8e51f91078
10 changed files with 839 additions and 630 deletions

View file

@ -0,0 +1,134 @@
<Popup>
<Cache> "Enable" </Cache>
<Width> 1080 </Width>
<Height> 1920 </Height>
<Background> "0xeae6e1" </Background>
<Volume> SoundVolume </Volume>
<EventOpen>
Var Timeout = 0
DEBUGVAR TelephoneNumber
DEBUGVAR FromFruityRaya
Var Cid = 43
Var param1 = ""
Var param2 = ""
Var param3 = ""
If FromFruityRaya = 1 Then
If TelephoneNumber = "" Then
Else
; Telephone must not empty
AddData Cid TelephoneNumber param1 param2 param3
EndIf
EndIf
; reset flag
Var FromFruityRaya = 0
; goto lid straw
Open "ROOT/taobin_project/xml/page_lid_straw.xml"
</EventOpen>
<Timeout> 1000 </Timeout>
<EventTimeout>
Var CountDownBrewing = BREW_CNT
Var ShowCountDownBrewing = CountDownBrewing
Var Timeout = Timeout + 1
If Timeout > 0 Then
EndIf
TimerReset
Refresh
</EventTimeout>
<EventSecurity>
Open "/media/bt/xml/security_alarm.xml"
</EventSecurity>
<EventActionOk>
;
</EventActionOk>
<EventMachine>
If MachineStage = "drink-success" Then
Var MachineState_Result = 1
EndIf
If MachineStage = "drink-failed" Then
Var MachineState_Result = 2
EndIf
</EventMachine>
;<Image>
;<X> 0 </X>
;<Y> 0 </Y>
;<Filename> "ROOT/taobin_project/image/ad_medium_2.png" </Filename>
;</Image>
;include="ROOT/taobin_project/inc/video.inc"
;<Image>
;<X> 0 </X>
;<Y> 380 </Y>
;<Filename> "ROOT/taobin_project/image/display_get_free/alpha.png" </Filename>
;</Image>
<Image>
<X> 0 </X>
<Y> 560 </Y>
<State> "Enable" </State>
<Filename> Var( DirImage + img_popup6 )</Filename>
</Image>
<Image>
<X> 751 </X>
<Y> 413 </Y>
<Filename> IMG_CNT </Filename>
</Image>
;
<Text>
<X> XPosiShowCountDownBrew </X>
<Y> 470 </Y>
<Align> End </Align>
<Width> 153 </Width>
<Size> 88 </Size>
<Font> RobotoBold </Font>
<Color> 0x513C2F </Color>
<Value> ShowCountDownBrewing </Value>
</Text>
<Text>
<X> 99 </X>
<Y> 1300 </Y>
<Align> center </Align>
<Size> 48 </Size>
<Color> 0x513C2F </Color>
<Value> "Please wait for coupon from SMS ... "
</Text>
</Popup>

View file

@ -1 +1 @@
/event/promotion_fruit_raya.xml
/event/promotion_fruit_raya.lxml

View file

@ -12571,7 +12571,7 @@
</FilenameDisable>
<EventOnClick>
Open "ROOT/taobin_project/inter/mys/xml/page_catalog_fruity_raya.xml"
Open "ROOT/taobin_project/inter/mys/xml/page_catalog_group_fruity_raya.lxml"
</EventOnClick>
</Button>

View file

@ -1 +1 @@
Open "ROOT/taobin_project/inter/mys/xml/page_catalog_fruity_raya.xml"
Open "ROOT/taobin_project/inter/mys/xml/page_catalog_fruity_raya.lxml"

View file

@ -2,25 +2,25 @@
; zone promote
DEBUGVAR FruityRayaEnable
If OpenFromPageBoard = 1 Then
If Propepsi99Enable = 1 Then
If FruityRayaEnable = 1 Then
Var BigButtonEnable = "Enable"
OpenInst 2 "ROOT/taobin_project/inter/mys/xml/event/promotion_pepsi_099.lxml"
OpenInst 2 "ROOT/taobin_project/inter/mys/xml/event/promotion_fruit_raya.lxml"
Var OpenFromPageBoard = 0
Else
OpenInst 2 "ROOT/taobin_project/inter/mys/xml/page_catalog_group_recommend.lxml"
OpenInst 2 "ROOT/taobin_project/inter/mys/xml/page_catalog_group_recommend.lxml"
EndIf
Else
If Propepsi99Enable = 1 Then
If FruityRayaEnable = 1 Then
Var BigButtonEnable = "Enable"
Open "ROOT/taobin_project/inter/mys/xml/event/promotion_pepsi_099.lxml"
OpenInst 2 "ROOT/taobin_project/inter/mys/xml/event/promotion_fruit_raya.lxml"
Var OpenFromPageBoard = 0
Else
Open "ROOT/taobin_project/inter/mys/xml/page_catalog_group_recommend.lxml"
OpenInst 2 "ROOT/taobin_project/inter/mys/xml/page_catalog_group_recommend.lxml"
EndIf
EndIf
Var OpenFromPageBoard = 0

View file

@ -22,3 +22,6 @@ If SystemDateMonthInt = 4 Then
Var FruityRayaEnable = 1
EndIf
If BoxID = 177746 Then
Var FruityRayaEnable = 1
EndIf

File diff suppressed because it is too large Load diff

View file

@ -519,6 +519,8 @@
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Var FromFruityRaya = 0
;Open PreviseXMLFileName2
DEBUGVAR OpenFromXML