THAI: Added Collecting Point page Lucky Draw

This commit is contained in:
Kenta420 2024-07-30 09:23:47 +07:00
parent 1e168c68ca
commit 902ab5badf
46 changed files with 1613 additions and 138 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 86 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 87 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 759 B

View file

@ -127,10 +127,10 @@ Var New_Payment = 0
Var XMLLiveInfoEnable = 0
Var CheckMemberPageCampaign = 0
Var LuckyDrawCampaign = 0
If SystemDateMonthInt = 1 Then
Var CheckMemberPageCampaign = 1
Var LuckyDrawCampaign = 1
EndIf
If SystemDateMonthInt = 5 Then
@ -195,7 +195,7 @@ If SystemDateMonthInt = 6 Then
EndIf
If SystemDateDayInt >= 17 Then
Var CheckMemberPageCampaign = 1
Var LuckyDrawCampaign = 1
EndIf
EndIf
@ -223,7 +223,7 @@ If SystemDateMonthInt = 7 Then
EndIf
If SystemDateMonthInt >= 7 Then
Var CheckMemberPageCampaign = 1
Var LuckyDrawCampaign = 1
EndIf

View file

@ -42,7 +42,8 @@
EndIf
Var luckyDrawTicket = 0
Var luckyDrawAlredyGotReward = 0
Var StepX = 2
@ -130,9 +131,10 @@
INT CoffeePointRank
Var CoffeePointRankTmp = CoffeePointRank
If CheckMemberPageCampaign = 1 Then
Var luckeyDrawTicket = Ext1h
INT luckeyDrawTicket
If LuckyDrawCampaign = 1 Then
Var luckyDrawTicket = Ext1h
INT luckyDrawTicket
Var luckyDrawAlredyGotReward = Ext1i
EndIf

View file

@ -32,6 +32,8 @@
Var Xtext = 246
Var luckyDrawTicket = 0
Var luckyDrawAlredyGotReward = 0
If show_eng = "true" Then
Var DirImage = "ROOT/taobin_project/image/collectiing_en"
@ -90,9 +92,10 @@
Var CoffeePointRankTmp = CoffeePointRank
If CheckMemberPageCampaign = 1 Then
If LuckyDrawCampaign = 1 Then
Var luckyDrawTicket = Ext1h
INT luckyDrawTicket
Var luckyDrawAlredyGotReward = Ext1i
EndIf

View file

@ -8,7 +8,7 @@
<EventOpen>
; On open
If CheckMemberPageCampaign = 1 Then
If LuckyDrawCampaign = 1 Then
Open "ROOT/taobin_project/xml/page_check_member2_campaign.xml"
EndIf

View file

@ -755,6 +755,15 @@
DEBUGVAR SystemDate
DEBUGVAR targetDate
DEBUGVAR dayDiff
Var ShowLuckyDrawTicketState = "Enable"
Var ShowLuckyDrawAlreadyGotRewardState = "Invisible"
If luckyDrawAlredyGotReward = 1 Then
Var ShowLuckyDrawTicketState = "Invisible"
Var ShowLuckyDrawAlreadyGotRewardState = "Enable"
EndIf
</EventOpen>
<Timeout> 1000 </Timeout>
<EventTimeout>
@ -1028,18 +1037,21 @@
<Image>
<X> 142 </X>
<X> 142 </X
<Y> 1036 </Y>
<State> ShowLuckyDrawTicketState </State>
<Filename> Var( DirImageCampaign + "/luckydraw_detail_container.png" ) </Filename>
</Image>
<Image>
<X> prize_x </X>
<Y> 1046 </Y>
<State> ShowLuckyDrawTicketState </State>
<Filename> Var( "ROOT/taobin_project/image/display_point_campaign" + prizeImg ) </Filename>
</Image>
<Text>
<State> ShowLuckyDrawTicketState </State>
<X> dayDiff_X </X>
<Y> dayDiff_Y </Y>
<Width> 40 </Width>
@ -1051,6 +1063,7 @@
</Text>
<Text>
<State> ShowLuckyDrawTicketState </State>
<X> 620 </X>
<Y> 1076 </Y>
<Width> 164 </Width>
@ -1062,6 +1075,26 @@
<Value> StringFmt( luckyDrawTicket , LuckyDrawTicketFormat, PreScaleConvertShow) </Value>
</Text>
<Text>
<State> ShowLuckyDrawAlreadyGotRewardState </State>
<X> 334 </X>
<Y> 1057 </Y>
<Font> KanitSemiBoldTTF </Font>
<Width> 390 </Width>
<Size> 24 </Size>
<Color> 0x84776F </Color>
<Align> center-vertical-horizontal </Align>
<Value>
eval(
If show_eng = "true" Then
Var return = "You already got Lucky Draw reward."
Else
Var return = "คุณได้รับรางวัล Lucky Draw ไปแล้ว"
EndIf
)
</Value>
</Text>
<Text>
<X> 142 </X>

View file

@ -777,7 +777,7 @@
;Open "ROOT/taobin_project/xml/page_catalog.xml"
SAVELOG "collect_point1-p589."
If CheckMemberPageCampaign = 1 Then
If LuckyDrawCampaign = 1 Then
Open "ROOT/taobin_project/xml/sometime/page_campaign_ads_lucky_draw.xml"
Else
Open "ROOT/taobin_project/xml/page_lid_straw.xml"

View file

@ -44,6 +44,8 @@
EndIf
Var GetLuckyDraw = 0
</EventOpen>
<Timeout> 1000 </Timeout>
<EventTimeout>
@ -111,6 +113,31 @@
Else
If GetLuckyDraw = 1 Then
If Ext1a = "ok" Then
DEBUGVAR Ext1h
DEBUGVAR Ext1i
Var luckyDrawTicket = Ext1h
INT luckyDrawTicket
Var luckyDrawAlredyGotReward = Ext1i
If luckyDrawAlredyGotReward = 1 Then
Open "ROOT/taobin_project/xml/page_collect_point_3_28.xml"
Else
Open "ROOT/taobin_project/xml/page_collect_point_3_28_lucky_draw_campaign.xml"
EndIf
Else
Var Seeker.TaobinErrorNetwork = 1
Var Seeker.PointTaobinStr = ParamCP
Var TelephoneNumber = TelephoneNumberX
Var Seeker.TNumberTaobinMember = TelephoneNumber
Open "ROOT/taobin_project/xml/page_collect_point_error.xml"
EndIf
EndIf
If GetLuckyDraw = 0 Then
If Ext1a = "ok" Then
Var TaobinName = Ext1d
@ -230,7 +257,12 @@
EndIf
If NewCollectPoint = 1 Then
If LuckyDrawCampaign = 1 Then
Var GetLuckyDraw = 1
GETACCEXT TelephoneNumber 14
Else
Open "ROOT/taobin_project/xml/page_collect_point_3_28.xml"
EndIf
Else
Open "ROOT/taobin_project/xml/page_collect_point_3.xml"
EndIf
@ -245,9 +277,7 @@
Var Seeker.TNumberTaobinMember = TelephoneNumber
Open "ROOT/taobin_project/xml/page_collect_point_error.xml"
EndIf
EndIf
EndIf
EndIf

View file

@ -683,7 +683,7 @@
Open "ROOT/taobin_project/xml/page_display_get_drink_5_baht.xml"
Else
If Seeker.IsLineMember = 0 Then
If CheckMemberPageCampaign = 1 Then
If LuckyDrawCampaign = 1 Then
Open "ROOT/taobin_project/xml/sometime/page_campaign_ads_lucky_draw.xml"
Else
Open "ROOT/taobin_project/xml/page_lid_straw.xml"
@ -694,7 +694,7 @@
EndIf
Else
If Seeker.IsLineMember = 0 Then
If CheckMemberPageCampaign = 1 Then
If LuckyDrawCampaign = 1 Then
Open "ROOT/taobin_project/xml/sometime/page_campaign_ads_lucky_draw.xml"
Else
Open "ROOT/taobin_project/xml/page_lid_straw.xml"
@ -843,7 +843,7 @@
Open "ROOT/taobin_project/xml/page_display_get_drink_5_baht.xml"
Else
If Seeker.IsLineMember = 0 Then
If CheckMemberPageCampaign = 1 Then
If LuckyDrawCampaign = 1 Then
Open "ROOT/taobin_project/xml/sometime/page_campaign_ads_lucky_draw.xml"
Else
Open "ROOT/taobin_project/xml/page_lid_straw.xml"
@ -854,7 +854,7 @@
EndIf
Else
If Seeker.IsLineMember = 0 Then
If CheckMemberPageCampaign = 1 Then
If LuckyDrawCampaign = 1 Then
Open "ROOT/taobin_project/xml/sometime/page_campaign_ads_lucky_draw.xml"
Else
Open "ROOT/taobin_project/xml/page_lid_straw.xml"
@ -1232,7 +1232,7 @@
</EventUnitTest2>
<EventUnitTest4>
If CheckMemberPageCampaign = 1 Then
If LuckyDrawCampaign = 1 Then
Open "ROOT/taobin_project/xml/sometime/page_campaign_ads_lucky_draw.xml"
Else
Open "ROOT/taobin_project/xml/page_lid_straw.xml"

File diff suppressed because it is too large Load diff

View file

@ -36,7 +36,7 @@
EndIf
Else
If Seeker.IsLineMember = 0 Then
If CheckMemberPageCampaign = 1 Then
If LuckyDrawCampaign = 1 Then
Open "ROOT/taobin_project/xml/sometime/page_campaign_ads_lucky_draw.xml"
Else
Open "ROOT/taobin_project/xml/page_lid_straw.xml"
@ -157,7 +157,7 @@
If FromCheckMemberPoint = 1 Then
Open "ROOT/taobin_project/xml/page_check_member2.xml"
Else
If CheckMemberPageCampaign = 1 Then
If LuckyDrawCampaign = 1 Then
Open "ROOT/taobin_project/xml/sometime/page_campaign_ads_lucky_draw.xml"
Else
Open "ROOT/taobin_project/xml/page_lid_straw.xml"
@ -181,7 +181,7 @@
Open "ROOT/taobin_project/xml/page_check_member2.xml"
Else
If Seeker.IsLineMember = 0 Then
If CheckMemberPageCampaign = 1 Then
If LuckyDrawCampaign = 1 Then
Open "ROOT/taobin_project/xml/sometime/page_campaign_ads_lucky_draw.xml"
Else
Open "ROOT/taobin_project/xml/page_lid_straw.xml"

View file

@ -53,7 +53,7 @@
Open "ROOT/taobin_project/xml/page_check_member2.xml"
Else
If Seeker.IsLineMember = 0 Then
If CheckMemberPageCampaign = 1 Then
If LuckyDrawCampaign = 1 Then
Open "ROOT/taobin_project/xml/sometime/page_campaign_ads_lucky_draw.xml"
Else
Open "ROOT/taobin_project/xml/page_lid_straw.xml"
@ -157,7 +157,7 @@
Open "ROOT/taobin_project/xml/page_check_member2.xml"
Else
If Seeker.IsLineMember = 0 Then
If CheckMemberPageCampaign = 1 Then
If LuckyDrawCampaign = 1 Then
Open "ROOT/taobin_project/xml/sometime/page_campaign_ads_lucky_draw.xml"
Else
Open "ROOT/taobin_project/xml/page_lid_straw.xml"

View file

@ -30,7 +30,7 @@
EndIf
Var consentImg = "/img_popup2.png"
If CheckMemberPageCampaign = 1 Then
If LuckyDrawCampaign = 1 Then
Var consentImg = "/img_popup3.png"
EndIf
@ -59,7 +59,11 @@
;GETACCEXT TelephoneNumber 14
; goto lid straw
If NewCollectPoint = 1 Then
If LuckyDrawCampaign = 1 Then
Open "ROOT/taobin_project/xml/page_collect_point_3_28_lucky_draw_campaign.xml"
Else
Open "ROOT/taobin_project/xml/page_collect_point_3_28.xml"
EndIf
Else
Open "ROOT/taobin_project/xml/page_collect_point_3.xml"
EndIf
@ -130,7 +134,11 @@
If UnitTestType = "1" Then
Var CoffeePoint = 10
If NewCollectPoint = 1 Then
If LuckyDrawCampaign = 1 Then
Open "ROOT/taobin_project/xml/page_collect_point_3_28_lucky_draw_campaign.xml"
Else
Open "ROOT/taobin_project/xml/page_collect_point_3_28.xml"
EndIf
Else
Open "ROOT/taobin_project/xml/page_collect_point_3.xml"
EndIf
@ -142,7 +150,11 @@
;GETACCEXT TelephoneNumber 14
; goto lid straw
If NewCollectPoint = 1 Then
If LuckyDrawCampaign = 1 Then
Open "ROOT/taobin_project/xml/page_collect_point_3_28_lucky_draw_campaign.xml"
Else
Open "ROOT/taobin_project/xml/page_collect_point_3_28.xml"
EndIf
Else
Open "ROOT/taobin_project/xml/page_collect_point_3.xml"
EndIf