Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
h5
/
glsx-posters
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit ef149579
authored
May 24, 2023
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复bug
1 parent
653a57d2
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
73 additions
and
72 deletions
src/assets/styles/equity/goodNews.scss
src/utils/config1.ts
src/views/equity/goodNews.vue
vite.config.ts
src/assets/styles/equity/goodNews.scss
View file @
ef14957
...
...
@@ -67,10 +67,11 @@
color
:
#F2383B
;
font-style
:
italic
;
font-weight
:
600
;
align-items
:
baseline
;
.order-unit
{
font-size
:
26px
;
font-style
:
normal
;
margin-left
:
5
px
;
margin-left
:
8
px
;
font-weight
:
400
;
}
}
...
...
src/utils/config1.ts
View file @
ef14957
...
...
@@ -3,12 +3,12 @@
* @Author: huyue
* @Date: 2022-10-10 10:54:14
* @LastEditors: huyue
* @LastEditTime: 2023-05-2
2 15:02:24
* @LastEditTime: 2023-05-2
4 14:27:33
*/
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
(
'https://oss-config.test.glsx.com.cn/mock/618cb9331072f92988f05a23/wx/djposter-config'
,
{}).
then
(
res
=>
res
.
json
())
// return window.fetch('http
s://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()
export
default
fetchConfig1
\ No newline at end of file
src/views/equity/goodNews.vue
View file @
ef14957
...
...
@@ -3,7 +3,7 @@
* @Author: huyue
* @Date: 2022-10-10 15:26:23
* @LastEditors: huyue
* @LastEditTime: 2023-05-2
3 14:06:44
* @LastEditTime: 2023-05-2
4 15:07:55
-->
<
template
>
<div
class=
"wrapper-good equity-box"
>
...
...
@@ -56,19 +56,19 @@
<div
class=
"order-list"
>
<div
class=
"order-item"
>
<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
class=
"order-item"
>
<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
class=
"order-item"
>
<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
class=
"order-item"
>
<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>
...
...
vite.config.ts
View file @
ef14957
/*
* @Description:
* @Author: huyue
* @Date: 2022-10-10 10:54:14
* @LastEditors: huyue
* @LastEditTime: 202
2-10-24 10:10:51
*/
import
{
defineConfig
}
from
'vite'
import
vue
from
'@vitejs/plugin-vue'
import
styleImport
,
{
VantResolve
}
from
'vite-plugin-style-import'
;
import
path
from
'path'
const
resolve
=
(
dir
:
string
)
=>
path
.
join
(
__dirname
,
dir
)
// https://vitejs.dev/config/
export
default
defineConfig
({
base
:
'./'
,
plugins
:
[
vue
(),
styleImport
({
resolves
:
[
VantResolve
()],
libs
:
[
{
libraryName
:
'vant'
,
esModule
:
true
,
resolveStyle
:
(
name
)
=>
{
return
`../es/
${
name
}
/style`
}
}
]
})
],
resolve
:
{
alias
:
{
'@'
:
resolve
(
'src'
),
comps
:
resolve
(
'src/components'
),
apis
:
resolve
(
'src/apis'
),
views
:
resolve
(
'src/views'
),
routes
:
resolve
(
'src/routes'
),
assets
:
resolve
(
'src/assets'
),
utils
:
resolve
(
'src/utils'
)
}
},
server
:
{
// 服务器主机名
host
:
'0.0.0.0'
,
// 端口号
port
:
3000
,
// 设为true时 端口已被占用则会直接退出,而不是尝试下一个可用端口
strictPort
:
false
,
// 服务器启动时自动在浏览器中打开应用程序,当此值为字符串时,会被用作URL的路径名
open
:
false
,
// 自定义代理规则
proxy
:
{
'/api'
:
{
target
:
'http://192.168.
3.101:8247'
,
changeOrigin
:
true
,
rewrite
:
path
=>
path
.
replace
(
/^
\/
api/
,
''
)
}
}
},
// build: {
// target:['edge90','chrome90','firefox90','safari15']
// }
})
/*
* @Description:
* @Author: huyue
* @Date: 2022-10-10 10:54:14
* @LastEditors: huyue
* @LastEditTime: 202
3-05-24 10:18:45
*/
import
{
defineConfig
}
from
'vite'
import
vue
from
'@vitejs/plugin-vue'
import
styleImport
,
{
VantResolve
}
from
'vite-plugin-style-import'
;
import
path
from
'path'
const
resolve
=
(
dir
:
string
)
=>
path
.
join
(
__dirname
,
dir
)
// https://vitejs.dev/config/
export
default
defineConfig
({
base
:
'./'
,
plugins
:
[
vue
(),
styleImport
({
resolves
:
[
VantResolve
()],
libs
:
[
{
libraryName
:
'vant'
,
esModule
:
true
,
resolveStyle
:
(
name
)
=>
{
return
`../es/
${
name
}
/style`
}
}
]
})
],
resolve
:
{
alias
:
{
'@'
:
resolve
(
'src'
),
comps
:
resolve
(
'src/components'
),
apis
:
resolve
(
'src/apis'
),
views
:
resolve
(
'src/views'
),
routes
:
resolve
(
'src/routes'
),
assets
:
resolve
(
'src/assets'
),
utils
:
resolve
(
'src/utils'
)
}
},
server
:
{
// 服务器主机名
host
:
'0.0.0.0'
,
// 端口号
port
:
3000
,
// 设为true时 端口已被占用则会直接退出,而不是尝试下一个可用端口
strictPort
:
false
,
// 服务器启动时自动在浏览器中打开应用程序,当此值为字符串时,会被用作URL的路径名
open
:
false
,
// 自定义代理规则
proxy
:
{
'/api'
:
{
target
:
'http://192.168.
1.68:7001'
,
changeOrigin
:
true
,
rewrite
:
path
=>
path
.
replace
(
/^
\/
api/
,
''
)
}
}
},
// build: {
// target:['edge90','chrome90','firefox90','safari15']
// }
})
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment