-
+
-
+
{{ spu.name }}
@@ -51,8 +51,8 @@
¥{{ fenToYuan(spu.seckillPrice || spu.price || 0) }}
@@ -62,11 +62,11 @@
-
-
+
diff --git a/src/layout/components/TagsView/src/TagsView.vue b/src/layout/components/TagsView/src/TagsView.vue
index cdd7494d..6061d1fe 100644
--- a/src/layout/components/TagsView/src/TagsView.vue
+++ b/src/layout/components/TagsView/src/TagsView.vue
@@ -1,7 +1,7 @@
diff --git a/src/views/member/user/UserLevelUpdateForm.vue b/src/views/member/user/components/UserLevelUpdateForm.vue
similarity index 100%
rename from src/views/member/user/UserLevelUpdateForm.vue
rename to src/views/member/user/components/UserLevelUpdateForm.vue
diff --git a/src/views/member/user/UserPointUpdateForm.vue b/src/views/member/user/components/UserPointUpdateForm.vue
similarity index 91%
rename from src/views/member/user/UserPointUpdateForm.vue
rename to src/views/member/user/components/UserPointUpdateForm.vue
index 967ebe03..c277d9bf 100644
--- a/src/views/member/user/UserPointUpdateForm.vue
+++ b/src/views/member/user/components/UserPointUpdateForm.vue
@@ -1,11 +1,11 @@
-
-
-
-
-
- 余额列表
-
-
-
diff --git a/src/views/member/user/detail/UserAccountInfo.vue b/src/views/member/user/detail/UserAccountInfo.vue
index 7b7d6622..49071fdb 100644
--- a/src/views/member/user/detail/UserAccountInfo.vue
+++ b/src/views/member/user/detail/UserAccountInfo.vue
@@ -2,57 +2,57 @@
-
+
{{ user.levelName || '无' }}
-
+
{{ user.experience || 0 }}
-
+
{{ user.point || 0 }}
-
+
{{ user.totalPoint || 0 }}
-
+
{{ fenToYuan(wallet.balance || 0) }}
-
+
{{ fenToYuan(wallet.totalExpense || 0) }}
-
+
{{ fenToYuan(wallet.totalRecharge || 0) }}
-
-
diff --git a/src/views/member/user/detail/index.vue b/src/views/member/user/detail/index.vue
index c87c1253..202bd622 100644
--- a/src/views/member/user/detail/index.vue
+++ b/src/views/member/user/detail/index.vue
@@ -7,7 +7,7 @@
@@ -16,16 +16,16 @@
-
+
-
+
-
+
@@ -39,7 +39,6 @@
-
@@ -69,7 +68,7 @@
-
-
+
diff --git a/vite.config.ts b/vite.config.ts
index 6ee45630..3ef21f26 100644
--- a/vite.config.ts
+++ b/vite.config.ts
@@ -1,85 +1,85 @@
-import { resolve } from 'path'
-import { loadEnv } from 'vite'
-import type { UserConfig, ConfigEnv } from 'vite'
-import { createVitePlugins } from './build/vite'
-import { include, exclude } from "./build/vite/optimize"
+import {resolve} from 'path'
+import type {ConfigEnv, UserConfig} from 'vite'
+import {loadEnv} from 'vite'
+import {createVitePlugins} from './build/vite'
+import {exclude, include} from "./build/vite/optimize"
// 当前执行node命令时文件夹的地址(工作目录)
const root = process.cwd()
// 路径查找
function pathResolve(dir: string) {
- return resolve(root, '.', dir)
+ return resolve(root, '.', dir)
}
// https://vitejs.dev/config/
-export default ({ command, mode }: ConfigEnv): UserConfig => {
- let env = {} as any
- const isBuild = command === 'build'
- if (!isBuild) {
- env = loadEnv((process.argv[3] === '--mode' ? process.argv[4] : process.argv[3]), root)
- } else {
- env = loadEnv(mode, root)
- }
- return {
- base: env.VITE_BASE_PATH,
- root: root,
- // 服务端渲染
- server: {
- port: env.VITE_PORT, // 端口号
- host: "0.0.0.0",
- open: env.VITE_OPEN === 'true',
- // 本地跨域代理. 目前注释的原因:暂时没有用途,server 端已经支持跨域
- // proxy: {
- // ['/admin-api']: {
- // target: env.VITE_BASE_URL,
- // ws: false,
- // changeOrigin: true,
- // rewrite: (path) => path.replace(new RegExp(`^/admin-api`), ''),
- // },
- // },
- },
- // 项目使用的vite插件。 单独提取到build/vite/plugin中管理
- plugins: createVitePlugins(),
- css: {
- preprocessorOptions: {
- scss: {
- additionalData: '@import "./src/styles/variables.scss";',
- javascriptEnabled: true
- }
- }
- },
- resolve: {
- extensions: ['.mjs', '.js', '.ts', '.jsx', '.tsx', '.json', '.scss', '.css'],
- alias: [
- {
- find: 'vue-i18n',
- replacement: 'vue-i18n/dist/vue-i18n.cjs.js'
+export default ({command, mode}: ConfigEnv): UserConfig => {
+ let env = {} as any
+ const isBuild = command === 'build'
+ if (!isBuild) {
+ env = loadEnv((process.argv[3] === '--mode' ? process.argv[4] : process.argv[3]), root)
+ } else {
+ env = loadEnv(mode, root)
+ }
+ return {
+ base: env.VITE_BASE_PATH,
+ root: root,
+ // 服务端渲染
+ server: {
+ port: env.VITE_PORT, // 端口号
+ host: "0.0.0.0",
+ open: env.VITE_OPEN === 'true',
+ // 本地跨域代理. 目前注释的原因:暂时没有用途,server 端已经支持跨域
+ // proxy: {
+ // ['/admin-api']: {
+ // target: env.VITE_BASE_URL,
+ // ws: false,
+ // changeOrigin: true,
+ // rewrite: (path) => path.replace(new RegExp(`^/admin-api`), ''),
+ // },
+ // },
},
- {
- find: /\@\//,
- replacement: `${pathResolve('src')}/`
- }
- ]
- },
- build: {
- minify: 'terser',
- outDir: env.VITE_OUT_DIR || 'dist',
- sourcemap: env.VITE_SOURCEMAP === 'true' ? 'inline' : false,
- // brotliSize: false,
- terserOptions: {
- compress: {
- drop_debugger: env.VITE_DROP_DEBUGGER === 'true',
- drop_console: env.VITE_DROP_CONSOLE === 'true'
- }
- },
- rollupOptions: {
- output: {
- manualChunks: {
- echarts: ['echarts'] // 将 echarts 单独打包,参考 https://gitee.com/yudaocode/yudao-ui-admin-vue3/issues/IAB1SX 讨论
- }
+ // 项目使用的vite插件。 单独提取到build/vite/plugin中管理
+ plugins: createVitePlugins(),
+ css: {
+ preprocessorOptions: {
+ scss: {
+ additionalData: '@import "./src/styles/variables.scss";',
+ javascriptEnabled: true
+ }
+ }
},
- },
- },
- optimizeDeps: { include, exclude }
- }
+ resolve: {
+ extensions: ['.mjs', '.js', '.ts', '.jsx', '.tsx', '.json', '.scss', '.css'],
+ alias: [
+ {
+ find: 'vue-i18n',
+ replacement: 'vue-i18n/dist/vue-i18n.cjs.js'
+ },
+ {
+ find: /\@\//,
+ replacement: `${pathResolve('src')}/`
+ }
+ ]
+ },
+ build: {
+ minify: 'terser',
+ outDir: env.VITE_OUT_DIR || 'dist',
+ sourcemap: env.VITE_SOURCEMAP === 'true' ? 'inline' : false,
+ // brotliSize: false,
+ terserOptions: {
+ compress: {
+ drop_debugger: env.VITE_DROP_DEBUGGER === 'true',
+ drop_console: env.VITE_DROP_CONSOLE === 'true'
+ }
+ },
+ rollupOptions: {
+ output: {
+ manualChunks: {
+ echarts: ['echarts'] // 将 echarts 单独打包,参考 https://gitee.com/yudaocode/yudao-ui-admin-vue3/issues/IAB1SX 讨论
+ }
+ },
+ },
+ },
+ optimizeDeps: {include, exclude}
+ }
}