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

View File

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

View File

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

View File

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