Commit deb82d50 authored by Gavin Peng's avatar Gavin Peng

fix: 提交最新代码

parent 20285083
......@@ -101,7 +101,7 @@ const config: any = {
defaultSizes: 'parsed', // stat // gzip
},
plugins: [
"@linkseeks/umi-plugin-yapi"
// "@linkseeks/umi-plugin-yapi"
],
inlineLimit: 10000,
// chunks: isProduction && ['styles', 'vendors', 'umi', 'services'],
......
......@@ -26,7 +26,7 @@ import ProcurementRoute from './procurementRoute'; // todo wuting
// import contracRoute from './contracRoute';
// export const routes = [CommodityRoute, MemberRoute, ShopRoute, ChannelRoute, TranactionRoute, AfterService, PayandSettleRoute, LogisticsRoute, AuthConfigRoute, HandlingRoute, BalaceRoute]
const isDev = false;
const isDev = !false;
const homeRoute = {
path: `/memberCenter/home`,
name: 'home',
......@@ -34,7 +34,7 @@ const homeRoute = {
key: 'home',
component: '@/pages/home',
};
const routes = isDev ? [ homeRoute, TranactionRoute ] : asyncRoutes;
const routes = isDev ? [ homeRoute, TranactionRoute, OrderRoute, ProcurementRoute ] : asyncRoutes;
// const routes = isDev ? [ CommodityRoute ] : asyncRoutes;
const memberCenterRoute = {
......@@ -79,7 +79,7 @@ const memberCenterRoute = {
// TranactionRoute,
// ChannelRoute,
// ShopRoute,
ProcurementRoute,
// ProcurementRoute,
// // 合同能力
// contracRoute,
// AuthConfigRoute,
......@@ -89,7 +89,6 @@ const memberCenterRoute = {
// marketingRoute,
// DealAbilityRoute,
// ...asyncRoutes,
OrderRoute,
...routes,
{
path: '/memberCenter/noAuth',
......
......@@ -77,7 +77,7 @@
"@linkseeks/design-react-web": "^1.0.0",
"@linkseeks/design-ui": "^1.0.12",
"@linkseeks/god": "^1.0.0",
"@linkseeks/umi-plugin-yapi": "1.0.1",
"@turf/turf": "^6.4.0",
"@types/crypto-js": "^4.0.1",
"@types/js-cookie": "^2.2.6",
......
.customizedAnchor {
position: relative;
display: flex;
.ant-anchor-ink {
display: none;
}
.ant-anchor-link {
padding: 16px;
transition: all .375s ease-in-out;
}
.ant-anchor-link.ant-anchor-link-active {
position: relative;
&::before {
position: absolute;
bottom: 0;
background-color: rgb(0, 169, 143);
height: 2px;
width: 100%;
left: 0;
content: ' ';
}
}
}
\ No newline at end of file
/**
* 基于 Antd Anchor 横向锚点组件
* @author: Gavin
*/
import React, { useState } from 'react'
import { Anchor } from 'antd'
import './index.less'
const arr = [
{ href: '#Transfer', title: '流转信息' },
{ href: '#Transfer2', title: '流转信息2' }
]
const CustomizedAnchor: React.FC = () => {
return (
<Anchor className='customizedAnchor' targetOffset={120} affix={false}>
{
arr.map((_item: any, _index: number) => ( <Anchor.Link href={_item.href} title={_item.title} key={_index}/>))
}
</Anchor>
)
}
export default CustomizedAnchor
\ No newline at end of file
......@@ -3,22 +3,22 @@
* @author: Gavin
*/
import React, { useState } from 'react'
import { PageHeaderWrapper } from '@ant-design/pro-layout'
import { history } from 'umi'
import ReutrnEle from '@/components/ReturnEle'
import { Card, Descriptions } from 'antd'
import { Anchor, Card, Descriptions } from 'antd'
import PageHeader from '@/components/PageHeader/PageHeader'
import CustomizedAnchor from '@/components/CustomizedAnchor'
const DeliveryPlanManagementDetails: React.FC = () => {
const [details, setDetails] = useState<any>({})
return (
<PageHeaderWrapper
title={details?.name}
onBack={() => history.goBack()}
backIcon={<ReutrnEle />}
>
</PageHeaderWrapper>)
<PageHeader
title="送货计划详情"
>
9999
</PageHeader>
)
}
export default DeliveryPlanManagementDetails
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment