Forráskód Böngészése

fix: pages and manifest

IlhamTahir 1 éve
szülő
commit
300412c7be
4 módosított fájl, 116 hozzáadás és 44 törlés
  1. 2 2
      manifest.config.ts
  2. 76 10
      pages.config.ts
  3. 1 1
      src/manifest.json
  4. 37 31
      src/pages.json

+ 2 - 2
manifest.config.ts

@@ -57,7 +57,7 @@ export default defineManifestConfig({
       urlCheck: false,
     },
     usingComponents: true,
-    darkmode: true,
+    darkmode: false,
     themeLocation: 'theme.json',
   },
   'mp-alipay': {
@@ -70,7 +70,7 @@ export default defineManifestConfig({
     usingComponents: true,
   },
   'h5': {
-    darkmode: true,
+    darkmode: false,
     themeLocation: 'theme.json',
   },
   'uniStatistics': {

+ 76 - 10
pages.config.ts

@@ -8,21 +8,87 @@ export default defineUniPages({
       '^uni-(.*)': '@dcloudio/uni-ui/lib/uni-$1/uni-$1.vue',
     },
   },
-  pages: [],
+  pages: [
+    {
+      path: 'pages/feed-calculator/index',
+      type: 'page',
+      style: {
+        navigationBarTitleText: '喂养计算器',
+      },
+    },
+    {
+      path: 'pages/feed-plan/index',
+      type: 'page',
+      style: {
+        navigationBarTitleText: '喂养计划',
+      },
+    },
+
+    {
+      path: 'pages/me/index',
+      type: 'page',
+      style: {
+        navigationBarTitleText: '我的',
+      },
+    },
+    {
+      path: 'pages/pet-manual/index',
+      type: 'page',
+      style: {
+        navigationBarTitleText: '宠物手册',
+      },
+    },
+    {
+      path: 'pages/setting/index',
+      type: 'page',
+    },
+    {
+      path: 'pages/start-filing/index',
+      type: 'page',
+      style: {
+        navigationBarTitleText: '开始建档',
+      },
+    },
+    {
+      path: 'pages/userInfo/index',
+      type: 'page',
+    },
+    {
+      path: 'pages/feed-calculator/components/FeedFlogan',
+      type: 'page',
+    },
+    {
+      path: 'pages/feed-calculator/components/FeedForm',
+      type: 'page',
+    },
+    {
+      path: 'pages/feed-calculator/components/FeedQuestionnaire',
+      type: 'page',
+    },
+    {
+      path: 'pages/feed-calculator/components/FeedStart',
+      type: 'page',
+    },
+    {
+      path: 'pages/feed-calculator/components/FeedStep',
+      type: 'page',
+    },
+    {
+      path: 'pages/feed-calculator/components/ProgressBar',
+      type: 'page',
+    },
+    {
+      path: 'pages/pet-manual/components/CardList',
+      type: 'page',
+    },
+  ],
   globalStyle: {
     backgroundColor: '@bgColor',
     backgroundColorBottom: '@bgColorBottom',
     backgroundColorTop: '@bgColorTop',
     backgroundTextStyle: '@bgTxtStyle',
-    navigationBarBackgroundColor: '#000000',
-    navigationBarTextStyle: '@navTxtStyle',
+    navigationBarBackgroundColor: '#fff',
+    navigationBarTextStyle: 'black',
     navigationBarTitleText: 'Vitesse-Uni',
-    navigationStyle: 'custom',
   },
-  // tabBar: {
-  //   backgroundColor: "@tabBgColor",
-  //   borderStyle: "@tabBorderStyle",
-  //   color: "@tabFontColor",
-  //   selectedColor: "@tabSelectedColor",
-  // },
 })

+ 1 - 1
src/manifest.json

@@ -67,4 +67,4 @@
     "darkmode": false,
     "themeLocation": "theme.json"
   }
-}
+}

+ 37 - 31
src/pages.json

@@ -7,83 +7,89 @@
   },
   "pages": [
     {
-      "path": "pages/home/index",
+      "path": "pages/feed-calculator/index",
       "type": "page",
-        "style": {
-            "navigationBarTitleText": "首页"
-        }
+      "style": {
+        "navigationBarTitleText": "喂养计算器"
+      }
     },
     {
-      "path": "pages/feed-calculator/index",
+      "path": "pages/feed-plan/index",
       "type": "page",
-        "style": {
-            "navigationBarTitleText": "喂养计算器"
-        }
+      "style": {
+        "navigationBarTitleText": "喂养计划"
+      }
     },
     {
-      "path": "pages/feed-plan/index",
+      "path": "pages/home/index",
       "type": "page",
-        "style": {
-            "navigationBarTitleText": "喂养计划"
-        }
+      "style": {}
     },
-
     {
       "path": "pages/me/index",
       "type": "page",
-        "style": {
-            "navigationBarTitleText": "我的"
-        }
+      "style": {
+        "navigationBarTitleText": "我的"
+      }
     },
     {
       "path": "pages/pet-manual/index",
       "type": "page",
-        "style": {
-            "navigationBarTitleText": "宠物手册"
-        }
+      "style": {
+        "navigationBarTitleText": "宠物手册"
+      }
     },
     {
       "path": "pages/setting/index",
-      "type": "page"
+      "type": "page",
+      "style": {}
     },
     {
       "path": "pages/start-filing/index",
       "type": "page",
-        "style": {
-            "navigationBarTitleText": "开始建档"
-        }
+      "style": {
+        "navigationBarTitleText": "开始建档"
+      }
     },
     {
       "path": "pages/userInfo/index",
-      "type": "page"
+      "type": "page",
+      "style": {}
     },
     {
       "path": "pages/feed-calculator/components/FeedFlogan",
-      "type": "page"
+      "type": "page",
+      "style": {}
     },
     {
       "path": "pages/feed-calculator/components/FeedForm",
-      "type": "page"
+      "type": "page",
+      "style": {}
     },
     {
       "path": "pages/feed-calculator/components/FeedQuestionnaire",
-      "type": "page"
+      "type": "page",
+      "style": {}
     },
     {
       "path": "pages/feed-calculator/components/FeedStart",
-      "type": "page"
+      "type": "page",
+      "style": {}
     },
     {
       "path": "pages/feed-calculator/components/FeedStep",
-      "type": "page"
+      "type": "page",
+      "style": {}
     },
     {
       "path": "pages/feed-calculator/components/ProgressBar",
-      "type": "page"
+      "type": "page",
+      "style": {}
     },
     {
       "path": "pages/pet-manual/components/CardList",
-      "type": "page"
+      "type": "page",
+      "style": {}
     }
   ],
   "globalStyle": {