Commit be61f948 authored by GuanHua's avatar GuanHua

fix: 1.修改网页小图标;2.渠道商城进货单商品id参数修改

parent df7b29ff
...@@ -7,8 +7,9 @@ import ProLayout, { ...@@ -7,8 +7,9 @@ import ProLayout, {
getPageTitle getPageTitle
} from '@ant-design/pro-layout'; } from '@ant-design/pro-layout';
import React, { useState, useEffect, useLayoutEffect } from 'react'; import React, { useState, useEffect, useLayoutEffect } from 'react';
import { Link, useIntl } from 'umi'; import { Link, useIntl, Helmet } from 'umi';
import RightContent from './components/RightContent'; import RightContent from './components/RightContent';
import { GlobalConfig } from '@/global/config';
// import { ConnectState } from '@/models/connect'; // import { ConnectState } from '@/models/connect';
// import logo from '../assets/logo.svg'; // import logo from '../assets/logo.svg';
import logo from '../../mockStatic/logo.png' import logo from '../../mockStatic/logo.png'
...@@ -87,7 +88,7 @@ const BasicLayout: React.FC<BasicLayoutProps> = (props) => { ...@@ -87,7 +88,7 @@ const BasicLayout: React.FC<BasicLayoutProps> = (props) => {
}; };
const getMenuRouter = (routes: any, pathname: any) => { const getMenuRouter = (routes: any, pathname: any) => {
let list = routes.filter((item: any) => pathname.indexOf(item.key) > -1) const list = routes.filter((item: any) => pathname.indexOf(item.key) > -1)
return list[0] return list[0]
} }
...@@ -151,40 +152,45 @@ const BasicLayout: React.FC<BasicLayoutProps> = (props) => { ...@@ -151,40 +152,45 @@ const BasicLayout: React.FC<BasicLayoutProps> = (props) => {
: {} : {}
return ( return (
<ProLayout <>
pageTitleRender={() => currentRouter ? currentRouter.name : window.location.href} {/* <Helmet>
// contentStyle={{minWidth: '1280px'}} <link rel="icon" type="image/x-icon" href={GlobalConfig.global.siteInfo.logo} />
style={prolayoutStyle} </Helmet> */}
logo={logo} <ProLayout
formatMessage={formatMessage} pageTitleRender={() => currentRouter ? currentRouter.name : window.location.href}
menuHeaderRender={(logoDom, titleDom) => ( // contentStyle={{minWidth: '1280px'}}
<Link to="/"> style={prolayoutStyle}
{logoDom} logo={logo}
{titleDom} formatMessage={formatMessage}
</Link> menuHeaderRender={(logoDom, titleDom) => (
)} <Link to="/">
collapsed={collapsed} {logoDom}
collapsedButtonRender={(flag) => (isHome ? null : flag ? <MenuUnfoldOutlined /> : <MenuFoldOutlined/>) } {titleDom}
onCollapse={handleMenuCollapse} </Link>
disableContentMargin={currentRouter?.noMargin !== undefined} )}
breadcrumbRender={(routers = []) => [ collapsed={collapsed}
collapsedButtonRender={(flag) => (isHome ? null : flag ? <MenuUnfoldOutlined /> : <MenuFoldOutlined/>) }
]} onCollapse={handleMenuCollapse}
menuRender={() => <MenuSlider disableContentMargin={currentRouter?.noMargin !== undefined}
currentSelectKey={selectedKeys} breadcrumbRender={(routers = []) => [
openKeys={openKeys}
menuData={menuData} ]}
pathname={location.pathname} menuRender={() => <MenuSlider
collapseState={collapsed} currentSelectKey={selectedKeys}
changeOpenKeys={(keys: string[]) => setOpenKeys(keys)} openKeys={openKeys}
/>} menuData={menuData}
footerRender={() => defaultFooterDom} pathname={location.pathname}
rightContentRender={() => <RightContent />} collapseState={collapsed}
{...props} changeOpenKeys={(keys: string[]) => setOpenKeys(keys)}
{...settings} />}
> footerRender={() => defaultFooterDom}
{children} rightContentRender={() => <RightContent />}
</ProLayout> {...props}
{...settings}
>
{children}
</ProLayout>
</>
); );
}; };
......
import React from 'react'; import React from 'react';
import styles from './styles/UserLayouts.less' import styles from './styles/UserLayouts.less'
import { Helmet } from 'umi'
import UserHeader from './components/UserHeader'; import UserHeader from './components/UserHeader';
import BaseFooter from './components/BaseFooter'; import BaseFooter from './components/BaseFooter';
import { GlobalConfig } from '@/global/config'; import { GlobalConfig } from '@/global/config';
...@@ -11,14 +12,19 @@ import { GlobalConfig } from '@/global/config'; ...@@ -11,14 +12,19 @@ import { GlobalConfig } from '@/global/config';
const UserLayouts: React.FC = (props) => { const UserLayouts: React.FC = (props) => {
console.log(props) console.log(props)
return ( return (
<div className={styles.lingxiBusinessUserLayout}> <>
<UserHeader logo={GlobalConfig.global.siteInfo.logo} {...props} /> {/* <Helmet>
<div className={styles.lingxiBusinessUserBg}> <link rel="icon" type="image/x-icon" href={GlobalConfig.global.siteInfo.logo} />
{props.children} </Helmet> */}
<BaseFooter /> <div className={styles.lingxiBusinessUserLayout}>
<UserHeader logo={GlobalConfig.global.siteInfo.logo} {...props} />
<div className={styles.lingxiBusinessUserBg}>
{props.children}
<BaseFooter />
</div>
</div> </div>
</div> </>
) )
} }
export default UserLayouts export default UserLayouts
\ No newline at end of file
...@@ -4,11 +4,11 @@ ...@@ -4,11 +4,11 @@
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="ie=edge"> <meta http-equiv="X-UA-Compatible" content="ie=edge">
<!-- <link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" /> --> <link rel="icon" type="image/x-icon" href="/static/imgs/Fav.jpg" />
</head> </head>
<body> <body>
<div id="root"></div> <div id="root"></div>
</body> </body>
</html> </html>
\ No newline at end of file
...@@ -92,6 +92,7 @@ const LXChannelLayout: React.FC<LXChannelLayoutPropsType> = (props) => { ...@@ -92,6 +92,7 @@ const LXChannelLayout: React.FC<LXChannelLayoutPropsType> = (props) => {
{ {
shopInfo ? <title>{shopInfo.memberName}</title> : null shopInfo ? <title>{shopInfo.memberName}</title> : null
} }
{/* <link rel="icon" type="image/x-icon" href={shopInfo?.logo} /> */}
</Helmet> </Helmet>
<div className={styles.lxmall_page}> <div className={styles.lxmall_page}>
<TopBar langComponent={<SelectLang />} name={shopInfo?.memberName} type={LAYOUT_TYPE.channel} shopUrlParam={channelId} /> <TopBar langComponent={<SelectLang />} name={shopInfo?.memberName} type={LAYOUT_TYPE.channel} shopUrlParam={channelId} />
......
...@@ -91,6 +91,7 @@ const LXIChannelLayout: React.FC<LXIChannelLayoutPropsType> = (props) => { ...@@ -91,6 +91,7 @@ const LXIChannelLayout: React.FC<LXIChannelLayoutPropsType> = (props) => {
{ {
shopInfo ? <title>{shopInfo.memberName}</title> : null shopInfo ? <title>{shopInfo.memberName}</title> : null
} }
{/* <link rel="icon" type="image/x-icon" href={shopInfo?.logo} /> */}
</Helmet> </Helmet>
<div className={styles.lxmall_page}> <div className={styles.lxmall_page}>
<TopBar langComponent={<SelectLang />} name={shopInfo?.memberName} type={LAYOUT_TYPE.ichannel} shopUrlParam={channelId} /> <TopBar langComponent={<SelectLang />} name={shopInfo?.memberName} type={LAYOUT_TYPE.ichannel} shopUrlParam={channelId} />
......
...@@ -73,6 +73,7 @@ const LXMallLayout: React.FC<LXMallLayoutPropsType> = (props) => { ...@@ -73,6 +73,7 @@ const LXMallLayout: React.FC<LXMallLayoutPropsType> = (props) => {
{ {
mallInfo ? <title>{mallInfo.name}</title> : null mallInfo ? <title>{mallInfo.name}</title> : null
} }
{/* <link rel="icon" type="image/x-icon" href={mallInfo?.logoUrl} /> */}
</Helmet> </Helmet>
<div className={styles.lxmall_page}> <div className={styles.lxmall_page}>
<TopBar langComponent={<SelectLang />} name={mallInfo.name} type={LAYOUT_TYPE.mall} /> <TopBar langComponent={<SelectLang />} name={mallInfo.name} type={LAYOUT_TYPE.mall} />
......
...@@ -109,6 +109,7 @@ const LXShopLayout: React.FC<LXMallLayoutPropsType> = (props) => { ...@@ -109,6 +109,7 @@ const LXShopLayout: React.FC<LXMallLayoutPropsType> = (props) => {
{ {
mallInfo ? <title>{mallInfo.name}</title> : null mallInfo ? <title>{mallInfo.name}</title> : null
} }
{/* <link rel="icon" type="image/x-icon" href={mallInfo?.logoUrl} /> */}
</Helmet> </Helmet>
<div className={styles.lxmall_page}> <div className={styles.lxmall_page}>
<TopBar langComponent={<SelectLang />} name={mallInfo.name} type={LAYOUT_TYPE.shop} /> <TopBar langComponent={<SelectLang />} name={mallInfo.name} type={LAYOUT_TYPE.shop} />
......
...@@ -575,7 +575,7 @@ const PurchaseOrder: React.FC<PurchaseOrderPropsType> = (props) => { ...@@ -575,7 +575,7 @@ const PurchaseOrder: React.FC<PurchaseOrderPropsType> = (props) => {
// 如果是渠道商品就添加渠道商品的id(非skuId) // 如果是渠道商品就添加渠道商品的id(非skuId)
if(layoutType === LAYOUT_TYPE.channel || layoutType === LAYOUT_TYPE.ichannel) { if(layoutType === LAYOUT_TYPE.channel || layoutType === LAYOUT_TYPE.ichannel) {
buyCommodityInfo.channelProductId = item.commodityUnitPrice.commodity.id buyCommodityInfo.channelProductId = item.commodityUnitPrice.commodityUnitPriceAndPicId
} }
if (item.commodityUnitPrice.commodity.isMemberPrice) { if (item.commodityUnitPrice.commodity.isMemberPrice) {
......
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