Bläddra i källkod

feat: 删除不再使用的页面配置和组件声明

zouzexu 1 vecka sedan
förälder
incheckning
1a48b52fe2
4 ändrade filer med 2 tillägg och 473 borttagningar
  1. 0 50
      pages.config.ts
  2. 0 39
      src/components.d.ts
  3. 2 330
      src/pages.json
  4. 0 54
      src/uni-pages.d.ts

+ 0 - 50
pages.config.ts

@@ -1,50 +0,0 @@
-import { defineUniPages } from '@uni-helper/vite-plugin-uni-pages'
-
-export default defineUniPages({
-  pages: [
-
-  ],
-  globalStyle: {
-    // 导航栏配置
-    navigationBarBackgroundColor: '@navBgColor',
-    navigationBarTextStyle: '@navTxtStyle',
-    navigationBarTitleText: 'wot',
-
-    // 页面背景配置
-    backgroundColor: '@bgColor',
-    backgroundTextStyle: '@bgTxtStyle',
-    backgroundColorTop: '@bgColorTop',
-    backgroundColorBottom: '@bgColorBottom',
-
-    // 下拉刷新配置
-    enablePullDownRefresh: false,
-    onReachBottomDistance: 50,
-
-    // 动画配置
-    animationType: 'pop-in',
-    animationDuration: 300,
-  },
-
-  tabBar: {
-    custom: true,
-    // #ifdef MP-ALIPAY
-    customize: true,
-    // 暂时不生效。4.71.2025061206-alpha已修复:https://uniapp.dcloud.net.cn/release-note-alpha.html#_4-71-2025061206-alpha,我们等正式版发布后更新。
-    overlay: true,
-    // #endif
-    height: '0',
-    color: '@tabColor',
-    selectedColor: '@tabSelectedColor',
-    backgroundColor: '@tabBgColor',
-    borderStyle: '@tabBorderStyle',
-    list: [{
-      pagePath: 'pages/index/index',
-    }, {
-      pagePath: 'pages/classfiy/index',
-    }, {
-      pagePath: 'pages/cart/index',
-    }, {
-      pagePath: 'pages/my/index',
-    }],
-  },
-})

+ 0 - 39
src/components.d.ts

@@ -14,45 +14,6 @@ declare module 'vue' {
     PrivacyPopup: typeof import('./components/PrivacyPopup.vue')['default']
     QCode: typeof import('./components/QCode.vue')['default']
     StatusTip: typeof import('./components/StatusTip.vue')['default']
-    WdBadge: typeof import('wot-design-uni/components/wd-badge/wd-badge.vue')['default']
-    WdButton: typeof import('wot-design-uni/components/wd-button/wd-button.vue')['default']
-    WdCard: typeof import('wot-design-uni/components/wd-card/wd-card.vue')['default']
-    WdCell: typeof import('wot-design-uni/components/wd-cell/wd-cell.vue')['default']
-    WdCellGroup: typeof import('wot-design-uni/components/wd-cell-group/wd-cell-group.vue')['default']
-    WdCheckbox: typeof import('wot-design-uni/components/wd-checkbox/wd-checkbox.vue')['default']
-    WdCheckboxGroup: typeof import('wot-design-uni/components/wd-checkbox-group/wd-checkbox-group.vue')['default']
-    WdCircle: typeof import('wot-design-uni/components/wd-circle/wd-circle.vue')['default']
-    WdConfigProvider: typeof import('wot-design-uni/components/wd-config-provider/wd-config-provider.vue')['default']
-    WdCountDown: typeof import('wot-design-uni/components/wd-count-down/wd-count-down.vue')['default']
-    WdDivider: typeof import('wot-design-uni/components/wd-divider/wd-divider.vue')['default']
-    WdIcon: typeof import('wot-design-uni/components/wd-icon/wd-icon.vue')['default']
-    WdInput: typeof import('wot-design-uni/components/wd-input/wd-input.vue')['default']
-    WdInputNumber: typeof import('wot-design-uni/components/wd-input-number/wd-input-number.vue')['default']
-    WdLoading: typeof import('wot-design-uni/components/wd-loading/wd-loading.vue')['default']
-    WdLoadmore: typeof import('wot-design-uni/components/wd-loadmore/wd-loadmore.vue')['default']
-    WdMessageBox: typeof import('wot-design-uni/components/wd-message-box/wd-message-box.vue')['default']
-    WdNavbar: typeof import('wot-design-uni/components/wd-navbar/wd-navbar.vue')['default']
-    WdNoticeBar: typeof import('wot-design-uni/components/wd-notice-bar/wd-notice-bar.vue')['default']
-    WdNotify: typeof import('wot-design-uni/components/wd-notify/wd-notify.vue')['default']
-    WdOverlay: typeof import('wot-design-uni/components/wd-overlay/wd-overlay.vue')['default']
-    WdPopup: typeof import('wot-design-uni/components/wd-popup/wd-popup.vue')['default']
-    WdRadio: typeof import('wot-design-uni/components/wd-radio/wd-radio.vue')['default']
-    WdRadioGroup: typeof import('wot-design-uni/components/wd-radio-group/wd-radio-group.vue')['default']
-    WdRate: typeof import('wot-design-uni/components/wd-rate/wd-rate.vue')['default']
-    WdSkeleton: typeof import('wot-design-uni/components/wd-skeleton/wd-skeleton.vue')['default']
-    WdSortButton: typeof import('wot-design-uni/components/wd-sort-button/wd-sort-button.vue')['default']
-    WdStatusTip: typeof import('wot-design-uni/components/wd-status-tip/wd-status-tip.vue')['default']
-    WdStep: typeof import('wot-design-uni/components/wd-step/wd-step.vue')['default']
-    WdSteps: typeof import('wot-design-uni/components/wd-steps/wd-steps.vue')['default']
-    WdSwiper: typeof import('wot-design-uni/components/wd-swiper/wd-swiper.vue')['default']
-    WdTab: typeof import('wot-design-uni/components/wd-tab/wd-tab.vue')['default']
-    WdTabbar: typeof import('wot-design-uni/components/wd-tabbar/wd-tabbar.vue')['default']
-    WdTabbarItem: typeof import('wot-design-uni/components/wd-tabbar-item/wd-tabbar-item.vue')['default']
-    WdTabs: typeof import('wot-design-uni/components/wd-tabs/wd-tabs.vue')['default']
-    WdTag: typeof import('wot-design-uni/components/wd-tag/wd-tag.vue')['default']
-    WdTextarea: typeof import('wot-design-uni/components/wd-textarea/wd-textarea.vue')['default']
-    WdToast: typeof import('wot-design-uni/components/wd-toast/wd-toast.vue')['default']
-    WdUpload: typeof import('wot-design-uni/components/wd-upload/wd-upload.vue')['default']
     Zcontact: typeof import('./components/Zcontact.vue')['default']
     Zpopup: typeof import('./components/Zpopup.vue')['default']
     Zupload: typeof import('./components/Zupload.vue')['default']

+ 2 - 330
src/pages.json

@@ -1,59 +1,5 @@
 {
-  "pages": [
-    {
-      "path": "pages/index/index",
-      "name": "smqjh-home",
-      "layout": "tabbar",
-      "islogin": false,
-      "style": {
-        "navigationBarTitleText": "首页",
-        "navigationStyle": "custom",
-        "backgroundColor": "#9ED605",
-        "backgroundColorTop": "#9ED605"
-      }
-    },
-    {
-      "path": "pages/cart/index",
-      "name": "smqjh-cart",
-      "layout": "tabbar",
-      "islogin": false,
-      "style": {
-        "navigationBarTitleText": "购物车",
-        "navigationStyle": "custom",
-        "disableScroll": true
-      }
-    },
-    {
-      "path": "pages/classfiy/index",
-      "name": "smqjh-classfiy",
-      "layout": "tabbar",
-      "islogin": false,
-      "style": {
-        "navigationBarTitleText": "市民请集合分类",
-        "navigationStyle": "custom",
-        "disableScroll": true
-      }
-    },
-    {
-      "path": "pages/login/index",
-      "name": "smqjh-login",
-      "islogin": false,
-      "style": {
-        "navigationBarTitleText": "市民请集合"
-      }
-    },
-    {
-      "path": "pages/my/index",
-      "name": "smqjh-my",
-      "layout": "tabbar",
-      "islogin": false,
-      "style": {
-        "navigationBarTitleText": "个人中心",
-        "navigationStyle": "custom",
-        "disableScroll": true
-      }
-    }
-  ],
+  "pages": [],
   "globalStyle": {
     "navigationBarBackgroundColor": "@navBgColor",
     "navigationBarTextStyle": "@navTxtStyle",
@@ -99,281 +45,7 @@
           "version": "2.1.12",
           "provider": "wx9ad912bf20548d92"
         }
-      },
-      "pages": [
-        {
-          "path": "commonTab/index",
-          "name": "xsb-homeTabbar",
-          "islogin": false,
-          "style": {
-            "navigationStyle": "custom",
-            "navigationBarTitleText": "星闪豹首页",
-            "backgroundColorBottom": "#fff",
-            "disableScroll": true
-          }
-        },
-        {
-          "path": "confirmOrder/index",
-          "name": "xsb-confirmOrder",
-          "islogin": true,
-          "style": {
-            "navigationBarTitleText": "提交订单"
-          }
-        },
-        {
-          "path": "goods/index",
-          "name": "xsb-goods",
-          "islogin": false,
-          "style": {
-            "navigationStyle": "custom",
-            "navigationBarTitleText": "星闪豹商品详情"
-          }
-        },
-        {
-          "path": "order/index",
-          "name": "xsb-order",
-          "islogin": true,
-          "style": {
-            "navigationBarTitleText": "订单列表"
-          }
-        },
-        {
-          "path": "orderDetaile/index",
-          "name": "xsb-orderDetaile",
-          "islogin": true,
-          "style": {
-            "navigationBarTitleText": "订单详情",
-            "navigationStyle": "custom"
-          }
-        },
-        {
-          "path": "search/index",
-          "name": "xsb-search",
-          "islogin": false,
-          "style": {
-            "navigationBarTitleText": "搜索"
-          }
-        },
-        {
-          "path": "selectAddress/index",
-          "name": "xsb-selectAddress",
-          "islogin": false,
-          "style": {
-            "navigationBarTitleText": "选择收获地址"
-          }
-        }
-      ]
-    },
-    {
-      "root": "subPack-common",
-      "pages": [
-        {
-          "path": "addressList/index",
-          "name": "common-addressList",
-          "islogin": true,
-          "style": {
-            "navigationBarTitleText": "收获地址"
-          }
-        },
-        {
-          "path": "afterSales/index",
-          "name": "common-afterSales",
-          "islogin": true,
-          "style": {
-            "navigationBarTitleText": "申请售后"
-          }
-        },
-        {
-          "path": "afterSalesDetail/index",
-          "name": "common-afterSalesDetail",
-          "islogin": true,
-          "style": {
-            "navigationBarTitleText": "售后详情"
-          }
-        },
-        {
-          "path": "afterSalesList/index",
-          "name": "common-afterSalesList",
-          "islogin": true,
-          "style": {
-            "navigationBarTitleText": "售后列表"
-          }
-        },
-        {
-          "path": "editAddress/index",
-          "name": "common-editAddress",
-          "islogin": true,
-          "style": {
-            "navigationBarTitleText": "编辑新增收获地址",
-            "navigationStyle": "custom"
-          }
-        },
-        {
-          "path": "integral/index",
-          "name": "common-integral",
-          "islogin": true,
-          "style": {
-            "navigationBarTitleText": "积分",
-            "disableScroll": true
-          }
-        },
-        {
-          "path": "nickName/index",
-          "name": "common-nickName",
-          "islogin": true,
-          "style": {
-            "navigationBarTitleText": "修改昵称"
-          }
-        },
-        {
-          "path": "payError/index",
-          "name": "common-payError",
-          "islogin": true,
-          "style": {
-            "navigationBarTitleText": "支付失败",
-            "navigationStyle": "custom",
-            "disableScroll": true
-          }
-        },
-        {
-          "path": "paySuccess/index",
-          "name": "common-paySuccess",
-          "islogin": true,
-          "style": {
-            "navigationBarTitleText": "支付成功",
-            "navigationStyle": "custom",
-            "disableScroll": true
-          }
-        },
-        {
-          "path": "revalue/index",
-          "name": "common-revalue",
-          "islogin": true,
-          "style": {
-            "navigationBarTitleText": "写评价",
-            "navigationStyle": "custom",
-            "disableScroll": true
-          }
-        },
-        {
-          "path": "revalueSuccess/index",
-          "name": "common-revalue-success",
-          "islogin": true,
-          "style": {
-            "navigationBarTitleText": "评价成功",
-            "navigationStyle": "custom",
-            "disableScroll": true
-          }
-        },
-        {
-          "path": "user-center/index",
-          "name": "common-user-center",
-          "islogin": true,
-          "style": {
-            "navigationBarTitleText": "账户设置"
-          }
-        }
-      ]
-    },
-    {
-      "root": "subPack-smqjh",
-      "pages": [
-        {
-          "path": "order/index",
-          "name": "smqjh-order",
-          "islogin": true,
-          "style": {
-            "navigationBarTitleText": "订单列表"
-          }
-        }
-      ]
-    },
-    {
-      "root": "subPack-charge",
-      "pages": [
-        {
-          "path": "chargeDetail/chargeDetail",
-          "name": "charge-detail",
-          "islogin": false,
-          "style": {
-            "navigationBarTitleText": "充电详情",
-            "navigationStyle": "custom"
-          }
-        },
-        {
-          "path": "chargeing/chargeing",
-          "name": "chargeing",
-          "islogin": true,
-          "style": {
-            "navigationBarTitleText": "正在充电",
-            "navigationStyle": "custom"
-          }
-        },
-        {
-          "path": "chargeMap/chargeMap",
-          "name": "charge-map",
-          "islogin": false,
-          "style": {
-            "navigationBarTitleText": "地图模式",
-            "navigationStyle": "custom"
-          }
-        },
-        {
-          "path": "chargeOrderDetail/chargeOrderDetail",
-          "name": "charge-order-detail",
-          "islogin": true,
-          "style": {
-            "navigationBarTitleText": "订单详情",
-            "navigationStyle": "custom"
-          }
-        },
-        {
-          "path": "chargeOrderList/chargeOrderList",
-          "name": "charge-order-list",
-          "islogin": false,
-          "style": {
-            "navigationBarTitleText": "充电订单",
-            "navigationStyle": "custom"
-          }
-        },
-        {
-          "path": "chargeSearchList/chargeSearchList",
-          "name": "cahrge-search-list",
-          "islogin": false,
-          "style": {
-            "navigationBarTitleText": "搜索列表",
-            "navigationStyle": "custom"
-          }
-        },
-        {
-          "path": "chargeSiteDetail/chargeSiteDetail",
-          "name": "charge-site-detail",
-          "islogin": true,
-          "style": {
-            "navigationBarTitleText": "站点详情",
-            "navigationStyle": "custom"
-          }
-        },
-        {
-          "path": "chargeStart/chargeStart",
-          "name": "charge-start",
-          "islogin": true,
-          "style": {
-            "navigationBarTitleText": "启动终端",
-            "navigationStyle": "custom"
-          }
-        },
-        {
-          "path": "index/index",
-          "name": "charge-index",
-          "islogin": false,
-          "style": {
-            "navigationStyle": "custom",
-            "navigationBarTitleText": "",
-            "backgroundColorBottom": "#fff"
-          }
-        }
-      ]
+      }
     }
   ]
 }

+ 0 - 54
src/uni-pages.d.ts

@@ -1,54 +0,0 @@
-/* eslint-disable */
-/* prettier-ignore */
-// @ts-nocheck
-// Generated by @uni-ku/pages-json
-
-interface NavigateToOptions {
-  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/chargeOrderList/chargeOrderList" |
-       "/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";
-}
-
-type ReLaunchOptions = NavigateToOptions | SwitchTabOptions;
-
-declare interface Uni {
-  navigateTo(options: UniNamespace.NavigateToOptions & NavigateToOptions): void;
-  redirectTo(options: UniNamespace.RedirectToOptions & RedirectToOptions): void;
-  switchTab(options: UniNamespace.SwitchTabOptions & SwitchTabOptions): void;
-  reLaunch(options: UniNamespace.ReLaunchOptions & ReLaunchOptions): void;
-}