{ "type": "DPL", "version": "1.0", "mainTemplate": { "parameters": [ "payload" ], "items": [ { "type": "Image", "position": "absolute", "top": "0dp", "left": "0dp", "src": "https://aliyun-hz1.chewrobot.com/xiaoduhome/image/backend.jpg", "height": "100%", "width": "100%" }, { "type": "Header", "headerTitle": "排行榜", "hasBackIcon": false }, { "type": "List", "width": "100%", "height": "100%", "direction": "vertical", "items": [ { "type": "Container", "flex-direction": "row", "items": [ { "type": "Image", "width": "230dp", "height": "230dp", "src": "${data.imageSrc}", "position": "absolute", "border-radius": "15dp", "onClick": [ { "type": "SendEvent", "componentId": "${data.imageId}" } ] }, { "type": "Image", "src": "${data.logo}", "width": "30dp", "height": "30dp", "border-radius": "5dp" }, { "type": "Container", "margin-left": "250dp", "flex-direction": "column", "items": [ { "type": "Text", "margin-top": "10dp", "text": "${data.imageName}", "font-size": "38dp", "margin-left": "5%" }, { "type": "Text", "text": "${data.watches}", "margin-top": "10dp", "font-size": "25dp", "margin-left": "5%" }, { "type": "Container", "margin-top": "10dp", "flex-direction":"row", "items":[ { "type": "Text", "text": "${data.time}", "font-size": "22dp", "margin-left": "5%" }, { "type": "Text", "text": "${data.auth}", "font-size": "22dp", "margin-left": "10%" } ] }, { "type": "Container", "margin-top": "6dp", "flex-direction":"row", "items":[ { "type": "Text", "max-lines": 1, "text": "${data.label}", "font-size": "22dp", "margin-left": "5%" } ] }, { "type": "Container", "margin-top": "9dp", "margin-right": "26dp", "items": [ { "type": "Text", "font-size": "25dp", "line-height": "20dp", "text": "${data.intro}", "margin-top": "30dp", "max-lines": 3, "text-overflow": "ellipsis", "margin-left": "5%" } ] } ] } ] } ] } ] } }