diff --git a/components.d.ts b/components.d.ts index 764447d..2c6f112 100644 --- a/components.d.ts +++ b/components.d.ts @@ -27,6 +27,7 @@ declare module '@vue/runtime-core' { VanGridItem: typeof import('vant/es')['GridItem'] VanIcon: typeof import('vant/es')['Icon'] VanImage: typeof import('vant/es')['Image'] + VanStepper: typeof import('vant/es')['Stepper'] VanSwipe: typeof import('vant/es')['Swipe'] VanSwipeItem: typeof import('vant/es')['SwipeItem'] VanTabbar: typeof import('vant/es')['Tabbar'] diff --git a/index.html b/index.html index 40f992f..a9a3309 100644 --- a/index.html +++ b/index.html @@ -6,7 +6,7 @@ - 3D + 葡哇立体肖像
diff --git a/package-lock.json b/package-lock.json index 873f933..8288203 100644 --- a/package-lock.json +++ b/package-lock.json @@ -47,6 +47,7 @@ "vite": "^5.3.3", "vue": "^3.3.4", "vue-clipboard3": "^2.0.0", + "vue-cropperjs": "^5.0.0", "vue-i18n": "^9.9.0", "vue-router": "^4.2.2", "vue-router-better-scroller": "^0.0.0", @@ -96,6 +97,7 @@ "typescript": "^4.9.5", "unplugin-auto-import": "^0.12.2", "unplugin-vue-components": "^0.22.12", + "unplugin-vue-define-options": "^3.0.0-beta.14", "vite": "^4.3.9", "vite-plugin-mkcert": "^1.17.5", "vite-plugin-vconsole": "^1.3.1", @@ -526,11 +528,11 @@ } }, "node_modules/@babel/parser": { - "version": "7.27.2", - "resolved": "https://registry.npmmirror.com/@babel/parser/-/parser-7.27.2.tgz", - "integrity": "sha512-QYLs8299NA7WM/bZAdp+CviYYkVoYXlDW2rzliy3chxd1PQjej7JORuMJDJXJUb9g0TT+B99EwaVLKmX+sPXWw==", + "version": "7.27.5", + "resolved": "https://registry.npmmirror.com/@babel/parser/-/parser-7.27.5.tgz", + "integrity": "sha512-OsQd175SxWkGlzbny8J3K8TnnDD0N3lrIUtB92xwyRpzaenGZhxDvxN/JgU00U3CDZNj9tPuDJ5H0WS4Nt3vKg==", "dependencies": { - "@babel/types": "^7.27.1" + "@babel/types": "^7.27.3" }, "bin": { "parser": "bin/babel-parser.js" @@ -1697,9 +1699,9 @@ } }, "node_modules/@babel/types": { - "version": "7.27.1", - "resolved": "https://registry.npmmirror.com/@babel/types/-/types-7.27.1.tgz", - "integrity": "sha512-+EzkxvLNfiUeKMgy/3luqfsCWFRXLb7U6wNQTk60tovuckwB15B191tJWvpp4HjiQWdJkCxO3Wbvc6jlk3Xb2Q==", + "version": "7.27.3", + "resolved": "https://registry.npmmirror.com/@babel/types/-/types-7.27.3.tgz", + "integrity": "sha512-Y1GkI4ktrtvmawoSq+4FCVHNryea6uR+qUQy0AGxLSsjCX0nVmkYQMBLHDkXZuo5hGx7eYdnIaslsdBFm7zbUw==", "dependencies": { "@babel/helper-string-parser": "^7.27.1", "@babel/helper-validator-identifier": "^7.27.1" @@ -3695,6 +3697,73 @@ "path-browserify": "^1.0.1" } }, + "node_modules/@vue-macros/common": { + "version": "3.0.0-beta.14", + "resolved": "https://registry.npmmirror.com/@vue-macros/common/-/common-3.0.0-beta.14.tgz", + "integrity": "sha512-Eto2MnuaLAdC/rIyPPt7wnFU4l1u5TUw42yRB9aSc3dwMbLV5aka5gdyyt3OMKs4rgyPx8nssEN8sc0kz4PltA==", + "dev": true, + "dependencies": { + "@vue/compiler-sfc": "^3.5.16", + "ast-kit": "^2.1.0", + "local-pkg": "^1.1.1", + "magic-string-ast": "^0.9.1", + "unplugin-utils": "^0.2.4" + }, + "engines": { + "node": ">=20.18.0" + }, + "funding": { + "url": "https://github.com/sponsors/vue-macros" + }, + "peerDependencies": { + "vue": "^2.7.0 || ^3.2.25" + }, + "peerDependenciesMeta": { + "vue": { + "optional": true + } + } + }, + "node_modules/@vue-macros/common/node_modules/confbox": { + "version": "0.2.2", + "resolved": "https://registry.npmmirror.com/confbox/-/confbox-0.2.2.tgz", + "integrity": "sha512-1NB+BKqhtNipMsov4xI/NnhCKp9XG9NamYp5PVm9klAT0fsrNPjaFICsCFhNhwZJKNh7zB/3q8qXz0E9oaMNtQ==", + "dev": true + }, + "node_modules/@vue-macros/common/node_modules/local-pkg": { + "version": "1.1.1", + "resolved": "https://registry.npmmirror.com/local-pkg/-/local-pkg-1.1.1.tgz", + "integrity": "sha512-WunYko2W1NcdfAFpuLUoucsgULmgDBRkdxHxWQ7mK0cQqwPiy8E1enjuRBrhLtZkB5iScJ1XIPdhVEFK8aOLSg==", + "dev": true, + "dependencies": { + "mlly": "^1.7.4", + "pkg-types": "^2.0.1", + "quansync": "^0.2.8" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/antfu" + } + }, + "node_modules/@vue-macros/common/node_modules/pathe": { + "version": "2.0.3", + "resolved": "https://registry.npmmirror.com/pathe/-/pathe-2.0.3.tgz", + "integrity": "sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==", + "dev": true + }, + "node_modules/@vue-macros/common/node_modules/pkg-types": { + "version": "2.1.0", + "resolved": "https://registry.npmmirror.com/pkg-types/-/pkg-types-2.1.0.tgz", + "integrity": "sha512-wmJwA+8ihJixSoHKxZJRBQG1oY8Yr9pGLzRmSsNms0iNWyHHAlZCa7mmKiFR10YPZuz/2k169JiS/inOjBCZ2A==", + "dev": true, + "dependencies": { + "confbox": "^0.2.1", + "exsolve": "^1.0.1", + "pathe": "^2.0.3" + } + }, "node_modules/@vue/babel-helper-vue-transform-on": { "version": "1.4.0", "resolved": "https://registry.npmmirror.com/@vue/babel-helper-vue-transform-on/-/babel-helper-vue-transform-on-1.4.0.tgz", @@ -4286,6 +4355,44 @@ "node": "*" } }, + "node_modules/ast-kit": { + "version": "2.1.0", + "resolved": "https://registry.npmmirror.com/ast-kit/-/ast-kit-2.1.0.tgz", + "integrity": "sha512-ROM2LlXbZBZVk97crfw8PGDOBzzsJvN2uJCmwswvPUNyfH14eg90mSN3xNqsri1JS1G9cz0VzeDUhxJkTrr4Ew==", + "dev": true, + "dependencies": { + "@babel/parser": "^7.27.3", + "pathe": "^2.0.3" + }, + "engines": { + "node": ">=20.18.0" + }, + "funding": { + "url": "https://github.com/sponsors/sxzz" + } + }, + "node_modules/ast-kit/node_modules/pathe": { + "version": "2.0.3", + "resolved": "https://registry.npmmirror.com/pathe/-/pathe-2.0.3.tgz", + "integrity": "sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==", + "dev": true + }, + "node_modules/ast-walker-scope": { + "version": "0.8.1", + "resolved": "https://registry.npmmirror.com/ast-walker-scope/-/ast-walker-scope-0.8.1.tgz", + "integrity": "sha512-72XOdbzQCMKERvFrxAykatn2pu7osPNq/sNUzwcHdWzwPvOsNpPqkawfDXVvQbA2RT+ivtsMNjYdojTUZitt1A==", + "dev": true, + "dependencies": { + "@babel/parser": "^7.27.2", + "ast-kit": "^2.0.0" + }, + "engines": { + "node": ">=20.18.0" + }, + "funding": { + "url": "https://github.com/sponsors/sxzz" + } + }, "node_modules/async-function": { "version": "1.0.0", "resolved": "https://registry.npmmirror.com/async-function/-/async-function-1.0.0.tgz", @@ -5229,6 +5336,11 @@ } } }, + "node_modules/cropperjs": { + "version": "1.6.2", + "resolved": "https://registry.npmmirror.com/cropperjs/-/cropperjs-1.6.2.tgz", + "integrity": "sha512-nhymn9GdnV3CqiEHJVai54TULFAE3VshJTXSqSJKa8yXAKyBKDWdhHarnlIPrshJ0WMFTGuFvG02YjLXfPiuOA==" + }, "node_modules/cross-env": { "version": "7.0.3", "resolved": "https://registry.npmmirror.com/cross-env/-/cross-env-7.0.3.tgz", @@ -6918,6 +7030,12 @@ "node": ">=0.10.0" } }, + "node_modules/exsolve": { + "version": "1.0.5", + "resolved": "https://registry.npmmirror.com/exsolve/-/exsolve-1.0.5.tgz", + "integrity": "sha512-pz5dvkYYKQ1AHVrgOzBKWeP4u4FRb3a6DNK2ucr0OoNwYIU4QWsJ+NM36LLzORT+z845MzKHHhpXiUF5nvQoJg==", + "dev": true + }, "node_modules/extend": { "version": "3.0.2", "resolved": "https://registry.npmmirror.com/extend/-/extend-3.0.2.tgz", @@ -9725,6 +9843,30 @@ "node": ">=12" } }, + "node_modules/magic-string-ast": { + "version": "0.9.1", + "resolved": "https://registry.npmmirror.com/magic-string-ast/-/magic-string-ast-0.9.1.tgz", + "integrity": "sha512-18dv2ZlSSgJ/jDWlZGKfnDJx56ilNlYq9F7NnwuWTErsmYmqJ2TWE4l1o2zlUHBYUGBy3tIhPCC1gxq8M5HkMA==", + "dev": true, + "dependencies": { + "magic-string": "^0.30.17" + }, + "engines": { + "node": ">=20.18.0" + }, + "funding": { + "url": "https://github.com/sponsors/sxzz" + } + }, + "node_modules/magic-string-ast/node_modules/magic-string": { + "version": "0.30.17", + "resolved": "https://registry.npmmirror.com/magic-string/-/magic-string-0.30.17.tgz", + "integrity": "sha512-sNPKHvyjVf7gyjwS4xGTaW/mCnF8wnjtifKBEhxfZ7E/S8tQ0rssrwGNn6q8JH/ohItJfSQp9mBtQYuTlH5QnA==", + "dev": true, + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.5.0" + } + }, "node_modules/make-dir": { "version": "2.1.0", "resolved": "https://registry.npmmirror.com/make-dir/-/make-dir-2.1.0.tgz", @@ -11619,6 +11761,22 @@ "node": ">=6" } }, + "node_modules/quansync": { + "version": "0.2.10", + "resolved": "https://registry.npmmirror.com/quansync/-/quansync-0.2.10.tgz", + "integrity": "sha512-t41VRkMYbkHyCYmOvx/6URnN80H7k4X0lLdBMGsz+maAwrJQYB1djpV6vHrQIBE0WBSGqhtEHrK9U3DWWH8v7A==", + "dev": true, + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/antfu" + }, + { + "type": "individual", + "url": "https://github.com/sponsors/sxzz" + } + ] + }, "node_modules/queue-microtask": { "version": "1.2.3", "resolved": "https://registry.npmmirror.com/queue-microtask/-/queue-microtask-1.2.3.tgz", @@ -13693,6 +13851,40 @@ } } }, + "node_modules/unplugin-utils": { + "version": "0.2.4", + "resolved": "https://registry.npmmirror.com/unplugin-utils/-/unplugin-utils-0.2.4.tgz", + "integrity": "sha512-8U/MtpkPkkk3Atewj1+RcKIjb5WBimZ/WSLhhR3w6SsIj8XJuKTacSP8g+2JhfSGw0Cb125Y+2zA/IzJZDVbhA==", + "dev": true, + "dependencies": { + "pathe": "^2.0.2", + "picomatch": "^4.0.2" + }, + "engines": { + "node": ">=18.12.0" + }, + "funding": { + "url": "https://github.com/sponsors/sxzz" + } + }, + "node_modules/unplugin-utils/node_modules/pathe": { + "version": "2.0.3", + "resolved": "https://registry.npmmirror.com/pathe/-/pathe-2.0.3.tgz", + "integrity": "sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==", + "dev": true + }, + "node_modules/unplugin-utils/node_modules/picomatch": { + "version": "4.0.2", + "resolved": "https://registry.npmmirror.com/picomatch/-/picomatch-4.0.2.tgz", + "integrity": "sha512-M7BAV6Rlcy5u+m6oPhAPFgJTzAioX/6B0DxyvDlo9l8+T3nLKbrczg2WLUyzd45L8RqfUMyGPzekbMvX2Ldkwg==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, "node_modules/unplugin-vue-components": { "version": "0.22.12", "resolved": "https://registry.npmmirror.com/unplugin-vue-components/-/unplugin-vue-components-0.22.12.tgz", @@ -13747,6 +13939,49 @@ "node": ">=10" } }, + "node_modules/unplugin-vue-define-options": { + "version": "3.0.0-beta.14", + "resolved": "https://registry.npmmirror.com/unplugin-vue-define-options/-/unplugin-vue-define-options-3.0.0-beta.14.tgz", + "integrity": "sha512-sbcFwF4ZkeQSUqw5Qw8o6Uf5Tc3P9umQf5bddQ8Kts9DEyZdTX+WlqjvyZzGSBPdFlYKm2CBj+xtNf+cOpSTnA==", + "dev": true, + "dependencies": { + "@vue-macros/common": "3.0.0-beta.14", + "ast-walker-scope": "^0.8.1", + "unplugin": "^2.3.5" + }, + "engines": { + "node": ">=20.18.0" + }, + "funding": { + "url": "https://github.com/sponsors/vue-macros" + } + }, + "node_modules/unplugin-vue-define-options/node_modules/picomatch": { + "version": "4.0.2", + "resolved": "https://registry.npmmirror.com/picomatch/-/picomatch-4.0.2.tgz", + "integrity": "sha512-M7BAV6Rlcy5u+m6oPhAPFgJTzAioX/6B0DxyvDlo9l8+T3nLKbrczg2WLUyzd45L8RqfUMyGPzekbMvX2Ldkwg==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/unplugin-vue-define-options/node_modules/unplugin": { + "version": "2.3.5", + "resolved": "https://registry.npmmirror.com/unplugin/-/unplugin-2.3.5.tgz", + "integrity": "sha512-RyWSb5AHmGtjjNQ6gIlA67sHOsWpsbWpwDokLwTcejVdOjEkJZh7QKu14J00gDDVSh8kGH4KYC/TNBceXFZhtw==", + "dev": true, + "dependencies": { + "acorn": "^8.14.1", + "picomatch": "^4.0.2", + "webpack-virtual-modules": "^0.6.2" + }, + "engines": { + "node": ">=18.12.0" + } + }, "node_modules/update-browserslist-db": { "version": "1.1.3", "resolved": "https://registry.npmmirror.com/update-browserslist-db/-/update-browserslist-db-1.1.3.tgz", @@ -14014,6 +14249,17 @@ "clipboard": "^2.0.6" } }, + "node_modules/vue-cropperjs": { + "version": "5.0.0", + "resolved": "https://registry.npmmirror.com/vue-cropperjs/-/vue-cropperjs-5.0.0.tgz", + "integrity": "sha512-RhnC8O33uRZNkn74aiHZwNHnBJOXWlS4P6gsRI0lw4cZlWjKSCywZI9oSI9POlIPI6OYv30jvnHMXGch85tw7w==", + "dependencies": { + "cropperjs": "^1.5.6" + }, + "peerDependencies": { + "vue": ">=3.0.0" + } + }, "node_modules/vue-demi": { "version": "0.14.10", "resolved": "https://registry.npmmirror.com/vue-demi/-/vue-demi-0.14.10.tgz", @@ -14898,11 +15144,11 @@ } }, "@babel/parser": { - "version": "7.27.2", - "resolved": "https://registry.npmmirror.com/@babel/parser/-/parser-7.27.2.tgz", - "integrity": "sha512-QYLs8299NA7WM/bZAdp+CviYYkVoYXlDW2rzliy3chxd1PQjej7JORuMJDJXJUb9g0TT+B99EwaVLKmX+sPXWw==", + "version": "7.27.5", + "resolved": "https://registry.npmmirror.com/@babel/parser/-/parser-7.27.5.tgz", + "integrity": "sha512-OsQd175SxWkGlzbny8J3K8TnnDD0N3lrIUtB92xwyRpzaenGZhxDvxN/JgU00U3CDZNj9tPuDJ5H0WS4Nt3vKg==", "requires": { - "@babel/types": "^7.27.1" + "@babel/types": "^7.27.3" } }, "@babel/plugin-bugfix-firefox-class-in-computed-class-key": { @@ -15658,9 +15904,9 @@ } }, "@babel/types": { - "version": "7.27.1", - "resolved": "https://registry.npmmirror.com/@babel/types/-/types-7.27.1.tgz", - "integrity": "sha512-+EzkxvLNfiUeKMgy/3luqfsCWFRXLb7U6wNQTk60tovuckwB15B191tJWvpp4HjiQWdJkCxO3Wbvc6jlk3Xb2Q==", + "version": "7.27.3", + "resolved": "https://registry.npmmirror.com/@babel/types/-/types-7.27.3.tgz", + "integrity": "sha512-Y1GkI4ktrtvmawoSq+4FCVHNryea6uR+qUQy0AGxLSsjCX0nVmkYQMBLHDkXZuo5hGx7eYdnIaslsdBFm7zbUw==", "requires": { "@babel/helper-string-parser": "^7.27.1", "@babel/helper-validator-identifier": "^7.27.1" @@ -16907,6 +17153,55 @@ "path-browserify": "^1.0.1" } }, + "@vue-macros/common": { + "version": "3.0.0-beta.14", + "resolved": "https://registry.npmmirror.com/@vue-macros/common/-/common-3.0.0-beta.14.tgz", + "integrity": "sha512-Eto2MnuaLAdC/rIyPPt7wnFU4l1u5TUw42yRB9aSc3dwMbLV5aka5gdyyt3OMKs4rgyPx8nssEN8sc0kz4PltA==", + "dev": true, + "requires": { + "@vue/compiler-sfc": "^3.5.16", + "ast-kit": "^2.1.0", + "local-pkg": "^1.1.1", + "magic-string-ast": "^0.9.1", + "unplugin-utils": "^0.2.4" + }, + "dependencies": { + "confbox": { + "version": "0.2.2", + "resolved": "https://registry.npmmirror.com/confbox/-/confbox-0.2.2.tgz", + "integrity": "sha512-1NB+BKqhtNipMsov4xI/NnhCKp9XG9NamYp5PVm9klAT0fsrNPjaFICsCFhNhwZJKNh7zB/3q8qXz0E9oaMNtQ==", + "dev": true + }, + "local-pkg": { + "version": "1.1.1", + "resolved": "https://registry.npmmirror.com/local-pkg/-/local-pkg-1.1.1.tgz", + "integrity": "sha512-WunYko2W1NcdfAFpuLUoucsgULmgDBRkdxHxWQ7mK0cQqwPiy8E1enjuRBrhLtZkB5iScJ1XIPdhVEFK8aOLSg==", + "dev": true, + "requires": { + "mlly": "^1.7.4", + "pkg-types": "^2.0.1", + "quansync": "^0.2.8" + } + }, + "pathe": { + "version": "2.0.3", + "resolved": "https://registry.npmmirror.com/pathe/-/pathe-2.0.3.tgz", + "integrity": "sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==", + "dev": true + }, + "pkg-types": { + "version": "2.1.0", + "resolved": "https://registry.npmmirror.com/pkg-types/-/pkg-types-2.1.0.tgz", + "integrity": "sha512-wmJwA+8ihJixSoHKxZJRBQG1oY8Yr9pGLzRmSsNms0iNWyHHAlZCa7mmKiFR10YPZuz/2k169JiS/inOjBCZ2A==", + "dev": true, + "requires": { + "confbox": "^0.2.1", + "exsolve": "^1.0.1", + "pathe": "^2.0.3" + } + } + } + }, "@vue/babel-helper-vue-transform-on": { "version": "1.4.0", "resolved": "https://registry.npmmirror.com/@vue/babel-helper-vue-transform-on/-/babel-helper-vue-transform-on-1.4.0.tgz", @@ -17371,6 +17666,34 @@ "integrity": "sha512-jgsaNduz+ndvGyFt3uSuWqvy4lCnIJiovtouQN5JZHOKCS2QuhEdbcQHFhVksz2N2U9hXJo8odG7ETyWlEeuDw==", "dev": true }, + "ast-kit": { + "version": "2.1.0", + "resolved": "https://registry.npmmirror.com/ast-kit/-/ast-kit-2.1.0.tgz", + "integrity": "sha512-ROM2LlXbZBZVk97crfw8PGDOBzzsJvN2uJCmwswvPUNyfH14eg90mSN3xNqsri1JS1G9cz0VzeDUhxJkTrr4Ew==", + "dev": true, + "requires": { + "@babel/parser": "^7.27.3", + "pathe": "^2.0.3" + }, + "dependencies": { + "pathe": { + "version": "2.0.3", + "resolved": "https://registry.npmmirror.com/pathe/-/pathe-2.0.3.tgz", + "integrity": "sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==", + "dev": true + } + } + }, + "ast-walker-scope": { + "version": "0.8.1", + "resolved": "https://registry.npmmirror.com/ast-walker-scope/-/ast-walker-scope-0.8.1.tgz", + "integrity": "sha512-72XOdbzQCMKERvFrxAykatn2pu7osPNq/sNUzwcHdWzwPvOsNpPqkawfDXVvQbA2RT+ivtsMNjYdojTUZitt1A==", + "dev": true, + "requires": { + "@babel/parser": "^7.27.2", + "ast-kit": "^2.0.0" + } + }, "async-function": { "version": "1.0.0", "resolved": "https://registry.npmmirror.com/async-function/-/async-function-1.0.0.tgz", @@ -18027,6 +18350,11 @@ "parse-json": "^5.2.0" } }, + "cropperjs": { + "version": "1.6.2", + "resolved": "https://registry.npmmirror.com/cropperjs/-/cropperjs-1.6.2.tgz", + "integrity": "sha512-nhymn9GdnV3CqiEHJVai54TULFAE3VshJTXSqSJKa8yXAKyBKDWdhHarnlIPrshJ0WMFTGuFvG02YjLXfPiuOA==" + }, "cross-env": { "version": "7.0.3", "resolved": "https://registry.npmmirror.com/cross-env/-/cross-env-7.0.3.tgz", @@ -19264,6 +19592,12 @@ "homedir-polyfill": "^1.0.1" } }, + "exsolve": { + "version": "1.0.5", + "resolved": "https://registry.npmmirror.com/exsolve/-/exsolve-1.0.5.tgz", + "integrity": "sha512-pz5dvkYYKQ1AHVrgOzBKWeP4u4FRb3a6DNK2ucr0OoNwYIU4QWsJ+NM36LLzORT+z845MzKHHhpXiUF5nvQoJg==", + "dev": true + }, "extend": { "version": "3.0.2", "resolved": "https://registry.npmmirror.com/extend/-/extend-3.0.2.tgz", @@ -21322,6 +21656,26 @@ "@jridgewell/sourcemap-codec": "^1.4.13" } }, + "magic-string-ast": { + "version": "0.9.1", + "resolved": "https://registry.npmmirror.com/magic-string-ast/-/magic-string-ast-0.9.1.tgz", + "integrity": "sha512-18dv2ZlSSgJ/jDWlZGKfnDJx56ilNlYq9F7NnwuWTErsmYmqJ2TWE4l1o2zlUHBYUGBy3tIhPCC1gxq8M5HkMA==", + "dev": true, + "requires": { + "magic-string": "^0.30.17" + }, + "dependencies": { + "magic-string": { + "version": "0.30.17", + "resolved": "https://registry.npmmirror.com/magic-string/-/magic-string-0.30.17.tgz", + "integrity": "sha512-sNPKHvyjVf7gyjwS4xGTaW/mCnF8wnjtifKBEhxfZ7E/S8tQ0rssrwGNn6q8JH/ohItJfSQp9mBtQYuTlH5QnA==", + "dev": true, + "requires": { + "@jridgewell/sourcemap-codec": "^1.5.0" + } + } + } + }, "make-dir": { "version": "2.1.0", "resolved": "https://registry.npmmirror.com/make-dir/-/make-dir-2.1.0.tgz", @@ -22656,6 +23010,12 @@ "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", "dev": true }, + "quansync": { + "version": "0.2.10", + "resolved": "https://registry.npmmirror.com/quansync/-/quansync-0.2.10.tgz", + "integrity": "sha512-t41VRkMYbkHyCYmOvx/6URnN80H7k4X0lLdBMGsz+maAwrJQYB1djpV6vHrQIBE0WBSGqhtEHrK9U3DWWH8v7A==", + "dev": true + }, "queue-microtask": { "version": "1.2.3", "resolved": "https://registry.npmmirror.com/queue-microtask/-/queue-microtask-1.2.3.tgz", @@ -24140,6 +24500,30 @@ "unplugin": "^1.0.1" } }, + "unplugin-utils": { + "version": "0.2.4", + "resolved": "https://registry.npmmirror.com/unplugin-utils/-/unplugin-utils-0.2.4.tgz", + "integrity": "sha512-8U/MtpkPkkk3Atewj1+RcKIjb5WBimZ/WSLhhR3w6SsIj8XJuKTacSP8g+2JhfSGw0Cb125Y+2zA/IzJZDVbhA==", + "dev": true, + "requires": { + "pathe": "^2.0.2", + "picomatch": "^4.0.2" + }, + "dependencies": { + "pathe": { + "version": "2.0.3", + "resolved": "https://registry.npmmirror.com/pathe/-/pathe-2.0.3.tgz", + "integrity": "sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==", + "dev": true + }, + "picomatch": { + "version": "4.0.2", + "resolved": "https://registry.npmmirror.com/picomatch/-/picomatch-4.0.2.tgz", + "integrity": "sha512-M7BAV6Rlcy5u+m6oPhAPFgJTzAioX/6B0DxyvDlo9l8+T3nLKbrczg2WLUyzd45L8RqfUMyGPzekbMvX2Ldkwg==", + "dev": true + } + } + }, "unplugin-vue-components": { "version": "0.22.12", "resolved": "https://registry.npmmirror.com/unplugin-vue-components/-/unplugin-vue-components-0.22.12.tgz", @@ -24178,6 +24562,36 @@ } } }, + "unplugin-vue-define-options": { + "version": "3.0.0-beta.14", + "resolved": "https://registry.npmmirror.com/unplugin-vue-define-options/-/unplugin-vue-define-options-3.0.0-beta.14.tgz", + "integrity": "sha512-sbcFwF4ZkeQSUqw5Qw8o6Uf5Tc3P9umQf5bddQ8Kts9DEyZdTX+WlqjvyZzGSBPdFlYKm2CBj+xtNf+cOpSTnA==", + "dev": true, + "requires": { + "@vue-macros/common": "3.0.0-beta.14", + "ast-walker-scope": "^0.8.1", + "unplugin": "^2.3.5" + }, + "dependencies": { + "picomatch": { + "version": "4.0.2", + "resolved": "https://registry.npmmirror.com/picomatch/-/picomatch-4.0.2.tgz", + "integrity": "sha512-M7BAV6Rlcy5u+m6oPhAPFgJTzAioX/6B0DxyvDlo9l8+T3nLKbrczg2WLUyzd45L8RqfUMyGPzekbMvX2Ldkwg==", + "dev": true + }, + "unplugin": { + "version": "2.3.5", + "resolved": "https://registry.npmmirror.com/unplugin/-/unplugin-2.3.5.tgz", + "integrity": "sha512-RyWSb5AHmGtjjNQ6gIlA67sHOsWpsbWpwDokLwTcejVdOjEkJZh7QKu14J00gDDVSh8kGH4KYC/TNBceXFZhtw==", + "dev": true, + "requires": { + "acorn": "^8.14.1", + "picomatch": "^4.0.2", + "webpack-virtual-modules": "^0.6.2" + } + } + } + }, "update-browserslist-db": { "version": "1.1.3", "resolved": "https://registry.npmmirror.com/update-browserslist-db/-/update-browserslist-db-1.1.3.tgz", @@ -24383,6 +24797,14 @@ "clipboard": "^2.0.6" } }, + "vue-cropperjs": { + "version": "5.0.0", + "resolved": "https://registry.npmmirror.com/vue-cropperjs/-/vue-cropperjs-5.0.0.tgz", + "integrity": "sha512-RhnC8O33uRZNkn74aiHZwNHnBJOXWlS4P6gsRI0lw4cZlWjKSCywZI9oSI9POlIPI6OYv30jvnHMXGch85tw7w==", + "requires": { + "cropperjs": "^1.5.6" + } + }, "vue-demi": { "version": "0.14.10", "resolved": "https://registry.npmmirror.com/vue-demi/-/vue-demi-0.14.10.tgz", diff --git a/package.json b/package.json index 961d636..2524b79 100644 --- a/package.json +++ b/package.json @@ -60,6 +60,7 @@ "vite": "^5.3.3", "vue": "^3.3.4", "vue-clipboard3": "^2.0.0", + "vue-cropper-h5": "^2.0.1", "vue-cropperjs": "^5.0.0", "vue-i18n": "^9.9.0", "vue-router": "^4.2.2", @@ -110,6 +111,7 @@ "typescript": "^4.9.5", "unplugin-auto-import": "^0.12.2", "unplugin-vue-components": "^0.22.12", + "unplugin-vue-define-options": "^3.0.0-beta.14", "vite": "^4.3.9", "vite-plugin-mkcert": "^1.17.5", "vite-plugin-vconsole": "^1.3.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 3cf857c..5d19356 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -122,6 +122,9 @@ importers: vue-clipboard3: specifier: ^2.0.0 version: 2.0.0 + vue-cropper-h5: + specifier: ^2.0.1 + version: 2.0.1(typescript@4.9.5) vue-cropperjs: specifier: ^5.0.0 version: 5.0.0(vue@3.5.13(typescript@4.9.5)) @@ -261,6 +264,9 @@ importers: unplugin-vue-components: specifier: ^0.22.12 version: 0.22.12(@babel/parser@7.27.5)(rollup@3.29.5)(vue@3.5.13(typescript@4.9.5)) + unplugin-vue-define-options: + specifier: ^3.0.0-beta.14 + version: 3.0.0-beta.14(vue@3.5.13(typescript@4.9.5)) vite-plugin-mkcert: specifier: ^1.17.5 version: 1.17.6(vite@5.4.14(@types/node@18.19.76)(less@4.2.2)(sass@1.85.0)(terser@5.39.0)) @@ -1792,6 +1798,15 @@ packages: '@volar/typescript@1.11.1': resolution: {integrity: sha512-iU+t2mas/4lYierSnoFOeRFQUhAEMgsFuQxoxvwn5EdQopw43j+J27a4lt9LMInx1gLJBC6qL14WYGlgymaSMQ==} + '@vue-macros/common@3.0.0-beta.14': + resolution: {integrity: sha512-Eto2MnuaLAdC/rIyPPt7wnFU4l1u5TUw42yRB9aSc3dwMbLV5aka5gdyyt3OMKs4rgyPx8nssEN8sc0kz4PltA==} + engines: {node: '>=20.18.0'} + peerDependencies: + vue: ^2.7.0 || ^3.2.25 + peerDependenciesMeta: + vue: + optional: true + '@vue/babel-helper-vue-transform-on@1.2.5': resolution: {integrity: sha512-lOz4t39ZdmU4DJAa2hwPYmKc8EsuGa2U0L9KaZaOJUt0UwQNjNA3AZTq6uEivhOKhhG1Wvy96SvYBoFmCg3uuw==} @@ -1918,6 +1933,11 @@ packages: engines: {node: '>=0.4.0'} hasBin: true + acorn@8.14.1: + resolution: {integrity: sha512-OvQ/2pUDKmgfCg++xsTX1wGxfTaszcHVcTctW4UJB4hibJx2HXxxO5UmVgyjMa+ZDsiaf5wWLXYpRWMmBI0QHg==} + engines: {node: '>=0.4.0'} + hasBin: true + aggregate-error@3.1.0: resolution: {integrity: sha512-4I7Td01quW/RpocfNayFdFVk1qSuoh0E7JrbRJ16nH01HhKFQ88INq9Sd+nd72zqRySlr9BmDA8xlEJ6vJMrYA==} engines: {node: '>=8'} @@ -2013,6 +2033,14 @@ packages: assertion-error@1.1.0: resolution: {integrity: sha512-jgsaNduz+ndvGyFt3uSuWqvy4lCnIJiovtouQN5JZHOKCS2QuhEdbcQHFhVksz2N2U9hXJo8odG7ETyWlEeuDw==} + ast-kit@2.1.0: + resolution: {integrity: sha512-ROM2LlXbZBZVk97crfw8PGDOBzzsJvN2uJCmwswvPUNyfH14eg90mSN3xNqsri1JS1G9cz0VzeDUhxJkTrr4Ew==} + engines: {node: '>=20.18.0'} + + ast-walker-scope@0.8.1: + resolution: {integrity: sha512-72XOdbzQCMKERvFrxAykatn2pu7osPNq/sNUzwcHdWzwPvOsNpPqkawfDXVvQbA2RT+ivtsMNjYdojTUZitt1A==} + engines: {node: '>=20.18.0'} + async-function@1.0.0: resolution: {integrity: sha512-hsU18Ae8CDTR6Kgu9DYf0EbCr/a5iGL0rytQDobUcdpYOKokk8LEjVphnXkDkgpi0wYVsqrXuP0bZxJaTqdgoA==} engines: {node: '>= 0.4'} @@ -2292,6 +2320,9 @@ packages: confbox@0.1.8: resolution: {integrity: sha512-RMtmw0iFkeR4YV+fUOSucriAQNb9g8zFR52MWCtl+cCZOFRNL6zeB395vPzFhEjjn4fMxXudmELnl/KF/WrK6w==} + confbox@0.2.2: + resolution: {integrity: sha512-1NB+BKqhtNipMsov4xI/NnhCKp9XG9NamYp5PVm9klAT0fsrNPjaFICsCFhNhwZJKNh7zB/3q8qXz0E9oaMNtQ==} + consola@2.15.3: resolution: {integrity: sha512-9vAdYbHj6x2fLKC4+oPH0kFzY/orMZyG2Aj+kNylHxKGJ/Ed4dpNyAQYwJOdqO4zdM7XpVHmyejQDcQHrnuXbw==} @@ -2762,6 +2793,9 @@ packages: resolution: {integrity: sha512-A5EmesHW6rfnZ9ysHQjPdJRni0SRar0tjtG5MNtm9n5TUvsYU8oozprtRD4AqHxcZWWlVuAmQo2nWKfN9oyjTw==} engines: {node: '>=0.10.0'} + exsolve@1.0.5: + resolution: {integrity: sha512-pz5dvkYYKQ1AHVrgOzBKWeP4u4FRb3a6DNK2ucr0OoNwYIU4QWsJ+NM36LLzORT+z845MzKHHhpXiUF5nvQoJg==} + extend@3.0.2: resolution: {integrity: sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==} @@ -3516,6 +3550,10 @@ packages: resolution: {integrity: sha512-SFppqq5p42fe2qcZQqqEOiVRXl+WCP1MdT6k7BDEW1j++sp5fIY+/fdRQitvKgB5BrBcmrs5m/L0v2FrU5MY1g==} engines: {node: '>=14'} + local-pkg@1.1.1: + resolution: {integrity: sha512-WunYko2W1NcdfAFpuLUoucsgULmgDBRkdxHxWQ7mK0cQqwPiy8E1enjuRBrhLtZkB5iScJ1XIPdhVEFK8aOLSg==} + engines: {node: '>=14'} + locate-path@2.0.0: resolution: {integrity: sha512-NCI2kiDkyR7VeEKm27Kda/iQHyKJe1Bu0FlTbYp3CqJu+9IFe9bLyAjMxf5ZDDbEg+iMPzB5zYyUTSm8wVTKmA==} engines: {node: '>=4'} @@ -3604,6 +3642,10 @@ packages: lru-cache@5.1.1: resolution: {integrity: sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==} + magic-string-ast@0.9.1: + resolution: {integrity: sha512-18dv2ZlSSgJ/jDWlZGKfnDJx56ilNlYq9F7NnwuWTErsmYmqJ2TWE4l1o2zlUHBYUGBy3tIhPCC1gxq8M5HkMA==} + engines: {node: '>=20.18.0'} + magic-string@0.27.0: resolution: {integrity: sha512-8UnnX2PeRAPZuN12svgR9j7M1uWMovg/CEnIwIG0LFkXSJJe4PdfUGiTGl8V9bsBHFUtfVINcSyYxd7q+kx9fA==} engines: {node: '>=12'} @@ -4071,6 +4113,9 @@ packages: pkg-types@1.3.1: resolution: {integrity: sha512-/Jm5M4RvtBFVkKWRu2BLUTNP8/M2a+UwuAX+ae4770q1qVGtfjG+WTCupoZixokjmHiry8uI+dlY8KXYV5HVVQ==} + pkg-types@2.1.0: + resolution: {integrity: sha512-wmJwA+8ihJixSoHKxZJRBQG1oY8Yr9pGLzRmSsNms0iNWyHHAlZCa7mmKiFR10YPZuz/2k169JiS/inOjBCZ2A==} + pkg-up@3.1.0: resolution: {integrity: sha512-nDywThFk1i4BQK4twPQ6TA4RT8bDY96yeuCVBWL3ePARCiEKDRSrNGbFIgUJpLp+XeIR65v8ra7WuJOFUBtkMA==} engines: {node: '>=8'} @@ -4175,6 +4220,9 @@ packages: resolution: {integrity: sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==} engines: {node: '>=6'} + quansync@0.2.10: + resolution: {integrity: sha512-t41VRkMYbkHyCYmOvx/6URnN80H7k4X0lLdBMGsz+maAwrJQYB1djpV6vHrQIBE0WBSGqhtEHrK9U3DWWH8v7A==} + queue-microtask@1.2.3: resolution: {integrity: sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==} @@ -4784,6 +4832,10 @@ packages: '@vueuse/core': optional: true + unplugin-utils@0.2.4: + resolution: {integrity: sha512-8U/MtpkPkkk3Atewj1+RcKIjb5WBimZ/WSLhhR3w6SsIj8XJuKTacSP8g+2JhfSGw0Cb125Y+2zA/IzJZDVbhA==} + engines: {node: '>=18.12.0'} + unplugin-vue-components@0.22.12: resolution: {integrity: sha512-FxyzsuBvMCYPIk+8cgscGBQ345tvwVu+qY5IhE++eorkyvA4Z1TiD/HCiim+Kbqozl10i4K+z+NCa2WO2jexRA==} engines: {node: '>=14'} @@ -4794,10 +4846,18 @@ packages: '@babel/parser': optional: true + unplugin-vue-define-options@3.0.0-beta.14: + resolution: {integrity: sha512-sbcFwF4ZkeQSUqw5Qw8o6Uf5Tc3P9umQf5bddQ8Kts9DEyZdTX+WlqjvyZzGSBPdFlYKm2CBj+xtNf+cOpSTnA==} + engines: {node: '>=20.18.0'} + unplugin@1.16.1: resolution: {integrity: sha512-4/u/j4FrCKdi17jaxuJA0jClGxB1AvU2hw/IuayPc4ay1XGaJs/rbb4v5WKwAjNifjmXK9PIFyuPiaK8azyR9w==} engines: {node: '>=14.0.0'} + unplugin@2.3.5: + resolution: {integrity: sha512-RyWSb5AHmGtjjNQ6gIlA67sHOsWpsbWpwDokLwTcejVdOjEkJZh7QKu14J00gDDVSh8kGH4KYC/TNBceXFZhtw==} + engines: {node: '>=18.12.0'} + update-browserslist-db@1.1.2: resolution: {integrity: sha512-PPypAm5qvlD7XMZC3BujecnaOxwhrtoFR+Dqkk5Aa/6DssiH0ibKoketaj9w8LP7Bont1rYeoV5plxD7RTEPRg==} hasBin: true @@ -4924,6 +4984,12 @@ packages: vue-clipboard3@2.0.0: resolution: {integrity: sha512-Q9S7dzWGax7LN5iiSPcu/K1GGm2gcBBlYwmMsUc5/16N6w90cbKow3FnPmPs95sungns4yvd9/+JhbAznECS2A==} + vue-cropper-h5@2.0.1: + resolution: {integrity: sha512-3d6MP1zUGiZGxwrUo3ShZ8JYdyF7JUUryJBHaz/zC/3ZYXqnU8srvTGEjN0w7qhZwTkpArvpd0f3OkhXsaEtdw==} + + vue-cropper@1.1.4: + resolution: {integrity: sha512-5m98vBsCEI9rbS4JxELxXidtAui3qNyTHLHg67Qbn7g8cg+E6LcnC+hh3SM/p94x6mFh6KRxT1ttnta+wCYqWA==} + vue-cropperjs@5.0.0: resolution: {integrity: sha512-RhnC8O33uRZNkn74aiHZwNHnBJOXWlS4P6gsRI0lw4cZlWjKSCywZI9oSI9POlIPI6OYv30jvnHMXGch85tw7w==} peerDependencies: @@ -6707,6 +6773,16 @@ snapshots: '@volar/language-core': 1.11.1 path-browserify: 1.0.1 + '@vue-macros/common@3.0.0-beta.14(vue@3.5.13(typescript@4.9.5))': + dependencies: + '@vue/compiler-sfc': 3.5.16 + ast-kit: 2.1.0 + local-pkg: 1.1.1 + magic-string-ast: 0.9.1 + unplugin-utils: 0.2.4 + optionalDependencies: + vue: 3.5.13(typescript@4.9.5) + '@vue/babel-helper-vue-transform-on@1.2.5': {} '@vue/babel-plugin-jsx@1.2.5(@babel/core@7.26.9)': @@ -6739,7 +6815,7 @@ snapshots: '@vue/compiler-core@3.5.13': dependencies: - '@babel/parser': 7.26.9 + '@babel/parser': 7.27.5 '@vue/shared': 3.5.13 entities: 4.5.0 estree-walker: 2.0.2 @@ -6908,6 +6984,8 @@ snapshots: acorn@8.14.0: {} + acorn@8.14.1: {} + aggregate-error@3.1.0: dependencies: clean-stack: 2.2.0 @@ -7018,6 +7096,16 @@ snapshots: assertion-error@1.1.0: {} + ast-kit@2.1.0: + dependencies: + '@babel/parser': 7.27.5 + pathe: 2.0.3 + + ast-walker-scope@0.8.1: + dependencies: + '@babel/parser': 7.27.5 + ast-kit: 2.1.0 + async-function@1.0.0: {} async-validator@4.2.5: {} @@ -7352,6 +7440,8 @@ snapshots: confbox@0.1.8: {} + confbox@0.2.2: {} + consola@2.15.3: {} constant-case@3.0.4: @@ -8007,6 +8097,8 @@ snapshots: dependencies: homedir-polyfill: 1.0.3 + exsolve@1.0.5: {} + extend@3.0.2: {} external-editor@2.2.0: @@ -8840,6 +8932,12 @@ snapshots: local-pkg@0.4.3: {} + local-pkg@1.1.1: + dependencies: + mlly: 1.7.4 + pkg-types: 2.1.0 + quansync: 0.2.10 + locate-path@2.0.0: dependencies: p-locate: 2.0.0 @@ -8919,6 +9017,10 @@ snapshots: dependencies: yallist: 3.1.1 + magic-string-ast@0.9.1: + dependencies: + magic-string: 0.30.17 + magic-string@0.27.0: dependencies: '@jridgewell/sourcemap-codec': 1.5.0 @@ -9387,6 +9489,12 @@ snapshots: mlly: 1.7.4 pathe: 2.0.3 + pkg-types@2.1.0: + dependencies: + confbox: 0.2.2 + exsolve: 1.0.5 + pathe: 2.0.3 + pkg-up@3.1.0: dependencies: find-up: 3.0.0 @@ -9489,6 +9597,8 @@ snapshots: punycode@2.3.1: {} + quansync@0.2.10: {} + queue-microtask@1.2.3: {} read-cache@1.0.0: @@ -10138,6 +10248,11 @@ snapshots: transitivePeerDependencies: - rollup + unplugin-utils@0.2.4: + dependencies: + pathe: 2.0.3 + picomatch: 4.0.2 + unplugin-vue-components@0.22.12(@babel/parser@7.27.5)(rollup@3.29.5)(vue@3.5.13(typescript@4.9.5)): dependencies: '@antfu/utils': 0.7.10 @@ -10157,11 +10272,25 @@ snapshots: - rollup - supports-color + unplugin-vue-define-options@3.0.0-beta.14(vue@3.5.13(typescript@4.9.5)): + dependencies: + '@vue-macros/common': 3.0.0-beta.14(vue@3.5.13(typescript@4.9.5)) + ast-walker-scope: 0.8.1 + unplugin: 2.3.5 + transitivePeerDependencies: + - vue + unplugin@1.16.1: dependencies: acorn: 8.14.0 webpack-virtual-modules: 0.6.2 + unplugin@2.3.5: + dependencies: + acorn: 8.14.1 + picomatch: 4.0.2 + webpack-virtual-modules: 0.6.2 + update-browserslist-db@1.1.2(browserslist@4.24.4): dependencies: browserslist: 4.24.4 @@ -10268,6 +10397,15 @@ snapshots: dependencies: clipboard: 2.0.11 + vue-cropper-h5@2.0.1(typescript@4.9.5): + dependencies: + vue: 3.5.13(typescript@4.9.5) + vue-cropper: 1.1.4 + transitivePeerDependencies: + - typescript + + vue-cropper@1.1.4: {} + vue-cropperjs@5.0.0(vue@3.5.13(typescript@4.9.5)): dependencies: cropperjs: 1.6.2 diff --git a/src/api/badge.ts b/src/api/badge.ts index bc4d2fb..ea33ff4 100644 --- a/src/api/badge.ts +++ b/src/api/badge.ts @@ -1,15 +1,64 @@ import request from '@/utils/request' -// export const calc = (data: any) => { -// return request('queue/calc', { -// method: 'POST', -// data, -// }) -// } - -// export const attr = (params: any) => { -// return request('queue/attr', { -// method: 'GET', -// params, -// }) -// } +// 获取杂图 +export const getSundryList = (params: any) => { + return request('products/sundryList', { + method: 'GET', + params, + }) +} + +// 获取风格类型 +export const getKindList = (params: any) => { + return request('products/kindList', { + method: 'GET', + params, + }) +} + +// 获取上传图片地址 +export const getImageUrl = (params: any) => { + return request('images/uploadUrl', { + method: 'GET', + params, + }) +} + +// 获取图片 +export const getImageList = (params: any) => { + return request('images/getList', { + method: 'GET', + params, + }) +} + +// 获取记录图集 +export const getLogOage = (params: any) => { + return request('images/logPage', { + method: 'GET', + params, + }) +} + +// 获取我的订单 +export const getMyOrder = (params: any) => { + return request('orders/page', { + method: 'GET', + params, + }) +} + +// 获取订单详情 +export const getOrderDetail = (params: any) => { + return request('orders/details', { + method: 'GET', + params, + }) +} + +export const putMOdeling = (data: any) => { + return request('images/putModeling', { + method: 'POST', + data, + }) +} \ No newline at end of file diff --git a/src/config/config.ts b/src/config/config.ts index 91963c1..d94263e 100644 --- a/src/config/config.ts +++ b/src/config/config.ts @@ -1,3 +1,3 @@ export const config: any = { - brand: '3D摄影', + brand: '葡啊立体肖像', } diff --git a/src/lang/data/en.ts b/src/lang/data/en.ts index 50aa16b..0a44da3 100644 --- a/src/lang/data/en.ts +++ b/src/lang/data/en.ts @@ -71,7 +71,7 @@ const en = { "人请等待叫号": "people ahead of you, please wait for your turn.", "返回": "Go back", "排队成功": "Queue successful", - "3D摄影": "3D Photography", + "葡啊立体肖像": "3D Photography", "排队": "Queue", "登录": "Login", "客户手机号和客户编号不能同时为空": "The customer's phone number and customer ID cannot both be empty at the same time.", diff --git a/src/lang/data/ko.ts b/src/lang/data/ko.ts index 8b1c89b..5863575 100644 --- a/src/lang/data/ko.ts +++ b/src/lang/data/ko.ts @@ -70,7 +70,7 @@ const ko = { "人请等待叫号": "명이 있습니다. 호출을 기다려 주세요", "返回": "돌아오다", "排队成功": "줄을 서서 성공하다", - "3D摄影": "3D 촬영", + "葡啊立体肖像": "3D 촬영", "排队": "줄을 서다", "登录": "로그인", "客户手机号和客户编号不能同时为空": "고객 휴대폰 번호와 고객 번호는 동시에 비워 둘 수 없습니다", diff --git a/src/lang/data/zh-CN.ts b/src/lang/data/zh-CN.ts index 952480f..c270372 100644 --- a/src/lang/data/zh-CN.ts +++ b/src/lang/data/zh-CN.ts @@ -70,7 +70,7 @@ const zhCN = { "人请等待叫号": "人请等待叫号", "返回": "返回", "排队成功": "排队成功", - "3D摄影": "3D摄影", + "葡啊立体肖像": "葡啊立体肖像", "排队": "排队", "登录": "登录", "客户手机号和客户编号不能同时为空": "客户手机号和客户编号不能同时为空", diff --git a/src/lang/data/zh-TW.ts b/src/lang/data/zh-TW.ts index 6e59b92..d9e88a9 100644 --- a/src/lang/data/zh-TW.ts +++ b/src/lang/data/zh-TW.ts @@ -69,7 +69,7 @@ const zhCT = { "人请等待叫号": "人請等待叫號", "返回": "返回", "排队成功": "排隊成功", - "3D摄影": "3D攝影", + "葡啊立体肖像": "3D攝影", "排队": "排隊", "登录": "登錄", "客户手机号和客户编号不能同时为空": "客户手機號碼與客戶編號不能同時為空", diff --git a/src/router/index.ts b/src/router/index.ts index 9e29fd6..cc59311 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -4,9 +4,7 @@ import NProgress from 'nprogress' import 'nprogress/nprogress.css' // 导入路由组件 import * as badgeRouter from './badge' -import mian from '@/views/index.vue' -import Login from '@/views/login/index.vue' -import { useTokenStore } from '@/stores/token' +import badge from '@/views/badge/index.vue' import {useStore} from '@/stores' import { config } from '@/config/config' @@ -16,21 +14,13 @@ NProgress.configure({ showSpinner: true, parent: '#app' }) const routes = [ { path: '/', - name: 'main', - component: mian, + name: 'badge', + component: badge, meta: { needGuard: true, title: '首页', }, }, - { - path: '/login', - name: 'login', - component: Login, - meta: { - title: '登录', - }, - }, ] badgeRouter.mergeRoutes(routes) @@ -41,11 +31,10 @@ const router = createRouter({ }) router.beforeEach((_to, _from, next) => { - const tokenStore = useTokenStore() + // const tokenStore = useTokenStore() const store = useStore() - const token = _to.query.token - if (token) { - tokenStore.login(String(token)) + const code = _to.query.code + if (code) { let url = store.redirectUrl() if (_to.path !== '/badge') { @@ -67,28 +56,9 @@ router.beforeEach((_to, _from, next) => { NProgress.start() // start progress bar const needGuard = _to.meta.needGuard if (needGuard) { - if (!tokenStore.isLoggedIn()) { - // 记录本地访问路径 - store.setRedirect(_to.fullPath); - next(`/login`) - } else { - if (_to.path === '/') { - next('/badge') - } else { - next() - } - } - + next() } else { - if (_to.path === '/login') { - if (!tokenStore.isLoggedIn()) { - next() - } else { - next('/badge') - } - } else { - next() - } + next() } }) diff --git a/src/views/badge/cropper.vue b/src/views/badge/cropper.vue deleted file mode 100644 index 3cc2ccf..0000000 --- a/src/views/badge/cropper.vue +++ /dev/null @@ -1,329 +0,0 @@ - - - - - diff --git a/src/views/badge/index.vue b/src/views/badge/index.vue index 8b8f82f..5ddd5f7 100644 --- a/src/views/badge/index.vue +++ b/src/views/badge/index.vue @@ -1,19 +1,18 @@