Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-platform
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
shenshaokai
jinfa-platform
Commits
15624697
Commit
15624697
authored
Oct 18, 2021
by
前端-钟卫鹏
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'v2' of
http://10.0.0.22:3000/lingxi/lingxi-business-paltform
into v2
parents
69622668
b7d9b8d9
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
338 additions
and
13 deletions
+338
-13
defaultMenu.ts
src/pages/editor/ownMallEdit/defaultMenu.ts
+49
-1
index.tsx
src/pages/editor/ownMallEdit/index.tsx
+9
-6
config.ts
src/pages/mobileTemplate/ownMallTemplateEdit/config.ts
+210
-0
style_theme_default.png
...Template/ownMallTemplateEdit/imgs/style_theme_default.png
+0
-0
style_theme_science.png
...Template/ownMallTemplateEdit/imgs/style_theme_science.png
+0
-0
index.less
src/pages/mobileTemplate/ownMallTemplateEdit/index.less
+51
-0
index.tsx
src/pages/mobileTemplate/ownMallTemplateEdit/index.tsx
+0
-0
marketing_config.ts
...es/mobileTemplate/ownMallTemplateEdit/marketing_config.ts
+0
-0
preview.tsx
src/pages/mobileTemplate/ownMallTemplateEdit/preview.tsx
+0
-0
index.less
...ges/ownMall/ownMallManager/components/useModal/index.less
+7
-0
index.tsx
...ages/ownMall/ownMallManager/components/useModal/index.tsx
+5
-4
index.tsx
src/pages/ownMall/ownMallManager/templateDetail/index.tsx
+4
-0
index.tsx
...CouponUnsubmitted/components/CouponForm/effects/index.tsx
+3
-2
No files found.
src/pages/editor/ownMallEdit/defaultMenu.ts
View file @
15624697
export
const
getDefaultMenuData
=
(
mallPath
:
string
,
memberId
:
number
)
=>
{
return
[
{
"link"
:
`
${
mallPath
}
/
${
memberId
}
`
,
"name"
:
"商城首页"
,
"key"
:
"Home"
,
type
:
1
,
status
:
true
,
},
{
"link"
:
`
${
mallPath
}
/
${
memberId
}
/commodity`
,
"name"
:
"现货商品"
,
"key"
:
"commodity"
,
type
:
2
,
status
:
true
,
},
{
"link"
:
`
${
mallPath
}
/
${
memberId
}
/inquery`
,
"name"
:
"询价商品"
,
"key"
:
"inquery"
,
type
:
3
,
status
:
true
,
},
{
"link"
:
`
${
mallPath
}
/
${
memberId
}
/points`
,
"name"
:
"积分兑换"
,
"key"
:
"points"
,
type
:
4
,
status
:
true
,
},
{
"link"
:
`
${
mallPath
}
/
${
memberId
}
/infomation`
,
"name"
:
"行情资讯"
,
"key"
:
"infomation"
,
type
:
6
,
status
:
true
,
},
{
"link"
:
`
${
mallPath
}
/
${
memberId
}
/about`
,
"name"
:
"关于我们"
,
"key"
:
"about"
,
type
:
5
,
status
:
true
,
},
]
}
export
const
menuData
=
[
{
"link"
:
"/"
,
"name"
:
"首页"
,
"name"
:
"
商城
首页"
,
"key"
:
"Home"
,
type
:
1
,
status
:
true
,
...
...
src/pages/editor/ownMallEdit/index.tsx
View file @
15624697
...
...
@@ -6,7 +6,7 @@ import DesignPanel from '../components/DesignPanel'
import
SettingPanel
from
'../settingsPanel'
import
config
from
'../configs'
import
{
isEmpty
}
from
'lodash'
import
{
LAYOUT_TYPE
}
from
'@/constants'
import
{
LAYOUT_TYPE
,
REQUEST_HEADER
,
TOP_DOMAIN
}
from
'@/constants'
import
{
topBarConfig
,
topAdvertConfig
,
...
...
@@ -22,7 +22,7 @@ import {
InformationConfig
,
FooterConfig
,
}
from
'./defaultData'
import
{
menuData
}
from
'./defaultMenu'
import
{
menuData
,
getDefaultMenuData
}
from
'./defaultMenu'
import
Loading
from
'../components/Loading'
import
{
PublicApi
}
from
'@/services/api'
import
{
GlobalConfig
}
from
'@/global/config'
...
...
@@ -173,12 +173,17 @@ const OwnMallEdit: React.FC<ShopEditPropsType> = (props) => {
};
const
getComponentsConfig
=
async
()
=>
{
//商城信息
const
shopList
=
GlobalConfig
.
web
.
shopInfo
const
webMallInfo
=
shopList
.
filter
(
item
=>
item
.
id
===
Number
(
shopId
))[
0
]
// 导航栏
const
navData
=
await
getOwnMallNavData
();
if
(
!
isEmpty
(
navData
))
{
mainNavConfig
[
mainNavConfig
.
key
].
props
.
menuData
=
navData
;
}
else
{
mainNavConfig
[
mainNavConfig
.
key
].
props
.
menuData
=
menuData
;
const
mallPath
=
`
${
REQUEST_HEADER
}${
webMallInfo
.
url
}
.
${
TOP_DOMAIN
}
`
mainNavConfig
[
mainNavConfig
.
key
].
props
.
menuData
=
getDefaultMenuData
(
mallPath
,
memberId
);
}
mainNavConfig
[
mainNavConfig
.
key
].
props
.
type
=
LAYOUT_TYPE
.
shop
mainNavConfig
[
mainNavConfig
.
key
].
props
.
categoryList
=
[]
...
...
@@ -191,9 +196,7 @@ const OwnMallEdit: React.FC<ShopEditPropsType> = (props) => {
threeBannerConfig
[
threeBannerConfig
.
key
].
props
.
advertList
=
await
findAdvertsByType
(
3
)
// 四号位广告
fourBannerConfig
[
fourBannerConfig
.
key
].
props
.
advertList
=
await
findAdvertsByType
(
4
)
//商城信息
const
shopList
=
GlobalConfig
.
web
.
shopInfo
const
webMallInfo
=
shopList
.
filter
(
item
=>
item
.
id
===
Number
(
shopId
))[
0
]
topBarConfig
[
topBarConfig
.
key
].
props
.
shopname
=
webMallInfo
.
name
headerConfig
[
headerConfig
.
key
].
props
.
logoUrl
=
webMallInfo
.
logoUrl
...
...
src/pages/mobileTemplate/ownMallTemplateEdit/config.ts
0 → 100644
View file @
15624697
/*
* @Author: ghua
* @Date: 2021-02-22 17:02:20
* @LastEditTime: 2021-03-01 11:47:26
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: /lingxi-business-paltform/src/pages/mobileTemplate/channelTemplateEdit/config.ts
*/
import
{
PageConfigType
}
from
'@lingxi-disign/core'
import
categoryNavTemplateDefault
from
'../shopTemplateEdit/img/category_template_default.png'
import
RED_PACKAGE
from
'../shopTemplateEdit/img/red_package.png'
;
export
const
defaultHeaderNavData
=
[
{
name
:
"我的"
,
content
:
""
,
status
:
true
,
type
:
1
},
]
export
const
channelLayoutConfig
:
PageConfigType
=
{
'0'
:
{
componentName
:
'MallLayout'
,
props
:
{
style
:
{
"width"
:
"100%"
,
"minHeight"
:
"100%"
,
"background"
:
"#F7F8FA"
,
"overflowX"
:
"hidden"
,
"paddingBottom"
:
"50px"
,
}
},
childNodes
:
[
'1'
,
'3'
,
'5'
,
'7'
]
},
'1'
:
{
title
:
'头部导航栏'
,
canDelete
:
false
,
componentName
:
'ChannelHeaderNav'
,
canEdit
:
false
,
props
:
{
styleTheme
:
'${topStyle}'
,
title
:
'${channelName}'
,
categoryList
:
'${categoryList}'
,
},
childNodes
:
[
'2'
],
childComponentName
:
'ChannelHeaderNav.ActionItem'
,
},
'2'
:
{
loop
:
'${top}'
,
title
:
'${item.name}'
,
hideActions
:
true
,
componentName
:
'ChannelHeaderNav.ActionItem'
,
props
:
{
data
:
'${item}'
},
},
'3'
:
{
title
:
'广告图'
,
canDelete
:
false
,
componentName
:
'Banner'
,
props
:
{
style
:
{
margin
:
'8px'
,
},
},
childNodes
:
[
'4'
],
childComponentName
:
'Banner.Items'
,
addBtnText
:
'添加广告'
,
},
'4'
:
{
loop
:
'${advert}'
,
title
:
'${item.name}'
,
componentName
:
'Banner.Items'
,
props
:
{
id
:
'${item.id}'
,
type
:
'${item.type}'
,
img
:
'${item.img}'
,
name
:
'${item.name}'
,
isnull
:
false
,
},
},
'5'
:
{
title
:
'分类导航'
,
canDelete
:
false
,
hideAction
:
true
,
componentName
:
'MobileNavCard'
,
props
:
{
style
:
{
margin
:
'8px'
,
},
status
:
true
,
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
:
'资讯'
,
canDelete
:
false
,
componentName
:
'InformationCard'
,
props
:
{
title
:
'${informationTitle}'
},
childNodes
:
[],
canEdit
:
false
,
addBtnText
:
'添加资讯'
,
},
}
export
const
defaultConfig
:
PageConfigType
=
{
'14'
:
{
title
:
'底部标签栏'
,
canDelete
:
false
,
componentName
:
'BottomNavigation'
,
props
:
{},
childNodes
:
[
'15'
],
childComponentName
:
'BottomNavigation.Items'
,
addBtnText
:
'添加标签'
,
maxLength
:
5
,
},
'15'
:
{
loop
:
'${bottom}'
,
title
:
'${item.name}'
,
componentName
:
'BottomNavigation.Items'
,
props
:
{
defaultIcon
:
'${item.defaultIcon}'
,
selectIcon
:
'${item.selectIcon}'
,
name
:
'${item.name}'
,
type
:
'${item.type}'
,
isnull
:
false
,
},
},
}
export
const
suggestProductConfig
=
{
'12'
:
{
title
:
'推荐商品'
,
canDelete
:
false
,
componentName
:
'SuggestProduct'
,
props
:
{},
childNodes
:
[],
childComponentName
:
'SuggestProduct.Items'
,
addBtnText
:
'添加分类'
,
canEdit
:
true
,
canHide
:
false
,
maxLength
:
4
,
childProps
:
{
title
:
'商品容器'
,
canEdit
:
true
,
canHide
:
false
,
componentName
:
'SuggestProduct.Items'
,
props
:
{},
childComponentName
:
'SuggestProduct.Commodity'
,
maxLength
:
50
,
// addBtnText: '添加商品',
childNodes
:
[],
},
},
};
export
const
couponsModalConfig
=
{
'13'
:
{
title
:
'优惠券弹窗'
,
componentName
:
'CouponsModal'
,
props
:
{
style
:
{
position
:
'absolute'
,
display
:
'none'
,
backgroundImage
:
`url(
${
RED_PACKAGE
}
)`
,
width
:
312
,
height
:
425
,
top
:
0
,
left
:
0
,
bottom
:
0
,
right
:
0
,
margin
:
'auto'
,
zIndex
:
1
,
},
},
childNodes
:
[],
childComponentName
:
'CouponsModal.CouponsItem'
,
addBtnText
:
'添加优惠券'
,
canEdit
:
true
,
canHide
:
false
,
canDelete
:
false
,
canDrag
:
false
,
},
};
src/pages/mobileTemplate/ownMallTemplateEdit/imgs/style_theme_default.png
0 → 100644
View file @
15624697
48.5 KB
src/pages/mobileTemplate/ownMallTemplateEdit/imgs/style_theme_science.png
0 → 100644
View file @
15624697
57 KB
src/pages/mobileTemplate/ownMallTemplateEdit/index.less
0 → 100644
View file @
15624697
@content-height: calc(100vh - 120px);
.wrapper {
background: white;
display: flex;
flex-direction: column;
box-shadow: 2px 0 4px 0 rgba(174, 174, 174, 0.50);
transition: all .3s;
}
.content {
display: flex;
flex: 1;
flex-direction: row;
justify-content: center;
background-color: #F2F3F5;
height: calc(100vh - 64px);
}
.app-wrapper {
display: flex;
flex: 1;
justify-content: center;
}
.app-canvas-container {
display: flex;
width: 381px;
margin-top: 40px;
margin-bottom: 52px;
justify-content: center;
background-color: #F4F5F7;
// height: calc(@content-height + 50px);
overflow: hidden;
}
.loading_wrap {
width: 100%;
height: 100vh;
justify-content: center;
flex-direction: column;
display: flex;
align-items: center;
.loading_text {
margin-top: 16px;
font-size: 14px;
font-weight: bold;
}
}
src/pages/mobileTemplate/ownMallTemplateEdit/index.tsx
0 → 100644
View file @
15624697
This diff is collapsed.
Click to expand it.
src/pages/mobileTemplate/ownMallTemplateEdit/marketing_config.ts
0 → 100644
View file @
15624697
This diff is collapsed.
Click to expand it.
src/pages/mobileTemplate/ownMallTemplateEdit/preview.tsx
0 → 100644
View file @
15624697
This diff is collapsed.
Click to expand it.
src/pages/ownMall/ownMallManager/components/useModal/index.less
View file @
15624697
...
...
@@ -5,6 +5,13 @@
.text_line {
margin-bottom: 8px;
&.use {
background-color: #FAFBFC;
display: flex;
flex-direction: column;
padding: 12px;
}
&>span {
color: #909399;
...
...
src/pages/ownMall/ownMallManager/components/useModal/index.tsx
View file @
15624697
import
React
from
'react'
import
{
Modal
,
Form
,
Select
,
Checkbox
}
from
'antd'
import
styles
from
'./index.less'
import
cx
from
'classnames'
import
detailInfo
from
'@/pages/logistics/components/orderSearchDetail'
interface
UseModalPropsType
{
...
...
@@ -36,14 +37,14 @@ const UseModal: React.FC<UseModalPropsType> = (props) => {
<
label
>
“
{
dataInfo
.
inUseTemplateName
}
”
</
label
>
<
span
>
模板,
</
span
>
</
div
>
<
div
className=
{
styles
.
text_line
}
>
<
div
className=
{
cx
(
styles
.
text_line
,
styles
.
use
)
}
>
<
span
>
您是否使用
</
span
>
<
label
>
“
{
dataInfo
.
templateName
}
”
</
label
>
<
span
>
模板,来替换您正在使用的模板
</
span
>
<
label
>
”
{
dataInfo
.
templateName
}
”
</
label
>
<
span
>
来替换您正在使用的模板
</
span
>
</
div
>
</>
)
:
(
<
div
className=
{
styles
.
text_line
}
>
<
div
className=
{
cx
(
styles
.
text_line
)
}
>
<
span
>
您是否使用
</
span
>
<
label
>
“
{
dataInfo
.
templateName
}
”
</
label
>
<
span
>
模板?
</
span
>
...
...
src/pages/ownMall/ownMallManager/templateDetail/index.tsx
View file @
15624697
...
...
@@ -128,10 +128,14 @@ const TemplateDetail: React.FC<TemplateDetailPropsType> = (props) => {
<
LayoutOutlined
/>
<
label
>
商城装修
</
label
>
</
div
>
{
detailInfo
?.
environment
===
4
&&
(
<
div
className=
{
cx
(
styles
.
btn
,
styles
.
fit
)
}
onClick=
{
()
=>
handleCategoryJump
()
}
>
<
LayoutOutlined
/>
<
label
>
品类导航页装修
</
label
>
</
div
>
)
}
<
div
className=
{
cx
(
styles
.
btn
,
detailInfo
?.
use
===
1
?
styles
.
use
:
''
)
}
onClick=
{
()
=>
detailInfo
?.
use
!==
1
?
setUseModalVisible
(
true
)
:
{}
}
>
<
PushpinOutlined
/>
<
label
>
{
detailInfo
?.
use
===
1
?
'使用中'
:
'使用'
}
</
label
>
...
...
src/pages/transaction/marketingAbility/merchantCoupon/merchantCouponUnsubmitted/components/CouponForm/effects/index.tsx
View file @
15624697
...
...
@@ -2,12 +2,13 @@
* @Author: XieZhiXiong
* @Date: 2021-06-24 14:03:34
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-
08-03 11:26:22
* @LastEditTime: 2021-
10-16 16:06:07
* @Description:
*/
import
{
FormPath
,
FormEffectHooks
}
from
'@formily/antd'
;
import
{
useAsyncInitSelect
}
from
'@/formSchema/effects/useAsyncInitSelect'
;
import
{
PublicApi
}
from
'@/services/api'
;
import
{
GlobalConfig
}
from
'@/global/config'
;
import
{
useBusinessEffects
}
from
'./useBusinessEffects'
;
import
{
ResponseType
}
from
'../../../../../components/MemberCheckboxGroup'
;
...
...
@@ -150,7 +151,7 @@ export const createEffects = (context, actions) => {
// 初始化 适用商城数据
onFieldMount$
(
'suitableMallTypes'
).
subscribe
(()
=>
{
PublicApi
.
getManageShopFindByMemberType
(
).
then
((
res
)
=>
{
PublicApi
.
postManageWebShopWebAll
({
siteId
:
GlobalConfig
.
global
.
siteInfo
.
id
,
hasMemberType
:
1
}
).
then
((
res
)
=>
{
if
(
res
.
code
===
1000
)
{
const
{
data
=
[]
}
=
res
;
setFieldState
(
'suitableMallTypes'
,
state
=>
{
...
...
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