DefaultCard.json 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. {
  2. "name": "VILLAGE",
  3. "type": "page",
  4. "props": {},
  5. "style": {},
  6. "nodes": [
  7. {
  8. "name": "VILLAGE:CONTENT",
  9. "type": "flex",
  10. "props": {
  11. "direction": "column",
  12. "gap": "gap.lg"
  13. },
  14. "nodes": [
  15. {
  16. "type": "flex",
  17. "props": {
  18. "direction": "column",
  19. "padding": "padding.lg",
  20. "gap": "gap.lg"
  21. },
  22. "nodes": [
  23. {
  24. "type": "BackgroundBox",
  25. "props": {
  26. "color1": "#eecaa0",
  27. "color2": "white",
  28. "color2Position": "85%",
  29. "color3": "white",
  30. "radius": "radius.lg",
  31. "direction": "column",
  32. "padding": [35, 30],
  33. "gap": "gap.lg"
  34. },
  35. "nodes": [
  36. { "type": "Card:Basic" },
  37. { "type": "Card:Level" },
  38. { "type": "Card:Gallery" },
  39. { "type": "Card:AddressAndMap" },
  40. {
  41. "type": "flex",
  42. "props": {
  43. "direction": "row",
  44. "justify": "center",
  45. "align": "center",
  46. "gap": "gap.md"
  47. },
  48. "nodes": [
  49. {
  50. "type": "button",
  51. "props": {
  52. "size": "mini",
  53. "icon": "picture",
  54. "text": "村社相册"
  55. },
  56. "events": {
  57. "click": "globalContext.handleGoGallery()"
  58. }
  59. },
  60. {
  61. "type": "button",
  62. "props": {
  63. "size": "mini",
  64. "icon": "edit-filling",
  65. "text": "编辑简介"
  66. },
  67. "events": {
  68. "click": "globalContext.handleGoEdit()"
  69. }
  70. },
  71. {
  72. "type": "button",
  73. "props": {
  74. "size": "mini",
  75. "icon": "fabulous",
  76. "text": "主页换肤"
  77. },
  78. "events": {
  79. "click": "globalContext.handleGoSkin()"
  80. }
  81. }
  82. ]
  83. },
  84. { "type": "Card:Static" }
  85. ]
  86. },
  87. {
  88. "name": "VILLAGE:CONTENT:Rank",
  89. "type": "Block:Rank",
  90. "props": {
  91. "title": "排行榜"
  92. }
  93. },
  94. {
  95. "name": "VILLAGE:CONTENT:Collect",
  96. "type": "Block:Collect",
  97. "props": {
  98. "title": "魅力乡源"
  99. }
  100. },
  101. {
  102. "name": "VILLAGE:CONTENT:Games",
  103. "type": "Block:Games",
  104. "props": {
  105. "title": "活力乡源",
  106. "items": [
  107. {
  108. "title": "乡源荣光",
  109. "icon": "https://xy.wenlvti.net/app_static/images/village/IconLargeHornor.png",
  110. "handler": "globalContext.handleGoCollect(23, '乡源荣光')"
  111. },
  112. {
  113. "title": "乡源好物",
  114. "icon": "https://xy.wenlvti.net/app_static/images/village/IconLargeGoods.png",
  115. "handler": "globalContext.navTo(\"/pages/home/village/goods/index\", { villageId: globalContext.getVillageId() })"
  116. },
  117. {
  118. "title": "乡源树",
  119. "icon": "https://xy.wenlvti.net/app_static/images/village/IconLargeTree.png",
  120. "handler": "globalContext.emit(\"goTree\")"
  121. },
  122. {
  123. "title": "互动游戏",
  124. "icon": "https://xy.wenlvti.net/app_static/images/village/IconLargeGame.png",
  125. "handler": "globalContext.navTo(\"/pages/home/village/games/index\")"
  126. }
  127. ]
  128. }
  129. }
  130. ]
  131. },
  132. {
  133. "name": "VILLAGE:CONTENT:Official",
  134. "type": "Block:Official",
  135. "props": {
  136. "title": "文脉乡源",
  137. "tags": "dynamic:globalContext.getDefaultTags()"
  138. }
  139. }
  140. ]
  141. }
  142. ]
  143. }