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
project
jinfa-admin
Commits
1909ffbb
Commit
1909ffbb
authored
Aug 24, 2021
by
GuanHua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: B端APP商城装修开发
parent
e127a5a9
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
248 additions
and
14 deletions
+248
-14
returnSaveParams.ts
...ges/pageCustomized/components/toolBar/returnSaveParams.ts
+20
-0
config.ts
src/pages/pageCustomized/mobileEdit/config.ts
+45
-3
recommend_shop_template_default.jpg
...mized/mobileEdit/imgs/recommend_shop_template_default.jpg
+0
-0
index.tsx
src/pages/pageCustomized/mobileEdit/index.tsx
+2
-1
index.less
...ropsSettings/components/bottomNavigationClient/index.less
+1
-0
index.tsx
...ttingPanel/propsSettings/components/cardNavItem/index.tsx
+1
-1
index.less
...ileSettingPanel/propsSettings/components/shops/index.less
+179
-9
index.tsx
...bileSettingPanel/propsSettings/components/shops/index.tsx
+0
-0
No files found.
src/pages/pageCustomized/components/toolBar/returnSaveParams.ts
View file @
1909ffbb
...
@@ -579,6 +579,26 @@ export const paramsBusiness = (
...
@@ -579,6 +579,26 @@ export const paramsBusiness = (
inner
:
tempProps
.
inner
,
inner
:
tempProps
.
inner
,
})
})
break
break
case
PROPS_SETTING_TYPES
.
mobileRecommentShops
:
tempProps
=
configItem
.
props
_params
.
adornContent
[
'recommendShops'
]
=
contactList
(
_params
.
adornContent
[
'recommendShops'
],
{
productIdList
:
tempProps
.
productIdList
||
[],
id
:
tempProps
.
id
,
registerYears
:
tempProps
.
registerYears
,
creditPoint
:
tempProps
.
creditPoint
,
memberName
:
tempProps
.
name
||
tempProps
.
memberName
,
logo
:
tempProps
.
logo
,
})
break
case
PROPS_SETTING_TYPES
.
bottomNavigationItems
:
tempProps
=
configItem
.
props
_params
.
adornContent
[
'bottomNavigation'
]
=
contactList
(
_params
.
adornContent
[
'bottomNavigation'
],
{
defaultIcon
:
tempProps
.
defaultIcon
,
selectIcon
:
tempProps
.
selectIcon
,
name
:
tempProps
.
name
,
type
:
tempProps
.
type
,
})
break
}
}
}
}
});
});
...
...
src/pages/pageCustomized/mobileEdit/config.ts
View file @
1909ffbb
...
@@ -4,6 +4,7 @@ import styleThemeImgDefault from './imgs/style_theme_default.png'
...
@@ -4,6 +4,7 @@ import styleThemeImgDefault from './imgs/style_theme_default.png'
import
styleThemeImgScience
from
'./imgs/style_theme_science.png'
import
styleThemeImgScience
from
'./imgs/style_theme_science.png'
import
categoryNavTemplateDefault
from
'./imgs/category_template_default.png'
import
categoryNavTemplateDefault
from
'./imgs/category_template_default.png'
import
showCaseTemplateDefault
from
'./imgs/showcase_template_default.jpg'
import
showCaseTemplateDefault
from
'./imgs/showcase_template_default.jpg'
import
recommendShopTemplateDefault
from
'./imgs/recommend_shop_template_default.jpg'
export
const
defaultHeaderNavData
=
[
export
const
defaultHeaderNavData
=
[
{
{
...
@@ -45,7 +46,7 @@ export const defaultConfig: PageConfigType = {
...
@@ -45,7 +46,7 @@ export const defaultConfig: PageConfigType = {
position
:
'relative'
,
position
:
'relative'
,
},
},
},
},
childNodes
:
[
'1'
,
'3'
,
'5'
,
'7'
,
'9'
,
'10'
]
childNodes
:
[
'1'
,
'3'
,
'5'
,
'7'
,
'9'
,
'10'
,
'15'
]
},
},
'1'
:
{
'1'
:
{
title
:
'头部导航栏'
,
title
:
'头部导航栏'
,
...
@@ -175,9 +176,50 @@ export const defaultConfig: PageConfigType = {
...
@@ -175,9 +176,50 @@ export const defaultConfig: PageConfigType = {
'10'
:
{
'10'
:
{
title
:
'店铺推荐'
,
title
:
'店铺推荐'
,
componentName
:
'RecommendShop'
,
componentName
:
'RecommendShop'
,
props
:
{},
props
:
{
childNodes
:
[],
stylesthemelist
:
[
{
key
:
0
,
width
:
320
,
height
:
204
,
img
:
recommendShopTemplateDefault
,
},
]
},
childNodes
:
[
'11'
],
childComponentName
:
'RecommendShop.Item'
,
childComponentName
:
'RecommendShop.Item'
,
addBtnText
:
'添加店铺'
,
addBtnText
:
'添加店铺'
,
},
},
'11'
:
{
loop
:
'${recommendShops}'
,
title
:
'${item.memberName}'
,
componentName
:
'RecommendShop.Item'
,
props
:
{
id
:
'${item.id}'
,
registerYears
:
'${item.registerYears}'
,
creditPoint
:
'${item.creditPoint}'
,
memberName
:
'${item.memberName}'
,
logo
:
'${item.logo}'
,
},
},
'15'
:
{
title
:
'底部标签栏'
,
componentName
:
'BottomNavigation'
,
props
:
{},
childNodes
:
[
'16'
],
childComponentName
:
'BottomNavigation.Items'
,
addBtnText
:
'添加标签'
,
},
'16'
:
{
loop
:
'${bottomNavigation}'
,
title
:
'底部标签栏'
,
componentName
:
'BottomNavigation.Items'
,
props
:
{
defaultIcon
:
'${item.defaultIcon}'
,
selectIcon
:
'${item.selectIcon}'
,
name
:
'${item.name}'
,
type
:
'${item.type}'
,
isnull
:
false
,
},
},
}
}
src/pages/pageCustomized/mobileEdit/imgs/recommend_shop_template_default.jpg
0 → 100644
View file @
1909ffbb
63.9 KB
src/pages/pageCustomized/mobileEdit/index.tsx
View file @
1909ffbb
...
@@ -196,6 +196,8 @@ const appMallEdit: React.FC<ShopPreviewPropsType> = (props) => {
...
@@ -196,6 +196,8 @@ const appMallEdit: React.FC<ShopPreviewPropsType> = (props) => {
navList
:
appConfig
?.
navList
?
appConfig
?.
navList
:
[],
navList
:
appConfig
?.
navList
?
appConfig
?.
navList
:
[],
showCase
:
appConfig
?.
showCase
?
appConfig
?.
showCase
:
[],
showCase
:
appConfig
?.
showCase
?
appConfig
?.
showCase
:
[],
informationTitle
:
'8月钢市价格走势判断'
,
informationTitle
:
'8月钢市价格走势判断'
,
recommendShops
:
appConfig
?.
recommendShops
?
appConfig
?.
recommendShops
:
[],
bottomNavigation
:
appConfig
?.
bottomNavigation
?
appConfig
?.
bottomNavigation
:
[],
}
}
const
finalConfig
=
resolveMappingPageConfig
(
defaultConfig
,
allState
)
const
finalConfig
=
resolveMappingPageConfig
(
defaultConfig
,
allState
)
console
.
log
(
finalConfig
,
'finalConfig'
)
console
.
log
(
finalConfig
,
'finalConfig'
)
...
@@ -205,7 +207,6 @@ const appMallEdit: React.FC<ShopPreviewPropsType> = (props) => {
...
@@ -205,7 +207,6 @@ const appMallEdit: React.FC<ShopPreviewPropsType> = (props) => {
}
catch
(
error
)
{
}
catch
(
error
)
{
console
.
log
(
error
);
console
.
log
(
error
);
}
}
};
};
return
!
loading
?
(
return
!
loading
?
(
...
...
src/pages/pageCustomized/mobileSettingPanel/propsSettings/components/bottomNavigationClient/index.less
View file @
1909ffbb
...
@@ -30,6 +30,7 @@
...
@@ -30,6 +30,7 @@
width: 40px;
width: 40px;
height: 40px;
height: 40px;
}
}
&-add{
&-add{
font-size: 40px;
font-size: 40px;
}
}
...
...
src/pages/pageCustomized/mobileSettingPanel/propsSettings/components/cardNavItem/index.tsx
View file @
1909ffbb
...
@@ -121,7 +121,7 @@ const CardNavItem: React.FC<CardNavItemProps> = (props: CardNavItemProps) => {
...
@@ -121,7 +121,7 @@ const CardNavItem: React.FC<CardNavItemProps> = (props: CardNavItemProps) => {
}
}
const
_onChangeByKey
=
(
val
:
any
,
key
:
string
,
title
?:
string
)
=>
{
const
_onChangeByKey
=
(
val
:
any
,
key
:
string
,
title
?:
string
)
=>
{
if
(
key
===
'type'
&&
Number
(
val
)
===
4
)
{
if
(
key
===
'type'
&&
Number
(
val
)
===
3
)
{
getFirstCategoryList
()
getFirstCategoryList
()
}
}
const
newProps
:
any
=
{
const
newProps
:
any
=
{
...
...
src/pages/pageCustomized/mobileSettingPanel/propsSettings/components/shops/index.less
View file @
1909ffbb
@import "../../../../../../global//styles/utils.less";
@import "../../common.less";
@import "../../common.less";
.selectBtn {
.banner {
display: block;
&-box {
width: 100%;
margin-bottom: 16px;
background-color: #FAFBFC;
border: 1px dashed #D8DDE6;
:global {
}
.ant-upload {
width: 100%;
}
}
&-label {
font-size: 12px;
color: #91959B;
margin-bottom: 8px;
}
&-icon {
height: 96px;
background-color: #FAFBFC;
border-radius: 4px;
display: flex;
align-items: center;
justify-content: center;
position: relative;
overflow: hidden;
&>img {
width: 100%;
}
&-add {
width: 24px;
height: 24px;
}
&:hover {
.banner-box-icon-cover {
display: block;
}
}
&-cover {
position: absolute;
height: 100%;
width: 100%;
background-color: rgba(0, 0, 0, .1);
display: none;
z-index: 1;
&-delete {
position: absolute;
right: 10px;
top: 10px;
font-size: 20px;
color: #fff;
}
&-bottom {
position: absolute;
height: 24px;
line-height: 24px;
text-align: center;
background-color: rgba(0, 0, 0, 0.24);
font-size: 12px;
color: #fff;
width: 100%;
bottom: 0;
left: 0;
}
}
}
}
&-record {
&-shop {
height: 56px;
border: 1px solid #EDEEEF;
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
padding: 0 8px;
img {
width: 40px;
height: 40px;
margin-right: 8px;
}
span {
flex: 1;
color: #303133;
font-size: 12px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
}
&-integral {
height: 56px;
border: 1px solid #EDEEEF;
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
padding: 0 8px;
img {
width: 40px;
height: 40px;
margin-right: 8px;
}
&-right {
flex: 1;
display: flex;
flex-direction: column;
&-top {
flex: 1;
color: #303133;
font-size: 12px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
&-bottom {
flex: 1;
color: #EA8000;
font-size: 12px;
}
}
}
&-activity {
height: 56px;
border: 1px solid #EDEEEF;
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
padding: 0 8px;
position: relative;
img {
width: 40px;
height: 40px;
border-radius: 4px;
margin-right: 8px;
}
&-right {
flex: 1;
display: flex;
flex-direction: column;
font-size: 12px;
&-top {
flex: 1;
color: #303133;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.uploadPreview {
&-bottom {
border: 1px solid #EBECF0;
flex: 1;
color: #91959B;
}
}
&-tag{
position: absolute;
right: 0;
top: -3px;
}
}
}
}
}
src/pages/pageCustomized/mobileSettingPanel/propsSettings/components/shops/index.tsx
View file @
1909ffbb
This diff is collapsed.
Click to expand it.
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