Commit 52175f2e by 胡悦

修改配置

1 parent 91e34f0b
...@@ -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-03-21 17:39:21 * @LastEditTime: 2023-05-18 18:02:51
*/ */
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
...@@ -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-15 17:08:11 * @LastEditTime: 2023-05-18 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
/*
* @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
...@@ -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 {
......
...@@ -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>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!