Commit 779c8859 authored by 前端-钟卫鹏's avatar 前端-钟卫鹏
parents 7ed83ba8 7ee63c4b
...@@ -4,7 +4,7 @@ const mockData = { ...@@ -4,7 +4,7 @@ const mockData = {
data: { data: {
global: { global: {
siteId: 352, siteId: 352,
siteUrl: 'http://localhost:4396', siteUrl: 'http://10.0.0.25:4396',
logo: 'https://shushangyun01.oss-cn-shenzhen.aliyuncs.com/4db4e7c5424c471c968ab540bce027f31597319423082.png', logo: 'https://shushangyun01.oss-cn-shenzhen.aliyuncs.com/4db4e7c5424c471c968ab540bce027f31597319423082.png',
countryList: [ countryList: [
{ {
......
...@@ -117,15 +117,19 @@ export function render(oldRender: Function) { ...@@ -117,15 +117,19 @@ export function render(oldRender: Function) {
export function onRouteChange({ routes, matchedRoutes, location, action }) { export function onRouteChange({ routes, matchedRoutes, location, action }) {
console.log('onRouteChange') console.log('onRouteChange')
if (isDev) { // if (isDev) {
// return;
return; // }
if (whiteLists.includes(location.pathname)) {
return
} }
// 是否登录 // 是否登录
if (getAuth()) { if (getAuth()) {
const routeAuthUrls = getRouters() const routeAuthUrls = getRouters()
const { query, pathname } = location const { query, pathname } = location
if (userLoginLists.includes(pathname)) { if (userLoginLists.includes(pathname)) {
// 当登录过, 并且尝试访问登录相关页面, 需重定向到首页 // 当登录过, 并且尝试访问登录相关页面, 需重定向到首页
history.replace('/memberCenter/home') history.replace('/memberCenter/home')
......
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
.form_item_wrap { .form_item_wrap {
display: flex; display: flex;
align-items: center; align-items: center;
flex-wrap: wrap;
.size_require { .size_require {
color: #97A0AF; color: #97A0AF;
...@@ -62,6 +63,7 @@ ...@@ -62,6 +63,7 @@
cursor: pointer; cursor: pointer;
margin-right: 24px; margin-right: 24px;
overflow: hidden; overflow: hidden;
margin-bottom: 12px;
&.upload { &.upload {
border: 1px solid rgba(223, 225, 230, 1); border: 1px solid rgba(223, 225, 230, 1);
......
...@@ -110,7 +110,7 @@ const MallIndex: React.FC<MallIndexPropsType> = (props) => { ...@@ -110,7 +110,7 @@ const MallIndex: React.FC<MallIndexPropsType> = (props) => {
</FloorLine.FloorHeader> </FloorLine.FloorHeader>
<FloorLine.Horizontal> <FloorLine.Horizontal>
<FloorLine.Goods goodsList={categoryDetail.goodsBOList} /> <FloorLine.Goods goodsList={categoryDetail.goodsBOList} />
<FloorLine.Shops shopsList={categoryDetail.shopBOList} linkUrl={`/shop?shopId=${btoa(JSON.stringify({ shopId: 3, memberId: 6 }))}`} /> <FloorLine.Shops shopsList={categoryDetail.shopBOList} linkUrl={`/shop`} />
</FloorLine.Horizontal> </FloorLine.Horizontal>
</FloorLine.Vertical> </FloorLine.Vertical>
</FloorLine.Horizontal> </FloorLine.Horizontal>
......
...@@ -44,8 +44,8 @@ const LXShopLayout: React.FC<LXMallLayoutPropsType> = (props) => { ...@@ -44,8 +44,8 @@ const LXShopLayout: React.FC<LXMallLayoutPropsType> = (props) => {
}, []) }, [])
useEffect(() => { useEffect(() => {
if (query.memberId) { if (query.meberId) {
fetchShopInfo(query.memberId) fetchShopInfo(query.meberId)
} }
}, [query]) }, [query])
...@@ -81,7 +81,7 @@ const LXShopLayout: React.FC<LXMallLayoutPropsType> = (props) => { ...@@ -81,7 +81,7 @@ const LXShopLayout: React.FC<LXMallLayoutPropsType> = (props) => {
{ {
layoutType: 'shop', layoutType: 'shop',
shopId: query.shopId, shopId: query.shopId,
memberId: query.memberId, memberId: query.meberId,
shopUrlParam: shopId, shopUrlParam: shopId,
shopInfo shopInfo
}, },
......
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
.form_item_wrap { .form_item_wrap {
display: flex; display: flex;
flex-wrap: wrap;
align-items: center; align-items: center;
.size_require { .size_require {
...@@ -62,6 +63,7 @@ ...@@ -62,6 +63,7 @@
cursor: pointer; cursor: pointer;
margin-right: 24px; margin-right: 24px;
overflow: hidden; overflow: hidden;
margin-bottom: 12px;
&.upload { &.upload {
border: 1px solid rgba(223, 225, 230, 1); border: 1px solid rgba(223, 225, 230, 1);
......
...@@ -305,7 +305,6 @@ const ShopInfo: React.FC<ShopInfoPropsType> = (props) => { ...@@ -305,7 +305,6 @@ const ShopInfo: React.FC<ShopInfoPropsType> = (props) => {
label={<RequireItem label="资质荣誉" brief={<Tooltip placement="top" title="如商标注册证书、品牌授权证书等证明材料"><QuestionCircleOutlined /></Tooltip>} />} label={<RequireItem label="资质荣誉" brief={<Tooltip placement="top" title="如商标注册证书、品牌授权证书等证明材料"><QuestionCircleOutlined /></Tooltip>} />}
> >
<div className={styles.form_item_wrap}> <div className={styles.form_item_wrap}>
<div className={styles.img_list}> <div className={styles.img_list}>
{ {
honorPics.map((item, index) => ( honorPics.map((item, index) => (
......
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