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> </FilenameDisable>
<EventOnClick> <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> </EventOnClick>
</Button> </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 ; zone promote
DEBUGVAR FruityRayaEnable
If OpenFromPageBoard = 1 Then If OpenFromPageBoard = 1 Then
If Propepsi99Enable = 1 Then If FruityRayaEnable = 1 Then
Var BigButtonEnable = "Enable" 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 Var OpenFromPageBoard = 0
Else 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 EndIf
Else Else
If Propepsi99Enable = 1 Then If FruityRayaEnable = 1 Then
Var BigButtonEnable = "Enable" 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 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
EndIf EndIf
Var OpenFromPageBoard = 0 Var OpenFromPageBoard = 0

View file

@ -22,3 +22,6 @@ If SystemDateMonthInt = 4 Then
Var FruityRayaEnable = 1 Var FruityRayaEnable = 1
EndIf 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> <Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume> <Volume> SoundVolume </Volume>
<EventClick> <EventClick>
Var FromFruityRaya = 0
;Open PreviseXMLFileName2 ;Open PreviseXMLFileName2
DEBUGVAR OpenFromXML DEBUGVAR OpenFromXML

View file

@ -114,6 +114,8 @@
DEBUGVAR FromBadValentinePro DEBUGVAR FromBadValentinePro
DEBUGVAR LipitPro DEBUGVAR LipitPro
DEBUGVAR FromLipitPro DEBUGVAR FromLipitPro
DEBUGVAR FruityRayaEnable
DEBUGVAR FromFruityRaya
If Seeker.TNumberTaobinCredit = "" Then If Seeker.TNumberTaobinCredit = "" Then
@ -158,6 +160,15 @@
EndIf EndIf
EndIf EndIf
DEBUGVAR FruityRayaEnable
DEBUGVAR FromFruityRaya
If FruityRayaEnable = 1 Then
If FromFruityRaya = 1 Then
Open "ROOT/taobin_project/inter/mys/xml/event/fruit_raya/page_get_free_1_fruit_raya.lxml"
EndIf
EndIf
If PepweenEnable = 1 Then If PepweenEnable = 1 Then
If PepweenCollectPoint = 0 Then If PepweenCollectPoint = 0 Then
GETACCEXT TelephoneNumber 31 GETACCEXT TelephoneNumber 31
@ -226,6 +237,15 @@
EndIf EndIf
EndIf EndIf
DEBUGVAR FruityRayaEnable
DEBUGVAR FromFruityRaya
If FruityRayaEnable = 1 Then
If FromFruityRaya = 1 Then
Open "ROOT/taobin_project/inter/mys/xml/event/fruit_raya/page_get_free_1_fruit_raya.lxml"
EndIf
EndIf
If ProBadValentineEnable = 1 Then If ProBadValentineEnable = 1 Then
If FromBadValentinePro = 1 Then If FromBadValentinePro = 1 Then
GETACCEXT TelephoneNumber 32 GETACCEXT TelephoneNumber 32
@ -723,6 +743,15 @@
Var Param1 = TelephoneNumber + "/" Var Param1 = TelephoneNumber + "/"
Var Param1 = Param1 + ParamCP Var Param1 = Param1 + ParamCP
DEBUGVAR FruityRayaEnable
DEBUGVAR FromFruityRaya
If FruityRayaEnable = 1 Then
If FromFruityRaya = 1 Then
Open "ROOT/taobin_project/inter/mys/xml/event/fruit_raya/page_get_free_1_fruit_raya.lxml"
EndIf
EndIf
If MyMintEnable = 1 Then If MyMintEnable = 1 Then
If FromMyMintPro = 1 Then If FromMyMintPro = 1 Then
GETACCEXT TelephoneNumber 32 GETACCEXT TelephoneNumber 32
@ -801,9 +830,29 @@
<Image> <Image>
<X> 236 </X> <X> 236 </X>
<Y> 699 </Y> <Y> 699 </Y>
<State> eval(
If FromFruityRaya = 1 Then
Var return = "Invisible"
Else
Var return = "Enable"
EndIf
) </State>
<Filename> Var( DirImage + "/text_2.png") </Filename> <Filename> Var( DirImage + "/text_2.png") </Filename>
</Image> </Image>
<Image>
<X> 236 </X>
<Y> 699 </Y>
<State> eval(
If FromFruityRaya = 1 Then
Var return = "Enable"
Else
Var return = "Invisible"
EndIf
) </State>
<Filename> Var( DirImage + "/edit.png") </Filename>
</Image>
;include="ROOT/taobin_project/inc/video.inc" ;include="ROOT/taobin_project/inc/video.inc"

View file

@ -1385,6 +1385,8 @@
If EnoughChange = "yes" Then If EnoughChange = "yes" Then
CoinVending ON
Var alphaState2 = "Enable" Var alphaState2 = "Enable"
If RoadShow = "true" Then If RoadShow = "true" Then
@ -2288,5 +2290,15 @@ EndIf
</EventUnitTest3> </EventUnitTest3>
<EventUnitTest4>
Var GIFShowProcess = "ROOT/ui/page_05_loading/pic_loading_cup.gif"
Var MachineStage = "make-drink"
Var BrewingTextThai = "เตรียมแก้ว"
MakeDrinkV1 SelectDrink SelectSugarID
Open "ROOT/taobin_project/xml/page_thankyou.xml"
</EventUnitTest4>
</Popup> </Popup>