TestCard.json 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  1. {
  2. "name": "VILLAGE",
  3. "type": "page",
  4. "props": {
  5. "topBanner": "https://server.imengyu.top/uploads/media/4KSef6ZDiNAh.jpg",
  6. "varOvrride": {
  7. },
  8. "colorOvrride": {
  9. "default.primary": "#333333",
  10. "pressed.primary": "#999999",
  11. "default.button": "#efefef",
  12. "background.page": "#f5f5f5",
  13. "background.primary": "#f5f5f5",
  14. "background.secondary": "#e8e8e8",
  15. "background.tertiary": "#fafafa",
  16. "background.quaternary": "#d0d0d0",
  17. "text.titleLight": "#222222",
  18. "text.title": "#333333",
  19. "text.content": "#444444"
  20. }
  21. },
  22. "style": {
  23. "backgroundImage": "url('https://server.imengyu.top/uploads/media/XrZxJjJrBwxr.jpg')",
  24. "backgroundSize": "cover",
  25. "backgroundPosition": "top center",
  26. "backgroundRepeat": "repeat"
  27. },
  28. "nodes": [
  29. {
  30. "name": "VILLAGE:CONTENT",
  31. "type": "flex",
  32. "props": {
  33. "direction": "column",
  34. "padding": [30, 30, 0, 30],
  35. "gap": "gap.lg"
  36. },
  37. "nodes": [
  38. {
  39. "name": "VILLAGE:CONTENT:Basic",
  40. "type": "BackgroundBox",
  41. "props": {
  42. "color1": "rgba(88, 88, 88, 0.3)",
  43. "color2": "rgba(255, 255, 255, 0.4)",
  44. "color2Position": "85%",
  45. "color3": "rgba(0, 0, 0, 0.2)",
  46. "radius": "radius.lg",
  47. "direction": "column",
  48. "padding": [35, 30],
  49. "gap": "gap.lg"
  50. },
  51. "nodes": [
  52. { "type": "Card:Basic" },
  53. { "type": "Card:Level" },
  54. { "type": "Card:Gallery" },
  55. { "type": "Card:AddressAndMap" },
  56. {
  57. "type": "flex",
  58. "props": {
  59. "direction": "row",
  60. "justify": "center",
  61. "align": "center",
  62. "gap": "gap.md"
  63. },
  64. "nodes": [
  65. {
  66. "type": "button",
  67. "props": {
  68. "size": "mini",
  69. "icon": "picture",
  70. "text": "村社相册"
  71. },
  72. "events": {
  73. "click": "globalContext.handleGoGallery()"
  74. }
  75. },
  76. {
  77. "type": "button",
  78. "props": {
  79. "size": "mini",
  80. "icon": "edit-filling",
  81. "text": "编辑简介"
  82. },
  83. "events": {
  84. "click": "globalContext.handleGoEdit()"
  85. }
  86. },
  87. {
  88. "type": "button",
  89. "props": {
  90. "size": "mini",
  91. "icon": "fabulous",
  92. "text": "主页换肤"
  93. },
  94. "events": {
  95. "click": "globalContext.handleGoSkin()"
  96. }
  97. }
  98. ]
  99. },
  100. { "type": "Card:Static" }
  101. ]
  102. },
  103. {
  104. "name": "VILLAGE:CONTENT:Rank",
  105. "type": "Block:Rank",
  106. "props": {
  107. "title": "排行榜"
  108. }
  109. },
  110. {
  111. "name": "VILLAGE:CONTENT:Collect",
  112. "type": "Block:GridButtonBlock4",
  113. "props": {
  114. "title": "魅力乡源",
  115. "titleRightButtons": [
  116. {
  117. "text": "管理",
  118. "size": "small",
  119. "primary": true,
  120. "handler": "globalContext.handleGoDigManage()"
  121. },
  122. {
  123. "text": "共编村史",
  124. "size": "small",
  125. "icon": "https://xy.wenlvti.net/app_static/images/village/IconHistory.png",
  126. "handler": "globalContext.handleGoCollect()"
  127. }
  128. ],
  129. "items": [
  130. {
  131. "title": "村社概况",
  132. "icon": "https://xy.wenlvti.net/app_static/images/village/IconLargeIntrod.png",
  133. "handler": "globalContext.handleGoCollect(11, '村社概况')"
  134. },
  135. {
  136. "title": "自然风光",
  137. "icon": "https://xy.wenlvti.net/app_static/images/village/IconLargeEnvirounment.png",
  138. "handler": "globalContext.handleGoCollect(13, '自然风光')"
  139. },
  140. {
  141. "title": "历史沿革",
  142. "icon": "https://xy.wenlvti.net/app_static/images/village/IconLargeHistory.png",
  143. "handler": "globalContext.handleGoCollect(2, '历史沿革')"
  144. },
  145. {
  146. "title": "特色产业",
  147. "icon": "https://xy.wenlvti.net/app_static/images/village/IconLargeIndustry.png",
  148. "handler": "globalContext.handleGoCollect(9, '特色产业')"
  149. },
  150. {
  151. "title": "文艺活动",
  152. "icon": "https://xy.wenlvti.net/app_static/images/village/IconLargeActivity.png",
  153. "handler": "globalContext.handleGoCollect(12, '文艺活动')"
  154. },
  155. {
  156. "title": "非遗展示",
  157. "icon": "https://xy.wenlvti.net/app_static/images/village/IconLargeShow.png",
  158. "handler": "globalContext.handleGoCollect(10, '非遗展示')"
  159. },
  160. {
  161. "title": "民俗风采",
  162. "icon": "https://xy.wenlvti.net/app_static/images/village/IconLargeFolkloreVibe.png",
  163. "handler": "globalContext.handleGoCollect(8, '民俗风采')"
  164. },
  165. {
  166. "title": "历史人物",
  167. "icon": "https://xy.wenlvti.net/app_static/images/village/IconGoods.png",
  168. "handler": "globalContext.handleGoCollect(7, '历史人物')"
  169. }
  170. ]
  171. }
  172. },
  173. {
  174. "name": "VILLAGE:CONTENT:Games",
  175. "type": "Block:GridButtonBlock4",
  176. "props": {
  177. "title": "活力乡源",
  178. "items": [
  179. {
  180. "title": "乡源荣光",
  181. "icon": "https://xy.wenlvti.net/app_static/images/village/IconLargeHornor.png",
  182. "handler": "globalContext.handleGoCollect(23, '乡源荣光')"
  183. },
  184. {
  185. "title": "乡源好物",
  186. "icon": "https://xy.wenlvti.net/app_static/images/village/IconLargeGoods.png",
  187. "handler": "globalContext.navTo(\"/pages/home/village/goods/index\", { villageId: globalContext.getVillageId() })"
  188. },
  189. {
  190. "title": "乡源树",
  191. "icon": "https://xy.wenlvti.net/app_static/images/village/IconLargeTree.png",
  192. "handler": "globalContext.emit(\"goTree\")"
  193. },
  194. {
  195. "title": "互动游戏",
  196. "icon": "https://xy.wenlvti.net/app_static/images/village/IconLargeGame.png",
  197. "handler": "globalContext.navTo(\"/pages/home/village/games/index\")"
  198. }
  199. ]
  200. }
  201. },
  202. {
  203. "name": "VILLAGE:CONTENT:Official",
  204. "type": "Block:Official",
  205. "props": {
  206. "title": "文脉乡源",
  207. "tags": "dynamic:globalContext.getDefaultTags()"
  208. }
  209. }
  210. ]
  211. }
  212. ]
  213. }