ugen_dsl_1473.json 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232
  1. {
  2. "template_info":{
  3. "sdk_version":"1.0.0"
  4. },
  5. "main_template":{
  6. "id":"flex_layout",
  7. "name":"FlexLayout",
  8. "width":"match_parent",
  9. "height":"wrap_content",
  10. "marginTop":"0",
  11. "marginBottom":"0",
  12. "flexDirection":"column",
  13. "background":"#ffffff",
  14. "onTap":[{
  15. "type":"clickEvent"
  16. }],
  17. "children":[
  18. {
  19. "id":"bg_image",
  20. "name":"Image",
  21. "width":"match_parent",
  22. "height":"235",
  23. "marginTop":"10",
  24. "marginLeft":"10",
  25. "marginRight":"10",
  26. "scaleType":"centerCrop",
  27. "src":"${image[0].url}",
  28. "gravity":"center",
  29. "visibility":"${(image_mode != 5 && image_mode != 15 && image_mode != 154 && image_mode != 50) ? 'visible':'gone'}",
  30. "onTap":[{
  31. "type":"clickEvent"
  32. }]
  33. },
  34. {
  35. "id":"frame_layout",
  36. "name":"FrameLayout",
  37. "width":"match_parent",
  38. "height":"wrap_content",
  39. "marginTop":"10",
  40. "marginLeft":"10",
  41. "marginRight":"10",
  42. "visibility":"${(image_mode == 5 || image_mode == 15 || image_mode == 154 || image_mode == 50) ? 'visible':'gone'}",
  43. "onTap":[{
  44. "type":"clickEvent"
  45. }],
  46. "children":[
  47. {
  48. "id":"VideoPlaceholder",
  49. "name":"VideoPlaceholder",
  50. "marginTop":"0",
  51. "width":"match_parent",
  52. "ratio":"1.78",
  53. "onTap":[{
  54. "type":"pauseVideo"
  55. }]
  56. },
  57. {
  58. "id":"corver_container",
  59. "name":"FrameLayout",
  60. "width":"match_parent",
  61. "ratio":"1.78",
  62. "marginTop":"0",
  63. "visibility":"gone",
  64. "background":"#50000000",
  65. "onTap":[{
  66. "type":"clickEvent"
  67. }],
  68. "children":[
  69. {
  70. "id":"center_container",
  71. "name":"FlexLayout",
  72. "width":"wrap_content",
  73. "height":"wrap_content",
  74. "flexDirection":"column",
  75. "layoutGravity":"center",
  76. "alignItems":"center",
  77. "children":[
  78. {
  79. "id":"logo_image",
  80. "name":"Image",
  81. "width":"48",
  82. "height":"48",
  83. "marginTop":"0",
  84. "scaleType":"fitXY",
  85. "src":"${icon.url}",
  86. "borderRadius":"24",
  87. "onTap":[{
  88. "type":"clickEvent"
  89. }]
  90. },
  91. {
  92. "id":"logo_text",
  93. "name":"Text",
  94. "width":"wrap_content",
  95. "height":"wrap_content",
  96. "text":"${source != nil ? source : app.app_name}",
  97. "paddingLeft":"2",
  98. "paddingRight":"2",
  99. "paddingTop":"2",
  100. "paddingBottom":"2",
  101. "marginTop":"12",
  102. "textColor":"#ffffff",
  103. "textAlign":"center",
  104. "textSize":"10",
  105. "borderRadius":"2",
  106. "maxLines":"1",
  107. "alignSelf":"center",
  108. "onTap":[{
  109. "type":"clickEvent"
  110. }]
  111. },
  112. {
  113. "id":"button",
  114. "name":"Text",
  115. "width":"wrap_content",
  116. "height":"wrap_content",
  117. "text":"${button_text}",
  118. "paddingLeft":"4",
  119. "paddingRight":"4",
  120. "paddingTop":"5",
  121. "paddingBottom":"5",
  122. "marginTop":"20",
  123. "textColor":"#ffffff",
  124. "background":"#1A73E8",
  125. "textAlign":"center",
  126. "textSize":"13",
  127. "borderRadius":"2",
  128. "maxLines":"1",
  129. "alignSelf":"center",
  130. "onTap":[{
  131. "type":"clickEvent"
  132. }]
  133. }
  134. ]
  135. }
  136. ]
  137. }
  138. ]
  139. },
  140. {
  141. "id":"title",
  142. "name":"Text",
  143. "width":"match_parent",
  144. "height":"wrap_content",
  145. "text":"${title}",
  146. "marginTop":"10",
  147. "marginLeft":"10",
  148. "marginRight":"10",
  149. "textColor":"#000000",
  150. "background":"#ffffff",
  151. "textAlign":"left",
  152. "textSize":"14",
  153. "maxLines":"1",
  154. "onTap":[{
  155. "type":"clickEvent"
  156. }]
  157. },
  158. {
  159. "id":"bottom_container",
  160. "name":"FlexLayout",
  161. "width":"match_parent",
  162. "height":"wrap_content",
  163. "flexDirection":"row",
  164. "marginLeft":"10",
  165. "marginTop":"10",
  166. "marginRight":"10",
  167. "marginBottom":"10",
  168. "onTap":[{
  169. "type":"clickEvent"
  170. }],
  171. "children":[
  172. {
  173. "id":"logo_icon",
  174. "name":"Image",
  175. "width":"44",
  176. "height":"17",
  177. "marginRight":"2",
  178. "scaleType":"fitXY",
  179. "src":"http://sf3-fe-tos.pglstatp-toutiao.com/obj/csj-sdk-static/resources/bu_logoAd.png",
  180. "alignSelf":"center",
  181. "onTap":[{
  182. "type":"openPolicy"
  183. }]
  184. },
  185. {
  186. "id":"source",
  187. "name":"Text",
  188. "width":"wrap_content",
  189. "height":"wrap_content",
  190. "text":"${source != nil ? source : app.app_name}",
  191. "paddingLeft":"2",
  192. "paddingRight":"2",
  193. "paddingTop":"2",
  194. "paddingBottom":"2",
  195. "textColor":"#161823",
  196. "background":"#ffffff",
  197. "textAlign":"center",
  198. "textSize":"12",
  199. "alignSelf":"center",
  200. "maxLines":"1",
  201. "onTap":[{
  202. "type":"clickEvent"
  203. }]
  204. },
  205. {
  206. "id":"placeHolder",
  207. "name":"Text",
  208. "width":"match_parent",
  209. "height":"match_parent",
  210. "background":"#ffffff",
  211. "maxLines":"1",
  212. "flexGrow":"1"
  213. },
  214. {
  215. "id":"close",
  216. "name":"Image",
  217. "width":"13",
  218. "height":"13",
  219. "alignSelf":"center",
  220. "marginRight":"0",
  221. "scaleType":"fitXY",
  222. "src":"http://sf3-fe-tos.pglstatp-toutiao.com/obj/csj-sdk-static/resources/bu_mpNativebanner_close.png",
  223. "onTap":[{
  224. "type":"dislike"
  225. }]
  226. }
  227. ]
  228. }
  229. ]
  230. }
  231. }