This commit is contained in:
yumoqing 2025-09-14 18:43:41 +08:00
parent ab3b124526
commit 1011c711d2
4 changed files with 49 additions and 45 deletions

View File

@ -1,56 +1,60 @@
{
"widgettype":"DynamicColumn",
"widgettype":"Cols",
"id":"channel_list",
"options":{
"title":"频道列表",
"data_url":"{{entire_url('get_channels.dspy')}}",
"width": "100%",
"height": "100%",
"data_url": "{{entire_url('/api/channels.dspy')}}",
"data_params":{
},
"data_method":"POST",
"col_cwidth":22,
"record_view":{
{
"widgettype":"HBox",
"options":{
"cwidth":22,
"cheight":3
"widgettype":"HBox",
"options":{
"cwidth":22,
"cheight":5
},
"subwidgets":[
{
"widgettype":"Image",
"options":{
"cwidth":1.5,
"cheight":1.5,
"url":"${logo_url}",
"default_url":"/imgs/tv.png"
}
},
"subwidgets":[
{
"widgettype":"Image",
"options":{
"cwidth":1.5,
"cheight":1,5,
"url":"{{params_kw.logo_url}}",
"default_url":"{{entire_url('/imgs/tv.png')}}"
}
{
"widgettype":"Title6",
"options":{
"text":"${tv_name}",
"halign":"left"
}
}
],
"binds":[
{
"wid":"self",
"event":"click",
"actiontype":"urlwidget",
"target":"PopupWindow",
"popup_options":{
"width":"80%",
"height":"80%",
"title":"${tv_name}"
},
{
"widgettype":"Title6",
"options":"{
"css":"filler",
"text":"${tv_name}",
"wrap":true,
"halign":"left"
}
}
]
"binds":[
{
"wid":"self",
"event":"click",
"actiontype":"urlwidgt",
"target":"PopupWindow",
"popup_options":{
"options":{
"params":{
"tv_name": "${tv_name}",
"url":"${url}",
"id":"${id}"
},
"options":{
"params":{
"id":"${id}"
},
"url":"/play.ui"
}
"method": "POST",
"url":"/play.ui"
}
]
}
}
]
}
}
}

View File

@ -29,7 +29,7 @@
"widgettype":"Title4",
"options":{
"height":"auto",
"otext":"{{params_kw.get('tagname','Liked')}}",
"otext":"全球电视📺",
"i18n":true,
"wrap":true
}

View File

@ -12,7 +12,7 @@
"otext":"Search"
}
},
{% if params_kw._is_mobile == "1" %}
{% if int(params_kw._is_mobile) == 1 %}
{
"id":"tv_name",
"widgettype":"UiStr",

View File

@ -30,7 +30,7 @@
"event":"changed",
"actiontype":"method",
"target":"channel_list",
"method":"render"
"method":"load_first_page"
}
]
}