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 52175f2e
authored
May 22, 2023
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改配置
1 parent
91e34f0b
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
48 additions
and
40 deletions
src/utils/config.ts
src/utils/config1.ts
src/views/equity/interface/goodNew.ts
src/views/equity/interface/report.ts
src/views/equity/storeReport.vue
src/utils/config.ts
View file @
52175f2
...
@@ -3,11 +3,12 @@
...
@@ -3,11 +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-0
3-21 17:39:2
1
* @LastEditTime: 2023-0
5-18 18:02:5
1
*/
*/
const
fetchConfig
=
function
(
isEnv
=
true
)
{
const
fetchConfig
=
function
(
isEnv
=
true
)
{
// return window.fetch('https://oss-config.dev.glsx.com.cn/mock/618cb9331072f92988f05a23/wx/h5-config', {}).then(res => res.json())
// return window.fetch('https://oss-config.dev.glsx.com.cn/mock/618cb9331072f92988f05a23/wx/h5-config', {}).then(res => res.json())
return
window
.
fetch
(
'https://oss-config.test.glsx.com.cn/mock/618cb9331072f92988f05a23/wx/h5-config'
,
{}).
then
(
res
=>
res
.
json
())
// return window.fetch('https://oss-config.test.glsx.com.cn/mock/618cb9331072f92988f05a23/wx/h5-config', {}).then(res => res.json())
return
window
.
fetch
(
'https://config-center-backend.glsx.com.cn/glsxAdmin/config?moduleUrl=h5-config'
).
then
(
res
=>
res
.
json
())
}
}
// const $mockConfig = await fetchConfig()
// const $mockConfig = await fetchConfig()
export
default
fetchConfig
export
default
fetchConfig
\ No newline at end of file
\ No newline at end of file
src/utils/config1.ts
View file @
52175f2
...
@@ -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-1
5 17:08:11
* @LastEditTime: 2023-05-1
8 18:00:50
*/
*/
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'
)
return
window
.
fetch
(
'https://config-center-backend.glsx.com.cn/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
src/views/equity/interface/goodNew.ts
View file @
52175f2
/*
* @Description:
* @Author: huyue
* @Date: 2023-05-11 10:37:31
* @LastEditors: huyue
* @LastEditTime: 2023-05-22 13:59:13
*/
// 接口入参定义
// 接口入参定义
export
interface
Params
{
export
interface
Params
{
merchantId4s
?:
number
;
merchantId4s
?:
number
;
...
@@ -11,16 +18,16 @@ export interface DataInfo {
...
@@ -11,16 +18,16 @@ export interface DataInfo {
}
}
export
interface
NewsData
{
export
interface
NewsData
{
merchantId4s
:
number
;
merchantId4s
?
:
number
;
createTime
:
string
;
createTime
?
:
string
;
monthTurnover
:
number
;
monthTurnover
?
:
number
;
merchantName4s
:
string
;
merchantName4s
?
:
string
;
orderNumber
:
number
;
orderNumber
?
:
number
;
monthOrderNumber
:
number
;
monthOrderNumber
?
:
number
;
referrerId
:
string
;
referrerId
?
:
string
;
orderPrice
:
number
;
orderPrice
?
:
number
;
departmentName
:
string
;
departmentName
?
:
string
;
referrerWeChatAvatar
:
string
;
referrerWeChatAvatar
?
:
string
;
referrer
:
string
;
referrer
?
:
string
;
reportName
:
string
;
reportName
?
:
string
;
}
}
\ No newline at end of file
\ No newline at end of file
src/views/equity/interface/report.ts
View file @
52175f2
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
* @Author: huyue
* @Author: huyue
* @Date: 2023-05-16 16:24:07
* @Date: 2023-05-16 16:24:07
* @LastEditors: huyue
* @LastEditors: huyue
* @LastEditTime: 2023-05-
16 17:40:45
* @LastEditTime: 2023-05-
22 13:58:42
*/
*/
export
interface
Params
{
export
interface
Params
{
merchantId4s
?:
number
;
merchantId4s
?:
number
;
...
@@ -17,29 +17,29 @@ export interface DataInfo {
...
@@ -17,29 +17,29 @@ export interface DataInfo {
}
}
export
interface
ReportData
{
export
interface
ReportData
{
merchantId4s
:
number
;
merchantId4s
?
:
number
;
successCustomerTotal
:
number
;
successCustomerTotal
?
:
number
;
avgDayOrderPrice
:
number
;
avgDayOrderPrice
?
:
number
;
customerTotal
:
number
;
customerTotal
?
:
number
;
avgMonthOrderPrice
:
number
;
avgMonthOrderPrice
?
:
number
;
createTime
?:
string
;
createTime
?:
string
;
monthTurnover
:
number
;
monthTurnover
?
:
number
;
merchantName4s
:
string
;
merchantName4s
?
:
string
;
yesterdayTurnover
:
number
;
yesterdayTurnover
?
:
number
;
conversionRate
:
string
;
conversionRate
?
:
string
;
monthOrderTotal
:
number
;
monthOrderTotal
?
:
number
;
yesterdayOrderTotal
:
number
;
yesterdayOrderTotal
?
:
number
;
staffList
?:
StaffInfo
[];
staffList
?:
StaffInfo
[];
reportName
:
string
;
reportName
?
:
string
;
}
}
interface
StaffInfo
{
interface
StaffInfo
{
referrerId
:
string
;
referrerId
?
:
string
;
referrer
:
string
;
referrer
?
:
string
;
turnover
:
number
;
turnover
?
:
number
;
customerTotal
:
number
;
customerTotal
?
:
number
;
successCustomerTotal
:
number
;
successCustomerTotal
?
:
number
;
avgOrderPrice
:
number
;
avgOrderPrice
?
:
number
;
conversionRate
:
string
;
conversionRate
?
:
string
;
}
}
export
interface
ServeiceDataInfo
{
export
interface
ServeiceDataInfo
{
...
...
src/views/equity/storeReport.vue
View file @
52175f2
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
* @Author: huyue
* @Author: huyue
* @Date: 2023-05-12 15:26:33
* @Date: 2023-05-12 15:26:33
* @LastEditors: huyue
* @LastEditors: huyue
* @LastEditTime: 2023-05-
16 18:24:04
* @LastEditTime: 2023-05-
22 12:18:05
-->
-->
<
template
>
<
template
>
<div
class=
"banner-header"
>
<div
class=
"banner-header"
>
...
@@ -79,12 +79,12 @@
...
@@ -79,12 +79,12 @@
<div
class=
"ranking-label"
>
成交客户
</div>
<div
class=
"ranking-label"
>
成交客户
</div>
</div>
</div>
<div
class=
"ranking-item"
>
<div
class=
"ranking-item"
>
<div
class=
"ranking-value"
>
{{
item
.
customerTotal
}}
</div>
<div
class=
"ranking-label"
>
转化率
</div>
<div
class=
"ranking-label"
>
转化率
</div>
<div
class=
"ranking-value"
>
{{
item
.
conversionRate
}}
</div>
</div>
</div>
<div
class=
"ranking-item"
>
<div
class=
"ranking-item"
>
<div
class=
"ranking-value"
>
{{
item
.
customerTotal
}}
</div>
<div
class=
"ranking-label"
>
客单价
</div>
<div
class=
"ranking-label"
>
客单价
</div>
<div
class=
"ranking-value"
>
{{
item
.
avgOrderPrice
}}
</div>
</div>
</div>
</div>
</div>
</div>
</div>
...
...
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