ソースを参照

feat: 增加首页部分

IlhamTahir 1 年間 前
コミット
ab5aeef018
3 ファイル変更21 行追加19 行削除
  1. 10 3
      pages.config.ts
  2. 7 4
      src/pages.json
  3. 4 12
      src/pages/home/index.vue

+ 10 - 3
pages.config.ts

@@ -8,7 +8,15 @@ export default defineUniPages({
       '^uni-(.*)': '@dcloudio/uni-ui/lib/uni-$1/uni-$1.vue',
     },
   },
+  entryPagePath: 'pages/home/index',
   pages: [
+    {
+      path: 'pages/home/index',
+      type: 'page',
+      style: {
+        navigationBarTitleText: '首页',
+      },
+    },
     {
       path: 'pages/feed-calculator/index',
       type: 'page',
@@ -23,7 +31,6 @@ export default defineUniPages({
         navigationBarTitleText: '喂养计划',
       },
     },
-
     {
       path: 'pages/me/index',
       type: 'page',
@@ -83,12 +90,12 @@ export default defineUniPages({
     },
   ],
   globalStyle: {
-    backgroundColor: '@bgColor',
+    backgroundColor: '#fff',
     backgroundColorBottom: '@bgColorBottom',
     backgroundColorTop: '@bgColorTop',
     backgroundTextStyle: '@bgTxtStyle',
     navigationBarBackgroundColor: '#fff',
     navigationBarTextStyle: 'black',
-    navigationBarTitleText: 'Vitesse-Uni',
+    navigationBarTitleText: '布兰德宠物喂养助手',
   },
 })

+ 7 - 4
src/pages.json

@@ -5,6 +5,7 @@
       "^uni-(.*)": "@dcloudio/uni-ui/lib/uni-$1/uni-$1.vue"
     }
   },
+  "entryPagePath": "pages/home/index",
   "pages": [
     {
       "path": "pages/feed-calculator/index",
@@ -23,7 +24,9 @@
     {
       "path": "pages/home/index",
       "type": "page",
-      "style": {}
+      "style": {
+        "navigationBarTitleText": "首页"
+      }
     },
     {
       "path": "pages/me/index",
@@ -93,14 +96,14 @@
     }
   ],
   "globalStyle": {
-    "backgroundColor": "@bgColor",
+    "backgroundColor": "#fff",
     "backgroundColorBottom": "@bgColorBottom",
     "backgroundColorTop": "@bgColorTop",
     "backgroundTextStyle": "@bgTxtStyle",
     "navigationBarBackgroundColor": "#fff",
     "navigationBarTextStyle": "black",
-    "navigationBarTitleText": "Vitesse-Uni"
+    "navigationBarTitleText": "布兰德宠物喂养助手"
   },
   "__esModule": true,
   "subPackages": []
-}
+}

+ 4 - 12
src/pages/home/index.vue

@@ -40,18 +40,10 @@ function startFiling() {
             </view>
           </view>
           <view class="flex justify-center flex-col w-full items-center h-full mt-[200px] text-[#FFF]">
-            <view
-              class="content_botton flex w-[176px] h-[47px] justify-center
-              items-center bg-[#4545E5] rounded-[69px]"
-            >
-              <button
-                class=" text-[18px] font-normal
-              tracking-[.36px] leading-[37px] shrink-0"  hover-class="bg-[#4545E5]"
-                @tap="startFiling"
-              >
-                开始建档
-              </button>
-            </view>
+            <button class="w-[176px] h-[47px] flex items-center justify-center bg-[#4545E5] border-none text-[white] rounded-3xl mt-[58px]" @tap="startFiling">
+              开始建档
+            </button>
+
             <view class="content_details tracking-[1.8px] mt-[40px] text-[12px] font-normal ">
               下拉了解详情
             </view>