|
@@ -0,0 +1,375 @@
|
|
|
|
|
+export type TaskMenuDefItem = {
|
|
|
|
|
+ banner: string;
|
|
|
|
|
+ list: {
|
|
|
|
|
+ title: string;
|
|
|
|
|
+ desc: string;
|
|
|
|
|
+ icon: string;
|
|
|
|
|
+ enable: string|boolean;
|
|
|
|
|
+ goForm?: TaskMenuDefGoForm;
|
|
|
|
|
+ onClick?: () => void;
|
|
|
|
|
+ }[];
|
|
|
|
|
+}
|
|
|
|
|
+export type TaskMenuDefGoForm = [string, number, string|undefined, string|undefined, string|undefined];
|
|
|
|
|
+export type TaskRootMenuDefItem = {
|
|
|
|
|
+ title: string;
|
|
|
|
|
+ desc: string;
|
|
|
|
|
+ icon: string;
|
|
|
|
|
+ enable: string|boolean;
|
|
|
|
|
+ name: string;
|
|
|
|
|
+ goForm: {
|
|
|
|
|
+ title: string;
|
|
|
|
|
+ name: string;
|
|
|
|
|
+ }|TaskMenuDefGoForm
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export const TaskRootDef : TaskRootMenuDefItem[] = [
|
|
|
|
|
+ {
|
|
|
|
|
+ title: '村落概况',
|
|
|
|
|
+ desc: '探索村落的历史渊源与发生轨迹',
|
|
|
|
|
+ icon: 'icon-task-summary',
|
|
|
|
|
+ enable: 'overview',
|
|
|
|
|
+ name: 'overview',
|
|
|
|
|
+ goForm: {
|
|
|
|
|
+ title: '村落概况',
|
|
|
|
|
+ name: 'overview',
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ title: '历史文化',
|
|
|
|
|
+ desc: '传承百年文化遗产和精神财富',
|
|
|
|
|
+ icon: 'icon-task-history',
|
|
|
|
|
+ enable: true,
|
|
|
|
|
+ name: 'history',
|
|
|
|
|
+ goForm: {
|
|
|
|
|
+ title: '历史文化',
|
|
|
|
|
+ name: 'history',
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ title: '非物质文化遗产项目',
|
|
|
|
|
+ desc: '维护文化多样性',
|
|
|
|
|
+ icon: 'icon-task-custom-1',
|
|
|
|
|
+ enable: 'ich',
|
|
|
|
|
+ name: 'ich',
|
|
|
|
|
+ goForm: [ 'ich', 0, undefined, undefined, '非物质文化遗产项目' ],
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ title: '环境格局',
|
|
|
|
|
+ desc: '感受自然人文环境之美',
|
|
|
|
|
+ icon: 'icon-task-environment',
|
|
|
|
|
+ enable: 'environment',
|
|
|
|
|
+ name: 'environment',
|
|
|
|
|
+ goForm: {
|
|
|
|
|
+ title: '环境格局',
|
|
|
|
|
+ name: 'environment',
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ title: '传统建筑',
|
|
|
|
|
+ desc: '领略古建筑的独特魅力',
|
|
|
|
|
+ icon: 'icon-task-building',
|
|
|
|
|
+ enable: true,
|
|
|
|
|
+ name: 'building',
|
|
|
|
|
+ goForm: {
|
|
|
|
|
+ title: '传统建筑',
|
|
|
|
|
+ name: 'building',
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ title: '民俗文化',
|
|
|
|
|
+ desc: '体验民间传统习俗与节庆',
|
|
|
|
|
+ icon: 'icon-task-custom',
|
|
|
|
|
+ enable: 'folk_culture',
|
|
|
|
|
+ name: 'folk_culture',
|
|
|
|
|
+ goForm: {
|
|
|
|
|
+ title: '民俗文化',
|
|
|
|
|
+ name: 'custom',
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ title: '地道美食',
|
|
|
|
|
+ desc: '正宗、传统地方特色美食',
|
|
|
|
|
+ icon: 'icon-task-food',
|
|
|
|
|
+ enable: 'food_product',
|
|
|
|
|
+ name: 'food',
|
|
|
|
|
+ goForm: {
|
|
|
|
|
+ title: '地道美食',
|
|
|
|
|
+ name: 'food',
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ title: '物产资源',
|
|
|
|
|
+ desc: '特定地域的植物、矿物或工艺品',
|
|
|
|
|
+ icon: 'icon-task-mine',
|
|
|
|
|
+ enable: 'food_product',
|
|
|
|
|
+ name: 'product',
|
|
|
|
|
+ goForm: {
|
|
|
|
|
+ title: '物产资源',
|
|
|
|
|
+ name: 'product',
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ title: '旅游路线',
|
|
|
|
|
+ desc: '体验独特的文化魅力',
|
|
|
|
|
+ icon: 'icon-task-trip',
|
|
|
|
|
+ enable: true,
|
|
|
|
|
+ name: 'trip',
|
|
|
|
|
+ goForm: {
|
|
|
|
|
+ title: '旅游路线',
|
|
|
|
|
+ name: 'trip',
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+]
|
|
|
|
|
+
|
|
|
|
|
+export const TaskMenuDef : Record<string, TaskMenuDefItem> = {
|
|
|
|
|
+ 'building': {
|
|
|
|
|
+ banner: 'https://mn.wenlvti.net/app_static/xiangan/banner_dig_building.jpg',
|
|
|
|
|
+ list: [
|
|
|
|
|
+ {
|
|
|
|
|
+ title: '建筑分布',
|
|
|
|
|
+ desc: '村落内传统建筑分布情况',
|
|
|
|
|
+ icon: 'icon-task-building-1',
|
|
|
|
|
+ enable: 'distribution',
|
|
|
|
|
+ goForm: [ 'distribution', 0, undefined, undefined, '建筑分布' ],
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ title: '文物建筑',
|
|
|
|
|
+ desc: '历史、艺术、科学价值',
|
|
|
|
|
+ icon: 'icon-task-building-2',
|
|
|
|
|
+ enable: 'building',
|
|
|
|
|
+ goForm: [ 'building', 1, 'nature', undefined, '文物建筑' ],
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ title: '历史建筑',
|
|
|
|
|
+ desc: '重大历史事件记录',
|
|
|
|
|
+ icon: 'icon-task-building-3',
|
|
|
|
|
+ enable: 'building',
|
|
|
|
|
+ goForm: [ 'building', 2, 'nature', undefined, '历史建筑' ],
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ title: '重要传统建筑',
|
|
|
|
|
+ desc: '重要传统建筑的信息',
|
|
|
|
|
+ icon: 'icon-task-building-4',
|
|
|
|
|
+ enable: 'building',
|
|
|
|
|
+ goForm: [ 'building', 3, 'nature', undefined, '重要传统建筑' ],
|
|
|
|
|
+ },
|
|
|
|
|
+ ],
|
|
|
|
|
+ },
|
|
|
|
|
+ 'custom': {
|
|
|
|
|
+ banner: 'https://mn.wenlvti.net/app_static/xiangan/banner_dig_custom.jpg',
|
|
|
|
|
+ list: [
|
|
|
|
|
+ {
|
|
|
|
|
+ title: '节庆活动',
|
|
|
|
|
+ desc: '欢庆与传承并重的文化盛宴',
|
|
|
|
|
+ icon: 'icon-task-custom-2',
|
|
|
|
|
+ enable: 'folk_culture',
|
|
|
|
|
+ goForm: [ 'folk_culture', 1, 'folk_culture_type', undefined, '节庆活动' ],
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ title: '祭祀崇礼',
|
|
|
|
|
+ desc: '对先贤与自然的崇高致敬',
|
|
|
|
|
+ icon: 'icon-task-custom-3',
|
|
|
|
|
+ enable: 'folk_culture',
|
|
|
|
|
+ goForm: [ 'folk_culture', 2, 'folk_culture_type', undefined, '祭祀崇礼' ],
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ title: '婚丧嫁娶',
|
|
|
|
|
+ desc: '生命礼赞与文化传承的双重奏鸣',
|
|
|
|
|
+ icon: 'icon-task-custom-4',
|
|
|
|
|
+ enable: 'folk_culture',
|
|
|
|
|
+ goForm: [ 'folk_culture', 3, 'folk_culture_type', undefined, '婚丧嫁娶' ],
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ title: '地方方言',
|
|
|
|
|
+ desc: '历史沉淀的语言瑰宝',
|
|
|
|
|
+ icon: 'icon-task-custom-5',
|
|
|
|
|
+ enable: 'folk_culture',
|
|
|
|
|
+ goForm: [ 'folk_culture', 4, 'folk_culture_type', undefined, '地方方言' ],
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ title: '特色文化',
|
|
|
|
|
+ desc: '民族精神的鲜明烙印',
|
|
|
|
|
+ icon: 'icon-task-custom-6',
|
|
|
|
|
+ enable: 'folk_culture',
|
|
|
|
|
+ goForm: [ 'folk_culture', 5, 'folk_culture_type', undefined, '特色文化' ],
|
|
|
|
|
+ },
|
|
|
|
|
+ ],
|
|
|
|
|
+ },
|
|
|
|
|
+ 'environment': {
|
|
|
|
|
+ banner: 'https://mn.wenlvti.net/app_static/xiangan/banner_dig_environment.jpg',
|
|
|
|
|
+ list: [
|
|
|
|
|
+ {
|
|
|
|
|
+ title: '自然环境',
|
|
|
|
|
+ desc: '村落建立与发展历程',
|
|
|
|
|
+ icon: 'icon-task-environment-1',
|
|
|
|
|
+ enable: 'environment',
|
|
|
|
|
+ goForm: [ 'environment', 0, undefined, undefined, '自然环境' ],
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ title: '文物古迹',
|
|
|
|
|
+ desc: '重要历史文献资料',
|
|
|
|
|
+ icon: 'icon-task-environment-5',
|
|
|
|
|
+ enable: 'relic',
|
|
|
|
|
+ goForm: [ 'relic', 0, undefined, undefined, '文物古迹' ],
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ title: '历史环境要素',
|
|
|
|
|
+ desc: '村民口述历史记录',
|
|
|
|
|
+ icon: 'icon-task-environment-6',
|
|
|
|
|
+ enable: 'element',
|
|
|
|
|
+ goForm: [ 'element', 0, undefined, undefined, '历史环境要素' ],
|
|
|
|
|
+ },
|
|
|
|
|
+ ],
|
|
|
|
|
+ },
|
|
|
|
|
+ 'food': {
|
|
|
|
|
+ banner: 'https://mn.wenlvti.net/app_static/xiangan/banner_dig_food.jpg',
|
|
|
|
|
+ list: [
|
|
|
|
|
+ {
|
|
|
|
|
+ title: '农副产品',
|
|
|
|
|
+ desc: '乡村繁荣的多元支柱',
|
|
|
|
|
+ icon: 'icon-task-food-1',
|
|
|
|
|
+ enable: 'food_product',
|
|
|
|
|
+ goForm: [ 'food_product', 1, 'product_type', undefined, '农副产品' ],
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ title: '特色美食',
|
|
|
|
|
+ desc: '给味蕾探索带来无限惊喜',
|
|
|
|
|
+ icon: 'icon-task-food-2',
|
|
|
|
|
+ enable: 'food_product',
|
|
|
|
|
+ goForm: [ 'food_product', 3, 'product_type', undefined, '特色美食' ],
|
|
|
|
|
+ },
|
|
|
|
|
+ ],
|
|
|
|
|
+ },
|
|
|
|
|
+ 'history': {
|
|
|
|
|
+ banner: 'https://mn.wenlvti.net/app_static/xiangan/banner_dig_history.jpg',
|
|
|
|
|
+ list: [
|
|
|
|
|
+ {
|
|
|
|
|
+ title: '建村历史',
|
|
|
|
|
+ desc: '村落建立与发展历程',
|
|
|
|
|
+ icon: 'icon-task-history-1',
|
|
|
|
|
+ enable: 'cultural',
|
|
|
|
|
+ goForm: [ 'cultural', 1, 'cultural_type', undefined, '建村历史' ],
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ title: '历史人物',
|
|
|
|
|
+ desc: '重要历史人物事迹',
|
|
|
|
|
+ icon: 'icon-task-history-2',
|
|
|
|
|
+ enable: 'cultural',
|
|
|
|
|
+ goForm: [ 'figure', 0, undefined, undefined, '历史人物' ],
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ title: '历史事件',
|
|
|
|
|
+ desc: '重大历史事件记录',
|
|
|
|
|
+ icon: 'icon-task-history-3',
|
|
|
|
|
+ enable: 'cultural',
|
|
|
|
|
+ goForm: [ 'cultural', 2, 'cultural_type', undefined, '历史事件' ],
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ title: '掌故轶事',
|
|
|
|
|
+ desc: '民间传说与历史故事',
|
|
|
|
|
+ icon: 'icon-task-history-4',
|
|
|
|
|
+ enable: 'story',
|
|
|
|
|
+ goForm: [ 'story', 0, undefined, undefined, '掌故轶事' ],
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ title: '历史文献',
|
|
|
|
|
+ desc: '重要历史文献资料',
|
|
|
|
|
+ icon: 'icon-task-history-5',
|
|
|
|
|
+ enable: 'cultural',
|
|
|
|
|
+ goForm: [ 'cultural', 3, 'cultural_type', undefined, '历史文献' ],
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ title: '口述历史',
|
|
|
|
|
+ desc: '村民口述历史记录',
|
|
|
|
|
+ icon: 'icon-task-history-6',
|
|
|
|
|
+ enable: 'cultural',
|
|
|
|
|
+ goForm: [ 'cultural', 4, 'cultural_type', undefined, '口述历史' ],
|
|
|
|
|
+ },
|
|
|
|
|
+ ],
|
|
|
|
|
+ },
|
|
|
|
|
+ 'product': {
|
|
|
|
|
+ banner: 'https://mn.wenlvti.net/app_static/xiangan/banner_dig_mine.jpg',
|
|
|
|
|
+ list: [
|
|
|
|
|
+ {
|
|
|
|
|
+ title: '商业集市',
|
|
|
|
|
+ desc: '文化交流的开放窗口',
|
|
|
|
|
+ icon: 'icon-task-mine-1',
|
|
|
|
|
+ enable: 'food_product',
|
|
|
|
|
+ goForm: [ 'food_product', 4, 'product_type', undefined, '商业集市' ],
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ title: '服装服饰',
|
|
|
|
|
+ desc: '艺术与功能交织的时尚篇章',
|
|
|
|
|
+ icon: 'icon-task-mine-2',
|
|
|
|
|
+ enable: 'food_product',
|
|
|
|
|
+ goForm: [ 'food_product', 5, 'product_type', undefined, '服装服饰' ],
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ title: '运输工具',
|
|
|
|
|
+ desc: '历史的运输工具',
|
|
|
|
|
+ icon: 'icon-task-mine-2',
|
|
|
|
|
+ enable: 'food_product',
|
|
|
|
|
+ goForm: [ 'food_product', 6, 'product_type', undefined, '运输工具' ],
|
|
|
|
|
+ },
|
|
|
|
|
+ ],
|
|
|
|
|
+ },
|
|
|
|
|
+ 'overview': {
|
|
|
|
|
+ banner: 'https://mn.wenlvti.net/app_static/xiangan/banner_dig_summary.jpg',
|
|
|
|
|
+ list: [
|
|
|
|
|
+ {
|
|
|
|
|
+ title: '行政区划',
|
|
|
|
|
+ desc: '村落行政区域划分及变迁',
|
|
|
|
|
+ icon: 'icon-task-summary-1',
|
|
|
|
|
+ enable: 'overview',
|
|
|
|
|
+ goForm: [ 'overview', 1, undefined, 'common', '行政区划' ],
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ title: '村落综述',
|
|
|
|
|
+ desc: '村落整体概况介绍',
|
|
|
|
|
+ icon: 'icon-task-summary-5',
|
|
|
|
|
+ enable: 'overview',
|
|
|
|
|
+ goForm: [ 'overview', 5, undefined, 'common', '村落综述' ],
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ title: '地理信息',
|
|
|
|
|
+ desc: '地理位置和自然环境特征',
|
|
|
|
|
+ icon: 'icon-task-summary-2',
|
|
|
|
|
+ enable: 'overview',
|
|
|
|
|
+ goForm: [ 'overview', 2, undefined, 'common', '地理信息' ],
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ title: '建设与保护',
|
|
|
|
|
+ desc: '村落发展与文化遗产保护',
|
|
|
|
|
+ icon: 'icon-task-summary-3',
|
|
|
|
|
+ enable: 'overview',
|
|
|
|
|
+ goForm: [ 'overview', 3, undefined, 'common', '建设与保护' ],
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ title: '人口与经济',
|
|
|
|
|
+ desc: '人口与经济情况',
|
|
|
|
|
+ icon: 'icon-task-summary-4',
|
|
|
|
|
+ enable: 'overview',
|
|
|
|
|
+ goForm: [ 'overview', 4, undefined, 'common', '人口与经济' ],
|
|
|
|
|
+ },
|
|
|
|
|
+ ],
|
|
|
|
|
+ },
|
|
|
|
|
+ 'trip': {
|
|
|
|
|
+ banner: 'https://mn.wenlvti.net/app_static/xiangan/banner_dig_trip.jpg',
|
|
|
|
|
+ list: [
|
|
|
|
|
+ {
|
|
|
|
|
+ title: '旅游导览',
|
|
|
|
|
+ desc: '',
|
|
|
|
|
+ icon: 'icon-task-trip-3',
|
|
|
|
|
+ enable: 'travel_guide',
|
|
|
|
|
+ goForm: [ 'travel_guide', 0, undefined, undefined, '旅游导览' ],
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ title: '旅游路线',
|
|
|
|
|
+ desc: '',
|
|
|
|
|
+ icon: 'icon-task-trip-1',
|
|
|
|
|
+ enable: 'route',
|
|
|
|
|
+ goForm: [ 'route', 0, undefined, undefined, '旅游路线' ],
|
|
|
|
|
+ },
|
|
|
|
|
+ ],
|
|
|
|
|
+ },
|
|
|
|
|
+}
|