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

feat(pages): 移除页面配置中的type字段并添加物流插件配置

- 移除首页、购物车、分类、登录、个人中心等页面的"type"字段
- 在子包subPack-xsb中添加物流插件配置,包括版本号2.1.12和提供方ID
- 更新uni-pages.d.ts类型定义文件,移除不再需要的页面路径
- 优化TypeScript类型声明,简化导航URL类型定义
zhangtao 1 hete
szülő
commit
ac45398caa
2 módosított fájl, 40 hozzáadás és 75 törlés
  1. 6 33
      src/pages.json
  2. 34 42
      src/uni-pages.d.ts

+ 6 - 33
src/pages.json

@@ -2,7 +2,6 @@
   "pages": [
     {
       "path": "pages/index/index",
-      "type": "home",
       "name": "smqjh-home",
       "layout": "tabbar",
       "islogin": false,
@@ -15,7 +14,6 @@
     },
     {
       "path": "pages/cart/index",
-      "type": "page",
       "name": "smqjh-cart",
       "layout": "tabbar",
       "islogin": false,
@@ -27,7 +25,6 @@
     },
     {
       "path": "pages/classfiy/index",
-      "type": "page",
       "name": "smqjh-classfiy",
       "layout": "tabbar",
       "islogin": false,
@@ -39,7 +36,6 @@
     },
     {
       "path": "pages/login/index",
-      "type": "page",
       "name": "smqjh-login",
       "islogin": false,
       "style": {
@@ -48,7 +44,6 @@
     },
     {
       "path": "pages/my/index",
-      "type": "page",
       "name": "smqjh-my",
       "layout": "tabbar",
       "islogin": false,
@@ -99,10 +94,15 @@
   "subPackages": [
     {
       "root": "subPack-xsb",
+      "plugins": {
+        "logisticsPlugin": {
+          "version": "2.1.12",
+          "provider": "wx9ad912bf20548d92"
+        }
+      },
       "pages": [
         {
           "path": "commonTab/index",
-          "type": "page",
           "name": "xsb-homeTabbar",
           "islogin": false,
           "style": {
@@ -114,7 +114,6 @@
         },
         {
           "path": "confirmOrder/index",
-          "type": "page",
           "name": "xsb-confirmOrder",
           "islogin": true,
           "style": {
@@ -123,7 +122,6 @@
         },
         {
           "path": "goods/index",
-          "type": "page",
           "name": "xsb-goods",
           "islogin": false,
           "style": {
@@ -133,7 +131,6 @@
         },
         {
           "path": "order/index",
-          "type": "page",
           "name": "xsb-order",
           "islogin": true,
           "style": {
@@ -142,7 +139,6 @@
         },
         {
           "path": "orderDetaile/index",
-          "type": "page",
           "name": "xsb-orderDetaile",
           "islogin": true,
           "style": {
@@ -152,7 +148,6 @@
         },
         {
           "path": "search/index",
-          "type": "page",
           "name": "xsb-search",
           "islogin": false,
           "style": {
@@ -161,7 +156,6 @@
         },
         {
           "path": "selectAddress/index",
-          "type": "page",
           "name": "xsb-selectAddress",
           "islogin": false,
           "style": {
@@ -175,7 +169,6 @@
       "pages": [
         {
           "path": "addressList/index",
-          "type": "page",
           "name": "common-addressList",
           "islogin": true,
           "style": {
@@ -184,7 +177,6 @@
         },
         {
           "path": "afterSales/index",
-          "type": "page",
           "name": "common-afterSales",
           "islogin": true,
           "style": {
@@ -193,7 +185,6 @@
         },
         {
           "path": "afterSalesDetail/index",
-          "type": "page",
           "name": "common-afterSalesDetail",
           "islogin": true,
           "style": {
@@ -202,7 +193,6 @@
         },
         {
           "path": "afterSalesList/index",
-          "type": "page",
           "name": "common-afterSalesList",
           "islogin": true,
           "style": {
@@ -211,7 +201,6 @@
         },
         {
           "path": "editAddress/index",
-          "type": "page",
           "name": "common-editAddress",
           "islogin": true,
           "style": {
@@ -221,7 +210,6 @@
         },
         {
           "path": "integral/index",
-          "type": "page",
           "name": "common-integral",
           "islogin": true,
           "style": {
@@ -231,7 +219,6 @@
         },
         {
           "path": "nickName/index",
-          "type": "page",
           "name": "common-nickName",
           "islogin": true,
           "style": {
@@ -240,7 +227,6 @@
         },
         {
           "path": "payError/index",
-          "type": "page",
           "name": "common-payError",
           "islogin": true,
           "style": {
@@ -251,7 +237,6 @@
         },
         {
           "path": "paySuccess/index",
-          "type": "page",
           "name": "common-paySuccess",
           "islogin": true,
           "style": {
@@ -262,7 +247,6 @@
         },
         {
           "path": "revalue/index",
-          "type": "page",
           "name": "common-revalue",
           "islogin": true,
           "style": {
@@ -273,7 +257,6 @@
         },
         {
           "path": "revalueSuccess/index",
-          "type": "page",
           "name": "common-revalue-success",
           "islogin": true,
           "style": {
@@ -284,7 +267,6 @@
         },
         {
           "path": "user-center/index",
-          "type": "page",
           "name": "common-user-center",
           "islogin": true,
           "style": {
@@ -298,7 +280,6 @@
       "pages": [
         {
           "path": "order/index",
-          "type": "page",
           "name": "smqjh-order",
           "islogin": true,
           "style": {
@@ -312,7 +293,6 @@
       "pages": [
         {
           "path": "chargeDetail/chargeDetail",
-          "type": "page",
           "name": "charge-detail",
           "islogin": false,
           "style": {
@@ -322,7 +302,6 @@
         },
         {
           "path": "chargeing/chargeing",
-          "type": "page",
           "name": "chargeing",
           "islogin": true,
           "style": {
@@ -332,7 +311,6 @@
         },
         {
           "path": "chargeMap/chargeMap",
-          "type": "page",
           "name": "charge-map",
           "islogin": false,
           "style": {
@@ -342,7 +320,6 @@
         },
         {
           "path": "chargeOrderDetail/chargeOrderDetail",
-          "type": "page",
           "name": "charge-order-detail",
           "islogin": true,
           "style": {
@@ -352,7 +329,6 @@
         },
         {
           "path": "chargeSearchList/chargeSearchList",
-          "type": "page",
           "name": "cahrge-search-list",
           "islogin": false,
           "style": {
@@ -362,7 +338,6 @@
         },
         {
           "path": "chargeSiteDetail/chargeSiteDetail",
-          "type": "page",
           "name": "charge-site-detail",
           "islogin": true,
           "style": {
@@ -372,7 +347,6 @@
         },
         {
           "path": "chargeStart/chargeStart",
-          "type": "page",
           "name": "charge-start",
           "islogin": true,
           "style": {
@@ -382,7 +356,6 @@
         },
         {
           "path": "index/index",
-          "type": "page",
           "name": "charge-index",
           "islogin": false,
           "style": {

+ 34 - 42
src/uni-pages.d.ts

@@ -1,50 +1,46 @@
 /* eslint-disable */
 /* prettier-ignore */
 // @ts-nocheck
-// Generated by vite-plugin-uni-pages
-
-type _LocationUrl =
-  "/pages/index/index" |
-  "/pages/cart/index" |
-  "/pages/classfiy/index" |
-  "/pages/login/index" |
-  "/pages/my/index" |
-  "/subPack-xsb/commonTab/index" |
-  "/subPack-xsb/confirmOrder/index" |
-  "/subPack-xsb/goods/index" |
-  "/subPack-xsb/order/index" |
-  "/subPack-xsb/orderDetaile/index" |
-  "/subPack-xsb/search/index" |
-  "/subPack-xsb/selectAddress/index" |
-  "/subPack-common/addressList/index" |
-  "/subPack-common/afterSales/index" |
-  "/subPack-common/afterSalesDetail/index" |
-  "/subPack-common/afterSalesList/index" |
-  "/subPack-common/editAddress/index" |
-  "/subPack-common/integral/index" |
-  "/subPack-common/nickName/index" |
-  "/subPack-common/payError/index" |
-  "/subPack-common/paySuccess/index" |
-  "/subPack-common/revalue/index" |
-  "/subPack-common/revalueSuccess/index" |
-  "/subPack-common/user-center/index" |
-  "/subPack-smqjh/order/index" |
-  "/subPack-charge/chargeDetail/chargeDetail" |
-  "/subPack-charge/chargeing/chargeing" |
-  "/subPack-charge/chargeMap/chargeMap" |
-  "/subPack-charge/chargeOrderDetail/chargeOrderDetail" |
-  "/subPack-charge/chargeSearchList/chargeSearchList" |
-  "/subPack-charge/chargeSiteDetail/chargeSiteDetail" |
-  "/subPack-charge/chargeStart/chargeStart" |
-  "/subPack-charge/index/index";
+// Generated by @uni-ku/pages-json
 
 interface NavigateToOptions {
-  url: _LocationUrl;
+  url: "/pages/login/index" |
+       "/subPack-xsb/commonTab/index" |
+       "/subPack-xsb/confirmOrder/index" |
+       "/subPack-xsb/goods/index" |
+       "/subPack-xsb/order/index" |
+       "/subPack-xsb/orderDetaile/index" |
+       "/subPack-xsb/search/index" |
+       "/subPack-xsb/selectAddress/index" |
+       "/subPack-common/addressList/index" |
+       "/subPack-common/afterSales/index" |
+       "/subPack-common/afterSalesDetail/index" |
+       "/subPack-common/afterSalesList/index" |
+       "/subPack-common/editAddress/index" |
+       "/subPack-common/integral/index" |
+       "/subPack-common/nickName/index" |
+       "/subPack-common/payError/index" |
+       "/subPack-common/paySuccess/index" |
+       "/subPack-common/revalue/index" |
+       "/subPack-common/revalueSuccess/index" |
+       "/subPack-common/user-center/index" |
+       "/subPack-smqjh/order/index" |
+       "/subPack-charge/chargeDetail/chargeDetail" |
+       "/subPack-charge/chargeing/chargeing" |
+       "/subPack-charge/chargeMap/chargeMap" |
+       "/subPack-charge/chargeOrderDetail/chargeOrderDetail" |
+       "/subPack-charge/chargeSearchList/chargeSearchList" |
+       "/subPack-charge/chargeSiteDetail/chargeSiteDetail" |
+       "/subPack-charge/chargeStart/chargeStart" |
+       "/subPack-charge/index/index";
 }
 interface RedirectToOptions extends NavigateToOptions {}
 
 interface SwitchTabOptions {
-  url: "/pages/index/index" | "/pages/classfiy/index" | "/pages/cart/index" | "/pages/my/index"
+  url: "/pages/index/index" |
+       "/pages/classfiy/index" |
+       "/pages/cart/index" |
+       "/pages/my/index";
 }
 
 type ReLaunchOptions = NavigateToOptions | SwitchTabOptions;
@@ -55,7 +51,3 @@ declare interface Uni {
   switchTab(options: UniNamespace.SwitchTabOptions & SwitchTabOptions): void;
   reLaunch(options: UniNamespace.ReLaunchOptions & ReLaunchOptions): void;
 }
-
-declare module "virtual:uni-pages" {
-  export type LocationUrl = _LocationUrl;
-}