Просмотр исходного кода

chore(mobile-h5): configure Vant easycom and demo page routes

Co-authored-by: Cursor <cursoragent@cursor.com>
zlwu 2 месяцев назад
Родитель
Сommit
8a5804aa04
1 измененных файлов с 52 добавлено и 0 удалено
  1. 52 0
      mobile-h5/pages.json

+ 52 - 0
mobile-h5/pages.json

@@ -0,0 +1,52 @@
+{
+  "easycom": {
+    "autoscan": true,
+    "custom": {
+      "^van-(.*)": "@vant/weapp/dist/$1/index"
+    }
+  },
+  "pages": [
+    {
+      "path": "pages/index/index",
+      "style": {
+        "navigationStyle": "custom",
+        "navigationBarTitleText": "工作台"
+      }
+    },
+    {
+      "path": "pages/demo/list",
+      "style": {
+        "navigationStyle": "custom",
+        "navigationBarTitleText": "业务列表"
+      }
+    },
+    {
+      "path": "pages/demo/detail",
+      "style": {
+        "navigationStyle": "custom",
+        "navigationBarTitleText": "业务详情"
+      }
+    },
+    {
+      "path": "pages/demo/form",
+      "style": {
+        "navigationStyle": "custom",
+        "navigationBarTitleText": "编辑业务"
+      }
+    },
+    {
+      "path": "pages/demo/comps",
+      "style": {
+        "navigationStyle": "custom",
+        "navigationBarTitleText": "组件风格"
+      }
+    }
+  ],
+  "globalStyle": {
+    "navigationBarTextStyle": "white",
+    "navigationBarTitleText": "中科兴皖",
+    "navigationBarBackgroundColor": "#0a9f6d",
+    "backgroundColor": "#f5f8f7"
+  },
+  "uniIdRouter": {}
+}