THA: Update Ameircano promotion
This commit is contained in:
parent
609b3e7a5e
commit
803fb579ec
7 changed files with 6013 additions and 346 deletions
|
|
@ -10,8 +10,9 @@ if "v3" in param and "promotion" in param and "other_catalog" in param:
|
|||
all_active_pro = ""
|
||||
|
||||
files = os.listdir(directory_to_process + "/event/event_v3/catalog_other")
|
||||
files = [f for f in files if f.endswith(".json")].reverse()
|
||||
for filename in files:
|
||||
files = [f for f in files if f.endswith(".json")]
|
||||
files.sort()
|
||||
for filename in reversed(files):
|
||||
pro_json_file = open(directory_to_process + "/event/event_v3/catalog_other/"+ filename)
|
||||
pro_json = json.load(pro_json_file)
|
||||
start_time = datetime.datetime.strptime(pro_json["start"], "%Y-%m-%dT%H:%M:%S")
|
||||
|
|
@ -25,9 +26,9 @@ if "v3" in param and "promotion" in param and "other_catalog" in param:
|
|||
pro_content = pro_content.replace("#EventClick", pro_json["event_click"])
|
||||
all_active_pro += pro_content + "\n\t"
|
||||
|
||||
pro_output_file = open(directory_to_process + "/event/event_v3/catalog_other/active_promotions.lxml", 'w')
|
||||
pro_output_file.write(template_content.replace(";banners", all_active_pro))
|
||||
pro_output_file.close()
|
||||
pro_output_file = open(directory_to_process + "/event/event_v3/catalog_other/active_promotions.lxml", 'w')
|
||||
pro_output_file.write(template_content.replace(";banners", all_active_pro))
|
||||
pro_output_file.close()
|
||||
|
||||
if "v3" in param and "promotion" in param:
|
||||
file_template = open(directory_to_process + "/page_catalog_group_recommend.lxml", 'r')
|
||||
|
|
@ -43,7 +44,7 @@ if "v3" in param and "promotion" in param:
|
|||
files = os.listdir(directory_to_process + "/event/event_v3")
|
||||
files = [f for f in files if f.endswith(".json")]
|
||||
files.sort()
|
||||
for filename in files:
|
||||
for filename in reversed(files):
|
||||
pro_json_file = open(directory_to_process + "/event/event_v3/"+ filename)
|
||||
pro_json = json.load(pro_json_file)
|
||||
start_time = datetime.datetime.strptime(pro_json["start"], "%Y-%m-%dT%H:%M:%S")
|
||||
|
|
|
|||
|
|
@ -108,6 +108,23 @@
|
|||
<MenuUnavailableLabel> 000013 </MenuUnavailableLabel>
|
||||
</Configuration>
|
||||
<Menus>
|
||||
<Banner>
|
||||
<State> AmericanoProState </State>
|
||||
<Type> IMAGE </Type>
|
||||
<Media>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = "ROOT/taobin_project/image/event/americano/americano_banner.png"
|
||||
Else
|
||||
Var return = "ROOT/taobin_project/image/event/americano/americano_banner.png"
|
||||
EndIf
|
||||
)
|
||||
</Media>
|
||||
<EventOnClick>
|
||||
TabMenuVisibleInst 99
|
||||
OpenInst 2 "ROOT/taobin_project/inter/tha/xml/multi/v3/page_catalog_group_pro_americano.lxml"
|
||||
</EventOnClick>
|
||||
</Banner>
|
||||
<Banner>
|
||||
<State> TaiwaneseTeaProState </State>
|
||||
<Type> IMAGE </Type>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue