Compare commits
No commits in common. "87534c4d2261432d34f7c6a8d2c63e016afa25e0" and "7c5e4917ddb26f5fb745470cf04e4289f6cb1412" have entirely different histories.
87534c4d22
...
7c5e4917dd
|
|
@ -4,7 +4,6 @@ const isDev = process.env.NODE_ENV === 'development';
|
||||||
const UMI_APP_API_URL = isDev
|
const UMI_APP_API_URL = isDev
|
||||||
? 'http://localhost:7001'
|
? 'http://localhost:7001'
|
||||||
: 'https://api.yoone.ca';
|
: 'https://api.yoone.ca';
|
||||||
import { codeInspectorPlugin } from 'code-inspector-plugin';
|
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
hash: true,
|
hash: true,
|
||||||
|
|
@ -19,13 +18,6 @@ export default defineConfig({
|
||||||
define: {
|
define: {
|
||||||
UMI_APP_API_URL,
|
UMI_APP_API_URL,
|
||||||
},
|
},
|
||||||
chainWebpack(config) {
|
|
||||||
config.plugin('code-inspector-plugin').use(
|
|
||||||
codeInspectorPlugin({
|
|
||||||
bundler: 'webpack',
|
|
||||||
})
|
|
||||||
);
|
|
||||||
},
|
|
||||||
routes: [
|
routes: [
|
||||||
{ path: '/', redirect: '/home' },
|
{ path: '/', redirect: '/home' },
|
||||||
{ name: '追踪', path: '/track', component: './Track', layout: false },
|
{ name: '追踪', path: '/track', component: './Track', layout: false },
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,6 @@
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/react": "^18.0.33",
|
"@types/react": "^18.0.33",
|
||||||
"@types/react-dom": "^18.0.11",
|
"@types/react-dom": "^18.0.11",
|
||||||
"code-inspector-plugin": "^1.2.10",
|
|
||||||
"husky": "^9",
|
"husky": "^9",
|
||||||
"lint-staged": "^13.2.0",
|
"lint-staged": "^13.2.0",
|
||||||
"prettier": "^2.8.7",
|
"prettier": "^2.8.7",
|
||||||
|
|
|
||||||
|
|
@ -128,13 +128,11 @@ const ListPage: React.FC = () => {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'refund_approved',
|
key: 'refund_approved',
|
||||||
label: "已退款",
|
label: '退款申请已通过',
|
||||||
// label: '退款申请已通过',
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'refund_cancelled',
|
key: 'refund_cancelled',
|
||||||
label: "已完成"
|
label: '已取消退款',
|
||||||
// label: '已取消退款',
|
|
||||||
},
|
},
|
||||||
// {
|
// {
|
||||||
// key: 'pending_refund',
|
// key: 'pending_refund',
|
||||||
|
|
@ -767,8 +765,7 @@ const Detail: React.FC<{
|
||||||
<ProDescriptions.Item label="金额" dataIndex="total" />
|
<ProDescriptions.Item label="金额" dataIndex="total" />
|
||||||
<ProDescriptions.Item label="客户邮箱" dataIndex="customer_email" />
|
<ProDescriptions.Item label="客户邮箱" dataIndex="customer_email" />
|
||||||
<ProDescriptions.Item label="联系电话" span={3}
|
<ProDescriptions.Item label="联系电话" span={3}
|
||||||
render={(_, record) => {
|
render={(_, record) => { return (
|
||||||
return (
|
|
||||||
<div>
|
<div>
|
||||||
<span>
|
<span>
|
||||||
{record?.shipping?.phone || record?.billing?.phone || '-'}
|
{record?.shipping?.phone || record?.billing?.phone || '-'}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue