1
This commit is contained in:
@@ -85,8 +85,8 @@ export default defineConfig({
|
|||||||
define: {
|
define: {
|
||||||
'process.env': {
|
'process.env': {
|
||||||
// API_URL: "https://iadminapi.zhongshuai2023.com",
|
// API_URL: "https://iadminapi.zhongshuai2023.com",
|
||||||
// API_URL: "http://192.168.1.63:1002",
|
API_URL: "http://192.168.1.63:1002",
|
||||||
API_URL: "http://192.168.1.54:1002",
|
// API_URL: "http://192.168.1.54:1002",
|
||||||
WS_URL: "ws://lv.com",
|
WS_URL: "ws://lv.com",
|
||||||
STATIC_URL: "http://lv.com",
|
STATIC_URL: "http://lv.com",
|
||||||
WEMAP_KEY: 'ZFDBZ-YUTWB-353UZ-NYKEY-JTVIZ-Q3F6X'
|
WEMAP_KEY: 'ZFDBZ-YUTWB-353UZ-NYKEY-JTVIZ-Q3F6X'
|
||||||
|
|||||||
2
dist/index.html
vendored
2
dist/index.html
vendored
@@ -8,6 +8,6 @@
|
|||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="root"></div>
|
<div id="root"></div>
|
||||||
<script src="/umi.2f9da742.js"></script>
|
<script src="/umi.77bf01bd.js"></script>
|
||||||
|
|
||||||
</body></html>
|
</body></html>
|
||||||
1
dist/src__pages__order__index.2ace18a7.async.js
vendored
Normal file
1
dist/src__pages__order__index.2ace18a7.async.js
vendored
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
2
dist/umi.2f9da742.js → dist/umi.77bf01bd.js
vendored
2
dist/umi.2f9da742.js → dist/umi.77bf01bd.js
vendored
File diff suppressed because one or more lines are too long
@@ -1,4 +1,4 @@
|
|||||||
import { orderPage, orderExport, orderRefund, getWeiXinCollect, getCollect, getBalance,getZhiFuBaoCollect } from '@/services/order';
|
import { orderPage, orderExport, orderRefund, getWeiXinCollect, getCollect, getBalance, getZhiFuBaoCollect } from '@/services/order';
|
||||||
import { exportData } from '@/utils/func';
|
import { exportData } from '@/utils/func';
|
||||||
import React, { useRef, useEffect, useState } from 'react';
|
import React, { useRef, useEffect, useState } from 'react';
|
||||||
import { useIntl, useAccess } from '@umijs/max';
|
import { useIntl, useAccess } from '@umijs/max';
|
||||||
@@ -23,12 +23,30 @@ const LogTableList: React.FC = () => {
|
|||||||
const [count4, setCount4] = useState({});
|
const [count4, setCount4] = useState({});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
const access = useAccess()
|
const access = useAccess()
|
||||||
const count = useState({})
|
const count = useState({})
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
getWeiXinCollect().then((res) => {
|
||||||
|
setCount1(res.data);
|
||||||
|
})
|
||||||
|
getBalance().then((res) => {
|
||||||
|
setCount2(res.data);
|
||||||
|
})
|
||||||
|
getCollect().then((res) => {
|
||||||
|
setCount3(res.data);
|
||||||
|
})
|
||||||
|
getZhiFuBaoCollect().then((res) => {
|
||||||
|
setCount4(res.data);
|
||||||
|
})
|
||||||
|
}, []);
|
||||||
|
|
||||||
|
|
||||||
const [shopOption, setShopOption] = useState([]);
|
const [shopOption, setShopOption] = useState([]);
|
||||||
const searchShop = async (value) => {
|
const searchShop = async (value) => {
|
||||||
@@ -331,20 +349,8 @@ const LogTableList: React.FC = () => {
|
|||||||
]}
|
]}
|
||||||
request={async (params, sorter, filter) => {
|
request={async (params, sorter, filter) => {
|
||||||
setSearchParams({ ...params });
|
setSearchParams({ ...params });
|
||||||
|
countFun()
|
||||||
let { data } = await orderPage(params)
|
let { data } = await orderPage(params)
|
||||||
let _count1 = await getWeiXinCollect()
|
|
||||||
let _count2 = await getBalance()
|
|
||||||
let _count3 = await getCollect()
|
|
||||||
let _count4 = await getZhiFuBaoCollect()
|
|
||||||
|
|
||||||
|
|
||||||
setCount1(_count1.data);
|
|
||||||
setCount2(_count2.data);
|
|
||||||
setCount3(_count3.data);
|
|
||||||
setCount4(_count4.data);
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
data: data?.records || [],
|
data: data?.records || [],
|
||||||
total: data?.total,
|
total: data?.total,
|
||||||
|
|||||||
Reference in New Issue
Block a user