소스 검색

暂定当前内容,做pc端 后面不修改

Shan9312 2 달 전
부모
커밋
609c8e0117
4개의 변경된 파일13개의 추가작업 그리고 11개의 파일을 삭제
  1. 1 1
      project.private.config.json
  2. 8 8
      src/pages.json
  3. 3 1
      src/pages/my/my.vue
  4. 1 1
      src/types/uni-pages.d.ts

+ 1 - 1
project.private.config.json

@@ -3,6 +3,6 @@
   "projectname": "beefCattle-uni",
   "setting": {
     "compileHotReLoad": true,
-    "urlCheck": true
+    "urlCheck": false
   }
 }

+ 8 - 8
src/pages.json

@@ -46,14 +46,6 @@
         "navigationBarTitleText": "首页"
       }
     },
-    {
-      "path": "pages/my/my",
-      "type": "home",
-      "style": {
-        "navigationBarTitleText": "我的",
-        "navigationBarBackgroundColor": "#c08e10"
-      }
-    },
     {
       "path": "pages/about/about",
       "type": "page",
@@ -110,6 +102,14 @@
         "navigationBarTitleText": "登录"
       }
     },
+    {
+      "path": "pages/my/my",
+      "type": "page",
+      "style": {
+        "navigationBarTitleText": "我的",
+        "navigationBarBackgroundColor": "#c08e10"
+      }
+    },
     {
       "path": "pages/neckRing/neckRing",
       "type": "page",

+ 3 - 1
src/pages/my/my.vue

@@ -1,5 +1,5 @@
 <!-- 使用 type="home" 属性设置首页,其他页面不需要设置,默认为page;推荐使用json5,更强大,且允许注释 -->
-<route lang="json5" type="home">
+<route lang="json5" type="page">
 {
   style: {
     navigationBarTitleText: '我的',
@@ -57,6 +57,7 @@
         </view>
       </view>
     </view>
+
     <!-- 个人信息 -->
     <view class="user-tool px-4 pt-1 pb-1 flex mb-2" v-for="(item, index) in userList" :key="index">
       <view>
@@ -72,6 +73,7 @@
 
 <script lang="ts" setup>
 import { ref } from 'vue'
+
 defineOptions({
   name: 'Home',
 })

+ 1 - 1
src/types/uni-pages.d.ts

@@ -5,7 +5,6 @@
 
 interface NavigateToOptions {
   url: "/pages/index/index" |
-       "/pages/my/my" |
        "/pages/about/about" |
        "/pages/approach/approach" |
        "/pages/battleForm/battleForm" |
@@ -14,6 +13,7 @@ interface NavigateToOptions {
        "/pages/feedBack/feedBack" |
        "/pages/illness/illness" |
        "/pages/login/login" |
+       "/pages/my/my" |
        "/pages/neckRing/neckRing" |
        "/pages/notice/notice" |
        "/pages/phone/phone" |