TestCard.json 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383
  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. {
  40. "type": "Block:ContentTitle",
  41. "props": {
  42. "title": "[海天足迹·故事活地图]",
  43. "icon": "https://xy.wenlvti.net/app_static/images/village/speical/IconMap.png",
  44. "showIcon": true,
  45. "showMore": true,
  46. "size": "medium",
  47. "onMoreClicked": "globalContext.handleGoCollect(13, '海天足迹·故事活地图', 88, true)"
  48. }
  49. },
  50. {
  51. "type": "Block:ContentMap",
  52. "props": {
  53. "mapClickType": "global",
  54. "footer": {
  55. "title": "奋斗路线打卡",
  56. "button": "进入"
  57. },
  58. "onGlobalClick": "globalContext.handleGoCollect(13, '海天足迹·故事活地图', 88, true)",
  59. "onFooterClick": "globalContext.handleGoCollect(13, '海天足迹·故事活地图', 88, true)",
  60. "categoryDefine": {
  61. "content": {
  62. "type": "VillageInfoList",
  63. "params": {
  64. "collectModuleId": 13,
  65. "catalogId": 88
  66. }
  67. }
  68. }
  69. }
  70. },
  71. {
  72. "type": "flex",
  73. "props": {
  74. "direction": "row",
  75. "justify": "center",
  76. "align": "center",
  77. "gap": "gap.md"
  78. },
  79. "nodes": [
  80. {
  81. "type": "button",
  82. "props": {
  83. "size": "mini",
  84. "icon": "picture",
  85. "text": "村社相册"
  86. },
  87. "events": {
  88. "click": "globalContext.handleGoGallery()"
  89. }
  90. },
  91. {
  92. "type": "button",
  93. "props": {
  94. "size": "mini",
  95. "icon": "edit-filling",
  96. "text": "编辑简介"
  97. },
  98. "events": {
  99. "click": "globalContext.handleGoEdit()"
  100. }
  101. },
  102. {
  103. "type": "button",
  104. "props": {
  105. "size": "mini",
  106. "icon": "fabulous",
  107. "text": "主页换肤"
  108. },
  109. "events": {
  110. "click": "globalContext.handleGoSkin()"
  111. }
  112. }
  113. ]
  114. },
  115. { "type": "Card:Static" }
  116. ]
  117. },
  118. {
  119. "type": "flex",
  120. "props": {
  121. "direction": "column",
  122. "gap": "gap.md",
  123. "backgroundColor": "#fffdf5",
  124. "radius": "radius.lg",
  125. "border": "1px solid #f1debc",
  126. "padding": "padding.lg"
  127. },
  128. "nodes": [
  129. {
  130. "type": "Block:ContentTitle",
  131. "props": {
  132. "title": "[海天特区记忆文化空间]",
  133. "subTitle": "寻访特区来路,传承海天糟神",
  134. "size": "medium",
  135. "center": true,
  136. "showMore": false,
  137. "showIcon": false,
  138. "showTopMargin": false
  139. }
  140. },
  141. {
  142. "type": "Block:ContentBlocks",
  143. "props": {
  144. "categoryDefine": [
  145. {
  146. "content": {
  147. "type": "staticData",
  148. "data": [
  149. {
  150. "id": 1,
  151. "title": "口述纪实馆",
  152. "image": "https://xy.wenlvti.net/app_static/images/village/speical/IconSpeackerStore.png",
  153. "tags": [ "登录" ],
  154. "props": {
  155. "width": "170rpx",
  156. "height": "220rpx",
  157. "padding": "padding.md",
  158. "backgroundColor": "#f5e8c8",
  159. "innerStyle": {
  160. }
  161. }
  162. },
  163. {
  164. "id": 2,
  165. "props": {
  166. "width": "170rpx",
  167. "height": "220rpx",
  168. "padding": "padding.md",
  169. "innerStyle": {
  170. "backgroundPosition": "center",
  171. "backgroundSize": "cover",
  172. "backgroundImage": "url('https://xy.wenlvti.net/app_static/images/village/speical/IconWrite.png')"
  173. }
  174. }
  175. },
  176. {
  177. "id": 3,
  178. "title": "故事共创站",
  179. "image": "https://xy.wenlvti.net/app_static/images/village/speical/IconStoryStation.png",
  180. "tags": [ "进入" ],
  181. "props": {
  182. "width": "170rpx",
  183. "height": "220rpx",
  184. "padding": "padding.md",
  185. "backgroundColor": "#f5e8c8",
  186. "innerStyle": {
  187. }
  188. }
  189. }
  190. ]
  191. },
  192. "type": "box-grid",
  193. "onItemDetailClicked": "if (params.dataItem.id === 1) { globalContext.handleGoCollect(17, '老建设者足迹', 85) } else if (params.dataItem.id === 2) { globalContext.handleGoCollect(17, '口述纪实馆', 86) } else if (params.dataItem.id === 3) { globalContext.handleGoCollect(17, '故事共创站', 87) }"
  194. }
  195. ]
  196. }
  197. }
  198. ]
  199. },
  200. {
  201. "name": "VILLAGE:CONTENT:Rank",
  202. "type": "Block:Rank",
  203. "props": {
  204. "title": "排行榜"
  205. }
  206. },
  207. {
  208. "name": "VILLAGE:CONTENT:Collect",
  209. "type": "Block:GridButtonBlock",
  210. "props": {
  211. "title": "魅力乡源",
  212. "titleRightButtons": [
  213. {
  214. "text": "管理",
  215. "size": "small",
  216. "primary": true,
  217. "handler": "globalContext.handleGoDigManage()"
  218. },
  219. {
  220. "text": "共编村史",
  221. "size": "small",
  222. "icon": "https://xy.wenlvti.net/app_static/images/village/IconHistory.png",
  223. "handler": "globalContext.handleGoCollect()"
  224. }
  225. ],
  226. "items": [
  227. {
  228. "title": "村社概况",
  229. "icon": "https://xy.wenlvti.net/app_static/images/village/IconLargeIntrod.png",
  230. "handler": "globalContext.handleGoCollect(11, '村社概况')"
  231. },
  232. {
  233. "title": "自然风光",
  234. "icon": "https://xy.wenlvti.net/app_static/images/village/IconLargeEnvirounment.png",
  235. "handler": "globalContext.handleGoCollect(13, '自然风光')"
  236. },
  237. {
  238. "title": "历史沿革",
  239. "icon": "https://xy.wenlvti.net/app_static/images/village/IconLargeHistory.png",
  240. "handler": "globalContext.handleGoCollect(2, '历史沿革')"
  241. },
  242. {
  243. "title": "特色产业",
  244. "icon": "https://xy.wenlvti.net/app_static/images/village/IconLargeIndustry.png",
  245. "handler": "globalContext.handleGoCollect(9, '特色产业')"
  246. },
  247. {
  248. "title": "文艺活动",
  249. "icon": "https://xy.wenlvti.net/app_static/images/village/IconLargeActivity.png",
  250. "handler": "globalContext.handleGoCollect(12, '文艺活动')"
  251. },
  252. {
  253. "title": "非遗展示",
  254. "icon": "https://xy.wenlvti.net/app_static/images/village/IconLargeShow.png",
  255. "handler": "globalContext.handleGoCollect(10, '非遗展示')"
  256. },
  257. {
  258. "title": "民俗风采",
  259. "icon": "https://xy.wenlvti.net/app_static/images/village/IconLargeFolkloreVibe.png",
  260. "handler": "globalContext.handleGoCollect(8, '民俗风采')"
  261. },
  262. {
  263. "title": "历史人物",
  264. "icon": "https://xy.wenlvti.net/app_static/images/village/IconGoods.png",
  265. "handler": "globalContext.handleGoCollect(7, '历史人物')"
  266. }
  267. ]
  268. }
  269. },
  270. {
  271. "name": "VILLAGE:CONTENT:Games",
  272. "type": "Block:GridButtonBlock",
  273. "props": {
  274. "title": "活力乡源",
  275. "items": [
  276. {
  277. "title": "乡源荣光",
  278. "icon": "https://xy.wenlvti.net/app_static/images/village/IconLargeHornor.png",
  279. "handler": "globalContext.handleGoCollect(23, '乡源荣光')"
  280. },
  281. {
  282. "title": "乡源好物",
  283. "icon": "https://xy.wenlvti.net/app_static/images/village/IconLargeGoods.png",
  284. "handler": "globalContext.navTo(\"/pages/home/village/goods/index\", { villageId: globalContext.getVillageId() })"
  285. },
  286. {
  287. "title": "乡源树",
  288. "icon": "https://xy.wenlvti.net/app_static/images/village/IconLargeTree.png",
  289. "handler": "globalContext.emit(\"goTree\")"
  290. },
  291. {
  292. "title": "互动游戏",
  293. "icon": "https://xy.wenlvti.net/app_static/images/village/IconLargeGame.png",
  294. "handler": "globalContext.navTo(\"/pages/home/village/games/index\")"
  295. }
  296. ]
  297. }
  298. },
  299. {
  300. "type": "Block:ContentTitle",
  301. "props": {
  302. "title": "文脉乡源",
  303. "showMore": false,
  304. "showIcon": true,
  305. "showTopMargin": false
  306. }
  307. },
  308. {
  309. "type": "flex",
  310. "props": {
  311. "direction": "column",
  312. "gap": "gap.md",
  313. "backgroundColor": "#fffdf5",
  314. "radius": "radius.lg",
  315. "border": "1px solid #f1debc",
  316. "padding": "padding.lg"
  317. },
  318. "nodes": [
  319. {
  320. "type": "Block:ContentTitle",
  321. "props": {
  322. "title": "[特区灯火·口述纪实馆]",
  323. "size": "medium",
  324. "showMore": true,
  325. "showIcon": false,
  326. "showTopMargin": false,
  327. "onMoreClicked": "globalContext.handleGoCollect(17, '老建设者足迹', 85)"
  328. }
  329. },
  330. {
  331. "type": "Block:ContentBlocks",
  332. "props": {
  333. "categoryDefine": [
  334. {
  335. "content": {
  336. "type": "staticData",
  337. "data": [
  338. {
  339. "title": "老建设者足迹",
  340. "desc": "收听建设者实录,三温奋斗岁月",
  341. "image": "https://xy.wenlvti.net/app_static/images/village/speical/IconSpeacker.png",
  342. "bottomTags": [ "收听口述" ],
  343. "props": {
  344. "radius": "radius.lg",
  345. "padding": "padding.md",
  346. "backgroundColor": "#f5e8c8"
  347. }
  348. }
  349. ]
  350. },
  351. "type": "",
  352. "onItemDetailClicked": "globalContext.handleGoCollect(17, '老建设者足迹', 85)"
  353. }
  354. ]
  355. }
  356. }
  357. ]
  358. }
  359. ]
  360. },
  361. {
  362. "name": "VILLAGE:CONTENT:Official",
  363. "type": "Block:Official",
  364. "props": {
  365. "tags": "dynamic:globalContext.getDefaultTags()",
  366. "tagType": "line"
  367. }
  368. }
  369. ]
  370. }
  371. ]
  372. }