Przeglądaj źródła

feat: 整理通屏页二级页面

Burt 2 lat temu
rodzic
commit
d05dae4cbf

+ 17 - 17
src/pages.json

@@ -73,23 +73,6 @@
         }
       }
     },
-    {
-      "path": "pages/throughout2/index",
-      "type": "page",
-      "style": {
-        "navigationBarTitleText": "通屏+下拉刷新+自定义导航栏",
-        "enablePullDownRefresh": false,
-        "backgroundColor": "#23c09c",
-        "app-plus": {
-          "titleNView": {
-            "type": "transparent"
-          }
-        },
-        "mp-weixin": {
-          "navigationStyle": "custom"
-        }
-      }
-    },
     {
       "path": "pages/index/demo/component-auto-import",
       "type": "page"
@@ -117,6 +100,23 @@
       "path": "pages/index/demo/request",
       "type": "page"
     },
+    {
+      "path": "pages/index/demo/throughout",
+      "type": "page",
+      "style": {
+        "navigationBarTitleText": "通屏+下拉刷新+自定义导航栏",
+        "enablePullDownRefresh": false,
+        "backgroundColor": "#23c09c",
+        "app-plus": {
+          "titleNView": {
+            "type": "transparent"
+          }
+        },
+        "mp-weixin": {
+          "navigationStyle": "custom"
+        }
+      }
+    },
     {
       "path": "pages/index/demo/uni-ui-icons",
       "type": "page"

src/pages/throughout2/index.vue → src/pages/index/demo/throughout.vue


+ 1 - 1
src/pages/index/index.vue

@@ -60,7 +60,7 @@ const list = ref([
   },
   {
     name: '自定义导航栏渐变',
-    url: 'navbar-plus',
+    url: 'throughout',
   },
   {
     name: '请求封装+请求拦截器',

+ 5 - 1
src/pages/throughout/index.vue

@@ -57,7 +57,11 @@
       onPageScroll 实现全端效果一样,另外如果是app端,还可以配置 titleNView。参考
       https://uniapp.dcloud.net.cn/tutorial/page.html#onpagescroll 。
     </view>
-    <navigator url="/pages/throughout2/index" open-type="navigate" hover-class="navigator-hover">
+    <navigator
+      url="/pages/index/demo/throughout"
+      open-type="navigate"
+      hover-class="navigator-hover"
+    >
       <button>去二级详情页</button>
     </navigator>
     <view class="bg-white">

+ 1 - 1
uni-pages.d.ts

@@ -8,13 +8,13 @@ interface NavigateToOptions {
        "pages/demo/index" |
        "pages/my/index" |
        "pages/throughout/index" |
-       "pages/throughout2/index" |
        "pages/index/demo/component-auto-import" |
        "pages/index/demo/mp-weixin-share" |
        "pages/index/demo/navbar" |
        "pages/index/demo/pages-auto-import" |
        "pages/index/demo/pinia" |
        "pages/index/demo/request" |
+       "pages/index/demo/throughout" |
        "pages/index/demo/uni-ui-icons" |
        "pages/index/demo/uni-ui" |
        "pages/index/demo/unocss-icons" |