diff --git a/.env.production b/.env.production index d60d340..11c75f2 100644 --- a/.env.production +++ b/.env.production @@ -1,4 +1,4 @@ -VITE_API_BASE_URL = 'http://store-manage.hmily.club' +VITE_API_BASE_URL = 'https://store.manage.zlgj168.com' diff --git a/驾驶舱.zip b/dist-驾驶舱-正式.zip similarity index 60% rename from 驾驶舱.zip rename to dist-驾驶舱-正式.zip index 8f32bb3..b48f8c7 100644 Binary files a/驾驶舱.zip and b/dist-驾驶舱-正式.zip differ diff --git a/src/views/home/components/rank.vue b/src/views/home/components/rank.vue index c812ab4..0719cbc 100644 --- a/src/views/home/components/rank.vue +++ b/src/views/home/components/rank.vue @@ -103,12 +103,14 @@ function __SetOption(data) { lists.push(item[1]) values.push(__getColorValue(item[1], item[2], index)) }) + const max = Math.max(...values.map((e) => e.value)) + const maxValue = new Array(values.length).fill(max) let option = { grid: { top: '10px', left: '10px', - right: '40px', + right: '70px', bottom: 0, }, yAxis: [ @@ -129,19 +131,19 @@ function __SetOption(data) { axisLabel: { show: false }, }, series: [ - // { - // show: true, - // type: 'bar', - // barGap: '-100%', - // barWidth: barWidth, - // itemStyle: { - // normal: { - // color: 'rgba(102, 102, 102,0.5)', - // }, - // }, - // z: 1, - // data: values.map(()=>1), - // }, + { + show: true, + type: 'bar', + barGap: '-100%', + barWidth: barWidth, + itemStyle: { + normal: { + color: 'transparent', + }, + }, + z: 1, + data: maxValue, + }, { name: '排行', type: 'bar', @@ -149,7 +151,6 @@ function __SetOption(data) { data: values, animationDuration: 1500, zlevel: 2, - label: { normal: { show: true, @@ -174,7 +175,7 @@ function __SetOption(data) { barGap: '-100%', animationDuration: 1500, zlevel: 2, - label:{normal:{show:true, position:"right"}}, + label: { normal: { show: true, position: 'right' } }, }, ], } diff --git a/vite.config.js b/vite.config.js index 8b8c49f..479fb96 100644 --- a/vite.config.js +++ b/vite.config.js @@ -12,7 +12,8 @@ export default defineConfig(({ mode }) => { host: '0.0.0.0', proxy: { '/api': { - target: 'http://store-manage.hmily.club', + // target: 'http://store-manage.hmily.club', + target: 'https://store.manage.zlgj168.com', changeOrigin: true, ws: true, rewrite: (path) => path.replace(/^\/api/, ''),