Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-admin
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linweijiong
jinfa-admin
Commits
f2026636
Commit
f2026636
authored
Aug 24, 2021
by
GuanHua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 商城装修问题修复
parent
337ce82f
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
193 additions
and
18 deletions
+193
-18
MobileDesign.tsx
src/pages/pageCustomized/components/MobileDesign.tsx
+0
-4
index.less
src/pages/pageCustomized/components/SettingList/index.less
+1
-3
RecommendShop.ts
...omized/configs/componentConfigs/LingXiUI/RecommendShop.ts
+4
-4
index.ts
...pageCustomized/configs/componentConfigs/LingXiUI/index.ts
+2
-2
config.ts
src/pages/pageCustomized/mallEdit/config.ts
+183
-0
index.tsx
src/pages/pageCustomized/mallEdit/index.tsx
+0
-2
config.ts
src/pages/pageCustomized/mobileEdit/config.ts
+3
-3
No files found.
src/pages/pageCustomized/components/MobileDesign.tsx
View file @
f2026636
...
...
@@ -13,10 +13,6 @@ const DesignPanel: React.FC<DesignPanelPropsType> = (props) => {
const
{
theme
,
pageName
=
'index'
,
onlyEidt
}
=
props
;
const
{
pageConfig
}
=
useSelector
([
'pageConfig'
]);
useEffect
(()
=>
{
console
.
log
(
pageConfig
,
'pageConfig'
)
},
[
pageConfig
])
return
<
BrickDesign
pageName=
{
pageName
}
initState=
{
{
pageConfig
}
}
...
...
src/pages/pageCustomized/components/SettingList/index.less
View file @
f2026636
.setting_list {
display: flex;
flex-wrap: wrap;
margin:
0 -12
px;
margin:
12px -16
px;
&.small {
margin: 0 -8px;
}
&_item {
position: relative;
width: 380px;
...
...
src/pages/pageCustomized/configs/componentConfigs/LingXiUI/RecommendShop
s
.ts
→
src/pages/pageCustomized/configs/componentConfigs/LingXiUI/RecommendShop.ts
View file @
f2026636
import
{
ComponentSchemaType
,
PROPS_TYPES
,
PROPS_SETTING_TYPES
}
from
'@lingxi-disign/core'
;
const
RecommendShop
s
:
ComponentSchemaType
=
{
const
RecommendShop
:
ComponentSchemaType
=
{
propsConfig
:
{
children
:
{
label
:
'内容'
,
...
...
@@ -14,7 +14,7 @@ const RecommendShops: ComponentSchemaType = {
};
const
ShopItem
:
ComponentSchemaType
=
{
fatherNodesRule
:
[
'RecommendShop
s
.children'
],
fatherNodesRule
:
[
'RecommendShop.children'
],
propsConfig
:
{
children
:
{
label
:
'内容'
,
...
...
@@ -28,6 +28,6 @@ const ShopItem : ComponentSchemaType = {
};
export
default
{
RecommendShop
s
,
'RecommendShop
s.Shop
Item'
:
ShopItem
RecommendShop
,
'RecommendShop
.
Item'
:
ShopItem
};
src/pages/pageCustomized/configs/componentConfigs/LingXiUI/index.ts
View file @
f2026636
...
...
@@ -50,7 +50,7 @@ import MobileNavCard from './MobileNavCard';
import
SuggestProduct
from
'./SuggestProduct'
;
import
Commodity
from
'./Commodity'
;
import
InformationCard
from
'./InformationCard'
;
import
RecommendShop
s
from
'./RecommendShops
'
;
import
RecommendShop
from
'./RecommendShop
'
;
export
default
{
View
,
...
...
@@ -105,5 +105,5 @@ export default {
...
SuggestProduct
,
...
Commodity
,
InformationCard
,
...
RecommendShop
s
,
...
RecommendShop
,
};
src/pages/pageCustomized/mallEdit/config.ts
0 → 100644
View file @
f2026636
import
{
PROPS_SETTING_TYPES
,
PageConfigType
}
from
'@lingxi-disign/core'
import
{
resolveMappingPageConfig
}
from
'@lingxi-disign/react'
import
styleThemeImgDefault
from
'./imgs/style_theme_default.png'
import
styleThemeImgScience
from
'./imgs/style_theme_science.png'
import
categoryNavTemplateDefault
from
'./imgs/category_template_default.png'
import
showCaseTemplateDefault
from
'./imgs/showcase_template_default.jpg'
export
const
defaultHeaderNavData
=
[
{
name
:
"我的"
,
content
:
""
,
status
:
true
,
type
:
1
},
{
name
:
"进货单"
,
content
:
""
,
status
:
true
,
type
:
2
},
{
name
:
"客服"
,
content
:
""
,
status
:
true
,
type
:
3
},
{
name
:
"搜索框"
,
content
:
"灯具"
,
status
:
true
,
type
:
4
}
]
export
const
defaultConfig
:
PageConfigType
=
{
'0'
:
{
componentName
:
'MallLayout'
,
props
:
{
style
:
{
width
:
'100%'
,
minHeight
:
'100%'
,
background
:
'#F7F8FA'
,
overflowX
:
'hidden'
,
paddingBottom
:
'56px'
,
position
:
'relative'
,
},
},
childNodes
:
[]
},
// '1': {
// title: '头部导航栏',
// componentName: 'HeaderNav',
// props: {
// styleTheme: 0,
// categoryList: '${categoryList}',
// stylesthemelist: [
// {
// key: 0,
// img: styleThemeImgDefault,
// },
// {
// key: 1,
// img: styleThemeImgScience,
// }
// ]
// },
// childNodes: ['2'],
// childComponentName: 'HeaderNav.ActionItem',
// },
// '2': {
// loop: '${headerNav}',
// title: '${item.name}',
// hideActions: true,
// componentName: 'HeaderNav.ActionItem',
// props: {
// data: '${item}'
// },
// },
// '3': {
// title: '广告图',
// componentName: 'Banner',
// props: {
// style: {
// margin: '8px',
// },
// },
// childNodes: ['4'],
// childComponentName: 'Banner.Items',
// addBtnText: '添加广告',
// },
// '4': {
// loop: '${banner}',
// title: '${item.name}',
// componentName: 'Banner.Items',
// props: {
// id: '${item.name}',
// type: '${item.type}',
// img: '${item.img}',
// name: '${item.name}',
// isnull: false,
// },
// },
// '5': {
// title: '分类导航',
// componentName: 'MobileNavCard',
// props: {
// style: {
// margin: '8px',
// },
// stylesthemelist: [
// {
// key: 0,
// width: 320,
// height: 148,
// img: categoryNavTemplateDefault,
// },
// ]
// },
// childNodes: ['6'],
// childComponentName: 'MobileNavCard.NavItem',
// addBtnText: '添加导航',
// },
// '6': {
// loop: '${navList}',
// title: '${item.name}',
// componentName: 'MobileNavCard.NavItem',
// props: {
// id: '${item.id}',
// name: '${item.name}',
// type: '${item.type}',
// url: '${item.url}',
// icon: '${item.icon}',
// empty: false,
// },
// },
// '7': {
// title: '橱窗广告',
// componentName: 'ShowCaseBanner',
// childComponentName: 'ShowCaseBanner.Item',
// props: {
// stylesthemelist: [
// {
// key: 0,
// width: 152,
// height: 105,
// img: showCaseTemplateDefault,
// },
// ]
// },
// addBtnText: '添加橱窗',
// childNodes: ['8'],
// },
// '8': {
// loop: '${showCase}',
// title: '${item.name}',
// componentName: 'ShowCaseBanner.Item',
// props: {
// name: '${item.name}',
// banner: '${item.banner}',
// inner: '${item.inner}',
// type: '${item.type}',
// idList: '${item.idList}',
// },
// },
// '9': {
// title: '资讯',
// componentName: 'InformationCard',
// props: {
// title: '${informationTitle}'
// },
// childNodes: [],
// canEdit: false,
// addBtnText: '添加资讯',
// },
// '10': {
// title: '店铺推荐',
// componentName: 'RecommendShop',
// props: {},
// childNodes: [],
// childComponentName: 'RecommendShop.Item',
// addBtnText: '添加店铺',
// },
}
src/pages/pageCustomized/mallEdit/index.tsx
View file @
f2026636
import
React
,
{
useEffect
,
useState
}
from
'react'
;
import
{
BrickProvider
}
from
'@lingxi-disign/react'
;
import
{
updatePageConfig
}
from
'@lingxi-disign/core'
import
{
Prompt
}
from
'umi'
;
import
{
message
}
from
'antd'
;
import
{
GlobalConfig
}
from
'@/global/config'
;
...
...
@@ -323,7 +322,6 @@ const MallEdit: React.FC<MallEditPropsType> = (props) => {
};
setComponentConfigs
(
config
);
setLoading
(
false
);
updatePageConfig
(
config
)
};
return
!
loading
?
(
...
...
src/pages/pageCustomized/mobileEdit/config.ts
View file @
f2026636
...
...
@@ -174,10 +174,10 @@ export const defaultConfig: PageConfigType = {
},
'10'
:
{
title
:
'店铺推荐'
,
componentName
:
'RecommendShop
s
'
,
componentName
:
'RecommendShop'
,
props
:
{},
childNodes
:
[],
childComponentName
:
'RecommendShop
s.Shop
Item'
,
childComponentName
:
'RecommendShop
.
Item'
,
addBtnText
:
'添加店铺'
,
}
}
,
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment