THAI: Add Lipit promotion
This commit is contained in:
parent
96d8d558ac
commit
6596d83310
140 changed files with 94033 additions and 203 deletions
1968
xml/dummy_layout_double_pro.inc
Normal file
1968
xml/dummy_layout_double_pro.inc
Normal file
File diff suppressed because it is too large
Load diff
3449
xml/dummy_layout_triple_pro.inc
Normal file
3449
xml/dummy_layout_triple_pro.inc
Normal file
File diff suppressed because it is too large
Load diff
12137
xml/event/double_promotion_lipit_and_monday_banana.xml
Normal file
12137
xml/event/double_promotion_lipit_and_monday_banana.xml
Normal file
File diff suppressed because it is too large
Load diff
1
xml/event/double_promotion_onclick1.inc
Normal file
1
xml/event/double_promotion_onclick1.inc
Normal file
|
|
@ -0,0 +1 @@
|
|||
Var BigButtonEnable = "Invisible"
|
||||
1
xml/event/double_promotion_onclick2.inc
Normal file
1
xml/event/double_promotion_onclick2.inc
Normal file
|
|
@ -0,0 +1 @@
|
|||
Var BigButtonEnable = "Invisible"
|
||||
12137
xml/event/double_promotion_pepsi_second_cup_30_and_monday_banana.xml
Normal file
12137
xml/event/double_promotion_pepsi_second_cup_30_and_monday_banana.xml
Normal file
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
125
xml/event/double_promotion_template1.inc
Normal file
125
xml/event/double_promotion_template1.inc
Normal file
|
|
@ -0,0 +1,125 @@
|
|||
<Button>
|
||||
<X> 42 </X>
|
||||
<Y> 518 </Y>
|
||||
|
||||
<State> BigButtonEnable </State>
|
||||
<Filename>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = ###normal_eng
|
||||
Else
|
||||
Var return = ###normal_thai
|
||||
EndIf
|
||||
)
|
||||
</Filename>
|
||||
<FilenamePress>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = ###normal_eng
|
||||
Else
|
||||
Var return = ###normal_thai
|
||||
EndIf
|
||||
)
|
||||
</FilenamePress>
|
||||
<FilenameDisable>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = ###normal_eng
|
||||
Else
|
||||
Var return = ###normal_thai
|
||||
EndIf
|
||||
)
|
||||
</FilenameDisable>
|
||||
<EventOnClick>
|
||||
|
||||
Open "ROOT/taobin_project/xml/page_catalog_group_pro_pepsi_second_cup_30.xml"
|
||||
|
||||
</EventOnClick>
|
||||
|
||||
|
||||
<Video>
|
||||
<X> 42 </X>
|
||||
<Y> 518 </Y>
|
||||
<Width> 484 </Width>
|
||||
<Height> 616 </Height>
|
||||
<Loop> "true" </Loop>
|
||||
<State>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = "Invisible"
|
||||
Else
|
||||
Var return = "Enable"
|
||||
EndIf
|
||||
)
|
||||
</State>
|
||||
<Filename> "ROOT/taobin_project/image/event/pepsi_second_cup_30/pro_pepsi_second_cup_30_th.mp4" </Filename>
|
||||
</Video>
|
||||
|
||||
<Video>
|
||||
<X> 42 </X>
|
||||
<Y> 518 </Y>
|
||||
<Width> 484 </Width>
|
||||
<Height> 616 </Height>
|
||||
<State>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = "Enable"
|
||||
Else
|
||||
Var return = "Invisible"
|
||||
EndIf
|
||||
)
|
||||
</State>
|
||||
<Loop> "true" </Loop>
|
||||
<Filename> "ROOT/taobin_project/image/event/pepsi_second_cup_30/pro_pepsi_second_cup_30_en.mp4" </Filename>
|
||||
</Video>
|
||||
|
||||
</Button>
|
||||
|
||||
<Button>
|
||||
<X> 559 </X>
|
||||
<Y> 519 </Y>
|
||||
|
||||
<State> BigButtonEnable </State>
|
||||
<Filename>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = ###second_normal_eng
|
||||
Else
|
||||
Var return = ###second_normal_thai
|
||||
EndIf
|
||||
)
|
||||
</Filename>
|
||||
<FilenamePress>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = ###second_normal_eng
|
||||
Else
|
||||
Var return = ###second_normal_thai
|
||||
EndIf
|
||||
)
|
||||
</FilenamePress>
|
||||
<FilenameDisable>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = ###second_normal_eng
|
||||
Else
|
||||
Var return = ###second_normal_thai
|
||||
EndIf
|
||||
)
|
||||
</FilenameDisable>
|
||||
<EventOnClick>
|
||||
|
||||
Open "ROOT/taobin_project/xml/page_catalog_group_pro_monday_banana.xml"
|
||||
|
||||
</EventOnClick>
|
||||
|
||||
</Button>
|
||||
|
||||
<EventUnitTest1>
|
||||
Var BigButtonEnable = "Enable"
|
||||
Refresh
|
||||
</EventUnitTest1>
|
||||
<EventUnitTest2>
|
||||
Var BigButtonEnable = "Invisible"
|
||||
Refresh
|
||||
</EventUnitTest2>
|
||||
125
xml/event/double_promotion_template2.inc
Normal file
125
xml/event/double_promotion_template2.inc
Normal file
|
|
@ -0,0 +1,125 @@
|
|||
<Button>
|
||||
<X> 42 </X>
|
||||
<Y> 518 </Y>
|
||||
|
||||
<State> BigButtonEnable </State>
|
||||
<Filename>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = ###normal_eng
|
||||
Else
|
||||
Var return = ###normal_thai
|
||||
EndIf
|
||||
)
|
||||
</Filename>
|
||||
<FilenamePress>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = ###normal_eng
|
||||
Else
|
||||
Var return = ###normal_thai
|
||||
EndIf
|
||||
)
|
||||
</FilenamePress>
|
||||
<FilenameDisable>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = ###normal_eng
|
||||
Else
|
||||
Var return = ###normal_thai
|
||||
EndIf
|
||||
)
|
||||
</FilenameDisable>
|
||||
<EventOnClick>
|
||||
|
||||
Open "ROOT/taobin_project/xml/page_catalog_group_pro_lipit.xml"
|
||||
|
||||
</EventOnClick>
|
||||
|
||||
|
||||
<Video>
|
||||
<X> 42 </X>
|
||||
<Y> 518 </Y>
|
||||
<Width> 484 </Width>
|
||||
<Height> 616 </Height>
|
||||
<Loop> "true" </Loop>
|
||||
<State>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = "Invisible"
|
||||
Else
|
||||
Var return = "Enable"
|
||||
EndIf
|
||||
)
|
||||
</State>
|
||||
<Filename> "ROOT/taobin_project/image/event/lipit/pro_lipit_th.mp4" </Filename>
|
||||
</Video>
|
||||
|
||||
<Video>
|
||||
<X> 42 </X>
|
||||
<Y> 518 </Y>
|
||||
<Width> 484 </Width>
|
||||
<Height> 616 </Height>
|
||||
<State>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = "Enable"
|
||||
Else
|
||||
Var return = "Invisible"
|
||||
EndIf
|
||||
)
|
||||
</State>
|
||||
<Loop> "true" </Loop>
|
||||
<Filename> "ROOT/taobin_project/image/event/lipit/pro_lipit_en.mp4" </Filename>
|
||||
</Video>
|
||||
|
||||
</Button>
|
||||
|
||||
<Button>
|
||||
<X> 559 </X>
|
||||
<Y> 519 </Y>
|
||||
|
||||
<State> BigButtonEnable </State>
|
||||
<Filename>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = ###second_normal_eng
|
||||
Else
|
||||
Var return = ###second_normal_thai
|
||||
EndIf
|
||||
)
|
||||
</Filename>
|
||||
<FilenamePress>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = ###second_normal_eng
|
||||
Else
|
||||
Var return = ###second_normal_thai
|
||||
EndIf
|
||||
)
|
||||
</FilenamePress>
|
||||
<FilenameDisable>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = ###second_normal_eng
|
||||
Else
|
||||
Var return = ###second_normal_thai
|
||||
EndIf
|
||||
)
|
||||
</FilenameDisable>
|
||||
<EventOnClick>
|
||||
|
||||
Open "ROOT/taobin_project/xml/page_catalog_group_pro_monday_banana.xml"
|
||||
|
||||
</EventOnClick>
|
||||
|
||||
</Button>
|
||||
|
||||
<EventUnitTest1>
|
||||
Var BigButtonEnable = "Enable"
|
||||
Refresh
|
||||
</EventUnitTest1>
|
||||
<EventUnitTest2>
|
||||
Var BigButtonEnable = "Invisible"
|
||||
Refresh
|
||||
</EventUnitTest2>
|
||||
|
|
@ -4,45 +4,55 @@ else:
|
|||
|
||||
#print("params=" + param)
|
||||
#print( "dir= " + directory_to_process + "/page_catalog_group_recommend.xml");
|
||||
file_xml = open(directory_to_process + "/page_catalog_group_recommend.xml", 'r')
|
||||
file_content_main = file_xml.read()
|
||||
file_recommend = open(directory_to_process + "/page_catalog_group_recommend.xml", 'r')
|
||||
content_recommend = file_recommend.read()
|
||||
|
||||
file_recommend_double_pro = open(directory_to_process + "/page_catalog_group_recommend_double_pro.xml", "r")
|
||||
content_recommend_double_pro = file_recommend_double_pro.read()
|
||||
|
||||
file_recommend_triple_pro = open(directory_to_process + "/page_catalog_group_recommend_triple_pro.xml", "r")
|
||||
content_recommend_triple_pro = file_recommend_triple_pro.read()
|
||||
#print(file_xml.read())
|
||||
# ; include-file=dummy_layout.inc
|
||||
file_inc = open(directory_to_process + "/dummy_layout.inc", 'r')
|
||||
file_inc_content = file_inc.read()
|
||||
# file_inc = open(directory_to_process + "/dummy_layout.inc", 'r')
|
||||
# file_inc_content = file_inc.read()
|
||||
|
||||
|
||||
file_xml.close()
|
||||
file_recommend.close()
|
||||
file_recommend_double_pro.close()
|
||||
if "template1" in param:
|
||||
|
||||
file_inc2 = open(directory_to_process + "/event/promotion_template1.inc", 'r')
|
||||
file_inc2_content = file_inc2.read()
|
||||
file_inc1 = open(directory_to_process + "/event/promotion_template1.inc", 'r')
|
||||
file_inc1_content = file_inc1.read()
|
||||
file_inc_img = open(directory_to_process + "../image/event/image_template1", 'r')
|
||||
file_inc2_img_content = file_inc_img.read()
|
||||
file_inc1_img_content = file_inc_img.read()
|
||||
|
||||
# replace key.
|
||||
|
||||
sp_key = file_inc2_img_content.split("\n")
|
||||
sp_key = file_inc1_img_content.split("\n")
|
||||
#print("sp_key = " + str(len( sp_key)))
|
||||
for sp_line in sp_key:
|
||||
sp_line = sp_line.strip()
|
||||
key_val = sp_line.split("=")
|
||||
if len( key_val) == 2:
|
||||
#print("k = " + key_val[0] + " val=" + key_val[1])
|
||||
file_inc2_content = file_inc2_content.replace( "###" + key_val[0], '"' + key_val[1].strip() + '"')
|
||||
file_inc1_content = file_inc1_content.replace( "###" + key_val[0], '"' + key_val[1].strip() + '"')
|
||||
|
||||
|
||||
file_inc_event_click = open(directory_to_process + "/event/promotion_onclick1.inc", 'r')
|
||||
file_inc_event_click_content = file_inc_event_click.read()
|
||||
|
||||
file_inc2_content = file_inc2_content.replace("###EventOnClick", file_inc_event_click_content)
|
||||
file_inc1_content = file_inc1_content.replace("###EventOnClick", file_inc_event_click_content)
|
||||
|
||||
|
||||
#print(file_inc2_content)
|
||||
|
||||
#print( file_inc_content)
|
||||
content_data_was_repack = file_content_main.replace(";dummy_layout.inc", file_inc_content)
|
||||
content_data = content_data_was_repack.replace(";BigLogoLayout", file_inc2_content)
|
||||
file_inc = open(directory_to_process + "/dummy_layout.inc", 'r')
|
||||
file_inc_content = file_inc.read()
|
||||
|
||||
content_data_was_repack = content_recommend.replace(";dummy_layout.inc", file_inc_content)
|
||||
content_data = content_data_was_repack.replace(";BigLogoLayout", file_inc1_content)
|
||||
|
||||
begin_text = content_data.index(";TAGESP")
|
||||
end_text = content_data.index(";TAGESP", begin_text + 7)
|
||||
|
|
@ -93,7 +103,10 @@ else:
|
|||
#print(file_inc2_content)
|
||||
|
||||
#print( file_inc_content)
|
||||
content_data_was_repack = file_content_main.replace(";dummy_layout.inc", file_inc_content)
|
||||
file_inc = open(directory_to_process + "/dummy_layout.inc", 'r')
|
||||
file_inc_content = file_inc.read()
|
||||
|
||||
content_data_was_repack = content_recommend.replace(";dummy_layout.inc", file_inc_content)
|
||||
content_data = content_data_was_repack.replace(";BigLogoLayout", file_inc2_content)
|
||||
|
||||
begin_text = content_data.index(";TAGESP")
|
||||
|
|
@ -145,7 +158,10 @@ else:
|
|||
#print(file_inc3_content)
|
||||
|
||||
#print( file_inc_content)
|
||||
content_data_was_repack = file_content_main.replace(";dummy_layout.inc", file_inc_content)
|
||||
file_inc = open(directory_to_process + "/dummy_layout.inc", 'r')
|
||||
file_inc_content = file_inc.read()
|
||||
|
||||
content_data_was_repack = content_recommend.replace(";dummy_layout.inc", file_inc_content)
|
||||
content_data = content_data_was_repack.replace(";BigLogoLayout", file_inc3_content)
|
||||
|
||||
begin_text = content_data.index(";TAGESP")
|
||||
|
|
@ -168,3 +184,171 @@ else:
|
|||
file_xml3 = open(directory_to_process + file_xml3_out_content, 'w')
|
||||
file_xml3.write( content_data)
|
||||
file_xml3.close()
|
||||
|
||||
if "double_template1" in param:
|
||||
file_inc_double1 = open(directory_to_process + "/event/double_promotion_template1.inc", 'r')
|
||||
file_inc_double1_content = file_inc_double1.read()
|
||||
file_inc_img = open(directory_to_process + "../image/event/image_double_template1", 'r')
|
||||
file_inc_double1_img_content = file_inc_img.read()
|
||||
|
||||
# replace key.
|
||||
|
||||
sp_key = file_inc_double1_img_content.split("\n")
|
||||
#print("sp_key = " + str(len( sp_key)))
|
||||
for sp_line in sp_key:
|
||||
sp_line = sp_line.strip()
|
||||
key_val = sp_line.split("=")
|
||||
#print("Kenta420:", key_val)
|
||||
if len( key_val) == 2:
|
||||
#print("k = " + key_val[0] + " val=" + key_val[1])
|
||||
file_inc_double1_content = file_inc_double1_content.replace( "###" + key_val[0], '"' + key_val[1].strip() + '"')
|
||||
|
||||
|
||||
file_inc_event_click = open(directory_to_process + "/event/double_promotion_onclick1.inc", 'r')
|
||||
file_inc_event_click_content = file_inc_event_click.read()
|
||||
|
||||
file_inc_double1_content = file_inc_double1_content.replace("###EventOnClick", file_inc_event_click_content)
|
||||
|
||||
|
||||
# print(file_inc_double1_content)
|
||||
|
||||
# print( file_inc_content)
|
||||
|
||||
file_inc = open(directory_to_process + "/dummy_layout_double_pro.inc", 'r')
|
||||
file_inc_content = file_inc.read()
|
||||
|
||||
content_data_was_repack = content_recommend_double_pro.replace(";dummy_layout.inc", file_inc_content)
|
||||
content_data = content_data_was_repack.replace(";BigLogoLayout", file_inc_double1_content)
|
||||
|
||||
begin_text = content_data.index(";TAGESP")
|
||||
end_text = content_data.index(";TAGESP", begin_text + 7)
|
||||
#print("sub text = " + str(begin_text) + " end = " + str(end_text))
|
||||
tmp1 = content_data[: begin_text - 7]
|
||||
|
||||
tmp3 = content_data[ end_text:-1]
|
||||
#print("tmp1=" + tmp1)
|
||||
#print("tmp3=" + tmp3)
|
||||
|
||||
content_data = tmp1 + tmp3
|
||||
|
||||
file_xml_double1_out = open(directory_to_process + "/event/out_put_file_double_pro1.txt", 'r')
|
||||
file_xml_double1_out_content = file_xml_double1_out.read()
|
||||
file_xml_double1_out_content = file_xml_double1_out_content.strip()
|
||||
file_xml_double1_out_content = file_xml_double1_out_content.replace("\r", "")
|
||||
file_xml_double1_out_content = file_xml_double1_out_content.replace("\n", "")
|
||||
|
||||
file_xml_double1 = open(directory_to_process + file_xml_double1_out_content, 'w')
|
||||
file_xml_double1.write( content_data)
|
||||
file_xml_double1.close()
|
||||
|
||||
if "double_template2" in param:
|
||||
file_inc_double2 = open(directory_to_process + "/event/double_promotion_template2.inc", 'r')
|
||||
file_inc_double2_content = file_inc_double2.read()
|
||||
file_inc_img = open(directory_to_process + "../image/event/image_double_template2", 'r')
|
||||
file_inc_double2_img_content = file_inc_img.read()
|
||||
|
||||
# replace key.
|
||||
|
||||
sp_key = file_inc_double2_img_content.split("\n")
|
||||
#print("sp_key = " + str(len( sp_key)))
|
||||
for sp_line in sp_key:
|
||||
sp_line = sp_line.strip()
|
||||
key_val = sp_line.split("=")
|
||||
#print("Kenta420:", key_val)
|
||||
if len( key_val) == 2:
|
||||
#print("k = " + key_val[0] + " val=" + key_val[1])
|
||||
file_inc_double2_content = file_inc_double2_content.replace( "###" + key_val[0], '"' + key_val[1].strip() + '"')
|
||||
|
||||
|
||||
file_inc_event_click = open(directory_to_process + "/event/double_promotion_onclick2.inc", 'r')
|
||||
file_inc_event_click_content = file_inc_event_click.read()
|
||||
|
||||
file_inc_double2_content = file_inc_double2_content.replace("###EventOnClick", file_inc_event_click_content)
|
||||
|
||||
|
||||
# print(file_inc_double2_content)
|
||||
|
||||
# print( file_inc_content)
|
||||
|
||||
file_inc = open(directory_to_process + "/dummy_layout_double_pro.inc", 'r')
|
||||
file_inc_content = file_inc.read()
|
||||
|
||||
content_data_was_repack = content_recommend_double_pro.replace(";dummy_layout.inc", file_inc_content)
|
||||
content_data = content_data_was_repack.replace(";BigLogoLayout", file_inc_double2_content)
|
||||
|
||||
begin_text = content_data.index(";TAGESP")
|
||||
end_text = content_data.index(";TAGESP", begin_text + 7)
|
||||
#print("sub text = " + str(begin_text) + " end = " + str(end_text))
|
||||
tmp1 = content_data[: begin_text - 7]
|
||||
|
||||
tmp3 = content_data[ end_text:-1]
|
||||
#print("tmp1=" + tmp1)
|
||||
#print("tmp3=" + tmp3)
|
||||
|
||||
content_data = tmp1 + tmp3
|
||||
|
||||
file_xml_double2_out = open(directory_to_process + "/event/out_put_file_double_pro1.txt", 'r')
|
||||
file_xml_double2_out_content = file_xml_double2_out.read()
|
||||
file_xml_double2_out_content = file_xml_double2_out_content.strip()
|
||||
file_xml_double2_out_content = file_xml_double2_out_content.replace("\r", "")
|
||||
file_xml_double2_out_content = file_xml_double2_out_content.replace("\n", "")
|
||||
|
||||
file_xml_double2 = open(directory_to_process + file_xml_double2_out_content, 'w')
|
||||
file_xml_double2.write( content_data)
|
||||
file_xml_double2.close()
|
||||
|
||||
if "triple_template1" in param:
|
||||
file_inc_triple1 = open(directory_to_process + "/event/triple_promotion_template1.inc", 'r')
|
||||
file_inc_triple1_content = file_inc_triple1.read()
|
||||
file_inc_img = open(directory_to_process + "../image/event/image_triple_template1", 'r')
|
||||
file_inc_triple1_img_content = file_inc_img.read()
|
||||
|
||||
# replace key.
|
||||
|
||||
sp_key = file_inc_triple1_img_content.split("\n")
|
||||
#print("sp_key = " + str(len( sp_key)))
|
||||
for sp_line in sp_key:
|
||||
sp_line = sp_line.strip()
|
||||
key_val = sp_line.split("=")
|
||||
#print("Kenta420:", key_val)
|
||||
if len( key_val) == 2:
|
||||
#print("k = " + key_val[0] + " val=" + key_val[1])
|
||||
file_inc_triple1_content = file_inc_triple1_content.replace( "###" + key_val[0], '"' + key_val[1].strip() + '"')
|
||||
|
||||
|
||||
file_inc_event_click = open(directory_to_process + "/event/triple_promotion_onclick1.inc", 'r')
|
||||
file_inc_event_click_content = file_inc_event_click.read()
|
||||
|
||||
file_inc_triple1_content = file_inc_triple1_content.replace("###EventOnClick", file_inc_event_click_content)
|
||||
|
||||
|
||||
# print(file_inc_triple1_content)
|
||||
|
||||
# print( file_inc_content)
|
||||
|
||||
file_inc = open(directory_to_process + "/dummy_layout_triple_pro.inc", 'r')
|
||||
file_inc_content = file_inc.read()
|
||||
|
||||
content_data_was_repack = content_recommend_triple_pro.replace(";dummy_layout.inc", file_inc_content)
|
||||
content_data = content_data_was_repack.replace(";BigLogoLayout", file_inc_triple1_content)
|
||||
|
||||
begin_text = content_data.index(";TAGESP")
|
||||
end_text = content_data.index(";TAGESP", begin_text + 7)
|
||||
#print("sub text = " + str(begin_text) + " end = " + str(end_text))
|
||||
tmp1 = content_data[: begin_text - 7]
|
||||
|
||||
tmp3 = content_data[ end_text:-1]
|
||||
#print("tmp1=" + tmp1)
|
||||
#print("tmp3=" + tmp3)
|
||||
|
||||
content_data = tmp1 + tmp3
|
||||
|
||||
file_xml_triple1_out = open(directory_to_process + "/event/out_put_file_triple_pro1.txt", 'r')
|
||||
file_xml_triple1_out_content = file_xml_triple1_out.read()
|
||||
file_xml_triple1_out_content = file_xml_triple1_out_content.strip()
|
||||
file_xml_triple1_out_content = file_xml_triple1_out_content.replace("\r", "")
|
||||
file_xml_triple1_out_content = file_xml_triple1_out_content.replace("\n", "")
|
||||
|
||||
file_xml_triple1 = open(directory_to_process + file_xml_triple1_out_content, 'w')
|
||||
file_xml_triple1.write( content_data)
|
||||
file_xml_triple1.close()
|
||||
375
xml/event/lipit/page_collect_point_pro_lipit_2.xml
Normal file
375
xml/event/lipit/page_collect_point_pro_lipit_2.xml
Normal file
|
|
@ -0,0 +1,375 @@
|
|||
<Popup>
|
||||
<Cache> "Enable" </Cache>
|
||||
<Width> 1080 </Width>
|
||||
<Height> 1920 </Height>
|
||||
<Background> "0xeae6e1" </Background>
|
||||
<Volume> SoundVolume </Volume>
|
||||
|
||||
<EventOpen>
|
||||
; On open
|
||||
|
||||
Var Timeout = 0
|
||||
SAVELOG UnitTestType
|
||||
|
||||
Var TaobinLevel = 0
|
||||
Var Point2X = 0
|
||||
|
||||
Var Seeker.TaobinErrorNetwork = 0
|
||||
|
||||
If show_eng = "true" Then
|
||||
Var DirImage = "ROOT/taobin_project/image/collectiing_en"
|
||||
|
||||
Var IMG_CNT = "ROOT/taobin_project/image/page_doing/img2_eng.png"
|
||||
Else
|
||||
Var DirImage = "ROOT/taobin_project/image/collectiing"
|
||||
|
||||
Var IMG_CNT = "ROOT/taobin_project/image/page_doing/img2.png"
|
||||
EndIf
|
||||
|
||||
Var Seeker.IsLineMember = 0
|
||||
|
||||
If PayOfflineMode = 1 Then
|
||||
Var Seeker.TaobinErrorNetwork = 1
|
||||
Var Seeker.PointTaobinStr = ParamCP
|
||||
Var TelephoneNumber = TelephoneNumberX
|
||||
Var Seeker.TNumberTaobinMember= TelephoneNumber
|
||||
Var CollectPointError = "collect"
|
||||
Open "ROOT/taobin_project/xml/event/lipit/page_collect_point_pro_lipit_error.xml"
|
||||
EndIf
|
||||
|
||||
</EventOpen>
|
||||
<Timeout> 1000 </Timeout>
|
||||
<EventTimeout>
|
||||
Var CountDownBrewing = BREW_CNT
|
||||
|
||||
Var ShowCountDownBrewing = CountDownBrewing
|
||||
|
||||
|
||||
Var Timeout = Timeout + 1
|
||||
If Timeout > 30 Then
|
||||
|
||||
|
||||
Var TaobinLevel = 0
|
||||
Var CoffeePoint = 1
|
||||
|
||||
Var Seeker.TaobinErrorNetwork = 1
|
||||
Var Seeker.PointTaobinStr = ParamCP
|
||||
|
||||
Var TelephoneNumber = TelephoneNumberX
|
||||
|
||||
Var Seeker.TNumberTaobinMember= TelephoneNumber
|
||||
Var CollectPointError = "collect"
|
||||
Open "ROOT/taobin_project/xml/event/bad_valentine/page_collect_point_pro_lipit_error.xml"
|
||||
|
||||
EndIf
|
||||
|
||||
TimerReset
|
||||
Refresh
|
||||
</EventTimeout>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<EventSecurity>
|
||||
Open "/media/bt/xml/security_alarm.xml"
|
||||
</EventSecurity>
|
||||
|
||||
<EventActionOk>
|
||||
If Ext1a = "" Then
|
||||
|
||||
Var Seeker.TaobinErrorNetwork = 1
|
||||
Var Seeker.PointTaobinStr = ParamCP
|
||||
Var TelephoneNumber = TelephoneNumberX
|
||||
Var Seeker.TNumberTaobinMember = TelephoneNumber
|
||||
Var CollectPointError = "collect"
|
||||
Open "ROOT/taobin_project/xml/event/bad_valentine/page_collect_point_pro_lipit_error.xml"
|
||||
|
||||
Else
|
||||
Var TaobinName = Ext1b
|
||||
Var TelephoneNumber = TelephoneNumberX
|
||||
Var TNumberTaobinMemberXXX = TelephoneNumber
|
||||
If TaobinName = "" Then
|
||||
Var Seeker.IsLineMember = 0
|
||||
Else
|
||||
If TaobinName = "-" Then
|
||||
Var Seeker.IsLineMember = 0
|
||||
Else
|
||||
Var Seeker.IsLineMember = 1
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
|
||||
If Seeker.IsLineMember = 0 Then
|
||||
SAVELOG "Not Line Member skip to normal collect point."
|
||||
If Seeker.CodeChannel = 1 Then
|
||||
If Seeker.CollectPointMain = 1 Then
|
||||
GETACCEXT Param1 23
|
||||
Open "ROOT/taobin_project/xml/page_collect_point_2.xml"
|
||||
Else
|
||||
Open "ROOT/taobin_project/xml/page_lid_straw.xml"
|
||||
EndIf
|
||||
Else
|
||||
GETACCEXT Param1 23
|
||||
Open "ROOT/taobin_project/xml/page_collect_point_2.xml"
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
|
||||
Var Seeker.PointTaobinStr = ParamCP
|
||||
Var Seeker.TNumberTaobinMember = TelephoneNumberX
|
||||
|
||||
Var PointState[0] = 0
|
||||
Var PointState[1] = 0
|
||||
Var PointState[2] = 0
|
||||
Var PointState[3] = 0
|
||||
Var PointState[4] = 0
|
||||
Var PointState[5] = 0
|
||||
Var PointState[6] = 0
|
||||
Var PointState[7] = 0
|
||||
Var PointState[8] = 0
|
||||
Var PointState[9] = 0
|
||||
|
||||
DEBUGVAR Ext1a
|
||||
|
||||
SPLIT Ext1a "/" 1 PointState[0]
|
||||
SPLIT Ext1a "/" 2 PointState[1]
|
||||
SPLIT Ext1a "/" 3 PointState[2]
|
||||
SPLIT Ext1a "/" 4 PointState[3]
|
||||
SPLIT Ext1a "/" 5 PointState[4]
|
||||
SPLIT Ext1a "/" 6 PointState[5]
|
||||
SPLIT Ext1a "/" 7 PointState[6]
|
||||
SPLIT Ext1a "/" 8 PointState[7]
|
||||
SPLIT Ext1a "/" 9 PointState[8]
|
||||
SPLIT Ext1a "/" 10 PointState[9]
|
||||
|
||||
INT PointState[0]
|
||||
INT PointState[1]
|
||||
INT PointState[2]
|
||||
INT PointState[3]
|
||||
INT PointState[4]
|
||||
INT PointState[5]
|
||||
INT PointState[6]
|
||||
INT PointState[7]
|
||||
INT PointState[8]
|
||||
INT PointState[9]
|
||||
|
||||
DEBUGVAR PointState[0]
|
||||
DEBUGVAR PointState[1]
|
||||
DEBUGVAR PointState[2]
|
||||
DEBUGVAR PointState[3]
|
||||
DEBUGVAR PointState[4]
|
||||
DEBUGVAR PointState[5]
|
||||
DEBUGVAR PointState[6]
|
||||
DEBUGVAR PointState[7]
|
||||
DEBUGVAR PointState[8]
|
||||
DEBUGVAR PointState[9]
|
||||
|
||||
Var newPointIndex = ""
|
||||
|
||||
; Point 1
|
||||
If Seeker.selected_a_drink = "12-03-03-0046" Then
|
||||
If PointState[0] = 1 Then
|
||||
Var newPointIndex = ""
|
||||
Else
|
||||
Var newPointIndex = 0
|
||||
EndIf
|
||||
|
||||
Var PointState[0] = 1
|
||||
EndIf
|
||||
|
||||
|
||||
; Point 2
|
||||
If Seeker.selected_a_drink = "12-03-03-0047" Then
|
||||
If PointState[1] = 1 Then
|
||||
Var newPointIndex = ""
|
||||
Else
|
||||
Var newPointIndex = 1
|
||||
EndIf
|
||||
|
||||
Var PointState[1] = 1
|
||||
EndIf
|
||||
|
||||
|
||||
; Point 3
|
||||
If Seeker.selected_a_drink = "12-99-05-0063" Then
|
||||
If PointState[2] = 1 Then
|
||||
Var newPointIndex = ""
|
||||
Else
|
||||
Var newPointIndex = 2
|
||||
EndIf
|
||||
|
||||
Var PointState[2] = 1
|
||||
EndIf
|
||||
|
||||
; Point 4
|
||||
If Seeker.selected_a_drink = "12-03-02-0040" Then
|
||||
If PointState[3] = 1 Then
|
||||
Var newPointIndex = ""
|
||||
Else
|
||||
Var newPointIndex = 3
|
||||
EndIf
|
||||
|
||||
Var PointState[3] = 1
|
||||
EndIf
|
||||
|
||||
|
||||
; Point 5
|
||||
If Seeker.selected_a_drink = "12-05-03-0063" Then
|
||||
If PointState[4] = 1 Then
|
||||
Var newPointIndex = ""
|
||||
Else
|
||||
Var newPointIndex = 4
|
||||
EndIf
|
||||
Var PointState[4] = 1
|
||||
EndIf
|
||||
|
||||
|
||||
; Point 6
|
||||
If Seeker.selected_a_drink = "12-05-02-0080" Then
|
||||
If PointState[5] = 1 Then
|
||||
Var newPointIndex = ""
|
||||
Else
|
||||
Var newPointIndex = 5
|
||||
EndIf
|
||||
|
||||
Var PointState[5] = 1
|
||||
EndIf
|
||||
|
||||
|
||||
; Point 7
|
||||
If Seeker.selected_a_drink = "12-02-03-0053" Then
|
||||
If PointState[6] = 1 Then
|
||||
Var newPointIndex = ""
|
||||
Else
|
||||
Var newPointIndex = 6
|
||||
EndIf
|
||||
|
||||
Var PointState[6] = 1
|
||||
EndIf
|
||||
|
||||
|
||||
; Point 8
|
||||
If Seeker.selected_a_drink = "12-03-02-0041" Then
|
||||
If PointState[7] = 1 Then
|
||||
Var newPointIndex = ""
|
||||
Else
|
||||
Var newPointIndex = 7
|
||||
EndIf
|
||||
Var PointState[7] = 1
|
||||
EndIf
|
||||
|
||||
; Point 9
|
||||
If Seeker.selected_a_drink = "12-02-02-0056" Then
|
||||
If PointState[8] = 1 Then
|
||||
Var newPointIndex = ""
|
||||
Else
|
||||
Var newPointIndex = 8
|
||||
EndIf
|
||||
|
||||
Var PointState[8] = 1
|
||||
EndIf
|
||||
|
||||
; Point 10
|
||||
If Seeker.selected_a_drink = "12-05-03-0064" Then
|
||||
If PointState[9] = 1 Then
|
||||
Var newPointIndex = ""
|
||||
Else
|
||||
Var newPointIndex = 9
|
||||
EndIf
|
||||
|
||||
Var PointState[9] = 1
|
||||
EndIf
|
||||
|
||||
DEBUGVAR Seeker.selected_a_drink
|
||||
DEBUGVAR newPointIndex
|
||||
|
||||
DEBUGVAR Seeker.PointTaobinStr
|
||||
DEBUGVAR Seeker.TNumberTaobinMember
|
||||
|
||||
Open "ROOT/taobin_project/xml/event/lipit/page_collect_point_pro_lipit_3.xml"
|
||||
EndIf
|
||||
|
||||
</EventActionOk>
|
||||
|
||||
<EventActionError>
|
||||
|
||||
Var Seeker.TaobinErrorNetwork = 1
|
||||
|
||||
Var Seeker.PointTaobinStr = ParamCP
|
||||
Var TelephoneNumber = TelephoneNumberX
|
||||
Var Seeker.TNumberTaobinMember= TelephoneNumber
|
||||
Var CollectPointError = "collect"
|
||||
Open "ROOT/taobin_project/xml/event/bad_valentine/page_collect_point_pro_lipit_error.xml"
|
||||
|
||||
|
||||
</EventActionError>
|
||||
|
||||
<EventMachine>
|
||||
If MachineStage = "drink-success" Then
|
||||
Var MachineState_Result = 1
|
||||
EndIf
|
||||
|
||||
If MachineStage = "drink-failed" Then
|
||||
Var MachineState_Result = 2
|
||||
EndIf
|
||||
</EventMachine>
|
||||
|
||||
|
||||
|
||||
<Image>
|
||||
<X> 178 </X>
|
||||
<Y> 680 </Y>
|
||||
<Filename> Var( DirImage + "/text20.png" ) </Filename>
|
||||
</Image>
|
||||
|
||||
|
||||
;<Image>
|
||||
;<X> 0 </X>
|
||||
;<Y> 0 </Y>
|
||||
;<Filename> "ROOT/taobin_project/image/ad_medium_2.png" </Filename>
|
||||
;</Image>
|
||||
|
||||
<Video>
|
||||
<X> 0 </X>
|
||||
<Y> 0 </Y>
|
||||
<Width> 1080</Width>
|
||||
<Height> 380 </Height>
|
||||
<Loop> "true" </Loop>
|
||||
<Filename> video_menu_0 </Filename>
|
||||
</Video>
|
||||
|
||||
<Text>
|
||||
<X> 0 </X>
|
||||
<Y> 873 </Y>
|
||||
<Width> 1080 </Width>
|
||||
<Align> Center </Align>
|
||||
<Size> 62 </Size>
|
||||
<Font> RobotoBlack </Font>
|
||||
<Color> 0x513C2F </Color>
|
||||
<Value> TelephoneNumber </Value>
|
||||
<Format> Telnum-mask-1 </Format>
|
||||
</Text>
|
||||
|
||||
|
||||
;
|
||||
<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>
|
||||
|
||||
|
||||
</Popup>
|
||||
|
||||
626
xml/event/lipit/page_collect_point_pro_lipit_3.xml
Normal file
626
xml/event/lipit/page_collect_point_pro_lipit_3.xml
Normal file
|
|
@ -0,0 +1,626 @@
|
|||
<Popup>
|
||||
<Cache> "Enable" </Cache>
|
||||
<Width> 1080 </Width>
|
||||
<Height> 1920 </Height>
|
||||
<Background> "0xeae6e1" </Background>
|
||||
<Volume> SoundVolume </Volume>
|
||||
|
||||
<EventOpen>
|
||||
; On open
|
||||
|
||||
Var Timeout = 0
|
||||
Var BmiYear = "0/0/0/0/0/0/0/0/0/1"
|
||||
Var PointCrm = "pdpa1"
|
||||
Var GetScore = ""
|
||||
Var TelephoneNumber = TelephoneNumberX
|
||||
Var Seeker.TNumberTaobinMember = TelephoneNumber
|
||||
|
||||
Var PointMaskState = "Invisible"
|
||||
Var showRandomBtnState = "Invisible"
|
||||
|
||||
Var CoffeePointStr = CoffeePoint
|
||||
|
||||
DEBUGVAR TelephoneNumber
|
||||
DEBUGVAR TelephoneNumberX
|
||||
|
||||
If show_eng = "true" Then
|
||||
Var DirImage = "ROOT/taobin_project/image/event/lipit/display_point_en"
|
||||
Var IMG_CNT = "ROOT/taobin_project/image/page_doing/img2_eng.png"
|
||||
Else
|
||||
Var DirImage = "ROOT/taobin_project/image/event/lipit/display_point"
|
||||
Var IMG_CNT = "ROOT/taobin_project/image/page_doing/img2.png"
|
||||
EndIf
|
||||
|
||||
Var CheckCoupons = 0
|
||||
Var MakeDrinkState = 0
|
||||
|
||||
Var taobinImgPoint[0] = "/lipit_point.png"
|
||||
Var taobinImgPoint[1]= "/lipit_point.png"
|
||||
Var taobinImgPoint[2]= "/lipit_point.png"
|
||||
Var taobinImgPoint[3]= "/lipit_point.png"
|
||||
Var taobinImgPoint[4]= "/lipit_point.png"
|
||||
Var taobinImgPoint[5]= "/lipit_point.png"
|
||||
Var taobinImgPoint[6]= "/lipit_point.png"
|
||||
Var taobinImgPoint[7]= "/lipit_point.png"
|
||||
Var taobinImgPoint[8]= "/lipit_point.png"
|
||||
Var taobinImgPoint[9]= "/lipit_point.png"
|
||||
|
||||
Var PointCount = 0
|
||||
|
||||
If show_eng = "true" Then
|
||||
Var taobinTextPoint[0] = "SALTY CARAMEL"
|
||||
Var taobinTextPoint[1] = "ROSE HONEY PUDDING"
|
||||
Var taobinTextPoint[2] = "BOTANIC CITRUS"
|
||||
Var taobinTextPoint[3] = "CHOCO FONDANT"
|
||||
Var taobinTextPoint[4] = "BERRY JAM"
|
||||
Var taobinTextPoint[5] = "RASPBERRY"
|
||||
Var taobinTextPoint[6] = "LYCHEE ROSE"
|
||||
Var taobinTextPoint[7] = "SUM BALM\nSPF 15 PA++"
|
||||
Var taobinTextPoint[8] = "PEACH TEA"
|
||||
Var taobinTextPoint[9] = "PEACH SYRUP"
|
||||
Else
|
||||
Var taobinTextPoint[0] = "พี่นัททุบ เต่าก็ทุบ"
|
||||
Var taobinTextPoint[1] = "แก้วนี้ของพี่นัท"
|
||||
Var taobinTextPoint[2] = "นิสาอินเต่าบิน"
|
||||
Var taobinTextPoint[3] = "สะบัดหลอด"
|
||||
Var taobinTextPoint[4] = "โชว์แก้วอร่อย"
|
||||
Var taobinTextPoint[5] = "ไหนดื่มสิ"
|
||||
Var taobinTextPoint[6] = "เรื่องราวแก้วนี้"
|
||||
Var taobinTextPoint[7] = "เคาะค่ะ"
|
||||
Var taobinTextPoint[8] = "ถ้าพี่นัทเป๊ะ เต่าก็เป๊ะ"
|
||||
Var taobinTextPoint[9] = "เต่าบินเมคโอเวอร์ มั๊วะ!"
|
||||
EndIf
|
||||
|
||||
|
||||
|
||||
Var taobinTextColorPoint[0] = "0x584231"
|
||||
Var taobinTextColorPoint[1] = "0x584231"
|
||||
Var taobinTextColorPoint[2] = "0x584231"
|
||||
Var taobinTextColorPoint[3] = "0x584231"
|
||||
Var taobinTextColorPoint[4] = "0x584231"
|
||||
Var taobinTextColorPoint[5] = "0x584231"
|
||||
Var taobinTextColorPoint[6] = "0x584231"
|
||||
Var taobinTextColorPoint[7] = "0x584231"
|
||||
Var taobinTextColorPoint[8] = "0x584231"
|
||||
Var taobinTextColorPoint[9] = "0x584231"
|
||||
|
||||
DEBUGVAR PointState[0]
|
||||
DEBUGVAR PointState[1]
|
||||
DEBUGVAR PointState[2]
|
||||
DEBUGVAR PointState[3]
|
||||
DEBUGVAR PointState[4]
|
||||
DEBUGVAR PointState[5]
|
||||
DEBUGVAR PointState[6]
|
||||
DEBUGVAR PointState[7]
|
||||
DEBUGVAR PointState[8]
|
||||
DEBUGVAR PointState[9]
|
||||
|
||||
Var PointRootDir = "ROOT/taobin_project/image/event/lipit/display_point"
|
||||
|
||||
If PointState[0] = 1 Then
|
||||
Var PointCount = PointCount + 1
|
||||
Var taobinImgPoint[0] = "/lipit_point_active.png"
|
||||
EndIf
|
||||
If PointState[1] = 1 Then
|
||||
Var PointCount = PointCount + 1
|
||||
Var taobinImgPoint[1] = "/lipit_point_active.png"
|
||||
EndIf
|
||||
If PointState[2] = 1 Then
|
||||
Var PointCount = PointCount + 1
|
||||
Var taobinImgPoint[2] = "/lipit_point_active.png"
|
||||
EndIf
|
||||
If PointState[3] = 1 Then
|
||||
Var PointCount = PointCount + 1
|
||||
Var taobinImgPoint[3] = "/lipit_point_active.png"
|
||||
EndIf
|
||||
If PointState[4] = 1 Then
|
||||
Var PointCount = PointCount + 1
|
||||
Var taobinImgPoint[4] = "/lipit_point_active.png"
|
||||
EndIf
|
||||
If PointState[5] = 1 Then
|
||||
Var PointCount = PointCount + 1
|
||||
Var taobinImgPoint[5] = "/lipit_point_active.png"
|
||||
EndIf
|
||||
If PointState[6] = 1 Then
|
||||
Var PointCount = PointCount + 1
|
||||
Var taobinImgPoint[6] = "/lipit_point_active.png"
|
||||
EndIf
|
||||
If PointState[7] = 1 Then
|
||||
Var PointCount = PointCount + 1
|
||||
Var taobinImgPoint[7] = "/lipit_point_active.png"
|
||||
EndIf
|
||||
If PointState[8] = 1 Then
|
||||
Var PointCount = PointCount + 1
|
||||
Var taobinImgPoint[8] = "/lipit_point_active.png"
|
||||
EndIf
|
||||
If PointState[9] = 1 Then
|
||||
Var PointCount = PointCount + 1
|
||||
Var taobinImgPoint[9] = "/lipit_point_active.png"
|
||||
EndIf
|
||||
|
||||
If newPointIndex = "" Then
|
||||
; Nothing
|
||||
Else
|
||||
If newPointIndex >= 0 Then
|
||||
Var taobinImgPoint[newPointIndex] = "/lipit_point_new.png"
|
||||
;Var taobinTextColorPoint[newPointIndex] = "0xFFE400"
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
Var PointDiff = 10 - PointCount
|
||||
|
||||
If show_eng = "true" Then
|
||||
Var TaobinLevelDesc1 = "Unlock Lip-It with just " + PointDiff
|
||||
Var TaobinLevelDesc1 = TaobinLevelDesc1 + " more menus!"
|
||||
Var TaobinLevelDesc2 = "Collect all 10 delicious delights to unleash the ultimate flavor sensation!"
|
||||
|
||||
;Var MemberStatus_Y = 772
|
||||
;Var MemberName_Y = 795
|
||||
;Var MemeberPhone_Y = 845
|
||||
;Var MemberPoint_Y = 920
|
||||
|
||||
Var subTitle_Y = 839
|
||||
|
||||
;Var TaobinLevelDesc1_X = 236
|
||||
;Var TaobinLevelDesc1_Y = 990
|
||||
;Var TaobinLevelDesc2_X = 236
|
||||
;Var TaobinLevelDesc2_Y = 1020
|
||||
|
||||
Var text8_X = 224
|
||||
|
||||
Else
|
||||
Var TaobinLevelDesc1 = "เหลืออีก " + PointDiff
|
||||
Var TaobinLevelDesc1 = TaobinLevelDesc1 + " เมนูที่จะเปิดล็อค Lip it"
|
||||
Var TaobinLevelDesc2 = "สะสมให้ครบ 10 เมนูแสนอร่อยแล้วมาปลดล็อกความปังกัน!"
|
||||
|
||||
;Var MemberStatus_Y = 772
|
||||
;Var MemberName_Y = 795
|
||||
;Var MemeberPhone_Y = 845
|
||||
;Var MemberPoint_Y = 920
|
||||
|
||||
Var subTitle_Y = 853
|
||||
|
||||
;Var TaobinLevelDesc1_X = 236
|
||||
;Var TaobinLevelDesc1_Y = 990
|
||||
;Var TaobinLevelDesc2_X = 236
|
||||
;Var TaobinLevelDesc2_Y = 1020
|
||||
|
||||
Var text8_X = 346
|
||||
|
||||
EndIf
|
||||
|
||||
If PointCount = 10 Then
|
||||
Var showRandomBtnState = "Enable"
|
||||
EndIf
|
||||
|
||||
Var CurrentPointSlot = newPointIndex + 1
|
||||
|
||||
Var UpdatePoint = 0
|
||||
|
||||
</EventOpen>
|
||||
<Timeout> 1000 </Timeout>
|
||||
<EventTimeout>
|
||||
|
||||
Var CountDownBrewing = BREW_CNT
|
||||
|
||||
Var ShowCountDownBrewing = CountDownBrewing
|
||||
|
||||
|
||||
|
||||
Var Timeout = Timeout + 1
|
||||
If Timeout > 10 Then
|
||||
Var CurrentPointCheck = "check"
|
||||
Var val3 = "X"
|
||||
AddData 37 TelephoneNumber CurrentPointSlot CurrentPointCheck val3
|
||||
Var UpdatePoint = 1
|
||||
EndIf
|
||||
|
||||
|
||||
|
||||
TimerReset
|
||||
Refresh
|
||||
</EventTimeout>
|
||||
|
||||
|
||||
<EventActionError>
|
||||
|
||||
</EventActionError>
|
||||
|
||||
<EventActionOk>
|
||||
|
||||
If UpdatePoint = 1 Then
|
||||
If Seeker.CodeChannel = 1 Then
|
||||
If Seeker.CollectPointMain = 1 Then
|
||||
GETACCEXT Param1 23
|
||||
Open "ROOT/taobin_project/xml/page_collect_point_2.xml"
|
||||
Else
|
||||
Open "ROOT/taobin_project/xml/page_lid_straw.xml"
|
||||
EndIf
|
||||
Else
|
||||
GETACCEXT Param1 23
|
||||
Open "ROOT/taobin_project/xml/page_collect_point_2.xml"
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
</EventActionOk>
|
||||
|
||||
<EventSecurity>
|
||||
Open "/media/bt/xml/security_alarm.xml"
|
||||
</EventSecurity>
|
||||
|
||||
|
||||
<EventMachine>
|
||||
If MachineStage = "drink-success" Then
|
||||
Var MachineState_Result = 1
|
||||
EndIf
|
||||
|
||||
If MachineStage = "drink-failed" Then
|
||||
Var MachineState_Result = 2
|
||||
EndIf
|
||||
</EventMachine>
|
||||
|
||||
<Video>
|
||||
<X> 0 </X>
|
||||
<Y> 0 </Y>
|
||||
<Width> 1080</Width>
|
||||
<Height> 380 </Height>
|
||||
<Loop> "true" </Loop>
|
||||
<Filename> video_menu_0 </Filename>
|
||||
</Video>
|
||||
|
||||
<Image>
|
||||
<X> 0 </X>
|
||||
<Y> 380 </Y>
|
||||
<Filename> "ROOT/taobin_project/image/display_point/alpha.png" </Filename>
|
||||
</Image>
|
||||
|
||||
|
||||
;
|
||||
|
||||
|
||||
|
||||
|
||||
<Image>
|
||||
<X> 158 </X>
|
||||
<Y> 665 </Y>
|
||||
<Filename> Var( PointRootDir + "/top_bg.png" )</Filename>
|
||||
</Image>
|
||||
|
||||
<Image>
|
||||
<X> 158 </X>
|
||||
<Y> 1085 </Y>
|
||||
<Filename> Var( PointRootDir + "/bottom_bg.png" )</Filename>
|
||||
</Image>
|
||||
|
||||
<Image>
|
||||
<X> 243 </X>
|
||||
<Y> 731 </Y>
|
||||
<Filename> Var( DirImage + "/member_text.png" )</Filename>
|
||||
</Image>
|
||||
|
||||
|
||||
<Image>
|
||||
<X> 243 </X>
|
||||
<Y> subTitle_Y </Y>
|
||||
<Filename> Var( DirImage + "/mission_text.png" )</Filename>
|
||||
</Image>
|
||||
|
||||
|
||||
|
||||
|
||||
<Image>
|
||||
<X> 625 </X>
|
||||
<Y> 732 </Y>
|
||||
<Filename> Var( PointRootDir + "/tao_makeup.png" )</Filename>
|
||||
</Image>
|
||||
;
|
||||
|
||||
|
||||
<Image>
|
||||
<X> 243 </X>
|
||||
<Y> 1147 </Y>
|
||||
<Filename> Var( PointRootDir + taobinImgPoint[0]) </Filename>
|
||||
</Image>
|
||||
|
||||
<Image>
|
||||
<X> 378 </X>
|
||||
<Y> 1147 </Y>
|
||||
<Filename> Var( PointRootDir + taobinImgPoint[1]) </Filename>
|
||||
</Image>
|
||||
|
||||
<Image>
|
||||
<X> 513 </X>
|
||||
<Y> 1147 </Y>
|
||||
<Filename> Var( PointRootDir + taobinImgPoint[2]) </Filename>
|
||||
</Image>
|
||||
|
||||
<Image>
|
||||
<X> 647 </X>
|
||||
<Y> 1147 </Y>
|
||||
<Filename> Var( PointRootDir + taobinImgPoint[3]) </Filename>
|
||||
</Image>
|
||||
|
||||
<Image>
|
||||
<X> 782 </X>
|
||||
<Y> 1147 </Y>
|
||||
<Filename> Var( PointRootDir + taobinImgPoint[4]) </Filename>
|
||||
</Image>
|
||||
|
||||
|
||||
<Image>
|
||||
<X> 243 </X>
|
||||
<Y> 1338 </Y>
|
||||
<Filename> Var( PointRootDir + taobinImgPoint[5]) </Filename>
|
||||
</Image>
|
||||
|
||||
<Image>
|
||||
<X> 378 </X>
|
||||
<Y> 1338 </Y>
|
||||
<Filename> Var( PointRootDir + taobinImgPoint[6]) </Filename>
|
||||
</Image>
|
||||
|
||||
<Image>
|
||||
<X> 513 </X>
|
||||
<Y> 1338 </Y>
|
||||
<Filename> Var( PointRootDir + taobinImgPoint[7]) </Filename>
|
||||
</Image>
|
||||
|
||||
<Image>
|
||||
<X> 647 </X>
|
||||
<Y> 1338 </Y>
|
||||
<Filename> Var( PointRootDir + taobinImgPoint[8]) </Filename>
|
||||
</Image>
|
||||
|
||||
<Image>
|
||||
<X> 782 </X>
|
||||
<Y> 1338 </Y>
|
||||
<Filename> Var( PointRootDir + taobinImgPoint[9]) </Filename>
|
||||
</Image>
|
||||
|
||||
|
||||
|
||||
<Text>
|
||||
<X> 243 </X>
|
||||
<Y> 764 </Y>
|
||||
<Size> 35 </Size>
|
||||
<Width> 1000 </Width>
|
||||
<Font> KanitRegularTTF </Font>
|
||||
<Color> 0x513C2F </Color>
|
||||
<Value> TaobinName </Value>
|
||||
</Text>
|
||||
|
||||
<Text>
|
||||
<X> 243 </X>
|
||||
<Y> 802 </Y>
|
||||
<Size> 20 </Size>
|
||||
<Width> 1000 </Width>
|
||||
<Font> KanitRegularTTF </Font>
|
||||
<Color> 0x746253 </Color>
|
||||
<Value> TNumberTaobinMemberXXX </Value>
|
||||
<Format> Telnum-mask-1 </Format>
|
||||
</Text>
|
||||
|
||||
; Header
|
||||
<Text>
|
||||
<X> 247 </X>
|
||||
<Y> 911 </Y>
|
||||
<Size> 48 </Size>
|
||||
<Width> 120 </Width>
|
||||
<Font> RobotoBold </Font>
|
||||
<Color> 0xDE794E </Color>
|
||||
<Value> PointCount </Value>
|
||||
</Text>
|
||||
|
||||
<Text>
|
||||
<X> 247 </X>
|
||||
<Y> 967 </Y>
|
||||
<Size> 25 </Size>
|
||||
<Width> 1000 </Width>
|
||||
<Font> KanitRegularTTF </Font>
|
||||
<Color> 0xDE794E </Color>
|
||||
<Value> TaobinLevelDesc1 </Value>
|
||||
</Text>
|
||||
|
||||
<Text>
|
||||
<X> 247 </X>
|
||||
<Y> 998 </Y>
|
||||
<Size> 20 </Size>
|
||||
<Width> 1000 </Width>
|
||||
<Font> KanitRegularTTF </Font>
|
||||
<Color> 0x746253 </Color>
|
||||
<Value> TaobinLevelDesc2 </Value>
|
||||
</Text>
|
||||
|
||||
<Image>
|
||||
<X> text8_X </X>
|
||||
<Y> 1610 </Y>
|
||||
<Filename> Var( DirImage + "/text8.png" )</Filename>
|
||||
</Image>
|
||||
|
||||
|
||||
<Text>
|
||||
<X> 216 </X>
|
||||
<Y> 1256 </Y>
|
||||
<Size> 12 </Size>
|
||||
<Width> 123 </Width>
|
||||
<Font> KanitRegularTTF </Font>
|
||||
<Color> taobinTextColorPoint[0] </Color>
|
||||
<Value> taobinTextPoint[0] </Value>
|
||||
<Align> center-vertical-horizontal </Align>
|
||||
</Text>
|
||||
|
||||
|
||||
<Text>
|
||||
<X> 352 </X>
|
||||
<Y> 1256 </Y>
|
||||
<Size> 12 </Size>
|
||||
<Width> 123 </Width>
|
||||
<Font> KanitRegularTTF </Font>
|
||||
<Color> taobinTextColorPoint[1] </Color>
|
||||
<Value> taobinTextPoint[1] </Value>
|
||||
<Align> center-vertical-horizontal </Align>
|
||||
</Text>
|
||||
|
||||
|
||||
<Text>
|
||||
<X> 488 </X>
|
||||
<Y> 1256 </Y>
|
||||
<Size> 12 </Size>
|
||||
<Width> 123 </Width>
|
||||
<Font> KanitRegularTTF </Font>
|
||||
<Color> taobinTextColorPoint[2] </Color>
|
||||
<Value> taobinTextPoint[2] </Value>
|
||||
<Align> center-vertical-horizontal </Align>
|
||||
</Text>
|
||||
|
||||
<Text>
|
||||
<X> 624 </X>
|
||||
<Y> 1256 </Y>
|
||||
<Size> 12 </Size>
|
||||
<Width> 123 </Width>
|
||||
<Font> KanitRegularTTF </Font>
|
||||
<Color> taobinTextColorPoint[3] </Color>
|
||||
<Value> taobinTextPoint[3] </Value>
|
||||
<Align> center-vertical-horizontal </Align>
|
||||
</Text>
|
||||
|
||||
|
||||
<Text>
|
||||
<X> 760 </X>
|
||||
<Y> 1256 </Y>
|
||||
<Size> 12 </Size>
|
||||
<Width> 123 </Width>
|
||||
<Font> KanitRegularTTF </Font>
|
||||
<Color> taobinTextColorPoint[4] </Color>
|
||||
<Value> taobinTextPoint[4] </Value>
|
||||
<Align> center-vertical-horizontal </Align>
|
||||
</Text>
|
||||
|
||||
|
||||
<Text>
|
||||
<X> 216 </X>
|
||||
<Y> 1451 </Y>
|
||||
<Size> 12 </Size>
|
||||
<Width> 123 </Width>
|
||||
<Font> KanitRegularTTF </Font>
|
||||
<Color> taobinTextColorPoint[5] </Color>
|
||||
<Value> taobinTextPoint[5] </Value>
|
||||
<Align> center-vertical-horizontal </Align>
|
||||
</Text>
|
||||
|
||||
|
||||
<Text>
|
||||
<X> 352 </X>
|
||||
<Y> 1451 </Y>
|
||||
<Size> 12 </Size>
|
||||
<Width> 123 </Width>
|
||||
<Font> KanitRegularTTF </Font>
|
||||
<Color> taobinTextColorPoint[6] </Color>
|
||||
<Value> taobinTextPoint[6] </Value>
|
||||
<Align> center-vertical-horizontal </Align>
|
||||
</Text>
|
||||
|
||||
<Text>
|
||||
<X> 488 </X>
|
||||
<Y> 1451 </Y>
|
||||
<Size> 12 </Size>
|
||||
<Width> 123 </Width>
|
||||
<Font> KanitRegularTTF </Font>
|
||||
<Color> taobinTextColorPoint[7] </Color>
|
||||
<Value> taobinTextPoint[7] </Value>
|
||||
<Align> center-vertical-horizontal </Align>
|
||||
</Text>
|
||||
|
||||
<Text>
|
||||
<X> 624 </X>
|
||||
<Y> 1451 </Y>
|
||||
<Size> 12 </Size>
|
||||
<Width> 123 </Width>
|
||||
<Font> KanitRegularTTF </Font>
|
||||
<Color> taobinTextColorPoint[8] </Color>
|
||||
<Value> taobinTextPoint[8] </Value>
|
||||
<Align> center-vertical-horizontal </Align>
|
||||
</Text>
|
||||
|
||||
<Text>
|
||||
<X> 760 </X>
|
||||
<Y> 1451 </Y>
|
||||
<Size> 12 </Size>
|
||||
<Width> 123 </Width>
|
||||
<Font> KanitRegularTTF </Font>
|
||||
<Color> taobinTextColorPoint[9] </Color>
|
||||
<Value> taobinTextPoint[9] </Value>
|
||||
<Align> center-vertical-horizontal </Align>
|
||||
</Text>
|
||||
|
||||
<Button>
|
||||
<X> 423 </X>
|
||||
<Y> 1660 </Y>
|
||||
<State> showRandomBtnState </State>
|
||||
<Filename> Var( PointRootDir + "/bn_random.png" )</Filename>
|
||||
<FilenamePress> Var( PointRootDir + "/bp_random.png" )</FilenamePress>
|
||||
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventClick>
|
||||
; goto lid straw
|
||||
|
||||
If SELLONLINE = 1 Then
|
||||
Var CurrentPointCheck = ""
|
||||
Else
|
||||
Var CurrentPointCheck = "check"
|
||||
EndIf
|
||||
Var val3 = "X"
|
||||
AddData 37 TelephoneNumber CurrentPointSlot CurrentPointCheck val3
|
||||
|
||||
Open "ROOT/taobin_project/xml/event/lipit/page_lipit_random.xml"
|
||||
|
||||
</EventClick>
|
||||
</Button>
|
||||
|
||||
|
||||
|
||||
;
|
||||
<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>
|
||||
|
||||
<EventUnitTest3>
|
||||
Var PointState[0] = 1
|
||||
Var PointState[1] = 1
|
||||
Var PointState[2] = 1
|
||||
Var PointState[3] = 1
|
||||
Var PointState[4] = 1
|
||||
Var PointState[5] = 1
|
||||
Var PointState[6] = 1
|
||||
Var PointState[7] = 1
|
||||
Var PointState[8] = 1
|
||||
Var PointState[9] = 1
|
||||
|
||||
Open "ROOT/taobin_project/xml/event/lipit/page_collect_point_pro_lipit_3.xml"
|
||||
</EventUnitTest3>
|
||||
|
||||
<EventUnitTest4>
|
||||
If show_eng = "true" Then
|
||||
Var show_eng = "false"
|
||||
Else
|
||||
Var show_eng = "true"
|
||||
EndIf
|
||||
Open "ROOT/taobin_project/xml/event/lipit/page_collect_point_pro_lipit_3.xml"
|
||||
</EventUnitTest4>
|
||||
|
||||
|
||||
</Popup>
|
||||
|
||||
270
xml/event/lipit/page_collect_point_pro_lipit_error.xml
Normal file
270
xml/event/lipit/page_collect_point_pro_lipit_error.xml
Normal file
|
|
@ -0,0 +1,270 @@
|
|||
<Popup>
|
||||
<Cache> "Enable" </Cache>
|
||||
<Width> 1080 </Width>
|
||||
<Height> 1920 </Height>
|
||||
<Background> "0xeae6e1" </Background>
|
||||
<Volume> SoundVolume </Volume>
|
||||
|
||||
<EventOpen>
|
||||
; On open
|
||||
|
||||
|
||||
Var Timeout = 0
|
||||
SAVELOG show_eng
|
||||
|
||||
|
||||
DEBUGVAR CollectPointError
|
||||
|
||||
Var Show_Title = "Invisible"
|
||||
|
||||
If CollectPointError = "collect" Then
|
||||
|
||||
If show_eng = "true" Then
|
||||
Var DirImage = "ROOT/taobin_project/image/event/lipit/error_en"
|
||||
Var Detail_X = 127
|
||||
Var Detail_Y = 1553
|
||||
Var Detail2_X = 145
|
||||
Var Detail2_Y = 1637
|
||||
Else
|
||||
Var DirImage = "ROOT/taobin_project/image/event/lipit/error"
|
||||
Var Detail_X = 179
|
||||
Var Detail_Y = 1553
|
||||
Var Detail2_X = 131
|
||||
Var Detail2_Y = 1626
|
||||
EndIf
|
||||
|
||||
Var ImgError = DirImage + "/gift_box_locked.png"
|
||||
Var ImgError_X = 139
|
||||
Var ImgError_Y = 773
|
||||
|
||||
Var Show_Title = "Enable"
|
||||
|
||||
Var title_text_fail = DirImage + "/FAIL.png"
|
||||
Var text_fail = DirImage + "/collect_fail_text.png"
|
||||
Var text_fail2 = DirImage + "/collect_fail_description.png"
|
||||
|
||||
Var ConfirmBtn_X = 399
|
||||
Var ConfirmBtn_Y = 1771
|
||||
EndIf
|
||||
|
||||
If CollectPointError = "random" Then
|
||||
|
||||
If show_eng = "true" Then
|
||||
Var DirImage = "ROOT/taobin_project/image/event/lipit/error_en"
|
||||
Var Detail_X = 263
|
||||
Var Detail_Y = 1554
|
||||
Var Detail2_X = 117
|
||||
Var Detail2_Y = 1632
|
||||
Else
|
||||
Var DirImage = "ROOT/taobin_project/image/event/lipit/error"
|
||||
Var Detail_X = 86
|
||||
Var Detail_Y = 1513
|
||||
Var Detail2_X = 100
|
||||
Var Detail2_Y = 1667
|
||||
EndIf
|
||||
|
||||
Var ImgError = DirImage + "/gift_box_broken.png"
|
||||
Var ImgError_X = 0
|
||||
Var ImgError_Y = 637
|
||||
|
||||
Var text_fail = DirImage + "/send_reward_fail_text.png"
|
||||
Var text_fail2 = DirImage + "/send_reward_fail_description.png"
|
||||
|
||||
Var ConfirmBtn_X = 399
|
||||
Var ConfirmBtn_Y = 1771
|
||||
EndIf
|
||||
|
||||
Var newPointIndex = 0
|
||||
|
||||
; Point 1
|
||||
If Seeker.selected_a_drink = "12-03-03-0046" Then
|
||||
Var newPointIndex = 0
|
||||
EndIf
|
||||
|
||||
; Point 2
|
||||
If Seeker.selected_a_drink = "12-03-03-0047" Then
|
||||
Var newPointIndex = 1
|
||||
EndIf
|
||||
|
||||
; Point 3
|
||||
If Seeker.selected_a_drink = "12-99-05-0063" Then
|
||||
Var newPointIndex = 2
|
||||
EndIf
|
||||
|
||||
; Point 4
|
||||
If Seeker.selected_a_drink = "12-03-02-0040" Then
|
||||
Var newPointIndex = 3
|
||||
EndIf
|
||||
|
||||
; Point 5
|
||||
If Seeker.selected_a_drink = "12-05-03-0063" Then
|
||||
Var newPointIndex = 4
|
||||
EndIf
|
||||
|
||||
; Point 6
|
||||
If Seeker.selected_a_drink = "12-05-02-0080" Then
|
||||
Var newPointIndex = 5
|
||||
EndIf
|
||||
|
||||
; Point 7
|
||||
If Seeker.selected_a_drink = "12-02-03-0053" Then
|
||||
Var newPointIndex = 6
|
||||
EndIf
|
||||
|
||||
; Point 8
|
||||
If Seeker.selected_a_drink = "12-03-02-0041" Then
|
||||
Var newPointIndex = 7
|
||||
EndIf
|
||||
|
||||
; Point 9
|
||||
If Seeker.selected_a_drink = "12-02-02-0056" Then
|
||||
Var newPointIndex = 8
|
||||
EndIf
|
||||
|
||||
; Point 10
|
||||
If Seeker.selected_a_drink = "12-05-03-0064" Then
|
||||
Var newPointIndex = 9
|
||||
EndIf
|
||||
|
||||
DEBUGVAR ImgError
|
||||
DEBUGVAR ImgError_X
|
||||
DEBUGVAR ImgError_Y
|
||||
|
||||
Var CurrentPointSlot = newPointIndex + 1
|
||||
Var CurrentPointCheck = "check"
|
||||
Var val3 = "X"
|
||||
AddData 37 TelephoneNumber CurrentPointSlot CurrentPointCheck val3
|
||||
|
||||
</EventOpen>
|
||||
<Timeout> 1000 </Timeout>
|
||||
<EventTimeout>
|
||||
|
||||
Var CountDownBrewing = BREW_CNT
|
||||
|
||||
Var ShowCountDownBrewing = CountDownBrewing
|
||||
|
||||
Var Timeout = Timeout + 1
|
||||
If Timeout > 5 Then
|
||||
Open "ROOT/taobin_project/xml/page_lid_straw.xml"
|
||||
EndIf
|
||||
|
||||
TimerReset
|
||||
Refresh
|
||||
</EventTimeout>
|
||||
|
||||
<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> 380 </Y>
|
||||
<Filename> Var( DirImage + "/bg.png" ) </Filename>
|
||||
</Image>
|
||||
|
||||
<Image>
|
||||
<State> Show_Title </State>
|
||||
<X> 334 </X>
|
||||
<Y> 602 </Y>
|
||||
<Filename> title_text_fail </Filename>
|
||||
</Image>
|
||||
|
||||
<Image>
|
||||
<X> ImgError_X </X>
|
||||
<Y> ImgError_Y </Y>
|
||||
<Filename> ImgError </Filename>
|
||||
</Image>
|
||||
|
||||
<Image>
|
||||
<X> Detail_X </X>
|
||||
<Y> Detail_Y </Y>
|
||||
<Filename> text_fail </Filename>
|
||||
</Image>
|
||||
|
||||
<Image>
|
||||
<X> Detail2_X </X>
|
||||
<Y> Detail2_Y </Y>
|
||||
<Filename> text_fail2 </Filename>
|
||||
</Image>
|
||||
|
||||
|
||||
<Button>
|
||||
<X> ConfirmBtn_X </X>
|
||||
<Y> ConfirmBtn_Y </Y>
|
||||
<Filename> Var( DirImage + "/bn_confirm.png" ) </Filename>
|
||||
<FilenamePress> Var( DirImage + "/bp_confirm.png" )</FilenamePress>
|
||||
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventClick>
|
||||
; goto lid straw
|
||||
|
||||
If PromotionIDCurrentOrder > 1 Then
|
||||
Open "ROOT/taobin_project/xml/page_display_Promo1Get1Free.xml"
|
||||
EndIf
|
||||
Open "ROOT/taobin_project/xml/page_lid_straw.xml"
|
||||
|
||||
</EventClick>
|
||||
</Button>
|
||||
|
||||
|
||||
|
||||
<Video>
|
||||
<X> 0 </X>
|
||||
<Y> 0 </Y>
|
||||
<Width> 1080</Width>
|
||||
<Height> 380 </Height>
|
||||
<Loop> "true" </Loop>
|
||||
<Filename> video_menu_0 </Filename>
|
||||
</Video>
|
||||
|
||||
|
||||
;
|
||||
<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>
|
||||
|
||||
<EventSecurity>
|
||||
Open "/media/bt/xml/security_alarm.xml"
|
||||
</EventSecurity>
|
||||
|
||||
<EventUnitTest1>
|
||||
If show_eng = "true" Then
|
||||
Var show_eng = "false"
|
||||
Else
|
||||
Var show_eng = "true"
|
||||
EndIf
|
||||
Open "ROOT/taobin_project/xml/event/lipit/page_collect_point_pro_lipit_error.xml"
|
||||
</EventUnitTest1>
|
||||
|
||||
<EventUnitTest4>
|
||||
If CollectPointError = "collect" then
|
||||
Var CollectPointError = "random"
|
||||
Else
|
||||
Var CollectPointError = "collect"
|
||||
EndIf
|
||||
|
||||
Open "ROOT/taobin_project/xml/event/lipit/page_collect_point_pro_lipit_error.xml"
|
||||
</EventUnitTest4>
|
||||
|
||||
</Page>
|
||||
229
xml/event/lipit/page_lipit_random.xml
Normal file
229
xml/event/lipit/page_lipit_random.xml
Normal file
|
|
@ -0,0 +1,229 @@
|
|||
<Popup>
|
||||
<Cache> "Enable" </Cache>
|
||||
<Width> 1080 </Width>
|
||||
<Height> 1920 </Height>
|
||||
<Volume> SoundVolume </Volume>
|
||||
;<Background> "0xeae6e1" </Background>
|
||||
|
||||
<EventOpen>
|
||||
Var Timeout = 0
|
||||
|
||||
Var DirImage = "ROOT/taobin_project/image/event/lipit/random"
|
||||
|
||||
|
||||
Var rewardList[0] = "lip_mask_stick"
|
||||
Var rewardList[1] = "lip_mask_stick"
|
||||
Var rewardList[2] = "lip_mask_stick"
|
||||
Var rewardList[3] = "lip_mask_stick"
|
||||
Var rewardList[4] = "lip_mask_stick"
|
||||
Var rewardList[5] = "lip_mask_stick"
|
||||
Var rewardList[6] = "lip_mask_stick"
|
||||
Var rewardList[7] = "lip_mask_stick"
|
||||
|
||||
Var rewardList[8] = "tint_me_healthy_balm"
|
||||
Var rewardList[9] = "tint_me_healthy_balm"
|
||||
Var rewardList[10] = "tint_me_healthy_balm"
|
||||
Var rewardList[11] = "tint_me_healthy_balm"
|
||||
Var rewardList[12] = "tint_me_healthy_balm"
|
||||
Var rewardList[13] = "tint_me_healthy_balm"
|
||||
Var rewardList[14] = "tint_me_healthy_balm"
|
||||
Var rewardList[15] = "tint_me_healthy_balm"
|
||||
|
||||
Var rewardList[16] = "happy_lip_set"
|
||||
Var rewardList[17] = "happy_lip_set"
|
||||
Var rewardList[18] = "happy_lip_set"
|
||||
Var rewardList[19] = "happy_lip_set"
|
||||
|
||||
|
||||
Var random_state = "Enable"
|
||||
Var show_result_state = "Invisible"
|
||||
|
||||
If show_eng = "true" Then
|
||||
Var line_text_x = 341
|
||||
Var line_text_img = DirImage + "/line_text_en.png"
|
||||
Else
|
||||
Var line_text_x = 310
|
||||
Var line_text_img = DirImage + "/line_text_th.png"
|
||||
EndIf
|
||||
|
||||
|
||||
</EventOpen>
|
||||
|
||||
<Timeout> 1000 </Timeout>
|
||||
<EventTimeout>
|
||||
DEBUGVAR Timeout
|
||||
|
||||
Var CountDownBrewing = BREW_CNT
|
||||
|
||||
Var ShowCountDownBrewing = CountDownBrewing
|
||||
|
||||
If random_state = "Enable" Then
|
||||
If Timeout > 15 Then
|
||||
SAVELOG "Timeout 15 second auto random for you"
|
||||
Function 2
|
||||
EndIf
|
||||
Else
|
||||
If Timeout > 5 Then
|
||||
If Seeker.CodeChannel = 1 Then
|
||||
If Seeker.CollectPointMain = 1 Then
|
||||
GETACCEXT Param1 23
|
||||
Open "ROOT/taobin_project/xml/page_collect_point_2.xml"
|
||||
Else
|
||||
Open "ROOT/taobin_project/xml/page_lid_straw.xml"
|
||||
EndIf
|
||||
Else
|
||||
GETACCEXT Param1 23
|
||||
Open "ROOT/taobin_project/xml/page_collect_point_2.xml"
|
||||
EndIf
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
|
||||
|
||||
Var Timeout = Timeout + 1
|
||||
|
||||
TimerReset
|
||||
Refresh
|
||||
</EventTimeout>
|
||||
|
||||
|
||||
;include="ROOT/taobin_project/inc/video.inc"
|
||||
|
||||
|
||||
; Background
|
||||
<Image>
|
||||
<X> 0 </X>
|
||||
<Y> 380 </Y>
|
||||
<Filename> Var( DirImage + "/random_bg.png") </Filename>
|
||||
</Image>
|
||||
|
||||
; random state
|
||||
<Image>
|
||||
<State> random_state </State>
|
||||
<X> 272 </X>
|
||||
<Y> 1078 </Y>
|
||||
<Filename> Var( DirImage + "/random_text.png") </Filename>
|
||||
</Image>
|
||||
|
||||
<Button>
|
||||
<X> 337 </X>
|
||||
<Y> 709 </Y>
|
||||
<State> random_state </State>
|
||||
<Filename> Var( DirImage + "/gift_box.png") </Filename>
|
||||
<FilenamePress> Var( DirImage + "/gift_box.png") </FilenamePress>
|
||||
<EventClick>
|
||||
Function 2
|
||||
</EventClick>
|
||||
</Button>
|
||||
|
||||
<Button>
|
||||
<X> 115 </X>
|
||||
<Y> 1311 </Y>
|
||||
<State> random_state </State>
|
||||
<Filename> Var( DirImage + "/gift_box.png") </Filename>
|
||||
<FilenamePress> Var( DirImage + "/gift_box.png") </FilenamePress>
|
||||
<EventClick>
|
||||
Function 2
|
||||
</EventClick>
|
||||
</Button>
|
||||
|
||||
<Button>
|
||||
<X> 588 </X>
|
||||
<Y> 1311 </Y>
|
||||
<State> random_state </State>
|
||||
<Filename> Var( DirImage + "/gift_box.png") </Filename>
|
||||
<FilenamePress> Var( DirImage + "/gift_box.png") </FilenamePress>
|
||||
<EventClick>
|
||||
Function 2
|
||||
</EventClick>
|
||||
</Button>
|
||||
|
||||
; show result
|
||||
<Image>
|
||||
<X> 64 </X>
|
||||
<Y> 450 </Y>
|
||||
<State> show_result_state </State>
|
||||
<Filename> rewardImage </Filename>
|
||||
</Image>
|
||||
|
||||
<Image>
|
||||
<X> line_text_x </X>
|
||||
<Y> 1798 </Y>
|
||||
<State> show_result_state </State>
|
||||
<Filename> line_text_img </Filename>
|
||||
</Image>
|
||||
|
||||
|
||||
<Function2>
|
||||
; Random coupon
|
||||
Var randResultInt = 0
|
||||
Random2 0 19 randResultInt
|
||||
|
||||
Var CodeType = ""
|
||||
Var var2 = "X"
|
||||
Var var3 = "X"
|
||||
|
||||
Var randResultStr = rewardList[randResultInt]
|
||||
If randResultStr = "lip_mask_stick" Then
|
||||
Var rewardImage = DirImage + "/reward_lip_mask_stick.png"
|
||||
Var CodeType = "126"
|
||||
EndIf
|
||||
|
||||
if randResultStr = "tint_me_healthy_balm" Then
|
||||
Var rewardImage = DirImage + "/reward_tint_me_healthy_blam.png"
|
||||
Var CodeType = "127"
|
||||
EndIf
|
||||
|
||||
If randResultStr = "happy_lip_set" Then
|
||||
Var rewardImage = DirImage + "/reward_happy_lip_set.png"
|
||||
Var CodeType = "128"
|
||||
EndIf
|
||||
|
||||
|
||||
DEBUGVAR randResultInt
|
||||
DEBUGVAR randResultStr
|
||||
DEBUGVAR CodeType
|
||||
DEBUGVAR rewardImage
|
||||
|
||||
Var show_result_state = "Enable"
|
||||
Var random_state = "Invisible"
|
||||
Var Timeout = 0
|
||||
Refresh
|
||||
|
||||
AddData 38 TelephoneNumber CodeType var2 var3
|
||||
</Function2>
|
||||
|
||||
|
||||
;
|
||||
<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>
|
||||
|
||||
<EventUnitTest1>
|
||||
OpenInst 2 "ROOT/taobin_project/xml/page_lid_straw.xml"
|
||||
</EventUnitTest1>
|
||||
|
||||
<EventUnitTest2>
|
||||
Var show_eng = "false"
|
||||
Open "ROOT/taobin_project/xml/event/lipit/page_lipiy_random.xml"
|
||||
</EventUnitTest2>
|
||||
|
||||
<EventUnitTest3>
|
||||
Var show_eng = "true"
|
||||
Open "ROOT/taobin_project/xml/event/lipit/page_lipiy_random.xml"
|
||||
</EventUnitTest3>
|
||||
|
||||
</Popup>
|
||||
|
|
@ -1 +1 @@
|
|||
/event/promotion_peach.xml
|
||||
/event/promotion_lipit.xml
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
/event/promotion_bad_valentine.xml
|
||||
/event/promotion_monday_banana.xml
|
||||
1
xml/event/out_put_file_double_pro1.txt
Normal file
1
xml/event/out_put_file_double_pro1.txt
Normal file
|
|
@ -0,0 +1 @@
|
|||
/event/double_promotion_pepsi_second_cup_30_and_monday_banana.xml
|
||||
1
xml/event/out_put_file_double_pro2.txt
Normal file
1
xml/event/out_put_file_double_pro2.txt
Normal file
|
|
@ -0,0 +1 @@
|
|||
/event/double_promotion_lipit_and_monday_banana.xml
|
||||
1
xml/event/out_put_file_triple_pro1.txt
Normal file
1
xml/event/out_put_file_triple_pro1.txt
Normal file
|
|
@ -0,0 +1 @@
|
|||
/event/double_promotion_pepsi_second_cup_30_and_monday_banana_and_something.xml
|
||||
11402
xml/event/promotion_lipit.xml
Normal file
11402
xml/event/promotion_lipit.xml
Normal file
File diff suppressed because it is too large
Load diff
11366
xml/event/promotion_monday_banana.xml
Normal file
11366
xml/event/promotion_monday_banana.xml
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -1 +1 @@
|
|||
Var BigButtonEnable = "Invisible"
|
||||
Open "ROOT/taobin_project/xml/event/page_catalog_group_pro_monday_banana.xml"
|
||||
|
|
|
|||
|
|
@ -11313,7 +11313,7 @@ LIMENADE SODA" </Value>
|
|||
|
||||
<Button>
|
||||
<X> 42 </X>
|
||||
<Y> 520 </Y>
|
||||
<Y> 518 </Y>
|
||||
|
||||
<State> BigButtonEnable </State>
|
||||
<Filename>
|
||||
|
|
@ -11352,7 +11352,7 @@ LIMENADE SODA" </Value>
|
|||
|
||||
<Video>
|
||||
<X> 42 </X>
|
||||
<Y> 520 </Y>
|
||||
<Y> 518 </Y>
|
||||
<Width> 484 </Width>
|
||||
<Height> 616 </Height>
|
||||
<Loop> "true" </Loop>
|
||||
|
|
@ -11370,7 +11370,7 @@ LIMENADE SODA" </Value>
|
|||
|
||||
<Video>
|
||||
<X> 42 </X>
|
||||
<Y> 520 </Y>
|
||||
<Y> 518 </Y>
|
||||
<Width> 484 </Width>
|
||||
<Height> 616 </Height>
|
||||
<State>
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
|
||||
<Button>
|
||||
<X> 42 </X>
|
||||
<Y> 520 </Y>
|
||||
<Y> 518 </Y>
|
||||
|
||||
<State> BigButtonEnable </State>
|
||||
<Filename>
|
||||
|
|
@ -33,14 +33,14 @@
|
|||
</FilenameDisable>
|
||||
<EventOnClick>
|
||||
|
||||
Open "ROOT/taobin_project/xml/page_catalog_group_pro_peach.xml"
|
||||
Open "ROOT/taobin_project/xml/page_catalog_group_pro_lipit.xml"
|
||||
|
||||
</EventOnClick>
|
||||
|
||||
|
||||
<Video>
|
||||
<X> 42 </X>
|
||||
<Y> 520 </Y>
|
||||
<Y> 518 </Y>
|
||||
<Width> 484 </Width>
|
||||
<Height> 616 </Height>
|
||||
<Loop> "true" </Loop>
|
||||
|
|
@ -53,12 +53,12 @@
|
|||
EndIf
|
||||
)
|
||||
</State>
|
||||
<Filename> "ROOT/taobin_project/image/event/pro_peach_th.mp4" </Filename>
|
||||
<Filename> "ROOT/taobin_project/image/event/lipit/pro_lipit_th.mp4" </Filename>
|
||||
</Video>
|
||||
|
||||
<Video>
|
||||
<X> 42 </X>
|
||||
<Y> 520 </Y>
|
||||
<Y> 518 </Y>
|
||||
<Width> 484 </Width>
|
||||
<Height> 616 </Height>
|
||||
<State>
|
||||
|
|
@ -71,7 +71,7 @@
|
|||
)
|
||||
</State>
|
||||
<Loop> "true" </Loop>
|
||||
<Filename> "ROOT/taobin_project/image/event/pro_peach_en.mp4" </Filename>
|
||||
<Filename> "ROOT/taobin_project/image/event/lipit/pro_lipit_en.mp4" </Filename>
|
||||
</Video>
|
||||
|
||||
</Button>
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
|
||||
<Button>
|
||||
<X> 42 </X>
|
||||
<Y> 520 </Y>
|
||||
<Y> 518 </Y>
|
||||
|
||||
<State> BigButtonEnable </State>
|
||||
<Filename>
|
||||
|
|
@ -33,47 +33,10 @@
|
|||
</FilenameDisable>
|
||||
<EventOnClick>
|
||||
|
||||
Open "ROOT/taobin_project/xml/page_catalog_group_pro_bad_valentine.xml"
|
||||
###EventOnClick
|
||||
|
||||
</EventOnClick>
|
||||
|
||||
|
||||
<Video>
|
||||
<X> 42 </X>
|
||||
<Y> 520 </Y>
|
||||
<Width> 484 </Width>
|
||||
<Height> 616 </Height>
|
||||
<Loop> "true" </Loop>
|
||||
<State>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = "Invisible"
|
||||
Else
|
||||
Var return = "Enable"
|
||||
EndIf
|
||||
)
|
||||
</State>
|
||||
<Filename> "ROOT/taobin_project/image/event/bad_valentine/bad_valentine_th.mp4" </Filename>
|
||||
</Video>
|
||||
|
||||
<Video>
|
||||
<X> 42 </X>
|
||||
<Y> 520 </Y>
|
||||
<Width> 484 </Width>
|
||||
<Height> 616 </Height>
|
||||
<State>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = "Enable"
|
||||
Else
|
||||
Var return = "Invisible"
|
||||
EndIf
|
||||
)
|
||||
</State>
|
||||
<Loop> "true" </Loop>
|
||||
<Filename> "ROOT/taobin_project/image/event/bad_valentine/bad_valentine_en.mp4" </Filename>
|
||||
</Video>
|
||||
|
||||
</Button>
|
||||
|
||||
<EventUnitTest1>
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
|
||||
<Button>
|
||||
<X> 42 </X>
|
||||
<Y> 520 </Y>
|
||||
<Y> 518 </Y>
|
||||
|
||||
<State> BigButtonEnable </State>
|
||||
<Filename>
|
||||
|
|
@ -40,7 +40,7 @@
|
|||
|
||||
<Video>
|
||||
<X> 42 </X>
|
||||
<Y> 520 </Y>
|
||||
<Y> 518 </Y>
|
||||
<Width> 484 </Width>
|
||||
<Height> 616 </Height>
|
||||
<Loop> "true" </Loop>
|
||||
|
|
@ -58,7 +58,7 @@
|
|||
|
||||
<Video>
|
||||
<X> 42 </X>
|
||||
<Y> 520 </Y>
|
||||
<Y> 518 </Y>
|
||||
<Width> 484 </Width>
|
||||
<Height> 616 </Height>
|
||||
<State>
|
||||
|
|
|
|||
|
|
@ -16,33 +16,65 @@ Else
|
|||
; zone promote
|
||||
If OpenFromPageBoard = 1 Then
|
||||
|
||||
If PepsiSecondCup30Enable = 1 Then
|
||||
If LipitPro = 1 Then
|
||||
Var BigButtonEnable = "Enable"
|
||||
OpenInst 2 "ROOT/taobin_project/xml/event/promotion_pepsi_second_cup_30.xml"
|
||||
Var OpenFromPageBoard = 0
|
||||
|
||||
If MondayBananaPro = 1 Then
|
||||
OpenInst 2 "ROOT/taobin_project/xml/event/double_promotion_lipit_and_monday_banana.xml"
|
||||
Var OpenFromPageBoard = 0
|
||||
Else
|
||||
OpenInst 2 "ROOT/taobin_project/xml/event/promotion_lipit.xml"
|
||||
Var OpenFromPageBoard = 0
|
||||
EndIf
|
||||
|
||||
|
||||
Else
|
||||
If ProBadValentineEnable = 1 Then
|
||||
If PepsiSecondCup30Enable = 1 Then
|
||||
Var BigButtonEnable = "Enable"
|
||||
OpenInst 2 "ROOT/taobin_project/xml/event/promotion_bad_valentine.xml"
|
||||
Var OpenFromPageBoard = 0
|
||||
If MondayBananaPro = 1 Then
|
||||
OpenInst 2 "ROOT/taobin_project/xml/event/double_promotion_pepsi_second_cup_30_and_monday_banana_and_something.xml"
|
||||
Var OpenFromPageBoard = 0
|
||||
Else
|
||||
OpenInst 2 "ROOT/taobin_project/xml/event/promotion_pepsi_second_cup_30.xml"
|
||||
Var OpenFromPageBoard = 0
|
||||
EndIf
|
||||
|
||||
|
||||
Else
|
||||
OpenInst 2 "ROOT/taobin_project/xml/page_catalog_group_recommend.xml"
|
||||
|
||||
If MondayBananaPro = 1 Then
|
||||
OpenIns 2 "ROOT/taobin_project/xml/event/promotion_monday_banana.xml"
|
||||
Var OpenFromPageBoard = 0
|
||||
Else
|
||||
OpenInst 2 "ROOT/taobin_project/xml/page_catalog_group_recommend.xml"
|
||||
EndIf
|
||||
|
||||
EndIf
|
||||
EndIf
|
||||
Else
|
||||
If PepsiSecondCup30Enable = 1 Then
|
||||
If LipitPro = 1 Then
|
||||
Var BigButtonEnable = "Enable"
|
||||
Open "ROOT/taobin_project/xml/event/promotion_pepsi_second_cup_30.xml"
|
||||
|
||||
Else
|
||||
If ProBadValentineEnable = 1 Then
|
||||
Var BigButtonEnable = "Enable"
|
||||
Open "ROOT/taobin_project/xml/event/promotion_bad_valentine.xml"
|
||||
If MondayBananaPro = 1 Then
|
||||
Open "ROOT/taobin_project/xml/event/double_promotion_lipit_and_monday_banana.xml"
|
||||
Else
|
||||
Open "ROOT/taobin_project/xml/page_catalog_group_recommend.xml"
|
||||
Open "ROOT/taobin_project/xml/event/promotion_lipit.xml"
|
||||
EndIf
|
||||
Else
|
||||
If PepsiSecondCup30Enable = 1 Then
|
||||
Var BigButtonEnable = "Enable"
|
||||
|
||||
If MondayBananaPro = 1 Then
|
||||
Open "ROOT/taobin_project/xml/event/double_promotion_pepsi_second_cup_30_and_monday_banana_and_something.xml"
|
||||
Else
|
||||
Open "ROOT/taobin_project/xml/event/promotion_pepsi_second_cup_30.xml"
|
||||
EndIf
|
||||
Else
|
||||
If MondayBananaPro = 1 Then
|
||||
Open "ROOT/taobin_project/xml/event/promotion_monday_banana.xml"
|
||||
Else
|
||||
Open "ROOT/taobin_project/xml/page_catalog_group_recommend.xml"
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
EndIf
|
||||
|
|
|
|||
|
|
@ -69,6 +69,14 @@ Var PepsiSecondCup30Enable = 0
|
|||
Var PepsiSecondCup30DiscountEnable = 0
|
||||
Var FromPepsiSecondCup30 = 0
|
||||
|
||||
; Enable Lipit Promotion, 18 Mar - 12 Apr
|
||||
Var LipitPro = 0
|
||||
Var FromLipitPro = 0
|
||||
|
||||
; Enable Monday Banana Promotion, every Monday start 11 Mar - 19 Apr
|
||||
Var MondayBananaPro = 0
|
||||
Var FromMondayBananaPro = 0
|
||||
|
||||
Var NewCollectPoint = 1
|
||||
|
||||
Var NewFlowPaymentCode = 0
|
||||
|
|
@ -150,6 +158,49 @@ If SystemDateMonthInt = 3 Then
|
|||
EndIf
|
||||
EndIf
|
||||
|
||||
If SystemDateDayInt = 11 Then
|
||||
Var MondayBananaPro = 1
|
||||
EndIf
|
||||
|
||||
If SystemDateDayInt = 18 Then
|
||||
Var MondayBananaPro = 1
|
||||
EndIf
|
||||
|
||||
If SystemDateDayInt = 25 Then
|
||||
Var MondayBananaPro = 1
|
||||
EndIf
|
||||
|
||||
If SystemDateDayInt >= 18 Then
|
||||
Var LipitPro = 1
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
If SystemDateMonthInt = 4 Then
|
||||
|
||||
If SystemDateDayInt = 1 Then
|
||||
Var MondayBananaPro = 1
|
||||
EndIf
|
||||
|
||||
If SystemDateDayInt = 8 Then
|
||||
Var MondayBananaPro = 1
|
||||
EndIf
|
||||
|
||||
If SystemDateDayInt = 15 Then
|
||||
Var MondayBananaPro = 1
|
||||
EndIf
|
||||
|
||||
If SystemDateDayInt = 22 Then
|
||||
Var MondayBananaPro = 1
|
||||
EndIf
|
||||
|
||||
If SystemDateDayInt = 29 Then
|
||||
Var MondayBananaPro = 1
|
||||
EndIf
|
||||
|
||||
If SystemDateDayInt <= 12 Then
|
||||
Var LipitPro = 1
|
||||
EndIf
|
||||
|
||||
EndIf
|
||||
|
||||
|
||||
|
|
@ -181,10 +232,12 @@ If BoxID = 201316 Then
|
|||
EndIf
|
||||
|
||||
If BoxID = 105005 Then
|
||||
Var ProBadValentineEnable = 0
|
||||
Var PepsiSecondCup30Enable = 1
|
||||
Var PepsiSecondCup30DiscountEnable = 1
|
||||
Var PepsiSecondCup30Enable = 0
|
||||
Var PepsiSecondCup30DiscountEnable = 0
|
||||
Var NewFlowPaymentCode = 1
|
||||
|
||||
Var LipitPro = 1
|
||||
Var MondayBananaPro = 1
|
||||
EndIf
|
||||
|
||||
If BoxID = 172644 Then
|
||||
|
|
@ -224,6 +277,24 @@ If BoxID = 200435 Then
|
|||
Var ProBadValentineEnable = 1
|
||||
EndIf
|
||||
|
||||
; can not have Promotion
|
||||
If BoxID = 172269 Then
|
||||
Var PepsiSecondCup30Enable = 0
|
||||
Var PepsiSecondCup30DiscountEnable = 0
|
||||
Var LipitPro = 0
|
||||
EndIf
|
||||
|
||||
If BoxID = 200773 Then
|
||||
Var PepsiSecondCup30Enable = 0
|
||||
Var PepsiSecondCup30DiscountEnable = 0
|
||||
Var LipitPro = 0
|
||||
EndIf
|
||||
|
||||
If BoxID = 173791 Then
|
||||
Var PepsiSecondCup30Enable = 0
|
||||
Var PepsiSecondCup30DiscountEnable = 0
|
||||
Var LipitPro = 0
|
||||
EndIf
|
||||
|
||||
|
||||
Var GameEnableFromTrickerEv = 1
|
||||
|
|
|
|||
1
xml/event/triple_promotion_onclick1.inc
Normal file
1
xml/event/triple_promotion_onclick1.inc
Normal file
|
|
@ -0,0 +1 @@
|
|||
Var BigButtonEnable = "Invisible"
|
||||
163
xml/event/triple_promotion_template1.inc
Normal file
163
xml/event/triple_promotion_template1.inc
Normal file
|
|
@ -0,0 +1,163 @@
|
|||
<Button>
|
||||
<X> 42 </X>
|
||||
<Y> 518 </Y>
|
||||
|
||||
<State> BigButtonEnable </State>
|
||||
<Filename>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = ###normal_eng
|
||||
Else
|
||||
Var return = ###normal_thai
|
||||
EndIf
|
||||
)
|
||||
</Filename>
|
||||
<FilenamePress>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = ###normal_eng
|
||||
Else
|
||||
Var return = ###normal_thai
|
||||
EndIf
|
||||
)
|
||||
</FilenamePress>
|
||||
<FilenameDisable>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = ###normal_eng
|
||||
Else
|
||||
Var return = ###normal_thai
|
||||
EndIf
|
||||
)
|
||||
</FilenameDisable>
|
||||
<EventOnClick>
|
||||
|
||||
Open "ROOT/taobin_project/xml/page_catalog_group_pro_pepsi_second_cup_30.xml"
|
||||
|
||||
</EventOnClick>
|
||||
|
||||
|
||||
<Video>
|
||||
<X> 42 </X>
|
||||
<Y> 518 </Y>
|
||||
<Width> 484 </Width>
|
||||
<Height> 616 </Height>
|
||||
<Loop> "true" </Loop>
|
||||
<State>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = "Invisible"
|
||||
Else
|
||||
Var return = "Enable"
|
||||
EndIf
|
||||
)
|
||||
</State>
|
||||
<Filename> "ROOT/taobin_project/image/event/pepsi_second_cup_30/pro_pepsi_second_cup_30_th.mp4" </Filename>
|
||||
</Video>
|
||||
|
||||
<Video>
|
||||
<X> 42 </X>
|
||||
<Y> 518 </Y>
|
||||
<Width> 484 </Width>
|
||||
<Height> 616 </Height>
|
||||
<State>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = "Enable"
|
||||
Else
|
||||
Var return = "Invisible"
|
||||
EndIf
|
||||
)
|
||||
</State>
|
||||
<Loop> "true" </Loop>
|
||||
<Filename> "ROOT/taobin_project/image/event/pepsi_second_cup_30/pro_pepsi_second_cup_30_en.mp4" </Filename>
|
||||
</Video>
|
||||
|
||||
</Button>
|
||||
|
||||
<Button>
|
||||
<X> 559 </X>
|
||||
<Y> 519 </Y>
|
||||
|
||||
<State> BigButtonEnable </State>
|
||||
<Filename>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = ###second_normal_eng
|
||||
Else
|
||||
Var return = ###second_normal_thai
|
||||
EndIf
|
||||
)
|
||||
</Filename>
|
||||
<FilenamePress>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = ###second_normal_eng
|
||||
Else
|
||||
Var return = ###second_normal_thai
|
||||
EndIf
|
||||
)
|
||||
</FilenamePress>
|
||||
<FilenameDisable>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = ###second_normal_eng
|
||||
Else
|
||||
Var return = ###second_normal_thai
|
||||
EndIf
|
||||
)
|
||||
</FilenameDisable>
|
||||
<EventOnClick>
|
||||
|
||||
Open "ROOT/taobin_project/xml/page_catalog_group_pro_monday_banana.xml"
|
||||
|
||||
</EventOnClick>
|
||||
|
||||
<Button>
|
||||
<X> 42 </X>
|
||||
<Y> 1153 </Y>
|
||||
|
||||
<State> BigButtonEnable </State>
|
||||
<Filename>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = ###third_normal_eng
|
||||
Else
|
||||
Var return = ###third_normal_thai
|
||||
EndIf
|
||||
)
|
||||
</Filename>
|
||||
<FilenamePress>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = ###third_normal_eng
|
||||
Else
|
||||
Var return = ###third_normal_thai
|
||||
EndIf
|
||||
)
|
||||
</FilenamePress>
|
||||
<FilenameDisable>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = ###third_normal_eng
|
||||
Else
|
||||
Var return = ###third_normal_thai
|
||||
EndIf
|
||||
)
|
||||
</FilenameDisable>
|
||||
<EventOnClick>
|
||||
|
||||
Open "ROOT/taobin_project/xml/page_catalog_group_pro_monday_banana.xml"
|
||||
|
||||
</EventOnClick>
|
||||
|
||||
</Button>
|
||||
|
||||
<EventUnitTest1>
|
||||
Var BigButtonEnable = "Enable"
|
||||
Refresh
|
||||
</EventUnitTest1>
|
||||
<EventUnitTest2>
|
||||
Var BigButtonEnable = "Invisible"
|
||||
Refresh
|
||||
</EventUnitTest2>
|
||||
|
|
@ -1,3 +1,45 @@
|
|||
def GetPrice_Old(price_list, product_code_1, product_code_2, product_code_3):
|
||||
if product_code_1 in price_list:
|
||||
return price_list[product_code_1]
|
||||
elif product_code_2 in price_list:
|
||||
return price_list[product_code_2]
|
||||
elif product_code_3 in price_list:
|
||||
return price_list[product_code_3]
|
||||
else:
|
||||
return ""
|
||||
|
||||
def GetPrice(price_list, product_code):
|
||||
if product_code in price_list:
|
||||
return price_list[product_code]
|
||||
else:
|
||||
return ""
|
||||
|
||||
def GetOriginalPrice_Old(original_price_list, product_code_1, product_code_2, product_code_3):
|
||||
if product_code_1 in original_price_list:
|
||||
return original_price_list[product_code_1]
|
||||
elif product_code_2 in original_price_list:
|
||||
return original_price_list[product_code_2]
|
||||
elif product_code_3 in original_price_list:
|
||||
return original_price_list[product_code_3]
|
||||
else:
|
||||
return ""
|
||||
|
||||
def GetOriginalPrice(original_price_list, product_code):
|
||||
if product_code in original_price_list:
|
||||
return original_price_list[product_code]
|
||||
else:
|
||||
return ""
|
||||
|
||||
def GetTricker(tricker_list, product_code_1, product_code_2, product_code_3):
|
||||
if product_code_1 in tricker_list:
|
||||
return tricker_list[product_code_1]
|
||||
elif product_code_2 in tricker_list:
|
||||
return tricker_list[product_code_2]
|
||||
elif product_code_3 in tricker_list:
|
||||
return tricker_list[product_code_3]
|
||||
else:
|
||||
return ""
|
||||
|
||||
if "v2" in param:
|
||||
print("Version 1 ignore ")
|
||||
else:
|
||||
|
|
@ -7,6 +49,16 @@
|
|||
touch_less_gen = True
|
||||
else:
|
||||
touch_less_gen = False
|
||||
|
||||
if current_file_name == "page_catalog_group_recommend_double_pro.skt":
|
||||
double_pro_gen = True
|
||||
else:
|
||||
double_pro_gen = False
|
||||
|
||||
if current_file_name == "page_catalog_group_recommend_triple_pro.skt":
|
||||
triple_pro_gen = True
|
||||
else:
|
||||
triple_pro_gen = False
|
||||
|
||||
if current_file_name == "page_catalog_group_pro_15THB.skt":
|
||||
fixed_price = 15
|
||||
|
|
@ -14,92 +66,57 @@
|
|||
fixed_price = 0
|
||||
|
||||
if current_file_name == "page_catalog_group_pro_rerun.skt":
|
||||
def GetPrice(product_code_1, product_code_2, product_code_3):
|
||||
prices = {
|
||||
"12-02-02-0043": 15,
|
||||
"12-99-05-0057": 15,
|
||||
"12-99-05-0059": 15,
|
||||
"12-02-02-0044": 20,
|
||||
"12-99-03-0046": 20,
|
||||
"12-99-02-0050": 20,
|
||||
"12-99-02-0011": 25,
|
||||
"12-99-02-0015": 25,
|
||||
"12-99-02-0003": 30,
|
||||
"12-99-02-0001": 30,
|
||||
"12-03-02-0036": 30,
|
||||
"12-03-03-0035": 35,
|
||||
"12-99-03-0066": 30
|
||||
rerun_prices = {
|
||||
"12-02-02-0043": 15,
|
||||
"12-99-05-0057": 15,
|
||||
"12-99-05-0059": 15,
|
||||
"12-02-02-0044": 20,
|
||||
"12-99-03-0046": 20,
|
||||
"12-99-02-0050": 20,
|
||||
"12-99-02-0011": 25,
|
||||
"12-99-02-0015": 25,
|
||||
"12-99-02-0003": 30,
|
||||
"12-99-02-0001": 30,
|
||||
"12-03-02-0036": 30,
|
||||
"12-03-03-0035": 35,
|
||||
"12-99-03-0066": 30
|
||||
}
|
||||
|
||||
rerun_original_prices = {
|
||||
"12-02-02-0043": 35,
|
||||
"12-99-05-0057": 20,
|
||||
"12-99-05-0059": 20,
|
||||
"12-02-02-0044": 25,
|
||||
"12-99-03-0046": 25,
|
||||
"12-99-02-0050": 25,
|
||||
"12-99-02-0011": 30,
|
||||
"12-99-02-0015": 30,
|
||||
"12-99-02-0003": 35,
|
||||
"12-99-02-0001": 35,
|
||||
"12-03-02-0036": 40,
|
||||
"12-03-03-0035": 45,
|
||||
"12-99-03-0066": 60
|
||||
}
|
||||
|
||||
rerun_trickers = {
|
||||
"12-02-02-0043": "PMD20",
|
||||
"12-99-05-0057": "PMD05",
|
||||
"12-99-05-0059": "PMD05",
|
||||
"12-02-02-0044": "PMD05",
|
||||
"12-99-03-0046": "PMD05",
|
||||
"12-99-02-0011": "PMD05",
|
||||
"12-99-02-0015": "PMD05",
|
||||
"12-99-02-0003": "PMD05",
|
||||
"12-99-02-0001": "PMD05",
|
||||
"12-03-02-0036": "PMD10",
|
||||
"12-03-03-0035": "PMD10",
|
||||
"12-99-03-0066": "PMD30"
|
||||
}
|
||||
|
||||
|
||||
|
||||
if product_code_1 in prices:
|
||||
return prices[product_code_1]
|
||||
elif product_code_2 in prices:
|
||||
return prices[product_code_2]
|
||||
elif product_code_3 in prices:
|
||||
return prices[product_code_3]
|
||||
else:
|
||||
return ""
|
||||
|
||||
def GetOriginalPrice(product_code_1, product_code_2, product_code_3):
|
||||
original_prices = {
|
||||
"12-02-02-0043": 35,
|
||||
"12-99-05-0057": 20,
|
||||
"12-99-05-0059": 20,
|
||||
"12-02-02-0044": 25,
|
||||
"12-99-03-0046": 25,
|
||||
"12-99-02-0050": 25,
|
||||
"12-99-02-0011": 30,
|
||||
"12-99-02-0015": 30,
|
||||
"12-99-02-0003": 35,
|
||||
"12-99-02-0001": 35,
|
||||
"12-03-02-0036": 40,
|
||||
"12-03-03-0035": 45,
|
||||
"12-99-03-0066": 60
|
||||
}
|
||||
|
||||
if product_code_1 in original_prices:
|
||||
return original_prices[product_code_1]
|
||||
elif product_code_2 in original_prices:
|
||||
return original_prices[product_code_2]
|
||||
elif product_code_3 in original_prices:
|
||||
return original_prices[product_code_3]
|
||||
else:
|
||||
return ""
|
||||
|
||||
def GetTricker(product_code_1, product_code_2, product_code_3):
|
||||
trickers = {
|
||||
"12-02-02-0043": "PMD20",
|
||||
"12-99-05-0057": "PMD05",
|
||||
"12-99-05-0059": "PMD05",
|
||||
"12-02-02-0044": "PMD05",
|
||||
"12-99-03-0046": "PMD05",
|
||||
"12-99-02-0011": "PMD05",
|
||||
"12-99-02-0015": "PMD05",
|
||||
"12-99-02-0003": "PMD05",
|
||||
"12-99-02-0001": "PMD05",
|
||||
"12-03-02-0036": "PMD10",
|
||||
"12-03-03-0035": "PMD10",
|
||||
"12-99-03-0066": "PMD30"
|
||||
}
|
||||
|
||||
if product_code_1 in trickers:
|
||||
return trickers[product_code_1]
|
||||
elif product_code_2 in trickers:
|
||||
return trickers[product_code_2]
|
||||
elif product_code_3 in trickers:
|
||||
return trickers[product_code_3]
|
||||
else:
|
||||
return ""
|
||||
get_price = GetPrice
|
||||
get_original_price = GetOriginalPrice
|
||||
get_tricker = GetTricker
|
||||
rerun_fix_price = True
|
||||
else:
|
||||
get_price = None
|
||||
get_original_price = None
|
||||
get_tricker = None
|
||||
rerun_prices = {}
|
||||
rerun_original_prices = {}
|
||||
rerun_trickers = {}
|
||||
rerun_fix_price = False
|
||||
|
||||
if current_file_name == "page_catalog_group_pro_mymint.skt":
|
||||
|
|
@ -119,10 +136,38 @@
|
|||
else:
|
||||
from_pepsi_second_cup_30 = False
|
||||
|
||||
if current_file_name == "page_catalog_group_pro_lipit.skt":
|
||||
from_lipit_pro = True
|
||||
else:
|
||||
from_lipit_pro = False
|
||||
|
||||
if current_file_name == "page_catalog_group_pro_monday_banana.skt":
|
||||
monday_banana_prices = {
|
||||
"12-03-02-0024": 30,
|
||||
"12-03-03-0024": 35,
|
||||
"12-03-03-0029": 40,
|
||||
"12-03-02-0023": 25,
|
||||
"12-03-03-0023": 30
|
||||
}
|
||||
|
||||
monday_banana_original_prices = {
|
||||
"12-03-02-0024": 40,
|
||||
"12-03-03-0024": 45,
|
||||
"12-03-03-0029": 50,
|
||||
"12-03-02-0023": 35,
|
||||
"12-03-03-0023": 40
|
||||
}
|
||||
|
||||
monday_banana_fix_price = True
|
||||
else:
|
||||
monday_banana_prices = {}
|
||||
monday_banana_original_prices = {}
|
||||
monday_banana_fix_price = False
|
||||
|
||||
#print ("######################################################################################################")
|
||||
idx_of_eng = 2
|
||||
out_xml('<FrameScroll> \r\n')
|
||||
if touch_less_gen == True:
|
||||
if touch_less_gen == True or double_pro_gen or triple_pro_gen:
|
||||
out_xml('<Max> 16 </Max>\r\n')
|
||||
out_xml('<X> 10 </X>\r\n')
|
||||
out_xml('<Y> 497 </Y>\r\n')
|
||||
|
|
@ -135,8 +180,13 @@
|
|||
if "all" in verbose:
|
||||
print("current_file_name " + current_file_name)
|
||||
|
||||
|
||||
if touch_less_gen == False:
|
||||
if triple_pro_gen == True:
|
||||
out_xml('\t Var block_index_override = 0\r\n')
|
||||
out_xml('\t Var block_index_move = 0\r\n')
|
||||
elif double_pro_gen == True:
|
||||
out_xml('\t Var block_index_override = 0\r\n')
|
||||
out_xml('\t Var block_index_move = 0\r\n')
|
||||
elif touch_less_gen == False:
|
||||
|
||||
out_xml('\t Var block_index_override = 0\r\n')
|
||||
out_xml('\t Var block_index_move = 0\r\n')
|
||||
|
|
@ -195,6 +245,9 @@
|
|||
out_xml('\t</QRCode>\r\n')
|
||||
out_xml('</Block>\r\n')
|
||||
out_xml(';dummy_layout.inc\r\n')
|
||||
|
||||
if double_pro_gen == True or triple_pro_gen:
|
||||
out_xml(';dummy_layout.inc\r\n')
|
||||
|
||||
|
||||
out_xml('; menu_new_list '+ str(len(menu_new_list))+'\r\n')
|
||||
|
|
@ -233,7 +286,7 @@
|
|||
str_con_var += spl[6] + '-'
|
||||
|
||||
str_con_var = str_con_var.replace("-", "")
|
||||
if touch_less_gen == True:
|
||||
if touch_less_gen == True or double_pro_gen == True or triple_pro_gen == True:
|
||||
str_con += "Disable=Invisible,"
|
||||
|
||||
str_con += "$Sum" + str_con_var
|
||||
|
|
@ -302,10 +355,18 @@
|
|||
out_xml( '\t\tVar OpenFromXML = CurrentXMLFileName2\r\n')
|
||||
|
||||
if rerun_fix_price:
|
||||
out_xml( '\t\tVar PriceD1 = ' + str(get_price(pd_code_1, pd_code_2, pd_code_3)) + '\r\n')
|
||||
out_xml( '\t\tVar PriceD2 = ' + str(get_price(pd_code_1, pd_code_2, pd_code_3)) + '\r\n')
|
||||
out_xml( '\t\tVar PriceD3 = ' + str(get_price(pd_code_1, pd_code_2, pd_code_3)) + '\r\n')
|
||||
out_xml( '\t\tVar OldPrice = ' + str(get_original_price(pd_code_1, pd_code_2, pd_code_3)) + '\r\n')
|
||||
out_xml( '\t\tVar PriceD1 = ' + str(GetPrice_Old(rerun_prices, pd_code_1, pd_code_2, pd_code_3)) + '\r\n')
|
||||
out_xml( '\t\tVar PriceD2 = ' + str(GetPrice_Old(rerun_prices, pd_code_1, pd_code_2, pd_code_3)) + '\r\n')
|
||||
out_xml( '\t\tVar PriceD3 = ' + str(GetPrice_Old(rerun_prices, pd_code_1, pd_code_2, pd_code_3)) + '\r\n')
|
||||
out_xml( '\t\tVar OldPrice = ' + str(GetOriginalPrice_Old(rerun_original_prices, pd_code_1, pd_code_2, pd_code_3)) + '\r\n')
|
||||
elif monday_banana_fix_price:
|
||||
out_xml( '\t\tVar PriceD1 = ' + str(GetPrice(monday_banana_prices, pd_code_1)) + '\r\n')
|
||||
out_xml( '\t\tVar PriceD2 = ' + str(GetPrice(monday_banana_prices, pd_code_2)) + '\r\n')
|
||||
out_xml( '\t\tVar PriceD3 = ' + str(GetPrice(monday_banana_prices, pd_code_3)) + '\r\n')
|
||||
out_xml( '\t\tVar OriginalPriceD1 = ' + str(GetOriginalPrice(monday_banana_original_prices, pd_code_1)) + '\r\n')
|
||||
out_xml( '\t\tVar OriginalPriceD2 = ' + str(GetOriginalPrice(monday_banana_original_prices, pd_code_2)) + '\r\n')
|
||||
out_xml( '\t\tVar OriginalPriceD3 = ' + str(GetOriginalPrice(monday_banana_original_prices, pd_code_3)) + '\r\n')
|
||||
|
||||
else:
|
||||
out_xml( '\t\tVar PriceD1 = $' + spl[4] + '.Price\r\n')
|
||||
out_xml( '\t\tVar PriceD2 = $' + spl[5] + '.Price\r\n')
|
||||
|
|
@ -392,7 +453,10 @@
|
|||
|
||||
if rerun_fix_price:
|
||||
out_xml( '\t\tVar FromRerunPro = 1 \r\n')
|
||||
out_xml( '\t\tVar RerunProCode = "' + get_tricker(pd_code_1, pd_code_2, pd_code_3) + '"\r\n')
|
||||
out_xml( '\t\tVar RerunProCode = "' + GetTricker(rerun_trickers, pd_code_1, pd_code_2, pd_code_3) + '"\r\n')
|
||||
|
||||
if monday_banana_fix_price:
|
||||
out_xml( '\t\tVar FromMondayBananaPro = 1 \r\n')
|
||||
|
||||
if from_my_mint_promotion:
|
||||
out_xml( '\t\tVar FromMyMintPro = 1 \r\n')
|
||||
|
|
@ -403,6 +467,9 @@
|
|||
if from_pepsi_second_cup_30:
|
||||
out_xml( '\t\tVar FromPepsiSecondCup30 = 1 \r\n')
|
||||
|
||||
if from_lipit_pro:
|
||||
out_xml( '\t\tVar FromLipitPro = 1 \r\n')
|
||||
|
||||
|
||||
out_xml( '\t\t\r\n')
|
||||
out_xml( '\t\t\r\n')
|
||||
|
|
@ -529,14 +596,18 @@
|
|||
if fixed_price > 0:
|
||||
out_xml( '\t<Value> StringFmt( 15 , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
|
||||
elif rerun_fix_price:
|
||||
out_xml( '\t<Value> StringFmt( ' + str(get_price(pd_code_1, pd_code_2, pd_code_3)) + ' , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
|
||||
out_xml( '\t<Value> StringFmt( ' + str(GetPrice_Old(rerun_prices, pd_code_1, pd_code_2, pd_code_3)) + ' , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
|
||||
elif monday_banana_fix_price:
|
||||
out_xml( '\t<Value> StringFmt( ' + str(GetPrice(monday_banana_prices, spl[4])) + ' , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
|
||||
else:
|
||||
out_xml( '\t<Value> StringFmt( $' + spl[4] + '.Price , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
|
||||
else:
|
||||
if fixed_price > 0:
|
||||
out_xml( '\t<Value> "฿15" </Value>\r\n')
|
||||
elif rerun_fix_price:
|
||||
out_xml( '\t<Value> "฿' + str(get_price(pd_code_1, pd_code_2, pd_code_3)) + '" </Value>\r\n')
|
||||
out_xml( '\t<Value> "฿' + str(GetPrice_Old(rerun_prices, pd_code_1, pd_code_2, pd_code_3)) + '" </Value>\r\n')
|
||||
elif monday_banana_fix_price:
|
||||
out_xml( '\t<Value> "฿' + str(GetPrice(monday_banana_prices, spl[4])) + '" </Value>\r\n')
|
||||
else:
|
||||
out_xml( '\t<Value> Var( "฿" + $' + spl[4] + '.Price ) </Value>\r\n')
|
||||
out_xml( '\t</Text>\r\n')
|
||||
|
|
@ -584,14 +655,18 @@
|
|||
if fixed_price > 0:
|
||||
out_xml( '\t<Value> StringFmt( 15 , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
|
||||
elif rerun_fix_price:
|
||||
out_xml( '\t<Value> StringFmt( ' + str(get_price(pd_code_1, pd_code_2, pd_code_3)) + ' , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
|
||||
out_xml( '\t<Value> StringFmt( ' + str(GetPrice_Old(rerun_prices, pd_code_1, pd_code_2, pd_code_3)) + ' , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
|
||||
elif monday_banana_fix_price:
|
||||
out_xml( '\t<Value> StringFmt( ' + str(GetPrice(monday_banana_prices, spl[5])) + ' , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
|
||||
else:
|
||||
out_xml( '\t<Value> StringFmt( $' + spl[5] + '.Price , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
|
||||
else:
|
||||
if fixed_price > 0:
|
||||
out_xml( '\t<Value> "฿15" </Value>\r\n')
|
||||
elif rerun_fix_price:
|
||||
out_xml( '\t<Value> "฿' + str(get_price(pd_code_1, pd_code_2, pd_code_3)) + '" </Value>\r\n')
|
||||
out_xml( '\t<Value> "฿' + str(GetPrice_Old(rerun_prices, pd_code_1, pd_code_2, pd_code_3)) + '" </Value>\r\n')
|
||||
elif monday_banana_fix_price:
|
||||
out_xml( '\t<Value> "฿' + str(GetPrice(monday_banana_prices, spl[5])) + '" </Value>\r\n')
|
||||
else:
|
||||
out_xml( '\t<Value> Var( "฿" + $' + spl[5] + '.Price ) </Value>\r\n')
|
||||
out_xml( '\t</Text>\r\n')
|
||||
|
|
@ -641,14 +716,18 @@
|
|||
if fixed_price > 0:
|
||||
out_xml( '\t<Value> StringFmt( 15 , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
|
||||
elif rerun_fix_price:
|
||||
out_xml( '\t<Value> StringFmt( ' + str(get_price(pd_code_1, pd_code_2, pd_code_3)) + ' , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
|
||||
out_xml( '\t<Value> StringFmt( ' + str(GetPrice_Old(rerun_prices, pd_code_1, pd_code_2, pd_code_3)) + ' , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
|
||||
elif monday_banana_fix_price:
|
||||
out_xml( '\t<Value> StringFmt( ' + str(GetPrice(monday_banana_prices, spl[6])) + ' , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
|
||||
else:
|
||||
out_xml( '\t<Value> StringFmt( $' + spl[6] + '.Price , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
|
||||
else:
|
||||
if fixed_price > 0:
|
||||
out_xml( '\t<Value> "฿15" </Value>\r\n')
|
||||
elif rerun_fix_price:
|
||||
out_xml( '\t<Value> "฿' + str(get_price(pd_code_1, pd_code_2, pd_code_3)) + '" </Value>\r\n')
|
||||
out_xml( '\t<Value> "฿' + str(GetPrice_Old(rerun_prices, pd_code_1, pd_code_2, pd_code_3)) + '" </Value>\r\n')
|
||||
elif monday_banana_fix_price:
|
||||
out_xml( '\t<Value> "฿' + str(GetPrice(monday_banana_prices, spl[6])) + '" </Value>\r\n')
|
||||
else:
|
||||
out_xml( '\t<Value> Var( "฿" + $' + spl[6] + '.Price ) </Value>\r\n')
|
||||
out_xml( '\t</Text>\r\n')
|
||||
|
|
@ -780,7 +859,7 @@
|
|||
str_con_var += spl[10] + '-'
|
||||
|
||||
str_con_var = str_con_var.replace("-", "")
|
||||
if touch_less_gen == True:
|
||||
if touch_less_gen == True or double_pro_gen == True or triple_pro_gen == True:
|
||||
str_con += "Disable=Invisible,"
|
||||
|
||||
str_con += "$Sum" + str_con_var
|
||||
|
|
@ -927,6 +1006,9 @@
|
|||
if from_pepsi_second_cup_30:
|
||||
out_xml( '\t\tVar FromPepsiSecondCup30 = 1 \r\n')
|
||||
|
||||
if from_lipit_pro:
|
||||
out_xml( '\t\tVar FromLipitPro = 1 \r\n')
|
||||
|
||||
out_xml( '\t\t\r\n')
|
||||
out_xml( '\t\t\r\n')
|
||||
if "inter" in param:
|
||||
|
|
|
|||
|
|
@ -229,6 +229,20 @@
|
|||
EndIf
|
||||
EndIf
|
||||
|
||||
DEBUGVAR Seeker.CodeChannel
|
||||
DEBUGVAR Seeker.CollectPointMain
|
||||
DEBUGVAR LipitPro
|
||||
DEBUGVAR FromLipitPro
|
||||
If LipitPro = 1 Then
|
||||
If FromLipitPro = 1 Then
|
||||
If Seeker.CodeChannel = 1 Then
|
||||
If Seeker.CollectPointMain = 0 Then
|
||||
Var AddData = 0
|
||||
EndIf
|
||||
EndIf
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
If GetFreeFromError = 1 Then
|
||||
;Var GetFreeFromError = 0
|
||||
Var TelephoneNumberProblem = TelephoneNumberGOTFree
|
||||
|
|
|
|||
|
|
@ -140,6 +140,17 @@
|
|||
EndIf
|
||||
EndIf
|
||||
|
||||
If LipitPro = 1 Then
|
||||
If FromLipitPro = 1 Then
|
||||
If Seeker.CodeChannel = 1 Then
|
||||
If Seeker.CollectPointMain = 1 Then
|
||||
Else
|
||||
Var AddData = 0
|
||||
EndIf
|
||||
EndIf
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
If LedLidBlink = "true" Then
|
||||
Var LedLidBlink = "no"
|
||||
LED LedDoorLid Blink 255 255 255 255
|
||||
|
|
|
|||
46
xml/page_catalog_group_pro_lipit.skt
Normal file
46
xml/page_catalog_group_pro_lipit.skt
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
<?hurr
|
||||
#include=menu_head.py
|
||||
?>
|
||||
|
||||
<Popup>
|
||||
<Cache> "Enable" </Cache>
|
||||
<Width> 1080 </Width>
|
||||
<Height> 1920 </Height>
|
||||
;<Background> "0xeae6e1" </Background>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventOpen>
|
||||
; On open
|
||||
<?hurr
|
||||
#include=menu_catalog_default_init.py
|
||||
?>
|
||||
|
||||
|
||||
|
||||
Var Timeout = 0
|
||||
Var FromLipitPro = 0
|
||||
|
||||
|
||||
<?hurr
|
||||
#include=menu_catalog_new_menu.py
|
||||
?>
|
||||
|
||||
</EventOpen>
|
||||
|
||||
|
||||
<?hurr
|
||||
#include=menu_catalog_new.py
|
||||
?>
|
||||
|
||||
|
||||
|
||||
|
||||
<?hurr
|
||||
#include=menu_new_layout_gen_v2.py
|
||||
?>
|
||||
<?hurr
|
||||
#include=menu_new_layout_gen.py
|
||||
?>
|
||||
|
||||
|
||||
|
||||
</Popup>
|
||||
3088
xml/page_catalog_group_pro_lipit.xml
Normal file
3088
xml/page_catalog_group_pro_lipit.xml
Normal file
File diff suppressed because it is too large
Load diff
46
xml/page_catalog_group_pro_monday_banana.skt
Normal file
46
xml/page_catalog_group_pro_monday_banana.skt
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
<?hurr
|
||||
#include=menu_head.py
|
||||
?>
|
||||
|
||||
<Popup>
|
||||
<Cache> "Enable" </Cache>
|
||||
<Width> 1080 </Width>
|
||||
<Height> 1920 </Height>
|
||||
;<Background> "0xeae6e1" </Background>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventOpen>
|
||||
; On open
|
||||
<?hurr
|
||||
#include=menu_catalog_default_init.py
|
||||
?>
|
||||
|
||||
|
||||
|
||||
Var Timeout = 0
|
||||
Var FromMondayBananaPro = 0
|
||||
|
||||
|
||||
<?hurr
|
||||
#include=menu_catalog_new_menu.py
|
||||
?>
|
||||
|
||||
</EventOpen>
|
||||
|
||||
|
||||
<?hurr
|
||||
#include=menu_catalog_new.py
|
||||
?>
|
||||
|
||||
|
||||
|
||||
|
||||
<?hurr
|
||||
#include=menu_new_layout_gen_v2.py
|
||||
?>
|
||||
<?hurr
|
||||
#include=menu_new_layout_gen.py
|
||||
?>
|
||||
|
||||
|
||||
|
||||
</Popup>
|
||||
1332
xml/page_catalog_group_pro_monday_banana.xml
Normal file
1332
xml/page_catalog_group_pro_monday_banana.xml
Normal file
File diff suppressed because it is too large
Load diff
83
xml/page_catalog_group_recommend_double_pro.skt
Normal file
83
xml/page_catalog_group_recommend_double_pro.skt
Normal file
|
|
@ -0,0 +1,83 @@
|
|||
<?hurr
|
||||
#include=menu_head.py
|
||||
?>
|
||||
|
||||
<Popup>
|
||||
<Cache> "Enable" </Cache>
|
||||
<Width> 1080 </Width>
|
||||
<Height> 1920 </Height>
|
||||
;<Background> "0xeae6e1" </Background>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventOpen>
|
||||
; On open
|
||||
<?hurr
|
||||
#include=menu_catalog_default_init.xml
|
||||
?>
|
||||
|
||||
Var Menu1Selected = "PressForever"
|
||||
|
||||
Var OreoBigButtonEnable = "Enable"
|
||||
|
||||
If $12-01-01-0001.Button = "Invisible" Then
|
||||
Var esp102101001Enable = "Invisible"
|
||||
Var esp122101001Enable = "Enable"
|
||||
|
||||
Else
|
||||
Var esp102101001Enable = "Enable"
|
||||
Var esp122101001Enable = "Invisible"
|
||||
|
||||
EndIf
|
||||
|
||||
SAVELOG PreviseXMLFileName2
|
||||
|
||||
Var Timeout = 0
|
||||
|
||||
If show_eng = "true" Then
|
||||
|
||||
Var text_unavailable = "UNAVAILABLE###size=16"
|
||||
Else
|
||||
Var text_unavailable = "หมด###size=32"
|
||||
|
||||
EndIf
|
||||
|
||||
<?hurr
|
||||
#include=menu_catalog_new_menu.xml
|
||||
?>
|
||||
|
||||
</EventOpen>
|
||||
|
||||
|
||||
<?hurr
|
||||
#include=menu_catalog_new.py
|
||||
?>
|
||||
|
||||
|
||||
<?hurr
|
||||
#include=menu_new_layout_gen_v2.py
|
||||
?>
|
||||
<?hurr
|
||||
#include=menu_new_layout_gen.py
|
||||
?>
|
||||
|
||||
<Button>
|
||||
<X> 780 </X>
|
||||
<Y> 500 </Y>
|
||||
<State> buttonRemoveCup </State>
|
||||
;<Color> "0x00BDFF" </Color>
|
||||
<Interval> 500 </Interval>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bn_remove_cup.png" </Filename>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bp_remove_cup.png" </Filename>
|
||||
<EventClick>
|
||||
Machine RemoveCup
|
||||
Machine DoorLidOpen
|
||||
Var buttonRemoveCup = "Invisible"
|
||||
</EventClick>
|
||||
</Button>
|
||||
|
||||
|
||||
|
||||
;BigLogoLayout
|
||||
|
||||
</Popup>
|
||||
|
||||
|
||||
10303
xml/page_catalog_group_recommend_double_pro.xml
Normal file
10303
xml/page_catalog_group_recommend_double_pro.xml
Normal file
File diff suppressed because it is too large
Load diff
83
xml/page_catalog_group_recommend_triple_pro.skt
Normal file
83
xml/page_catalog_group_recommend_triple_pro.skt
Normal file
|
|
@ -0,0 +1,83 @@
|
|||
<?hurr
|
||||
#include=menu_head.py
|
||||
?>
|
||||
|
||||
<Popup>
|
||||
<Cache> "Enable" </Cache>
|
||||
<Width> 1080 </Width>
|
||||
<Height> 1920 </Height>
|
||||
;<Background> "0xeae6e1" </Background>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventOpen>
|
||||
; On open
|
||||
<?hurr
|
||||
#include=menu_catalog_default_init.xml
|
||||
?>
|
||||
|
||||
Var Menu1Selected = "PressForever"
|
||||
|
||||
Var OreoBigButtonEnable = "Enable"
|
||||
|
||||
If $12-01-01-0001.Button = "Invisible" Then
|
||||
Var esp102101001Enable = "Invisible"
|
||||
Var esp122101001Enable = "Enable"
|
||||
|
||||
Else
|
||||
Var esp102101001Enable = "Enable"
|
||||
Var esp122101001Enable = "Invisible"
|
||||
|
||||
EndIf
|
||||
|
||||
SAVELOG PreviseXMLFileName2
|
||||
|
||||
Var Timeout = 0
|
||||
|
||||
If show_eng = "true" Then
|
||||
|
||||
Var text_unavailable = "UNAVAILABLE###size=16"
|
||||
Else
|
||||
Var text_unavailable = "หมด###size=32"
|
||||
|
||||
EndIf
|
||||
|
||||
<?hurr
|
||||
#include=menu_catalog_new_menu.xml
|
||||
?>
|
||||
|
||||
</EventOpen>
|
||||
|
||||
|
||||
<?hurr
|
||||
#include=menu_catalog_new.py
|
||||
?>
|
||||
|
||||
|
||||
<?hurr
|
||||
#include=menu_new_layout_gen_v2.py
|
||||
?>
|
||||
<?hurr
|
||||
#include=menu_new_layout_gen.py
|
||||
?>
|
||||
|
||||
<Button>
|
||||
<X> 780 </X>
|
||||
<Y> 500 </Y>
|
||||
<State> buttonRemoveCup </State>
|
||||
;<Color> "0x00BDFF" </Color>
|
||||
<Interval> 500 </Interval>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bn_remove_cup.png" </Filename>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bp_remove_cup.png" </Filename>
|
||||
<EventClick>
|
||||
Machine RemoveCup
|
||||
Machine DoorLidOpen
|
||||
Var buttonRemoveCup = "Invisible"
|
||||
</EventClick>
|
||||
</Button>
|
||||
|
||||
|
||||
|
||||
;BigLogoLayout
|
||||
|
||||
</Popup>
|
||||
|
||||
|
||||
10303
xml/page_catalog_group_recommend_triple_pro.xml
Normal file
10303
xml/page_catalog_group_recommend_triple_pro.xml
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -112,6 +112,8 @@
|
|||
|
||||
DEBUGVAR ProBadValentineEnable
|
||||
DEBUGVAR FromBadValentinePro
|
||||
DEBUGVAR LipitPro
|
||||
DEBUGVAR FromLipitPro
|
||||
|
||||
If Seeker.TNumberTaobinCredit = "" Then
|
||||
|
||||
|
|
@ -170,6 +172,20 @@
|
|||
EndIf
|
||||
EndIf
|
||||
|
||||
If LipitPro = 1 Then
|
||||
If FromLipitPro = 1 Then
|
||||
If Seeker.CodeChannel = 1 Then
|
||||
If Seeker.CollectPointPromotion = 1 Then
|
||||
GETACCEXT TelephoneNumber 32
|
||||
Open "ROOT/taobin_project/xml/event/lipit/page_collect_point_pro_lipit_2.xml"
|
||||
EndIf
|
||||
Else
|
||||
GETACCEXT TelephoneNumber 32
|
||||
Open "ROOT/taobin_project/xml/event/lipit/page_collect_point_pro_lipit_2.xml"
|
||||
EndIf
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
GETACCEXT Param1 23
|
||||
Open "ROOT/taobin_project/xml/page_collect_point_2.xml"
|
||||
|
||||
|
|
@ -201,6 +217,8 @@
|
|||
|
||||
DEBUGVAR MyMintEnable
|
||||
DEBUGVAR FromMyMintPro
|
||||
DEBUGVAR LipitPro
|
||||
DEBUGVAR FromLipitPro
|
||||
If MyMintEnable = 1 Then
|
||||
If FromMyMintPro = 1 Then
|
||||
GETACCEXT TelephoneNumber 32
|
||||
|
|
@ -215,6 +233,20 @@
|
|||
EndIf
|
||||
EndIf
|
||||
|
||||
If LipitPro = 1 Then
|
||||
If FromLipitPro = 1 Then
|
||||
If Seeker.CodeChannel = 1 Then
|
||||
If Seeker.CollectPointPromotion = 1 Then
|
||||
GETACCEXT TelephoneNumber 32
|
||||
Open "ROOT/taobin_project/xml/event/lipit/page_collect_point_pro_lipit_2.xml"
|
||||
EndIf
|
||||
Else
|
||||
GETACCEXT Param1 23
|
||||
Open "ROOT/taobin_project/xml/page_collect_point_2.xml"
|
||||
EndIf
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
If PepweenCollectPoint = 0 Then
|
||||
GETACCEXT TelephoneNumber 31
|
||||
Open "ROOT/taobin_project/xml/event/pepween/page_collect_point_pro_pepween_2.xml"
|
||||
|
|
@ -705,6 +737,17 @@
|
|||
EndIf
|
||||
EndIf
|
||||
|
||||
If LipitPro = 1 Then
|
||||
If FromLipitPro = 1 Then
|
||||
If Seeker.CodeChannel = 1 Then
|
||||
If Seeker.CollectPointPromotion = 1 Then
|
||||
GETACCEXT TelephoneNumber 32
|
||||
Open "ROOT/taobin_project/xml/event/lipit/page_collect_point_pro_lipit_2.xml"
|
||||
EndIf
|
||||
EndIf
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
If PepweenCollectPoint = 0 Then
|
||||
GETACCEXT TelephoneNumber 31
|
||||
Open "ROOT/taobin_project/xml/event/pepween/page_collect_point_pro_pepween_2.xml"
|
||||
|
|
|
|||
|
|
@ -85,6 +85,14 @@
|
|||
DEBUGVAR PromoPriceDrink
|
||||
EndIf
|
||||
|
||||
If FromMondayBananaPro = 1 Then
|
||||
Var PromoPriceDrink = PriceDrink
|
||||
Var PriceDrink = OriginalPrice
|
||||
|
||||
DEBUGVAR PriceDrink
|
||||
DEBUGVAR PromoPriceDrink
|
||||
EndIf
|
||||
|
||||
;Var AdultFlag = 1
|
||||
|
||||
|
||||
|
|
@ -294,6 +302,17 @@
|
|||
Var RerunProCode = ""
|
||||
EndIf
|
||||
|
||||
If FromMondayBananaPro = 1 Then
|
||||
Var PriceDiff = PriceDrink - PromoPriceDrink
|
||||
Var Seeker.VendingCode = "PMD10"
|
||||
Var Seeker.IntVendingCampaign = PriceDiff
|
||||
Var Seeker.FreeVendingCampaign = 0
|
||||
Var Seeker.CodeChannel = 1
|
||||
Var Seeker.CodeNumber = IDNum
|
||||
Var Seeker.VendingCampaignRI3 = PriceDiff
|
||||
Var Seeker.CampaignPPrice = PromoPriceDrink
|
||||
EndIf
|
||||
|
||||
If NightTime = 1 Then
|
||||
If SelectDrink = "12-99-03-0066" Then
|
||||
Var PriceDrink = 60
|
||||
|
|
|
|||
|
|
@ -16,6 +16,8 @@
|
|||
|
||||
Var GetPayInfoFlag = 0
|
||||
Var Seeker.CodeChannel = 0
|
||||
Var Seeker.CollectPointMain = 0
|
||||
Var Seeker.CollectPointPromotion = 0
|
||||
|
||||
;Var VendingQRCode = "ERROR"
|
||||
;VendingQR ON
|
||||
|
|
@ -193,14 +195,19 @@
|
|||
If Seeker.VendingCode = "C00" Then
|
||||
|
||||
Else
|
||||
|
||||
Var VendingCreditRemain = ""
|
||||
Var IntVendingCampaign1 = VendingCampaign1
|
||||
INT IntVendingCampaign1
|
||||
|
||||
If IntVendingCampaign1 > 0 Then
|
||||
Var VendingCreditRemain = VendingCampaign1
|
||||
EndIf
|
||||
If VendingCampaign1 = "" Then
|
||||
Var IntVendingCampaign1 = -1
|
||||
Else
|
||||
Var IntVendingCampaign1 = VendingCampaign1
|
||||
INT IntVendingCampaign1
|
||||
|
||||
If IntVendingCampaign1 > 0 Then
|
||||
Var VendingCreditRemain = VendingCampaign1
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
@ -209,10 +216,36 @@
|
|||
|
||||
Var VendingREFID = SessionID
|
||||
|
||||
|
||||
DEBUGVAR IntVendingCampaign1
|
||||
DEBUGVAR PayAmount
|
||||
DEBUGVAR Seeker.IntVendingCampaign
|
||||
|
||||
If Seeker.IntVendingCampaign > 0 Then
|
||||
Var QRChannel = 0
|
||||
|
||||
If Seeker.IntVendingCampaign >= PayAmount Then
|
||||
|
||||
If IntVendingCampaign1 >= 0 Then
|
||||
If Seeker.VendingCode = "FFR50" Then
|
||||
Var Seeker.CollectPointMain = 0
|
||||
Var Seeker.CollectPointPromotion = 0
|
||||
Else
|
||||
Var Seeker.CollectPointMain = 1
|
||||
Var Seeker.CollectPointPromotion = 1
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
If Seeker.VendingCode = "MKF" Then
|
||||
Var Seeker.CollectPointMain = 0
|
||||
Var Seeker.CollectPointPromotion = 1
|
||||
EndIf
|
||||
|
||||
If Seeker.VendingCode = "AFR" Then
|
||||
Var Seeker.CollectPointMain = 0
|
||||
Var Seeker.CollectPointPromotion = 1
|
||||
EndIf
|
||||
|
||||
;Open "ROOT/taobin_project/xml/page_payment_cash.xml"
|
||||
Var Seeker.VendingCampaign = PayAmount
|
||||
Var Seeker.FreeVendingCampaign = 1
|
||||
|
|
@ -243,6 +276,9 @@
|
|||
EndIf
|
||||
Open "ROOT/taobin_project/xml/page_thankyou.xml"
|
||||
EndIf
|
||||
Else
|
||||
Var Seeker.CollectPointMain = 1
|
||||
Var Seeker.CollectPointPromotion = 1
|
||||
EndIf
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -394,6 +394,13 @@
|
|||
EndIf
|
||||
|
||||
If Seeker.FreeVendingCampaign = 1 Then
|
||||
If Seeker.CollectPointPromotion = 1 Then
|
||||
Open "ROOT/taobin_project/xml/page_collect_point_1.xml"
|
||||
Else
|
||||
If Seeker.CollectPointMain = 1 Then
|
||||
Open "ROOT/taobin_project/xml/page_collect_point_1.xml"
|
||||
EndIf
|
||||
EndIf
|
||||
Open "ROOT/taobin_project/xml/page_lid_straw.xml"
|
||||
Else
|
||||
If CART_INDEX >= 2 Then
|
||||
|
|
@ -412,6 +419,14 @@
|
|||
; Open "ROOT/taobin_project/xml/page_collect_point_1.xml"
|
||||
;EndIf
|
||||
|
||||
If Seeker.CollectPointPromotion = 1 Then
|
||||
Open "ROOT/taobin_project/xml/page_collect_point_1.xml"
|
||||
Else
|
||||
If Seeker.CollectPointMain = 1 Then
|
||||
Open "ROOT/taobin_project/xml/page_collect_point_1.xml"
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
Open "ROOT/taobin_project/xml/page_lid_straw.xml"
|
||||
Else
|
||||
If CART_INDEX >= 2 Then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue