diff --git a/wwwroot/dc_channels.ui b/wwwroot/dc_channels.ui index 8cabad3..a0ab693 100644 --- a/wwwroot/dc_channels.ui +++ b/wwwroot/dc_channels.ui @@ -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" } - ] - } + } + ] } } } diff --git a/wwwroot/header.ui b/wwwroot/header.ui index fccdc5f..a4187e2 100644 --- a/wwwroot/header.ui +++ b/wwwroot/header.ui @@ -29,7 +29,7 @@ "widgettype":"Title4", "options":{ "height":"auto", - "otext":"{{params_kw.get('tagname','Liked')}}", + "otext":"全球电视📺", "i18n":true, "wrap":true } diff --git a/wwwroot/search.ui b/wwwroot/search.ui index 13a5b7f..5af4242 100644 --- a/wwwroot/search.ui +++ b/wwwroot/search.ui @@ -12,7 +12,7 @@ "otext":"Search" } }, -{% if params_kw._is_mobile == "1" %} +{% if int(params_kw._is_mobile) == 1 %} { "id":"tv_name", "widgettype":"UiStr", diff --git a/wwwroot/search_channels.ui b/wwwroot/search_channels.ui index 8c59e7b..2a399c6 100644 --- a/wwwroot/search_channels.ui +++ b/wwwroot/search_channels.ui @@ -30,7 +30,7 @@ "event":"changed", "actiontype":"method", "target":"channel_list", - "method":"render" + "method":"load_first_page" } ] }