{ "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": "Container", "height": "100%", "width": "100%", "padding-right": "20dp", "componentId": "whole", "items": [ { "type": "Header", "headerImage": "https://aliyun-hz1.chewrobot.com/xiaodu/image/5b2d0a11/lvzhou/15640330891628686.jpg", "headerTitle": "交游天下" }, { "type": "ScrollView", "direction": "vertical", "height": "100%", "width": "100%", "componentId": "scrollCom", "onLoaded": [ { "type": "ScrollToIndex", "componentId": "rankScroll", "index": 7, "align": "center" }, { "type": "ScrollToIndex", "componentId": "recomScroll", "index": 6, "align": "center" } ], "items": [ { "type": "Container", "height": "250dp", "width": "100%", "items": [ { "type": "List", "height": "250dp", "width": "100%", "direction": "horizontal", "componentId": "rankScroll", "items": [ { "type": "Container", "align-items": "center", "margin-left": "30dp", "items": [ { "type": "Image", "componentId": "${data.imageId}", "width": "160dp", "height": "160dp", "border-radius": "15dp", "src": "${data.imageSrc}", "scale-type": "fitXY", "onClick": [ { "type": "SendEvent", "componentId": "${data.imageId}" } ] }, { "type": "Text", "font-size": "24dp", "margin-top": "10dp", "text": "${data.imageName}" } ] } ] } ] }, { "type": "Container", "height": "250dp", "width": "100%", "margin-top": "30dp", "items": [ { "type": "List", "height": "100%", "width": "100%", "componentId": "recomScroll", "direction": "horizontal", "items": [ { "type": "Container", "margin-left": "30dp", "align-items": "center", "items": [ { "type": "Image", "componentId": "${data.imageId}", "width": "160dp", "height": "160dp", "border-radius": "15dp", "src": "${data.imageSrc}", "scale-type": "fitXY", "onClick": [ { "type": "SendEvent", "componentId": "${data.imageId}" } ] }, { "type": "Text", "font-size": "24dp", "margin-top": "10dp", "text": "${data.imageName}" } ] } ] } ] }, { "type": "Container", "height": "250dp", "width": "100%", "margin-top": "30dp", "margin-bottom": "60dp", "items": [ { "type": "List", "height": "100%", "width": "100%", "direction": "horizontal", "items": [ { "type": "Container", "align-items": "center", "margin-left": "30dp", "items": [ { "type": "Image", "componentId": "${data.imageId}", "width": "160dp", "height": "160dp", "border-radius": "15dp", "src": "${data.imageSrc}", "scale-type": "fitXY", "onClick": [ { "type": "SendEvent", "componentId": "${data.imageId}" } ] }, { "type": "Text", "font-size": "24dp", "margin-top": "10dp", "text": "${data.imageName}" } ] } ] } ] }, { "type": "Container", "height": "50dp", "width": "100%" } ] } ] } ] } }