Commit ef149579 by 胡悦

修复bug

1 parent 653a57d2
...@@ -67,10 +67,11 @@ ...@@ -67,10 +67,11 @@
color: #F2383B; color: #F2383B;
font-style: italic; font-style: italic;
font-weight: 600; font-weight: 600;
align-items: baseline;
.order-unit { .order-unit {
font-size: 26px; font-size: 26px;
font-style: normal; font-style: normal;
margin-left: 5px; margin-left: 8px;
font-weight: 400; font-weight: 400;
} }
} }
......
...@@ -3,12 +3,12 @@ ...@@ -3,12 +3,12 @@
* @Author: huyue * @Author: huyue
* @Date: 2022-10-10 10:54:14 * @Date: 2022-10-10 10:54:14
* @LastEditors: huyue * @LastEditors: huyue
* @LastEditTime: 2023-05-22 15:02:24 * @LastEditTime: 2023-05-24 14:27:33
*/ */
const fetchConfig1 = function (isEnv = true) { const fetchConfig1 = function (isEnv = true) {
// return window.fetch('http://oss-config.dev.glsx.com.cn/mock/618cb9331072f92988f05a23/wx/djposter-config', {}).then(res => res.json()) // return window.fetch('http://oss-config.dev.glsx.com.cn/mock/618cb9331072f92988f05a23/wx/djposter-config', {}).then(res => res.json())
return window.fetch('https://oss-config.test.glsx.com.cn/mock/618cb9331072f92988f05a23/wx/djposter-config', {}).then(res => res.json()) return window.fetch('https://oss-config.test.glsx.com.cn/mock/618cb9331072f92988f05a23/wx/djposter-config', {}).then(res => res.json())
// return window.fetch('https://config-center-backend.glsx.com.cn/glsxAdmin/config?moduleUrl=djposter-config').then(res => res.json()) // return window.fetch('http://192.168.1.68:7001/glsxAdmin/config?moduleUrl=djposter-config').then(res => res.json())
} }
// const $mockConfig = await fetchConfig() // const $mockConfig = await fetchConfig()
export default fetchConfig1 export default fetchConfig1
\ No newline at end of file \ No newline at end of file
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @Author: huyue * @Author: huyue
* @Date: 2022-10-10 15:26:23 * @Date: 2022-10-10 15:26:23
* @LastEditors: huyue * @LastEditors: huyue
* @LastEditTime: 2023-05-23 14:06:44 * @LastEditTime: 2023-05-24 15:07:55
--> -->
<template> <template>
<div class="wrapper-good equity-box"> <div class="wrapper-good equity-box">
...@@ -56,19 +56,19 @@ ...@@ -56,19 +56,19 @@
<div class="order-list"> <div class="order-list">
<div class="order-item"> <div class="order-item">
<div class="order-label">今日单量</div> <div class="order-label">今日单量</div>
<div class="order-value">{{data.newInfo!.orderNumber}}<span class="order-unit">单</span></div> <div class="order-value"><span>{{data.newInfo!.orderNumber?.toLocaleString()}}</span><span class="order-unit">单</span></div>
</div> </div>
<div class="order-item"> <div class="order-item">
<div class="order-label">升级客单价</div> <div class="order-label">升级客单价</div>
<div class="order-value">{{data.newInfo!.orderPrice}}<span class="order-unit">元</span></div> <div class="order-value"><span>{{data.newInfo!.orderPrice?.toLocaleString()}}</span><span class="order-unit">元</span></div>
</div> </div>
<div class="order-item"> <div class="order-item">
<div class="order-label">本月累计单量</div> <div class="order-label">本月累计单量</div>
<div class="order-value">{{data.newInfo!.monthOrderNumber}}<span class="order-unit">单</span></div> <div class="order-value"><span>{{data.newInfo!.monthOrderNumber?.toLocaleString()}}</span><span class="order-unit">单</span></div>
</div> </div>
<div class="order-item"> <div class="order-item">
<div class="order-label">本月累计产值</div> <div class="order-label">本月累计产值</div>
<div class="order-value">{{data.newInfo!.monthTurnover}}<span class="order-unit">元</span></div> <div class="order-value"><span>{{data.newInfo!.monthTurnover?.toLocaleString()}}</span><span class="order-unit">元</span></div>
</div> </div>
</div> </div>
</div> </div>
......
/* /*
* @Description: * @Description:
* @Author: huyue * @Author: huyue
* @Date: 2022-10-10 10:54:14 * @Date: 2022-10-10 10:54:14
* @LastEditors: huyue * @LastEditors: huyue
* @LastEditTime: 2022-10-24 10:10:51 * @LastEditTime: 2023-05-24 10:18:45
*/ */
import { defineConfig } from 'vite' import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue' import vue from '@vitejs/plugin-vue'
import styleImport, { VantResolve } from 'vite-plugin-style-import'; import styleImport, { VantResolve } from 'vite-plugin-style-import';
import path from 'path' import path from 'path'
const resolve = (dir: string) => path.join(__dirname, dir) const resolve = (dir: string) => path.join(__dirname, dir)
// https://vitejs.dev/config/ // https://vitejs.dev/config/
export default defineConfig({ export default defineConfig({
base: './', base: './',
plugins: [ plugins: [
vue(), vue(),
styleImport({ styleImport({
resolves: [VantResolve()], resolves: [VantResolve()],
libs: [ libs: [
{ {
libraryName: 'vant', libraryName: 'vant',
esModule: true, esModule: true,
resolveStyle: (name) => { resolveStyle: (name) => {
return `../es/${name}/style` return `../es/${name}/style`
} }
} }
] ]
}) })
], ],
resolve: { resolve: {
alias: { alias: {
'@': resolve('src'), '@': resolve('src'),
comps: resolve('src/components'), comps: resolve('src/components'),
apis: resolve('src/apis'), apis: resolve('src/apis'),
views: resolve('src/views'), views: resolve('src/views'),
routes: resolve('src/routes'), routes: resolve('src/routes'),
assets: resolve('src/assets'), assets: resolve('src/assets'),
utils: resolve('src/utils') utils: resolve('src/utils')
} }
}, },
server: { server: {
// 服务器主机名 // 服务器主机名
host: '0.0.0.0', host: '0.0.0.0',
// 端口号 // 端口号
port: 3000, port: 3000,
// 设为true时 端口已被占用则会直接退出,而不是尝试下一个可用端口 // 设为true时 端口已被占用则会直接退出,而不是尝试下一个可用端口
strictPort: false, strictPort: false,
// 服务器启动时自动在浏览器中打开应用程序,当此值为字符串时,会被用作URL的路径名 // 服务器启动时自动在浏览器中打开应用程序,当此值为字符串时,会被用作URL的路径名
open: false, open: false,
// 自定义代理规则 // 自定义代理规则
proxy: { proxy: {
'/api': { '/api': {
target: 'http://192.168.3.101:8247', target: 'http://192.168.1.68:7001',
changeOrigin: true, changeOrigin: true,
rewrite: path => path.replace(/^\/api/, '') rewrite: path => path.replace(/^\/api/, '')
} }
} }
}, },
// build: { // build: {
// target:['edge90','chrome90','firefox90','safari15'] // target:['edge90','chrome90','firefox90','safari15']
// } // }
}) })
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!