DefaultCard.json 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209
  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:GridButtonBlock",
  97. "props": {
  98. "title": "魅力乡源",
  99. "titleRightButtons": [
  100. {
  101. "text": "管理",
  102. "size": "small",
  103. "primary": true,
  104. "handler": "globalContext.handleGoDigManage()"
  105. },
  106. {
  107. "text": "共编村史",
  108. "size": "small",
  109. "icon": "https://xy.wenlvti.net/app_static/images/village/IconHistory.png",
  110. "handler": "globalContext.handleGoCollect()"
  111. }
  112. ],
  113. "items": [
  114. {
  115. "title": "村社概况",
  116. "icon": "https://xy.wenlvti.net/app_static/images/village/IconLargeIntrod.png",
  117. "handler": "globalContext.handleGoCollect(11, '村社概况')"
  118. },
  119. {
  120. "title": "自然风光",
  121. "icon": "https://xy.wenlvti.net/app_static/images/village/IconLargeEnvirounment.png",
  122. "handler": "globalContext.handleGoCollect(13, '自然风光')"
  123. },
  124. {
  125. "title": "历史沿革",
  126. "icon": "https://xy.wenlvti.net/app_static/images/village/IconLargeHistory.png",
  127. "handler": "globalContext.handleGoCollect(2, '历史沿革')"
  128. },
  129. {
  130. "title": "特色产业",
  131. "icon": "https://xy.wenlvti.net/app_static/images/village/IconLargeIndustry.png",
  132. "handler": "globalContext.handleGoCollect(9, '特色产业')"
  133. },
  134. {
  135. "title": "文艺活动",
  136. "icon": "https://xy.wenlvti.net/app_static/images/village/IconLargeActivity.png",
  137. "handler": "globalContext.handleGoCollect(12, '文艺活动')"
  138. },
  139. {
  140. "title": "非遗展示",
  141. "icon": "https://xy.wenlvti.net/app_static/images/village/IconLargeShow.png",
  142. "handler": "globalContext.handleGoCollect(10, '非遗展示')"
  143. },
  144. {
  145. "title": "民俗风采",
  146. "icon": "https://xy.wenlvti.net/app_static/images/village/IconLargeFolkloreVibe.png",
  147. "handler": "globalContext.handleGoCollect(8, '民俗风采')"
  148. },
  149. {
  150. "title": "历史人物",
  151. "icon": "https://xy.wenlvti.net/app_static/images/village/IconGoods.png",
  152. "handler": "globalContext.handleGoCollect(7, '历史人物')"
  153. }
  154. ]
  155. }
  156. },
  157. {
  158. "name": "VILLAGE:CONTENT:Games",
  159. "type": "Block:GridButtonBlock",
  160. "props": {
  161. "title": "活力乡源",
  162. "items": [
  163. {
  164. "title": "乡源荣光",
  165. "icon": "https://xy.wenlvti.net/app_static/images/village/IconLargeHornor.png",
  166. "handler": "globalContext.handleGoCollect(23, '乡源荣光')"
  167. },
  168. {
  169. "title": "乡源好物",
  170. "icon": "https://xy.wenlvti.net/app_static/images/village/IconLargeGoods.png",
  171. "handler": "globalContext.navTo(\"/pages/home/village/goods/index\", { villageId: globalContext.getVillageId() })"
  172. },
  173. {
  174. "title": "乡源树",
  175. "icon": "https://xy.wenlvti.net/app_static/images/village/IconLargeTree.png",
  176. "handler": "globalContext.emit(\"goTree\")"
  177. },
  178. {
  179. "title": "互动游戏",
  180. "icon": "https://xy.wenlvti.net/app_static/images/village/IconLargeGame.png",
  181. "handler": "globalContext.navTo(\"/pages/home/village/games/index\")"
  182. }
  183. ]
  184. }
  185. },
  186. {
  187. "type": "Block:ContentTitle",
  188. "props": {
  189. "title": "文脉乡源",
  190. "showMore": false,
  191. "showIcon": false,
  192. "showTopMargin": false
  193. }
  194. }
  195. ]
  196. },
  197. {
  198. "name": "VILLAGE:CONTENT:Official",
  199. "type": "Block:Official",
  200. "props": {
  201. "title": "文脉乡源",
  202. "tags": "dynamic:globalContext.getDefaultTags()"
  203. }
  204. }
  205. ]
  206. }
  207. ]
  208. }