From c293da23e24a47595fbbbe88e9c7e29486eb5987 Mon Sep 17 00:00:00 2001
From: liugongyu <290219706@qq.com>
Date: Tue, 9 Dec 2025 11:39:13 +0800
Subject: [PATCH] 新园林init
---
.gitignore | 15 +++++++++++++++
App.vue | 20 ++++++++++++++++++++
api/common.js | 0
api/index.js | 0
api/upload.js | 0
api/user.js | 35 +++++++++++++++++++++++++++++++++++
api/workbench.js | 35 +++++++++++++++++++++++++++++++++++
common/config/env.js | 29 +++++++++++++++++++++++++++++
common/config/global.js | 30 ++++++++++++++++++++++++++++++
common/mixins/authMixin.js | 0
common/utils/cache.js | 30 ++++++++++++++++++++++++++++++
common/utils/common.js | 0
common/utils/debounce.js | 18 ++++++++++++++++++
common/utils/request.js | 64 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
common/utils/upload.js | 68 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
common/utils/validate.js | 0
components/upload-image/upload-image.vue | 62 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
index.html | 20 ++++++++++++++++++++
main.js | 26 ++++++++++++++++++++++++++
manifest.json | 74 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
package-lock.json | 664 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
package.json | 11 +++++++++++
pages-sub/daily/12345-order/index.vue | 11 +++++++++++
pages-sub/daily/maintain-manage/index.vue | 11 +++++++++++
pages-sub/daily/patrol-plan/index.vue | 263 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
pages-sub/daily/quick-order/index.vue | 11 +++++++++++
pages-sub/daily/work-order/index.vue | 11 +++++++++++
pages-sub/data/base-data/index.vue | 11 +++++++++++
pages-sub/data/personnel-manage/index.vue | 11 +++++++++++
pages-sub/data/personnel-track/index.vue | 11 +++++++++++
pages-sub/data/tree-archive/index.vue | 11 +++++++++++
pages-sub/problem/order-manage/index.vue | 11 +++++++++++
pages-sub/problem/problem-allot/index.vue | 11 +++++++++++
pages.json | 143 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
pages/index/index.vue | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++
pages/login/index.vue | 206 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
pages/mine/index.vue | 11 +++++++++++
pages/workbench/index.vue | 150 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
pinia/index.js | 9 +++++++++
pinia/user.js | 229 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
static/icons/home-active.png | Bin 0 -> 423 bytes
static/icons/home.png | Bin 0 -> 379 bytes
static/icons/mine-active.png | Bin 0 -> 422 bytes
static/icons/mine.png | Bin 0 -> 338 bytes
static/imgs/logo.png | Bin 0 -> 4023 bytes
uni.promisify.adaptor.js | 13 +++++++++++++
uni.scss | 2 ++
vite.config.js | 26 ++++++++++++++++++++++++++
48 files changed, 2415 insertions(+), 0 deletions(-)
create mode 100644 .gitignore
create mode 100644 App.vue
create mode 100644 api/common.js
create mode 100644 api/index.js
create mode 100644 api/upload.js
create mode 100644 api/user.js
create mode 100644 api/workbench.js
create mode 100644 common/config/env.js
create mode 100644 common/config/global.js
create mode 100644 common/mixins/authMixin.js
create mode 100644 common/utils/cache.js
create mode 100644 common/utils/common.js
create mode 100644 common/utils/debounce.js
create mode 100644 common/utils/request.js
create mode 100644 common/utils/upload.js
create mode 100644 common/utils/validate.js
create mode 100644 components/upload-image/upload-image.vue
create mode 100644 index.html
create mode 100644 main.js
create mode 100644 manifest.json
create mode 100644 package-lock.json
create mode 100644 package.json
create mode 100644 pages-sub/daily/12345-order/index.vue
create mode 100644 pages-sub/daily/maintain-manage/index.vue
create mode 100644 pages-sub/daily/patrol-plan/index.vue
create mode 100644 pages-sub/daily/quick-order/index.vue
create mode 100644 pages-sub/daily/work-order/index.vue
create mode 100644 pages-sub/data/base-data/index.vue
create mode 100644 pages-sub/data/personnel-manage/index.vue
create mode 100644 pages-sub/data/personnel-track/index.vue
create mode 100644 pages-sub/data/tree-archive/index.vue
create mode 100644 pages-sub/problem/order-manage/index.vue
create mode 100644 pages-sub/problem/problem-allot/index.vue
create mode 100644 pages.json
create mode 100644 pages/index/index.vue
create mode 100644 pages/login/index.vue
create mode 100644 pages/mine/index.vue
create mode 100644 pages/workbench/index.vue
create mode 100644 pinia/index.js
create mode 100644 pinia/user.js
create mode 100644 static/icons/home-active.png
create mode 100644 static/icons/home.png
create mode 100644 static/icons/mine-active.png
create mode 100644 static/icons/mine.png
create mode 100644 static/imgs/logo.png
create mode 100644 uni.promisify.adaptor.js
create mode 100644 uni.scss
create mode 100644 vite.config.js
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..c7b95cd
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,15 @@
+# 依赖文件夹
+node_modules/
+# 编译产物
+unpackage/
+# 缓存文件
+.DS_Store
+*.log
+# IDE配置
+.idea/
+.vscode/
+.hbuilderx/
+# 环境变量(若有)
+.env
+# 微信开发者工具缓存
+miniprogram_npm/
\ No newline at end of file
diff --git a/App.vue b/App.vue
new file mode 100644
index 0000000..411dfa7
--- /dev/null
+++ b/App.vue
@@ -0,0 +1,20 @@
+
+
+
\ No newline at end of file
diff --git a/api/common.js b/api/common.js
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/api/common.js
diff --git a/api/index.js b/api/index.js
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/api/index.js
diff --git a/api/upload.js b/api/upload.js
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/api/upload.js
diff --git a/api/user.js b/api/user.js
new file mode 100644
index 0000000..6ece98c
--- /dev/null
+++ b/api/user.js
@@ -0,0 +1,35 @@
+// api/user.js
+import { post, get } from '@/common/utils/request';
+
+/**
+ * 登录接口
+ * @param {Object} params {mobile, password, code}
+ * @returns {Promise}
+ */
+export const login = (params) => {
+ return post('/admin-api/system/auth/login', params);
+};
+
+/**
+ * 获取用户信息
+ * @returns {Promise}
+ */
+export const getUserInfo = () => {
+ return get('/admin-api/system/auth/get-permission-info');
+};
+
+/**
+ * 退出登录
+ * @returns {Promise}
+ */
+export const logout = () => {
+ return post('/admin-api/system/auth/logout');
+};
+
+/**
+ * 模块列表用这个
+ * @returns {Promise}
+ */
+export const moduleList = () => {
+ return get('/app-api/member/app-module/list');
+};
diff --git a/api/workbench.js b/api/workbench.js
new file mode 100644
index 0000000..e1b939e
--- /dev/null
+++ b/api/workbench.js
@@ -0,0 +1,35 @@
+// api/workbench.js - 补全所有导出方法
+import { get } from '@/common/utils/request';
+
+/**
+ * 获取日常管理菜单(适配登录用户权限)
+ * @returns {Promise}
+ */
+export const getDailyManageMenu = () => {
+ return get('/workbench/dailyManage');
+};
+
+/**
+ * 获取问题管理菜单(适配登录用户权限)
+ * @returns {Promise}
+ */
+export const getProblemManageMenu = () => {
+ return get('/workbench/problemManage');
+};
+
+/**
+ * 获取数据管理菜单(固定菜单,也可改为接口获取)
+ * @returns {Promise}
+ */
+export const getDataManageMenu = () => {
+ return get('/workbench/dataManage');
+};
+
+/**
+ * 获取行道树档案列表(分页)
+ * @param {Object} params {pageNo, pageSize}
+ * @returns {Promise}
+ */
+export const getTreeArchiveList = (params) => {
+ return get('/workbench/treeArchive', params);
+};
\ No newline at end of file
diff --git a/common/config/env.js b/common/config/env.js
new file mode 100644
index 0000000..7a23172
--- /dev/null
+++ b/common/config/env.js
@@ -0,0 +1,29 @@
+// 环境配置 - 确保无语法错误
+const env = {
+ // 开发环境
+ development: {
+ baseUrl: 'https://test.jichengshanshui.com.cn:28302',
+ uploadUrl: 'https://test.jichengshanshui.com.cn:28302',
+ // baseApi:'admin-api',
+ // appApi:'app-api'
+ },
+ // 生产环境
+ production: {
+ baseUrl: 'https://api.jcss.com',
+ uploadUrl: 'https://upload.jcss.com/upload',
+ // baseApi:'admin-api',
+ // appApi:'app-api'
+ }
+};
+
+// 获取当前环境
+const getEnv = () => {
+
+ const currentEnv = 'development';
+
+ return currentEnv;
+};
+
+// 导出当前环境配置(关键:补全分号,避免语法错误)
+const currentEnvConfig = env[getEnv()];
+export default currentEnvConfig;
\ No newline at end of file
diff --git a/common/config/global.js b/common/config/global.js
new file mode 100644
index 0000000..668c159
--- /dev/null
+++ b/common/config/global.js
@@ -0,0 +1,30 @@
+import env from './env';
+
+export default {
+ api: {
+ baseUrl: env.baseUrl,
+ uploadUrl: env.uploadUrl,
+ // baseApi: env.baseApi || 'admin-api', // 默认前缀:admin-api
+ // appApi: env.appApi || 'app-api', // 特殊前缀:app-api
+ timeout: 10000,
+ tokenKey: 'jcss_token'
+ },
+ router: {
+ loginPath: '/pages/login/index',
+ tabBarList: [
+ { path: '/pages/index/index', name: '首页' },
+ { path: '/pages/workbench/index', name: '工作台' },
+ { path: '/pages/mine/index', name: '我的' }
+ ]
+ },
+ cache: {
+ userInfoKey: 'jcss_user_info',
+ tokenKey: 'jcss_token',
+ expireTimeKey: 'jcss_token_expire',
+ userIdKey:'jcss_user_id',
+ moduleListKey:'jcss_module_list',
+
+ },
+ appName: 'JCSS管理系统',
+ tokenExpireTime: 7 * 24 * 60 * 60 * 1000
+};
\ No newline at end of file
diff --git a/common/mixins/authMixin.js b/common/mixins/authMixin.js
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/common/mixins/authMixin.js
diff --git a/common/utils/cache.js b/common/utils/cache.js
new file mode 100644
index 0000000..30d03cb
--- /dev/null
+++ b/common/utils/cache.js
@@ -0,0 +1,30 @@
+export default {
+ set(key, value, expire = 0) {
+ const data = {
+ value,
+ expire: expire ? Date.now() + expire : 0
+ };
+ uni.setStorageSync(key, JSON.stringify(data));
+ },
+
+ get(key) {
+ try {
+ const data = JSON.parse(uni.getStorageSync(key));
+ if (data.expire && data.expire < Date.now()) {
+ this.remove(key);
+ return null;
+ }
+ return data.value;
+ } catch (e) {
+ return null;
+ }
+ },
+
+ remove(key) {
+ uni.removeStorageSync(key);
+ },
+
+ clear() {
+ uni.clearStorageSync();
+ }
+};
\ No newline at end of file
diff --git a/common/utils/common.js b/common/utils/common.js
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/common/utils/common.js
diff --git a/common/utils/debounce.js b/common/utils/debounce.js
new file mode 100644
index 0000000..a9688d6
--- /dev/null
+++ b/common/utils/debounce.js
@@ -0,0 +1,18 @@
+export function debounce(fn, delay = 500) {
+ let timer = null;
+ return function (...args) {
+ if (timer) clearTimeout(timer);
+ timer = setTimeout(() => fn.apply(this, args), delay);
+ };
+}
+
+export function throttle(fn, interval = 500) {
+ let lastTime = 0;
+ return function (...args) {
+ const now = Date.now();
+ if (now - lastTime >= interval) {
+ fn.apply(this, args);
+ lastTime = now;
+ }
+ };
+}
\ No newline at end of file
diff --git a/common/utils/request.js b/common/utils/request.js
new file mode 100644
index 0000000..8e95448
--- /dev/null
+++ b/common/utils/request.js
@@ -0,0 +1,64 @@
+import globalConfig from '@/common/config/global';
+import cache from '@/common/utils/cache';
+import { useUserStore } from '@/pinia/user';
+
+const request = (options) => {
+ const defaultOptions = {
+ url: '',
+ method: 'GET',
+ data: {},
+ header: { 'Content-Type': 'application/json' },
+ timeout: globalConfig.api.timeout
+ };
+
+ const opts = { ...defaultOptions, ...options };
+ let token = '';
+ try {
+ const userStore = useUserStore();
+ token = userStore.token || cache.get(globalConfig.cache.tokenKey);
+ } catch (err) {
+ token = cache.get(globalConfig.cache.tokenKey);
+ }
+
+ if (token) {
+ opts.header['Authorization'] = `Bearer ${token}`;
+ }
+
+ opts.url = globalConfig.api.baseUrl + opts.url;
+
+ return new Promise((resolve, reject) => {
+ uni.request({
+ ...opts,
+ success: (res) => {
+ if (res.statusCode === 200) {
+ const { code, data, msg } = res.data;
+ if (code === 0) {
+ resolve(data);
+ } else if (code === 401) {
+ const userStore = useUserStore();
+ userStore.logout();
+ uni.showToast({ title: msg || '登录过期', icon: 'none' });
+ reject(res.data);
+ } else {
+ uni.showToast({ title: msg || '请求失败', icon: 'none' });
+ reject(res.data);
+ }
+ } else {
+ uni.showToast({ title: `错误:${res.statusCode}`, icon: 'none' });
+ reject(res);
+ }
+ },
+ fail: (err) => {
+ uni.showToast({ title: '网络失败', icon: 'none' });
+ reject(err);
+ }
+ });
+ });
+};
+
+export const get = (url, data = {}, options = {}) => request({ url, method: 'GET', data, ...options });
+export const post = (url, data = {}, options = {}) => request({ url, method: 'POST', data, ...options });
+export const put = (url, data = {}, options = {}) => request({ url, method: 'PUT', data, ...options });
+export const del = (url, data = {}, options = {}) => request({ url, method: 'DELETE', data, ...options });
+
+export default request;
\ No newline at end of file
diff --git a/common/utils/upload.js b/common/utils/upload.js
new file mode 100644
index 0000000..f54da21
--- /dev/null
+++ b/common/utils/upload.js
@@ -0,0 +1,68 @@
+import globalConfig from '@/common/config/global';
+import cache from '@/common/utils/cache';
+
+export const uploadImages = (files, options = {}) => {
+ const opts = { count: 9, sizeType: ['original', 'compressed'], sourceType: ['album', 'camera'], showLoading: true, ...options };
+ const token = cache.get(globalConfig.cache.tokenKey);
+
+ if (!token) {
+ uni.showToast({ title: '请先登录', icon: 'none' });
+ return Promise.reject('未登录');
+ }
+
+ if (files.length > opts.count) {
+ uni.showToast({ title: `最多上传${opts.count}张`, icon: 'none' });
+ return Promise.reject('超出数量');
+ }
+
+ if (opts.showLoading) uni.showLoading({ title: '上传中...' });
+
+ const uploadPromises = files.map(filePath => {
+ return new Promise((resolve, reject) => {
+ uni.uploadFile({
+ url: globalConfig.api.uploadUrl,
+ filePath,
+ name: 'file',
+ header: { 'Authorization': `Bearer ${token}` },
+ formData: opts.formData || {},
+ success: (res) => {
+ const data = JSON.parse(res.data);
+ if (data.code === 200) resolve(data.data);
+ else {
+ uni.showToast({ title: data.msg || '上传失败', icon: 'none' });
+ reject(data);
+ }
+ },
+ fail: (err) => {
+ uni.showToast({ title: '上传失败', icon: 'none' });
+ reject(err);
+ }
+ });
+ });
+ });
+
+ return Promise.all(uploadPromises)
+ .then(results => {
+ if (opts.showLoading) uni.hideLoading();
+ return results;
+ })
+ .catch(err => {
+ if (opts.showLoading) uni.hideLoading();
+ return Promise.reject(err);
+ });
+};
+
+export const chooseAndUploadImages = (options = {}) => {
+ const opts = { count: 9, sizeType: ['original', 'compressed'], sourceType: ['album', 'camera'], ...options };
+ return new Promise((resolve, reject) => {
+ uni.chooseImage({
+ count: opts.count,
+ sizeType: opts.sizeType,
+ sourceType: opts.sourceType,
+ success: (res) => {
+ uploadImages(res.tempFilePaths, opts).then(resolve).catch(reject);
+ },
+ fail: reject
+ });
+ });
+};
\ No newline at end of file
diff --git a/common/utils/validate.js b/common/utils/validate.js
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/common/utils/validate.js
diff --git a/components/upload-image/upload-image.vue b/components/upload-image/upload-image.vue
new file mode 100644
index 0000000..262c640
--- /dev/null
+++ b/components/upload-image/upload-image.vue
@@ -0,0 +1,62 @@
+
+
+
+
+
+
+
+
+
+
+
+ 上传图片
+
+
+ {{ tips }}
+
+
+
+
+
+
\ No newline at end of file
diff --git a/index.html b/index.html
new file mode 100644
index 0000000..c3ff205
--- /dev/null
+++ b/index.html
@@ -0,0 +1,20 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/main.js b/main.js
new file mode 100644
index 0000000..37b9f44
--- /dev/null
+++ b/main.js
@@ -0,0 +1,26 @@
+// 1. 先导入必要依赖(注意顺序)
+import App from './App'
+import uviewPlus from '@/uni_modules/uview-plus'
+// 导入 Pinia 实例(你的 stores/index.js 导出的 pinia)
+import pinia from '@/pinia/index'
+
+// #ifdef VUE3
+import { createSSRApp } from 'vue'
+
+export function createApp() {
+ // 2. 创建 Vue 实例
+ const app = createSSRApp(App)
+
+ // 3. 注册 uviewPlus(保持原有逻辑)
+ app.use(uviewPlus)
+
+ // 4. 注册 Pinia(核心:在 app 挂载前注册)
+ app.use(pinia)
+
+ // 5. 返回 app + pinia(可选,便于调试)
+ return {
+ app,
+ pinia
+ }
+}
+// #endif
\ No newline at end of file
diff --git a/manifest.json b/manifest.json
new file mode 100644
index 0000000..64e25ce
--- /dev/null
+++ b/manifest.json
@@ -0,0 +1,74 @@
+{
+ "name" : "jcss-miniprogram",
+ "appid" : "__UNI__0CFF50D",
+ "description" : "",
+ "versionName" : "1.0.0",
+ "versionCode" : "100",
+ "transformPx" : false,
+ /* 5+App特有相关 */
+ "app-plus" : {
+ "usingComponents" : true,
+ "nvueStyleCompiler" : "uni-app",
+ "compilerVersion" : 3,
+ "splashscreen" : {
+ "alwaysShowBeforeRender" : true,
+ "waiting" : true,
+ "autoclose" : true,
+ "delay" : 0
+ },
+ /* 模块配置 */
+ "modules" : {},
+ /* 应用发布信息 */
+ "distribute" : {
+ /* android打包配置 */
+ "android" : {
+ "permissions" : [
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ ""
+ ]
+ },
+ /* ios打包配置 */
+ "ios" : {},
+ /* SDK配置 */
+ "sdkConfigs" : {}
+ }
+ },
+ /* 快应用特有相关 */
+ "quickapp" : {},
+ /* 小程序特有相关 */
+ "mp-weixin" : {
+ "appid" : "wxcb4cd34066b97d82",
+ "setting" : {
+ "urlCheck" : false
+ },
+ "usingComponents" : true,
+ "mergeVirtualHostAttributes" : true
+ },
+ "mp-alipay" : {
+ "usingComponents" : true
+ },
+ "mp-baidu" : {
+ "usingComponents" : true
+ },
+ "mp-toutiao" : {
+ "usingComponents" : true,
+ "mergeVirtualHostAttributes" : true
+ },
+ "uniStatistics" : {
+ "enable" : false
+ },
+ "vueVersion" : "3"
+}
diff --git a/package-lock.json b/package-lock.json
new file mode 100644
index 0000000..cb51010
--- /dev/null
+++ b/package-lock.json
@@ -0,0 +1,664 @@
+{
+ "name": "jcss-miniprogram",
+ "lockfileVersion": 3,
+ "requires": true,
+ "packages": {
+ "": {
+ "dependencies": {
+ "clipboard": "^2.0.11",
+ "dayjs": "^1.11.19",
+ "pinia-plugin-persistedstate": "^4.7.1",
+ "vue": "^3.5.25"
+ },
+ "devDependencies": {
+ "rollup-plugin-visualizer": "^6.0.5"
+ }
+ },
+ "node_modules/@babel/helper-string-parser": {
+ "version": "7.27.1",
+ "resolved": "https://registry.npmmirror.com/@babel/helper-string-parser/-/helper-string-parser-7.27.1.tgz",
+ "integrity": "sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-validator-identifier": {
+ "version": "7.28.5",
+ "resolved": "https://registry.npmmirror.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.28.5.tgz",
+ "integrity": "sha512-qSs4ifwzKJSV39ucNjsvc6WVHs6b7S03sOh2OcHF9UHfVPqWWALUsNUVzhSBiItjRZoLHx7nIarVjqKVusUZ1Q==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/parser": {
+ "version": "7.28.5",
+ "resolved": "https://registry.npmmirror.com/@babel/parser/-/parser-7.28.5.tgz",
+ "integrity": "sha512-KKBU1VGYR7ORr3At5HAtUQ+TV3SzRCXmA/8OdDZiLDBIZxVyzXuztPjfLd3BV1PRAQGCMWWSHYhL0F8d5uHBDQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@babel/types": "^7.28.5"
+ },
+ "bin": {
+ "parser": "bin/babel-parser.js"
+ },
+ "engines": {
+ "node": ">=6.0.0"
+ }
+ },
+ "node_modules/@babel/types": {
+ "version": "7.28.5",
+ "resolved": "https://registry.npmmirror.com/@babel/types/-/types-7.28.5.tgz",
+ "integrity": "sha512-qQ5m48eI/MFLQ5PxQj4PFaprjyCTLI37ElWMmNs0K8Lk3dVeOdNpB3ks8jc7yM5CDmVC73eMVk/trk3fgmrUpA==",
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-string-parser": "^7.27.1",
+ "@babel/helper-validator-identifier": "^7.28.5"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@jridgewell/sourcemap-codec": {
+ "version": "1.5.5",
+ "resolved": "https://registry.npmmirror.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz",
+ "integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==",
+ "license": "MIT"
+ },
+ "node_modules/@vue/compiler-core": {
+ "version": "3.5.25",
+ "resolved": "https://registry.npmmirror.com/@vue/compiler-core/-/compiler-core-3.5.25.tgz",
+ "integrity": "sha512-vay5/oQJdsNHmliWoZfHPoVZZRmnSWhug0BYT34njkYTPqClh3DNWLkZNJBVSjsNMrg0CCrBfoKkjZQPM/QVUw==",
+ "license": "MIT",
+ "dependencies": {
+ "@babel/parser": "^7.28.5",
+ "@vue/shared": "3.5.25",
+ "entities": "^4.5.0",
+ "estree-walker": "^2.0.2",
+ "source-map-js": "^1.2.1"
+ }
+ },
+ "node_modules/@vue/compiler-dom": {
+ "version": "3.5.25",
+ "resolved": "https://registry.npmmirror.com/@vue/compiler-dom/-/compiler-dom-3.5.25.tgz",
+ "integrity": "sha512-4We0OAcMZsKgYoGlMjzYvaoErltdFI2/25wqanuTu+S4gismOTRTBPi4IASOjxWdzIwrYSjnqONfKvuqkXzE2Q==",
+ "license": "MIT",
+ "dependencies": {
+ "@vue/compiler-core": "3.5.25",
+ "@vue/shared": "3.5.25"
+ }
+ },
+ "node_modules/@vue/compiler-sfc": {
+ "version": "3.5.25",
+ "resolved": "https://registry.npmmirror.com/@vue/compiler-sfc/-/compiler-sfc-3.5.25.tgz",
+ "integrity": "sha512-PUgKp2rn8fFsI++lF2sO7gwO2d9Yj57Utr5yEsDf3GNaQcowCLKL7sf+LvVFvtJDXUp/03+dC6f2+LCv5aK1ag==",
+ "license": "MIT",
+ "dependencies": {
+ "@babel/parser": "^7.28.5",
+ "@vue/compiler-core": "3.5.25",
+ "@vue/compiler-dom": "3.5.25",
+ "@vue/compiler-ssr": "3.5.25",
+ "@vue/shared": "3.5.25",
+ "estree-walker": "^2.0.2",
+ "magic-string": "^0.30.21",
+ "postcss": "^8.5.6",
+ "source-map-js": "^1.2.1"
+ }
+ },
+ "node_modules/@vue/compiler-ssr": {
+ "version": "3.5.25",
+ "resolved": "https://registry.npmmirror.com/@vue/compiler-ssr/-/compiler-ssr-3.5.25.tgz",
+ "integrity": "sha512-ritPSKLBcParnsKYi+GNtbdbrIE1mtuFEJ4U1sWeuOMlIziK5GtOL85t5RhsNy4uWIXPgk+OUdpnXiTdzn8o3A==",
+ "license": "MIT",
+ "dependencies": {
+ "@vue/compiler-dom": "3.5.25",
+ "@vue/shared": "3.5.25"
+ }
+ },
+ "node_modules/@vue/reactivity": {
+ "version": "3.5.25",
+ "resolved": "https://registry.npmmirror.com/@vue/reactivity/-/reactivity-3.5.25.tgz",
+ "integrity": "sha512-5xfAypCQepv4Jog1U4zn8cZIcbKKFka3AgWHEFQeK65OW+Ys4XybP6z2kKgws4YB43KGpqp5D/K3go2UPPunLA==",
+ "license": "MIT",
+ "dependencies": {
+ "@vue/shared": "3.5.25"
+ }
+ },
+ "node_modules/@vue/runtime-core": {
+ "version": "3.5.25",
+ "resolved": "https://registry.npmmirror.com/@vue/runtime-core/-/runtime-core-3.5.25.tgz",
+ "integrity": "sha512-Z751v203YWwYzy460bzsYQISDfPjHTl+6Zzwo/a3CsAf+0ccEjQ8c+0CdX1WsumRTHeywvyUFtW6KvNukT/smA==",
+ "license": "MIT",
+ "dependencies": {
+ "@vue/reactivity": "3.5.25",
+ "@vue/shared": "3.5.25"
+ }
+ },
+ "node_modules/@vue/runtime-dom": {
+ "version": "3.5.25",
+ "resolved": "https://registry.npmmirror.com/@vue/runtime-dom/-/runtime-dom-3.5.25.tgz",
+ "integrity": "sha512-a4WrkYFbb19i9pjkz38zJBg8wa/rboNERq3+hRRb0dHiJh13c+6kAbgqCPfMaJ2gg4weWD3APZswASOfmKwamA==",
+ "license": "MIT",
+ "dependencies": {
+ "@vue/reactivity": "3.5.25",
+ "@vue/runtime-core": "3.5.25",
+ "@vue/shared": "3.5.25",
+ "csstype": "^3.1.3"
+ }
+ },
+ "node_modules/@vue/server-renderer": {
+ "version": "3.5.25",
+ "resolved": "https://registry.npmmirror.com/@vue/server-renderer/-/server-renderer-3.5.25.tgz",
+ "integrity": "sha512-UJaXR54vMG61i8XNIzTSf2Q7MOqZHpp8+x3XLGtE3+fL+nQd+k7O5+X3D/uWrnQXOdMw5VPih+Uremcw+u1woQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@vue/compiler-ssr": "3.5.25",
+ "@vue/shared": "3.5.25"
+ },
+ "peerDependencies": {
+ "vue": "3.5.25"
+ }
+ },
+ "node_modules/@vue/shared": {
+ "version": "3.5.25",
+ "resolved": "https://registry.npmmirror.com/@vue/shared/-/shared-3.5.25.tgz",
+ "integrity": "sha512-AbOPdQQnAnzs58H2FrrDxYj/TJfmeS2jdfEEhgiKINy+bnOANmVizIEgq1r+C5zsbs6l1CCQxtcj71rwNQ4jWg==",
+ "license": "MIT"
+ },
+ "node_modules/ansi-regex": {
+ "version": "5.0.1",
+ "resolved": "https://registry.npmmirror.com/ansi-regex/-/ansi-regex-5.0.1.tgz",
+ "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/ansi-styles": {
+ "version": "4.3.0",
+ "resolved": "https://registry.npmmirror.com/ansi-styles/-/ansi-styles-4.3.0.tgz",
+ "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "color-convert": "^2.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/ansi-styles?sponsor=1"
+ }
+ },
+ "node_modules/clipboard": {
+ "version": "2.0.11",
+ "resolved": "https://registry.npmmirror.com/clipboard/-/clipboard-2.0.11.tgz",
+ "integrity": "sha512-C+0bbOqkezLIsmWSvlsXS0Q0bmkugu7jcfMIACB+RDEntIzQIkdr148we28AfSloQLRdZlYL/QYyrq05j/3Faw==",
+ "license": "MIT",
+ "dependencies": {
+ "good-listener": "^1.2.2",
+ "select": "^1.1.2",
+ "tiny-emitter": "^2.0.0"
+ }
+ },
+ "node_modules/cliui": {
+ "version": "8.0.1",
+ "resolved": "https://registry.npmmirror.com/cliui/-/cliui-8.0.1.tgz",
+ "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "string-width": "^4.2.0",
+ "strip-ansi": "^6.0.1",
+ "wrap-ansi": "^7.0.0"
+ },
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/color-convert": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmmirror.com/color-convert/-/color-convert-2.0.1.tgz",
+ "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "color-name": "~1.1.4"
+ },
+ "engines": {
+ "node": ">=7.0.0"
+ }
+ },
+ "node_modules/color-name": {
+ "version": "1.1.4",
+ "resolved": "https://registry.npmmirror.com/color-name/-/color-name-1.1.4.tgz",
+ "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/csstype": {
+ "version": "3.2.3",
+ "resolved": "https://registry.npmmirror.com/csstype/-/csstype-3.2.3.tgz",
+ "integrity": "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==",
+ "license": "MIT"
+ },
+ "node_modules/dayjs": {
+ "version": "1.11.19",
+ "resolved": "https://registry.npmmirror.com/dayjs/-/dayjs-1.11.19.tgz",
+ "integrity": "sha512-t5EcLVS6QPBNqM2z8fakk/NKel+Xzshgt8FFKAn+qwlD1pzZWxh0nVCrvFK7ZDb6XucZeF9z8C7CBWTRIVApAw==",
+ "license": "MIT"
+ },
+ "node_modules/define-lazy-prop": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmmirror.com/define-lazy-prop/-/define-lazy-prop-2.0.0.tgz",
+ "integrity": "sha512-Ds09qNh8yw3khSjiJjiUInaGX9xlqZDY7JVryGxdxV7NPeuqQfplOpQ66yJFZut3jLa5zOwkXw1g9EI2uKh4Og==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/defu": {
+ "version": "6.1.4",
+ "resolved": "https://registry.npmmirror.com/defu/-/defu-6.1.4.tgz",
+ "integrity": "sha512-mEQCMmwJu317oSz8CwdIOdwf3xMif1ttiM8LTufzc3g6kR+9Pe236twL8j3IYT1F7GfRgGcW6MWxzZjLIkuHIg==",
+ "license": "MIT"
+ },
+ "node_modules/delegate": {
+ "version": "3.2.0",
+ "resolved": "https://registry.npmmirror.com/delegate/-/delegate-3.2.0.tgz",
+ "integrity": "sha512-IofjkYBZaZivn0V8nnsMJGBr4jVLxHDheKSW88PyxS5QC4Vo9ZbZVvhzlSxY87fVq3STR6r+4cGepyHkcWOQSw==",
+ "license": "MIT"
+ },
+ "node_modules/emoji-regex": {
+ "version": "8.0.0",
+ "resolved": "https://registry.npmmirror.com/emoji-regex/-/emoji-regex-8.0.0.tgz",
+ "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/entities": {
+ "version": "4.5.0",
+ "resolved": "https://registry.npmmirror.com/entities/-/entities-4.5.0.tgz",
+ "integrity": "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==",
+ "license": "BSD-2-Clause",
+ "engines": {
+ "node": ">=0.12"
+ },
+ "funding": {
+ "url": "https://github.com/fb55/entities?sponsor=1"
+ }
+ },
+ "node_modules/escalade": {
+ "version": "3.2.0",
+ "resolved": "https://registry.npmmirror.com/escalade/-/escalade-3.2.0.tgz",
+ "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/estree-walker": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmmirror.com/estree-walker/-/estree-walker-2.0.2.tgz",
+ "integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==",
+ "license": "MIT"
+ },
+ "node_modules/get-caller-file": {
+ "version": "2.0.5",
+ "resolved": "https://registry.npmmirror.com/get-caller-file/-/get-caller-file-2.0.5.tgz",
+ "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==",
+ "dev": true,
+ "license": "ISC",
+ "engines": {
+ "node": "6.* || 8.* || >= 10.*"
+ }
+ },
+ "node_modules/good-listener": {
+ "version": "1.2.2",
+ "resolved": "https://registry.npmmirror.com/good-listener/-/good-listener-1.2.2.tgz",
+ "integrity": "sha512-goW1b+d9q/HIwbVYZzZ6SsTr4IgE+WA44A0GmPIQstuOrgsFcT7VEJ48nmr9GaRtNu0XTKacFLGnBPAM6Afouw==",
+ "license": "MIT",
+ "dependencies": {
+ "delegate": "^3.1.2"
+ }
+ },
+ "node_modules/is-docker": {
+ "version": "2.2.1",
+ "resolved": "https://registry.npmmirror.com/is-docker/-/is-docker-2.2.1.tgz",
+ "integrity": "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==",
+ "dev": true,
+ "license": "MIT",
+ "bin": {
+ "is-docker": "cli.js"
+ },
+ "engines": {
+ "node": ">=8"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/is-fullwidth-code-point": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmmirror.com/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",
+ "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/is-wsl": {
+ "version": "2.2.0",
+ "resolved": "https://registry.npmmirror.com/is-wsl/-/is-wsl-2.2.0.tgz",
+ "integrity": "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-docker": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/magic-string": {
+ "version": "0.30.21",
+ "resolved": "https://registry.npmmirror.com/magic-string/-/magic-string-0.30.21.tgz",
+ "integrity": "sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@jridgewell/sourcemap-codec": "^1.5.5"
+ }
+ },
+ "node_modules/nanoid": {
+ "version": "3.3.11",
+ "resolved": "https://registry.npmmirror.com/nanoid/-/nanoid-3.3.11.tgz",
+ "integrity": "sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==",
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ai"
+ }
+ ],
+ "license": "MIT",
+ "bin": {
+ "nanoid": "bin/nanoid.cjs"
+ },
+ "engines": {
+ "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1"
+ }
+ },
+ "node_modules/open": {
+ "version": "8.4.2",
+ "resolved": "https://registry.npmmirror.com/open/-/open-8.4.2.tgz",
+ "integrity": "sha512-7x81NCL719oNbsq/3mh+hVrAWmFuEYUqrq/Iw3kUzH8ReypT9QQ0BLoJS7/G9k6N81XjW4qHWtjWwe/9eLy1EQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "define-lazy-prop": "^2.0.0",
+ "is-docker": "^2.1.1",
+ "is-wsl": "^2.2.0"
+ },
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/picocolors": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmmirror.com/picocolors/-/picocolors-1.1.1.tgz",
+ "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==",
+ "license": "ISC"
+ },
+ "node_modules/picomatch": {
+ "version": "4.0.3",
+ "resolved": "https://registry.npmmirror.com/picomatch/-/picomatch-4.0.3.tgz",
+ "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/jonschlinkert"
+ }
+ },
+ "node_modules/pinia-plugin-persistedstate": {
+ "version": "4.7.1",
+ "resolved": "https://registry.npmmirror.com/pinia-plugin-persistedstate/-/pinia-plugin-persistedstate-4.7.1.tgz",
+ "integrity": "sha512-WHOqh2esDlR3eAaknPbqXrkkj0D24h8shrDPqysgCFR6ghqP/fpFfJmMPJp0gETHsvrh9YNNg6dQfo2OEtDnIQ==",
+ "license": "MIT",
+ "dependencies": {
+ "defu": "^6.1.4"
+ },
+ "peerDependencies": {
+ "@nuxt/kit": ">=3.0.0",
+ "@pinia/nuxt": ">=0.10.0",
+ "pinia": ">=3.0.0"
+ },
+ "peerDependenciesMeta": {
+ "@nuxt/kit": {
+ "optional": true
+ },
+ "@pinia/nuxt": {
+ "optional": true
+ },
+ "pinia": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/postcss": {
+ "version": "8.5.6",
+ "resolved": "https://registry.npmmirror.com/postcss/-/postcss-8.5.6.tgz",
+ "integrity": "sha512-3Ybi1tAuwAP9s0r1UQ2J4n5Y0G05bJkpUIO0/bI9MhwmD70S5aTWbXGBwxHrelT+XM1k6dM0pk+SwNkpTRN7Pg==",
+ "funding": [
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/postcss/"
+ },
+ {
+ "type": "tidelift",
+ "url": "https://tidelift.com/funding/github/npm/postcss"
+ },
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ai"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "nanoid": "^3.3.11",
+ "picocolors": "^1.1.1",
+ "source-map-js": "^1.2.1"
+ },
+ "engines": {
+ "node": "^10 || ^12 || >=14"
+ }
+ },
+ "node_modules/require-directory": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmmirror.com/require-directory/-/require-directory-2.1.1.tgz",
+ "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/rollup-plugin-visualizer": {
+ "version": "6.0.5",
+ "resolved": "https://registry.npmmirror.com/rollup-plugin-visualizer/-/rollup-plugin-visualizer-6.0.5.tgz",
+ "integrity": "sha512-9+HlNgKCVbJDs8tVtjQ43US12eqaiHyyiLMdBwQ7vSZPiHMysGNo2E88TAp1si5wx8NAoYriI2A5kuKfIakmJg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "open": "^8.0.0",
+ "picomatch": "^4.0.2",
+ "source-map": "^0.7.4",
+ "yargs": "^17.5.1"
+ },
+ "bin": {
+ "rollup-plugin-visualizer": "dist/bin/cli.js"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "peerDependencies": {
+ "rolldown": "1.x || ^1.0.0-beta",
+ "rollup": "2.x || 3.x || 4.x"
+ },
+ "peerDependenciesMeta": {
+ "rolldown": {
+ "optional": true
+ },
+ "rollup": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/select": {
+ "version": "1.1.2",
+ "resolved": "https://registry.npmmirror.com/select/-/select-1.1.2.tgz",
+ "integrity": "sha512-OwpTSOfy6xSs1+pwcNrv0RBMOzI39Lp3qQKUTPVVPRjCdNa5JH/oPRiqsesIskK8TVgmRiHwO4KXlV2Li9dANA==",
+ "license": "MIT"
+ },
+ "node_modules/source-map": {
+ "version": "0.7.6",
+ "resolved": "https://registry.npmmirror.com/source-map/-/source-map-0.7.6.tgz",
+ "integrity": "sha512-i5uvt8C3ikiWeNZSVZNWcfZPItFQOsYTUAOkcUPGd8DqDy1uOUikjt5dG+uRlwyvR108Fb9DOd4GvXfT0N2/uQ==",
+ "dev": true,
+ "license": "BSD-3-Clause",
+ "engines": {
+ "node": ">= 12"
+ }
+ },
+ "node_modules/source-map-js": {
+ "version": "1.2.1",
+ "resolved": "https://registry.npmmirror.com/source-map-js/-/source-map-js-1.2.1.tgz",
+ "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==",
+ "license": "BSD-3-Clause",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/string-width": {
+ "version": "4.2.3",
+ "resolved": "https://registry.npmmirror.com/string-width/-/string-width-4.2.3.tgz",
+ "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "emoji-regex": "^8.0.0",
+ "is-fullwidth-code-point": "^3.0.0",
+ "strip-ansi": "^6.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/strip-ansi": {
+ "version": "6.0.1",
+ "resolved": "https://registry.npmmirror.com/strip-ansi/-/strip-ansi-6.0.1.tgz",
+ "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ansi-regex": "^5.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/tiny-emitter": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmmirror.com/tiny-emitter/-/tiny-emitter-2.1.0.tgz",
+ "integrity": "sha512-NB6Dk1A9xgQPMoGqC5CVXn123gWyte215ONT5Pp5a0yt4nlEoO1ZWeCwpncaekPHXO60i47ihFnZPiRPjRMq4Q==",
+ "license": "MIT"
+ },
+ "node_modules/vue": {
+ "version": "3.5.25",
+ "resolved": "https://registry.npmmirror.com/vue/-/vue-3.5.25.tgz",
+ "integrity": "sha512-YLVdgv2K13WJ6n+kD5owehKtEXwdwXuj2TTyJMsO7pSeKw2bfRNZGjhB7YzrpbMYj5b5QsUebHpOqR3R3ziy/g==",
+ "license": "MIT",
+ "dependencies": {
+ "@vue/compiler-dom": "3.5.25",
+ "@vue/compiler-sfc": "3.5.25",
+ "@vue/runtime-dom": "3.5.25",
+ "@vue/server-renderer": "3.5.25",
+ "@vue/shared": "3.5.25"
+ },
+ "peerDependencies": {
+ "typescript": "*"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/wrap-ansi": {
+ "version": "7.0.0",
+ "resolved": "https://registry.npmmirror.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz",
+ "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ansi-styles": "^4.0.0",
+ "string-width": "^4.1.0",
+ "strip-ansi": "^6.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/wrap-ansi?sponsor=1"
+ }
+ },
+ "node_modules/y18n": {
+ "version": "5.0.8",
+ "resolved": "https://registry.npmmirror.com/y18n/-/y18n-5.0.8.tgz",
+ "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==",
+ "dev": true,
+ "license": "ISC",
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/yargs": {
+ "version": "17.7.2",
+ "resolved": "https://registry.npmmirror.com/yargs/-/yargs-17.7.2.tgz",
+ "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "cliui": "^8.0.1",
+ "escalade": "^3.1.1",
+ "get-caller-file": "^2.0.5",
+ "require-directory": "^2.1.1",
+ "string-width": "^4.2.3",
+ "y18n": "^5.0.5",
+ "yargs-parser": "^21.1.1"
+ },
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/yargs-parser": {
+ "version": "21.1.1",
+ "resolved": "https://registry.npmmirror.com/yargs-parser/-/yargs-parser-21.1.1.tgz",
+ "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==",
+ "dev": true,
+ "license": "ISC",
+ "engines": {
+ "node": ">=12"
+ }
+ }
+ }
+}
diff --git a/package.json b/package.json
new file mode 100644
index 0000000..fe96248
--- /dev/null
+++ b/package.json
@@ -0,0 +1,11 @@
+{
+ "dependencies": {
+ "clipboard": "^2.0.11",
+ "dayjs": "^1.11.19",
+ "pinia-plugin-persistedstate": "^4.7.1",
+ "vue": "^3.5.25"
+ },
+ "devDependencies": {
+ "rollup-plugin-visualizer": "^6.0.5"
+ }
+}
diff --git a/pages-sub/daily/12345-order/index.vue b/pages-sub/daily/12345-order/index.vue
new file mode 100644
index 0000000..96c0baf
--- /dev/null
+++ b/pages-sub/daily/12345-order/index.vue
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages-sub/daily/maintain-manage/index.vue b/pages-sub/daily/maintain-manage/index.vue
new file mode 100644
index 0000000..96c0baf
--- /dev/null
+++ b/pages-sub/daily/maintain-manage/index.vue
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages-sub/daily/patrol-plan/index.vue b/pages-sub/daily/patrol-plan/index.vue
new file mode 100644
index 0000000..fc341c1
--- /dev/null
+++ b/pages-sub/daily/patrol-plan/index.vue
@@ -0,0 +1,263 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 道路名称:
+ {{ item.roadName }}
+
+
+
+ 所属街道:
+ {{ item.street }}
+
+
+
+
+ 养护级别:
+ {{ item.maintainLevel }}
+
+ 计划明细
+
+
+
+ 计划类型:
+ {{ item.planType }}
+
+
+
+ 计划时间:
+ {{ item.planTime }}
+
+
+
+
+
+
+
+
+ 暂无相关计划数据
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages-sub/daily/quick-order/index.vue b/pages-sub/daily/quick-order/index.vue
new file mode 100644
index 0000000..96c0baf
--- /dev/null
+++ b/pages-sub/daily/quick-order/index.vue
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages-sub/daily/work-order/index.vue b/pages-sub/daily/work-order/index.vue
new file mode 100644
index 0000000..96c0baf
--- /dev/null
+++ b/pages-sub/daily/work-order/index.vue
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages-sub/data/base-data/index.vue b/pages-sub/data/base-data/index.vue
new file mode 100644
index 0000000..96c0baf
--- /dev/null
+++ b/pages-sub/data/base-data/index.vue
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages-sub/data/personnel-manage/index.vue b/pages-sub/data/personnel-manage/index.vue
new file mode 100644
index 0000000..96c0baf
--- /dev/null
+++ b/pages-sub/data/personnel-manage/index.vue
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages-sub/data/personnel-track/index.vue b/pages-sub/data/personnel-track/index.vue
new file mode 100644
index 0000000..96c0baf
--- /dev/null
+++ b/pages-sub/data/personnel-track/index.vue
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages-sub/data/tree-archive/index.vue b/pages-sub/data/tree-archive/index.vue
new file mode 100644
index 0000000..96c0baf
--- /dev/null
+++ b/pages-sub/data/tree-archive/index.vue
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages-sub/problem/order-manage/index.vue b/pages-sub/problem/order-manage/index.vue
new file mode 100644
index 0000000..96c0baf
--- /dev/null
+++ b/pages-sub/problem/order-manage/index.vue
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages-sub/problem/problem-allot/index.vue b/pages-sub/problem/problem-allot/index.vue
new file mode 100644
index 0000000..96c0baf
--- /dev/null
+++ b/pages-sub/problem/problem-allot/index.vue
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages.json b/pages.json
new file mode 100644
index 0000000..9c1e5ab
--- /dev/null
+++ b/pages.json
@@ -0,0 +1,143 @@
+{
+ "pages": [
+ {
+ "path": "pages/login/index",
+ "style": {
+ "navigationBarTitleText": "登录"
+ }
+ },
+ {
+ "path": "pages/index/index",
+ "style": {
+ "navigationBarTitleText": "首页"
+ }
+ },
+ {
+ "path": "pages/workbench/index",
+ "style": {
+ "navigationBarTitleText": "工作台"
+ }
+ },
+ {
+ "path": "pages/mine/index",
+ "style": {
+ "navigationBarTitleText": "我的"
+ }
+ }
+ ],
+ "subPackages": [
+ {
+ "root": "pages-sub/daily",
+ "pages": [
+ {
+ "path": "patrol-plan/index",
+ "style": {
+ "navigationBarTitleText": "巡查计划",
+ "enablePullDownRefresh": false
+ }
+ },
+ {
+ "path": "pages/plan-detail/index",
+ "style": {
+ "navigationBarTitleText": "计划明细"
+ }
+ },
+ {
+ "path": "work-order/index",
+ "style": { "navigationBarTitleText": "工单上报" }
+ },
+ {
+ "path": "quick-order/index",
+ "style": { "navigationBarTitleText": "快速工单" }
+ },
+ {
+ "path": "12345-order/index",
+ "style": { "navigationBarTitleText": "12345工单" }
+ },
+ {
+ "path": "patrol-manage/index",
+ "style": { "navigationBarTitleText": "巡查管理" }
+ },
+ {
+ "path": "maintain-manage/index",
+ "style": { "navigationBarTitleText": "养护管理" }
+ }
+ ]
+ },
+ {
+ "root": "pages-sub/problem",
+ "pages": [
+ {
+ "path": "order-manage/index",
+ "style": { "navigationBarTitleText": "工单管理" }
+ },
+ {
+ "path": "problem-allot/index",
+ "style": { "navigationBarTitleText": "问题分配" }
+ }
+ ]
+ },
+ {
+ "root": "pages-sub/data",
+ "pages": [
+ {
+ "path": "base-data/index",
+ "style": { "navigationBarTitleText": "基础数据" }
+ },
+ {
+ "path": "personnel-track/index",
+ "style": { "navigationBarTitleText": "人员轨迹" }
+ },
+ {
+ "path": "personnel-manage/index",
+ "style": { "navigationBarTitleText": "人员管理" }
+ },
+ {
+ "path": "tree-archive/index",
+ "style": { "navigationBarTitleText": "行道树档案" }
+ }
+ ]
+ }
+ ],
+ "tabBar": {
+ "color": "#666666",
+ "selectedColor": "#1989fa",
+ "borderStyle": "black",
+ "backgroundColor": "#ffffff",
+ "list": [
+ {
+ "pagePath": "pages/index/index",
+ "text": "首页",
+ "iconPath": "static/icons/home.png",
+ "selectedIconPath": "static/icons/home-active.png"
+ },
+ {
+ "pagePath": "pages/workbench/index",
+ "text": "工作台",
+ "iconPath": "static/icons/mine.png",
+ "selectedIconPath": "static/icons/mine-active.png"
+ },
+ {
+ "pagePath": "pages/mine/index",
+ "text": "我的",
+ "iconPath": "static/icons/mine.png",
+ "selectedIconPath": "static/icons/mine-active.png"
+ }
+ ]
+ },
+ "easycom": {
+ "autoscan": true,
+
+ "custom": {
+ "^u--(.*)": "@/uni_modules/uview-plus/components/u-$1/u-$1.vue",
+ "^up-(.*)": "@/uni_modules/uview-plus/components/u-$1/u-$1.vue",
+ "^u-([^-].*)": "@/uni_modules/uview-plus/components/u-$1/u-$1.vue"
+ }
+ },
+ "globalStyle": {
+ "navigationBarTextStyle": "black",
+ "navigationBarTitleText": "JCSS管理系统",
+ "navigationBarBackgroundColor": "#ffffff",
+ "backgroundColor": "#f8f8f8"
+ }
+}
\ No newline at end of file
diff --git a/pages/index/index.vue b/pages/index/index.vue
new file mode 100644
index 0000000..9f6f32a
--- /dev/null
+++ b/pages/index/index.vue
@@ -0,0 +1,52 @@
+
+
+
+
+ {{title}}
+
+
+
+
+
+
+
diff --git a/pages/login/index.vue b/pages/login/index.vue
new file mode 100644
index 0000000..2f6753e
--- /dev/null
+++ b/pages/login/index.vue
@@ -0,0 +1,206 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ error.account }}
+
+
+
+
+
+
+
+
+
+
+ {{ error.password }}
+
+
+
+
+ 登录
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/mine/index.vue b/pages/mine/index.vue
new file mode 100644
index 0000000..96c0baf
--- /dev/null
+++ b/pages/mine/index.vue
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/workbench/index.vue b/pages/workbench/index.vue
new file mode 100644
index 0000000..2f928dd
--- /dev/null
+++ b/pages/workbench/index.vue
@@ -0,0 +1,150 @@
+
+
+
+ 日常管理
+
+
+
+
+ 问题管理
+
+
+
+
+ 数据管理
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pinia/index.js b/pinia/index.js
new file mode 100644
index 0000000..7b995ac
--- /dev/null
+++ b/pinia/index.js
@@ -0,0 +1,9 @@
+import { createPinia } from 'pinia';
+// 导入持久化插件
+import piniaPluginPersistedstate from 'pinia-plugin-persistedstate';
+
+const pinia = createPinia();
+// 注册持久化插件
+pinia.use(piniaPluginPersistedstate);
+
+export default pinia;
\ No newline at end of file
diff --git a/pinia/user.js b/pinia/user.js
new file mode 100644
index 0000000..37f9570
--- /dev/null
+++ b/pinia/user.js
@@ -0,0 +1,229 @@
+import { defineStore } from 'pinia';
+import cache from '@/common/utils/cache';
+import globalConfig from '@/common/config/global';
+import { login, getUserInfo, logout, moduleList } from '@/api/user';
+
+export const useUserStore = defineStore('user', {
+ // 1. 状态定义(修正 userId 类型 + 字段名)
+ state: () => ({
+ token: '',
+ userInfo: {},
+ userId: '',
+ moduleListInfo: '',
+ expireTime: 0,
+ logoutLoading: false // 防重锁移到这里
+ }),
+
+ // 2. 计算属性(保持不变)
+ getters: {
+ isLogin: (state) => {
+ if (!state.token) return false;
+ if (state.expireTime && state.expireTime < Date.now()) {
+ return false;
+ }
+ return true;
+ },
+ permissions: (state) => state.userInfo.permissions || []
+ },
+
+ // 3. 核心动作(修正语法错误 + 登录后自动调用户信息接口)
+ actions: {
+ async login(params) {
+ try {
+ const res = await login(params);
+ const { accessToken, expiresTime, userId } = res;
+
+ if (!accessToken) {
+ throw new Error('登录失败,未获取到令牌');
+ }
+
+ // 仅更新 Pinia state(持久化插件会自动同步到 storage)
+ this.token = accessToken;
+ this.expireTime = expiresTime;
+ this.userId = userId;
+ this.userInfo = {};
+
+ // 移除手动 cache.set() 代码
+ // cache.set(globalConfig.cache.tokenKey, accessToken);
+ // cache.set(globalConfig.cache.expireTimeKey, expiresTime);
+ // cache.set(globalConfig.cache.userIdKey, userId);
+
+ // 等待 Pinia 持久化同步(可选,50ms 足够)
+ await new Promise(resolve => setTimeout(resolve, 50));
+
+ // 获取用户信息
+ const userInfo = await this.getUserInfo();
+ this.userInfo = userInfo;
+ // 移除 cache.set(globalConfig.cache.userInfoKey, userInfo);
+
+ // 获取模块列表
+ let moduleListInfo = null;
+ try {
+ moduleListInfo = await this.getModuleList();
+ this.moduleListInfo = moduleListInfo;
+ // 移除 cache.set(globalConfig.cache.moduleListKey, moduleListInfo);
+ } catch (moduleErr) {
+ console.warn('获取模块列表失败(不影响登录):', moduleErr);
+ uni.showToast({ title: '获取模块列表失败,可正常登录', icon: 'none' });
+ }
+
+ return { ...res, userInfo, moduleListInfo };
+ } catch (err) {
+ console.error('登录流程失败:', err);
+ throw err;
+ }
+ },
+
+ async getModuleList() {
+ try {
+ // 前置校验:无 Token 直接抛错,避免无效请求
+ if (!this.token) {
+ throw new Error('未获取到登录令牌,无法获取模块列表');
+ }
+
+ // 强制携带 Token(覆盖请求工具的自动携带,避免缓存同步延迟)
+ const res = await moduleList({}, {
+ header: {
+ 'Authorization': `Bearer ${this.token}`
+ }
+ });
+ return res;
+ } catch (err) {
+ console.error('获取用户菜单失败:', err);
+ // 区分 401 错误:仅登录态失效时抛错,避免触发 logout 循环
+ if (err?.data?.code === 401 || err?.message.includes('401')) {
+ throw new Error('登录态已过期,请重新登录');
+ } else {
+ throw new Error('获取用户菜单失败,请重新登录');
+ }
+ }
+ },
+
+ async getUserInfo() {
+ try {
+ // 调用用户信息接口(此时 token 已存入缓存,请求工具会自动携带)
+ const res = await getUserInfo();
+ return res;
+ } catch (err) {
+ console.error('获取用户信息失败:', err);
+ throw new Error('获取用户信息失败,请重新登录');
+ }
+ },
+ logout() {
+ const pages = getCurrentPages();
+ if (pages.length === 0) return;
+
+ const currentPageRoute = pages[pages.length - 1].route;
+ const loginPath = globalConfig.router.loginPath
+ .replace(/^\//, '')
+ .split('?')[0];
+
+ if (currentPageRoute === loginPath) {
+ // 仅清空 Pinia state(持久化插件自动同步到 storage)
+ this.token = '';
+ this.userInfo = {};
+ this.userId = '';
+ this.moduleListInfo = '';
+ this.expireTime = 0;
+
+ // 移除手动 cache.remove() 代码
+ // cache.remove(globalConfig.cache.tokenKey);
+ // ... 其他 cache.remove 都删除
+ return;
+ }
+
+ const logoutWithLock = async () => {
+ if (this.logoutLoading) return;
+ this.logoutLoading = true;
+
+ try {
+ await logout();
+ } catch (err) {
+ console.error('退出登录接口调用失败:', err);
+ } finally {
+ // 清空 state
+ this.token = '';
+ this.userInfo = {};
+ this.userId = '';
+ this.moduleListInfo = '';
+ this.expireTime = 0;
+ this.logoutLoading = false;
+
+ // 移除手动 cache.remove() 代码
+
+ uni.redirectTo({
+ url: globalConfig.router.loginPath
+ });
+ }
+ };
+
+ logoutWithLock();
+ },
+
+// 新增:状态中添加 logoutLoading 防重锁
+ state: () => ({
+ token: cache.get(globalConfig.cache.tokenKey) || '',
+ userInfo: cache.get(globalConfig.cache.userInfoKey) || {},
+ userId: cache.get(globalConfig.cache.userIdKey) || '',
+ moduleListInfo: cache.get(globalConfig.cache.moduleListKey) || '',
+ expireTime: cache.get(globalConfig.cache.expireTimeKey) || 0,
+ logoutLoading: false // 新增:退出登录防重锁
+ }),
+
+ checkLogin() {
+ if (!this.isLogin) {
+ // 先判断是否已在登录页,避免重复跳转
+ const pages = getCurrentPages();
+ if (pages.length === 0) return false;
+
+ const currentPageRoute = pages[pages.length - 1].route;
+ const loginPath = globalConfig.router.loginPath
+ .replace(/^\//, '')
+ .split('?')[0];
+
+ if (currentPageRoute !== loginPath) {
+ uni.redirectTo({
+ url: globalConfig.router.loginPath
+ });
+ }
+ return false;
+ }
+ return true;
+ }
+ },
+
+ // 4. 持久化配置(修正:persist 应放在 store 根层级,非 actions 内)
+ persist: {
+ enabled: true,
+ key: 'user_store', // 自定义存储键名(默认是 store 名 'user')
+ storage: {
+ getItem: (key) => uni.getStorageSync(key),
+ setItem: (key, value) => uni.setStorageSync(key, value),
+ removeItem: (key) => uni.removeStorageSync(key)
+ },
+ // 自定义序列化:将 state 拆分为原有的 jcss_xxx 键(可选)
+ serializer: {
+ serialize: (state) => {
+ // 拆分为多个独立键(和原 cache 格式对齐)
+ uni.setStorageSync(globalConfig.cache.tokenKey, state.token);
+ uni.setStorageSync(globalConfig.cache.userIdKey, state.userId);
+ uni.setStorageSync(globalConfig.cache.expireTimeKey, state.expireTime);
+ uni.setStorageSync(globalConfig.cache.userInfoKey, state.userInfo);
+ uni.setStorageSync(globalConfig.cache.moduleListKey, state.moduleListInfo);
+ return state; // 返回完整 state(兼容 Pinia 默认逻辑)
+ },
+ deserialize: (value) => {
+ // 从多个独立键恢复 state
+ return {
+ token: uni.getStorageSync(globalConfig.cache.tokenKey) || '',
+ userId: uni.getStorageSync(globalConfig.cache.userIdKey) || '',
+ expireTime: uni.getStorageSync(globalConfig.cache.expireTimeKey) || 0,
+ userInfo: uni.getStorageSync(globalConfig.cache.userInfoKey) || {},
+ moduleListInfo: uni.getStorageSync(globalConfig.cache.moduleListKey) || '',
+ logoutLoading: false
+ };
+ }
+ },
+ paths: [] // 序列化自定义后,paths 可留空
+ }
+});
\ No newline at end of file
diff --git a/static/icons/home-active.png b/static/icons/home-active.png
new file mode 100644
index 0000000..7aceb57
Binary files /dev/null and b/static/icons/home-active.png differ
diff --git a/static/icons/home.png b/static/icons/home.png
new file mode 100644
index 0000000..5676843
Binary files /dev/null and b/static/icons/home.png differ
diff --git a/static/icons/mine-active.png b/static/icons/mine-active.png
new file mode 100644
index 0000000..e941770
Binary files /dev/null and b/static/icons/mine-active.png differ
diff --git a/static/icons/mine.png b/static/icons/mine.png
new file mode 100644
index 0000000..1a9ec61
Binary files /dev/null and b/static/icons/mine.png differ
diff --git a/static/imgs/logo.png b/static/imgs/logo.png
new file mode 100644
index 0000000..b5771e2
Binary files /dev/null and b/static/imgs/logo.png differ
diff --git a/uni.promisify.adaptor.js b/uni.promisify.adaptor.js
new file mode 100644
index 0000000..5fec4f3
--- /dev/null
+++ b/uni.promisify.adaptor.js
@@ -0,0 +1,13 @@
+uni.addInterceptor({
+ returnValue (res) {
+ if (!(!!res && (typeof res === "object" || typeof res === "function") && typeof res.then === "function")) {
+ return res;
+ }
+ return new Promise((resolve, reject) => {
+ res.then((res) => {
+ if (!res) return resolve(res)
+ return res[0] ? reject(res[0]) : resolve(res[1])
+ });
+ });
+ },
+});
\ No newline at end of file
diff --git a/uni.scss b/uni.scss
new file mode 100644
index 0000000..5eeb168
--- /dev/null
+++ b/uni.scss
@@ -0,0 +1,2 @@
+/* uni.scss */
+@import '@/uni_modules/uview-plus/theme.scss';
\ No newline at end of file
diff --git a/vite.config.js b/vite.config.js
new file mode 100644
index 0000000..abc792a
--- /dev/null
+++ b/vite.config.js
@@ -0,0 +1,26 @@
+import { defineConfig } from "vite";
+import uni from "@dcloudio/vite-plugin-uni";
+import { visualizer } from "rollup-plugin-visualizer";
+
+// https://vitejs.dev/config/
+export default defineConfig({
+ plugins: [
+ uni(),
+ visualizer()
+ ],
+ css: {
+ preprocessorOptions: {
+ scss: {
+ // 取消sass废弃API的报警
+ silenceDeprecations: ['legacy-js-api', 'color-functions', 'import'],
+ },
+ },
+ },
+ server: {
+ port: 5100,
+ fs: {
+ // Allow serving files from one level up to the project root
+ allow: ['..']
+ }
+ },
+});
\ No newline at end of file
--
libgit2 0.21.4