From d784e10bcf52ce924da4e9aebff4399abe37c2a3 Mon Sep 17 00:00:00 2001 From: bestlee Date: Wed, 24 Jun 2026 17:16:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E5=B5=8C=E5=A5=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package-lock.json | 311 ++++++++++++++++++++++++++++- package.json | 1 + src/api/apply.js | 15 ++ src/api/login.js | 7 + src/api/request.js | 47 +++++ src/assets/main.css | 12 ++ src/main.js | 2 + src/router/index.js | 24 ++- src/views/applyList/detail.vue | 272 +++++++++++++++++++++++++ src/views/applyList/index.vue | 205 ++++++++++++++++++- src/views/applyList/lockDetail.vue | 215 ++++++++++++++++++++ src/views/applyList/waitList.vue | 177 ++++++++++++++++ src/views/error/404.vue | 306 +++++++++++++++++++++++++++- src/views/login/index.vue | 22 +- vite.config.js | 2 +- 15 files changed, 1600 insertions(+), 18 deletions(-) create mode 100644 src/api/apply.js create mode 100644 src/api/login.js create mode 100644 src/api/request.js create mode 100644 src/views/applyList/detail.vue create mode 100644 src/views/applyList/lockDetail.vue create mode 100644 src/views/applyList/waitList.vue diff --git a/package-lock.json b/package-lock.json index 6bb517b..fa98f56 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,6 +9,7 @@ "version": "0.0.0", "dependencies": { "amfe-flexible": "^2.2.1", + "axios": "^1.18.1", "pinia": "^3.0.4", "vant": "^4.9.24", "vue": "^3.5.38", @@ -1214,6 +1215,18 @@ "node": ">=0.4.0" } }, + "node_modules/agent-base": { + "version": "6.0.2", + "resolved": "https://registry.npmmirror.com/agent-base/-/agent-base-6.0.2.tgz", + "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", + "license": "MIT", + "dependencies": { + "debug": "4" + }, + "engines": { + "node": ">= 6.0.0" + } + }, "node_modules/amfe-flexible": { "version": "2.2.1", "resolved": "https://registry.npmmirror.com/amfe-flexible/-/amfe-flexible-2.2.1.tgz", @@ -1263,6 +1276,24 @@ "url": "https://github.com/sponsors/sxzz" } }, + "node_modules/asynckit": { + "version": "0.4.0", + "resolved": "https://registry.npmmirror.com/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==", + "license": "MIT" + }, + "node_modules/axios": { + "version": "1.18.1", + "resolved": "https://registry.npmmirror.com/axios/-/axios-1.18.1.tgz", + "integrity": "sha512-3nTvFlvpn9Zu/RkHUqtc7/+al4UpRW5az71ap5zccp6e8RAYEzhMTecX8Dz1wWDYrPpUoB1HAQEGEAEvUr7S9g==", + "license": "MIT", + "dependencies": { + "follow-redirects": "^1.16.0", + "form-data": "^4.0.5", + "https-proxy-agent": "^5.0.1", + "proxy-from-env": "^2.1.0" + } + }, "node_modules/baseline-browser-mapping": { "version": "2.10.38", "resolved": "https://registry.npmmirror.com/baseline-browser-mapping/-/baseline-browser-mapping-2.10.38.tgz", @@ -1335,6 +1366,19 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/call-bind-apply-helpers": { + "version": "1.0.2", + "resolved": "https://registry.npmmirror.com/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz", + "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, "node_modules/caniuse-lite": { "version": "1.0.30001799", "resolved": "https://registry.npmmirror.com/caniuse-lite/-/caniuse-lite-1.0.30001799.tgz", @@ -1371,6 +1415,18 @@ "url": "https://paulmillr.com/funding/" } }, + "node_modules/combined-stream": { + "version": "1.0.8", + "resolved": "https://registry.npmmirror.com/combined-stream/-/combined-stream-1.0.8.tgz", + "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", + "license": "MIT", + "dependencies": { + "delayed-stream": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, "node_modules/confbox": { "version": "0.2.4", "resolved": "https://registry.npmmirror.com/confbox/-/confbox-0.2.4.tgz", @@ -1409,7 +1465,6 @@ "version": "4.4.3", "resolved": "https://registry.npmmirror.com/debug/-/debug-4.4.3.tgz", "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==", - "dev": true, "license": "MIT", "dependencies": { "ms": "^2.1.3" @@ -1466,6 +1521,15 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/delayed-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmmirror.com/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", + "license": "MIT", + "engines": { + "node": ">=0.4.0" + } + }, "node_modules/detect-libc": { "version": "2.1.2", "resolved": "https://registry.npmmirror.com/detect-libc/-/detect-libc-2.1.2.tgz", @@ -1476,6 +1540,20 @@ "node": ">=8" } }, + "node_modules/dunder-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmmirror.com/dunder-proto/-/dunder-proto-1.0.1.tgz", + "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==", + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.1", + "es-errors": "^1.3.0", + "gopd": "^1.2.0" + }, + "engines": { + "node": ">= 0.4" + } + }, "node_modules/electron-to-chromium": { "version": "1.5.377", "resolved": "https://registry.npmmirror.com/electron-to-chromium/-/electron-to-chromium-1.5.377.tgz", @@ -1505,6 +1583,51 @@ "url": "https://github.com/sponsors/antfu" } }, + "node_modules/es-define-property": { + "version": "1.0.1", + "resolved": "https://registry.npmmirror.com/es-define-property/-/es-define-property-1.0.1.tgz", + "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-errors": { + "version": "1.3.0", + "resolved": "https://registry.npmmirror.com/es-errors/-/es-errors-1.3.0.tgz", + "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-object-atoms": { + "version": "1.1.2", + "resolved": "https://registry.npmmirror.com/es-object-atoms/-/es-object-atoms-1.1.2.tgz", + "integrity": "sha512-HWcBoN6NileqtSydK2FqHbS/LoDd2pqrnQHLyJzBj4kOp/ky2MWMN694xOfkK8/SnUsW2DH7EfyVlydKCsm1Zw==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-set-tostringtag": { + "version": "2.1.0", + "resolved": "https://registry.npmmirror.com/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz", + "integrity": "sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.6", + "has-tostringtag": "^1.0.2", + "hasown": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" + } + }, "node_modules/escalade": { "version": "3.2.0", "resolved": "https://registry.npmmirror.com/escalade/-/escalade-3.2.0.tgz", @@ -1557,6 +1680,42 @@ } } }, + "node_modules/follow-redirects": { + "version": "1.16.0", + "resolved": "https://registry.npmmirror.com/follow-redirects/-/follow-redirects-1.16.0.tgz", + "integrity": "sha512-y5rN/uOsadFT/JfYwhxRS5R7Qce+g3zG97+JrtFZlC9klX/W5hD7iiLzScI4nZqUS7DNUdhPgw4xI8W2LuXlUw==", + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/RubenVerborgh" + } + ], + "license": "MIT", + "engines": { + "node": ">=4.0" + }, + "peerDependenciesMeta": { + "debug": { + "optional": true + } + } + }, + "node_modules/form-data": { + "version": "4.0.6", + "resolved": "https://registry.npmmirror.com/form-data/-/form-data-4.0.6.tgz", + "integrity": "sha512-vKatAh4SlVfgbv+YtmhiRjhEMJsYpsG1Y2rMQtR+SVSbytsSD1YGzDIcrAJmdFec88u/+VoGmxnl+80gL1tRCQ==", + "license": "MIT", + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "es-set-tostringtag": "^2.1.0", + "hasown": "^2.0.4", + "mime-types": "^2.1.35" + }, + "engines": { + "node": ">= 6" + } + }, "node_modules/fsevents": { "version": "2.3.3", "resolved": "https://registry.npmmirror.com/fsevents/-/fsevents-2.3.3.tgz", @@ -1572,6 +1731,15 @@ "node": "^8.16.0 || ^10.6.0 || >=11.0.0" } }, + "node_modules/function-bind": { + "version": "1.1.2", + "resolved": "https://registry.npmmirror.com/function-bind/-/function-bind-1.1.2.tgz", + "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/gensync": { "version": "1.0.0-beta.2", "resolved": "https://registry.npmmirror.com/gensync/-/gensync-1.0.0-beta.2.tgz", @@ -1582,12 +1750,113 @@ "node": ">=6.9.0" } }, + "node_modules/get-intrinsic": { + "version": "1.3.0", + "resolved": "https://registry.npmmirror.com/get-intrinsic/-/get-intrinsic-1.3.0.tgz", + "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==", + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.2", + "es-define-property": "^1.0.1", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.1.1", + "function-bind": "^1.1.2", + "get-proto": "^1.0.1", + "gopd": "^1.2.0", + "has-symbols": "^1.1.0", + "hasown": "^2.0.2", + "math-intrinsics": "^1.1.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/get-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmmirror.com/get-proto/-/get-proto-1.0.1.tgz", + "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==", + "license": "MIT", + "dependencies": { + "dunder-proto": "^1.0.1", + "es-object-atoms": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/gopd": { + "version": "1.2.0", + "resolved": "https://registry.npmmirror.com/gopd/-/gopd-1.2.0.tgz", + "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-symbols": { + "version": "1.1.0", + "resolved": "https://registry.npmmirror.com/has-symbols/-/has-symbols-1.1.0.tgz", + "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-tostringtag": { + "version": "1.0.2", + "resolved": "https://registry.npmmirror.com/has-tostringtag/-/has-tostringtag-1.0.2.tgz", + "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==", + "license": "MIT", + "dependencies": { + "has-symbols": "^1.0.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/hasown": { + "version": "2.0.4", + "resolved": "https://registry.npmmirror.com/hasown/-/hasown-2.0.4.tgz", + "integrity": "sha512-T2UbfbBEF32wiepXIsMlTW9+dDYC6wMh/t/vYA4tuOMKqWz/n3vr1NFSxQiyP+zk2mXsoMA/i/7qV6LKut1t1A==", + "license": "MIT", + "dependencies": { + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, "node_modules/hookable": { "version": "5.5.3", "resolved": "https://registry.npmmirror.com/hookable/-/hookable-5.5.3.tgz", "integrity": "sha512-Yc+BQe8SvoXH1643Qez1zqLRmbA5rCL+sSmk6TVos0LWVfNIB7PGncdlId77WzLGSIB5KaWgTaNTs2lNVEI6VQ==", "license": "MIT" }, + "node_modules/https-proxy-agent": { + "version": "5.0.1", + "resolved": "https://registry.npmmirror.com/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz", + "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==", + "license": "MIT", + "dependencies": { + "agent-base": "6", + "debug": "4" + }, + "engines": { + "node": ">= 6" + } + }, "node_modules/is-docker": { "version": "3.0.0", "resolved": "https://registry.npmmirror.com/is-docker/-/is-docker-3.0.0.tgz", @@ -2014,6 +2283,36 @@ "url": "https://github.com/sponsors/sxzz" } }, + "node_modules/math-intrinsics": { + "version": "1.1.0", + "resolved": "https://registry.npmmirror.com/math-intrinsics/-/math-intrinsics-1.1.0.tgz", + "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmmirror.com/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmmirror.com/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "license": "MIT", + "dependencies": { + "mime-db": "1.52.0" + }, + "engines": { + "node": ">= 0.6" + } + }, "node_modules/mitt": { "version": "3.0.1", "resolved": "https://registry.npmmirror.com/mitt/-/mitt-3.0.1.tgz", @@ -2063,7 +2362,6 @@ "version": "2.1.3", "resolved": "https://registry.npmmirror.com/ms/-/ms-2.1.3.tgz", "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", - "dev": true, "license": "MIT" }, "node_modules/muggle-string": { @@ -2271,6 +2569,15 @@ "url": "https://github.com/prettier/prettier?sponsor=1" } }, + "node_modules/proxy-from-env": { + "version": "2.1.0", + "resolved": "https://registry.npmmirror.com/proxy-from-env/-/proxy-from-env-2.1.0.tgz", + "integrity": "sha512-cJ+oHTW1VAEa8cJslgmUZrc+sjRKgAKl3Zyse6+PV38hZe/V6Z14TbCuXcan9F9ghlz4QrFr2c92TNF82UkYHA==", + "license": "MIT", + "engines": { + "node": ">=10" + } + }, "node_modules/quansync": { "version": "0.2.11", "resolved": "https://registry.npmmirror.com/quansync/-/quansync-0.2.11.tgz", diff --git a/package.json b/package.json index d56af14..63c6a89 100644 --- a/package.json +++ b/package.json @@ -11,6 +11,7 @@ }, "dependencies": { "amfe-flexible": "^2.2.1", + "axios": "^1.18.1", "pinia": "^3.0.4", "vant": "^4.9.24", "vue": "^3.5.38", diff --git a/src/api/apply.js b/src/api/apply.js new file mode 100644 index 0000000..17a5f4d --- /dev/null +++ b/src/api/apply.js @@ -0,0 +1,15 @@ +import axios from 'axios'; + +// 已审批列表 +export function applyListApi(params) { + return axios.get('/api/chain-remove-applies', {params}); +} +// 待审批列表 +export function waitListApi(params) { + return axios.get('/api/chain-remove-applies/my-tasks', {params}); +} +// 详情 +export function detailsApi(id) { + return axios.get('/api/chain-remove-applies/'+id); +} + diff --git a/src/api/login.js b/src/api/login.js new file mode 100644 index 0000000..b6b30a1 --- /dev/null +++ b/src/api/login.js @@ -0,0 +1,7 @@ +import axios from 'axios'; + +// 用户登录 +export function loginApi(data) { + return axios.post('/api/auth/login', data); +} + diff --git a/src/api/request.js b/src/api/request.js new file mode 100644 index 0000000..9df08fc --- /dev/null +++ b/src/api/request.js @@ -0,0 +1,47 @@ +import axios from 'axios'; +import router from '@/router' +import { showNotify } from 'vant'; + +const url = 'http://192.168.0.230'; +axios.defaults.baseURL = url; +axios.defaults.withCredentials = false; +axios.defaults.timeout = 200000; + +// 请求拦截器 +axios.interceptors.request.use( + (config) => { + const token = localStorage.getItem('token'); + if (token) { + if (!config.headers) { + config.headers = {}; + } + config.headers.Authorization = `Bearer ` + token; + config.headers['Content-Type'] = + 'application/json;application/vnd.ms-excel;application/json;charset=UTF-8'; + } + return config; + }, + (error) => { + return Promise.reject(error); + } +); + +// 响应拦截器 +axios.interceptors.response.use( + (response) => { + const res = response.data; + if (res.code === 200) { + return res; + } + return res; + }, + (error) => { + if (error.response.status === 401) { + showNotify({ type: 'danger', message: '账号已过期,请重新登录!' }); + router.push({ path: '/login' }); + } else { + showNotify({ type: 'danger', message: error.response.data.message || '服务错误' }); + } + return Promise.reject(error);; + } +); \ No newline at end of file diff --git a/src/assets/main.css b/src/assets/main.css index 1b7980c..b6175c3 100644 --- a/src/assets/main.css +++ b/src/assets/main.css @@ -89,3 +89,15 @@ body { max-width: 1280px; margin: 0 auto; } +.global-loading-overlay { + position: fixed; + top: 0; + left: 0; + width: 100%; + height: 100%; + display: flex; + justify-content: center; + align-items: center; + background-color: rgba(255, 255, 255, 0.9); + z-index: 9999; +} diff --git a/src/main.js b/src/main.js index 9d7b3b4..578ddef 100644 --- a/src/main.js +++ b/src/main.js @@ -4,6 +4,8 @@ import { createPinia } from 'pinia' import App from './App.vue' import router from './router' import 'amfe-flexible' +import 'vant/lib/index.css' +import '@/api/request'; const app = createApp(App) diff --git a/src/router/index.js b/src/router/index.js index 74c5af0..f32914c 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -26,20 +26,36 @@ const router = createRouter({ // 动态路由(需要权限的页面) // 注意:这些路由不会在一开始注册,而是在守卫中动态添加 const asyncRoutes = [ + // 列表 { path: '/applyList', name: 'applyList', component: () => import('../views/applyList/index.vue'), - meta: { - title: '申请列表', - }, + }, + // 详情 + { + path: '/detail', + name: 'detail', + component: () => import('../views/applyList/detail.vue'), + }, + // 联锁详情 + { + path: '/lockDetail', + name: 'lockDetail', + component: () => import('../views/applyList/lockDetail.vue'), + }, + // 待审批列表 + { + path: '/waitList', + name: 'waitList', + component: () => import('../views/applyList/waitList.vue'), }, ] // 标志位:是否已添加动态路由 let isRoutesAdded = false router.beforeEach((to, from, next) => { - const token = localStorage.getItem('token') + const token = localStorage.getItem('token') || '123' if (token) { // 关键:有 token 但业务路由还没挂载 => 动态添加(仅一次) if (!isRoutesAdded) { diff --git a/src/views/applyList/detail.vue b/src/views/applyList/detail.vue new file mode 100644 index 0000000..c859b9b --- /dev/null +++ b/src/views/applyList/detail.vue @@ -0,0 +1,272 @@ + + + + + diff --git a/src/views/applyList/index.vue b/src/views/applyList/index.vue index 33d32f2..cf79776 100644 --- a/src/views/applyList/index.vue +++ b/src/views/applyList/index.vue @@ -1,12 +1,213 @@ + diff --git a/src/views/applyList/lockDetail.vue b/src/views/applyList/lockDetail.vue new file mode 100644 index 0000000..45e7ddc --- /dev/null +++ b/src/views/applyList/lockDetail.vue @@ -0,0 +1,215 @@ + + + + + diff --git a/src/views/applyList/waitList.vue b/src/views/applyList/waitList.vue new file mode 100644 index 0000000..3f27478 --- /dev/null +++ b/src/views/applyList/waitList.vue @@ -0,0 +1,177 @@ + + + + + diff --git a/src/views/error/404.vue b/src/views/error/404.vue index 128ddc2..9973494 100644 --- a/src/views/error/404.vue +++ b/src/views/error/404.vue @@ -1,3 +1,305 @@ \ No newline at end of file +
+ +
+
+
+
+
+
+ + +
+ +
+ 4 + 0 + 4 +
+ + +
+ +
+
+ + +
+

哎呀!页面走丢了

+

您访问的页面不存在或已被移除

+

可能是链接有误,或页面已更新

+
+ + +
+ + 返回上一页 + +
+ +
+
+ + + + + \ No newline at end of file diff --git a/src/views/login/index.vue b/src/views/login/index.vue index 30dd353..a839358 100644 --- a/src/views/login/index.vue +++ b/src/views/login/index.vue @@ -1,6 +1,7 @@ @@ -26,12 +29,13 @@ const onSubmit = (values) => {

登录

- + @@ -40,6 +44,7 @@ const onSubmit = (values) => { type="password" name="password" label="密码" + clearable placeholder="请输入密码" :rules="[{ required: true, message: '请输入密码' }]" /> @@ -66,7 +71,7 @@ const onSubmit = (values) => { padding: 10px; } .box { - width: 80%; + width: 90%; background: #fff; border-radius: 8px; display: flex; @@ -89,6 +94,9 @@ const onSubmit = (values) => { .login { font-size: 20px; } +.form { + width: 100%; +} .btn { margin-top: 10px; } diff --git a/vite.config.js b/vite.config.js index d34fc87..4bdd5aa 100644 --- a/vite.config.js +++ b/vite.config.js @@ -13,7 +13,7 @@ export default defineConfig({ plugins: [ vue(), vueJsx(), - vueDevTools(), + // vueDevTools(), AutoImport({ resolvers: [VantResolver()], }),