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
linweijiong
jinfa-platform
Commits
20761551
Commit
20761551
authored
Mar 02, 2021
by
GuanHua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: app渠道商城装修页面开发
parent
54e70697
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
125 additions
and
40 deletions
+125
-40
router.config.json
config/router.config.json
+0
-0
MobileChannelGoodsCard.ts
...nfigs/componentConfigs/LingXiUI/MobileChannelGoodsCard.ts
+4
-0
column.tsx
.../propsSettings/components/channelGoods/contant/column.tsx
+76
-6
schema.ts
...l/propsSettings/components/channelGoods/contant/schema.ts
+1
-7
index.less
...ingPanel/propsSettings/components/channelGoods/index.less
+1
-1
index.tsx
...tingPanel/propsSettings/components/channelGoods/index.tsx
+0
-0
index.less
...el/propsSettings/components/recommendCommodity/index.less
+1
-1
index.tsx
src/pages/editor/mobileSettingPanel/styleSettings/index.tsx
+21
-7
index.tsx
src/pages/lxMall/commodityDetail/index.tsx
+19
-18
index.tsx
src/pages/mobileTemplate/channelTemplateEdit/index.tsx
+2
-0
No files found.
config/router.config.json
View file @
20761551
This source diff could not be displayed because it is too large. You can
view the blob
instead.
src/pages/editor/configs/componentConfigs/LingXiUI/MobileChannelGoodsCard.ts
View file @
20761551
...
...
@@ -14,6 +14,10 @@ const MobileChannelHeaderNav: ComponentConfigTypes = {
label
:
'编辑'
,
type
:
PROPS_TYPES
.
mobileChannelGoodsCard
},
styleType
:
{
label
:
"样式"
,
type
:
PROPS_TYPES
.
objectArray
}
},
};
...
...
src/pages/editor/mobileSettingPanel/propsSettings/components/channelGoods/contant/column.tsx
View file @
20761551
...
...
@@ -19,18 +19,16 @@ export const promptCommodityColumn = [
{
title
:
"商品名称"
,
dataIndex
:
"name"
,
width
:
28
0
,
width
:
30
0
,
ellipsis
:
true
,
},
{
title
:
"品类"
,
render
:
(
_
,
record
)
=>
record
.
customerCategory
?
record
.
customerCategory
.
name
:
""
,
ellipsis
:
true
,
// render: (_, record) => record.customerCategory.name
},
{
title
:
"品牌"
,
render
:
(
_
,
record
)
=>
record
.
brand
?
record
.
brand
.
name
:
""
,
ellipsis
:
true
,
// render: (_, record) => record.brand.name
},
{
title
:
"价格"
,
...
...
@@ -39,4 +37,76 @@ export const promptCommodityColumn = [
},
]
export
default
promptCommodityColumn
export
const
integralCommodityColumn
=
[
{
title
:
"商品图片"
,
dataIndex
:
"mainPic"
,
render
:
(
mainPic
:
string
)
=>
showMainPic
(
mainPic
)
},
{
title
:
"商品名称"
,
dataIndex
:
"name"
,
width
:
300
,
ellipsis
:
true
,
},
{
title
:
"需要积分"
,
dataIndex
:
"min"
,
render
:
(
_
,
record
)
=>
`
${
numFormat
(
record
.
min
)}
`
},
]
export
const
shopColumn
=
[
{
title
:
"店铺图片"
,
dataIndex
:
"logo"
,
render
:
(
logo
:
string
)
=>
showMainPic
(
logo
)
},
{
title
:
"店铺名称"
,
dataIndex
:
"memberName"
,
width
:
300
,
ellipsis
:
true
,
},
]
export
const
brandColumn
=
[
{
title
:
"品牌logo"
,
dataIndex
:
"logoUrl"
,
render
:
(
imageUrl
:
string
)
=>
showMainPic
(
imageUrl
)
},
{
title
:
"品牌名称"
,
dataIndex
:
"name"
,
width
:
360
,
ellipsis
:
true
,
},
]
export
const
informationColumn
=
[
{
title
:
"资讯图片"
,
dataIndex
:
"imageUrl"
,
render
:
(
imageUrl
:
string
)
=>
showMainPic
(
imageUrl
)
},
{
title
:
"资讯标题"
,
dataIndex
:
"title"
,
width
:
360
,
ellipsis
:
true
,
},
]
const
tableColumn
=
{
1
:
promptCommodityColumn
,
2
:
shopColumn
,
3
:
brandColumn
,
4
:
informationColumn
}
export
default
tableColumn
src/pages/editor/mobileSettingPanel/propsSettings/components/channelGoods/contant/schema.ts
View file @
20761551
...
...
@@ -34,9 +34,6 @@ export const formProduct: ISchema = {
"x-component-props"
:
{
placeholder
:
'请选择品类'
,
className
:
'fixed-ant-selected-down'
,
// 该类强制将显示的下拉框出现在select下, 只有这里出现问题, ??
queryParams
:
{
storeId
:
2
,
},
fetchSearch
:
PublicApi
.
getProductSelectGetSelectCategory
,
style
:
{
width
:
160
...
...
@@ -48,10 +45,7 @@ export const formProduct: ISchema = {
"x-component"
:
'SearchSelect'
,
"x-component-props"
:
{
placeholder
:
'请选择品牌'
,
queryParams
:
{
storeId
:
2
,
},
fetchSearch
:
PublicApi
.
getSearchMobileShopStoreGetBrand
,
fetchSearch
:
PublicApi
.
getProductSelectGetSelectPlatformBrand
,
style
:
{
width
:
160
}
...
...
src/pages/editor/mobileSettingPanel/propsSettings/components/channelGoods/index.less
View file @
20761551
@import "../../../../../../global/
/
styles/utils.less";
@import "../../../../../../global/styles/utils.less";
@import "../../common.less";
.selectBtn {
...
...
src/pages/editor/mobileSettingPanel/propsSettings/components/channelGoods/index.tsx
View file @
20761551
This diff is collapsed.
Click to expand it.
src/pages/editor/mobileSettingPanel/propsSettings/components/recommendCommodity/index.less
View file @
20761551
@import "../../../../../../global/
/
styles/utils.less";
@import "../../../../../../global/styles/utils.less";
@import "../../common.less";
.selectBtn {
...
...
src/pages/editor/mobileSettingPanel/styleSettings/index.tsx
View file @
20761551
import
React
,
{
useState
}
from
'react'
import
cx
from
'classnames'
import
{
SelectedInfoType
,
changeProps
}
from
'lingxi-editor-core'
import
{
SelectedInfoType
,
changeProps
,
PROPS_TYPES
}
from
'lingxi-editor-core'
import
styles
from
'./index.less'
interface
StyleSettingsPropsType
{
...
...
@@ -24,16 +24,30 @@ const StyleSettings: React.FC<StyleSettingsPropsType> = ({ selectedInfo }) => {
}
}
return
(
<
div
className=
{
styles
.
styleSettings
}
>
<
div
className=
{
styles
.
styleList
}
>
{
(
selectProps
&&
selectProps
.
stylesThemeList
)
&&
selectProps
.
stylesThemeList
.
map
(
item
=>
(
const
renderSettingItem
=
()
=>
{
const
{
props
:
initProps
,
propsConfig
}
=
selectedInfo
||
{};
const
componentType
=
propsConfig
?.
componentType
if
(
componentType
)
{
switch
(
componentType
.
type
)
{
case
PROPS_TYPES
.
mobileHeaderNav
:
return
(
selectProps
&&
selectProps
.
stylesThemeList
)
&&
selectProps
.
stylesThemeList
.
map
(
item
=>
(
<
div
className=
{
cx
(
styles
.
styleItem
,
selectKey
===
item
.
key
?
styles
.
active
:
{})
}
key=
{
item
.
key
}
onClick=
{
()
=>
handleChangeStyleTheme
(
item
.
key
)
}
>
<
img
className=
{
styles
.
themeImg
}
src=
{
item
.
img
}
title=
{
item
.
key
}
/>
</
div
>
))
}
case
PROPS_TYPES
.
mobileChannelGoodsCard
:
return
'mobileChannelGoodsCard'
default
:
return
null
}
}
}
return
(
<
div
className=
{
styles
.
styleSettings
}
>
<
div
className=
{
styles
.
styleList
}
>
{
renderSettingItem
()
}
</
div
>
</
div
>
)
...
...
src/pages/lxMall/commodityDetail/index.tsx
View file @
20761551
...
...
@@ -369,13 +369,14 @@ const CommodityDetail = (props) => {
setSelectCommodityUnitPriceId
(
item
.
commodityUnitPriceAndPicId
)
setCurrentPriceRange
(
sortUnitPrice
(
item
.
unitPrice
))
setAttrAndValList
(
item
)
if
(
getAuth
())
{
let
productId
:
number
=
item
.
id
if
(
layoutType
===
LAYOUT_TYPE
.
channel
||
layoutType
===
LAYOUT_TYPE
.
ichannel
)
{
productId
=
item
.
commodityUnitPriceAndPicId
}
getStockCountByProductId
(
productId
)
}
setStockCount
(
item
.
stockCount
)
// if(getAuth()) {
// let productId: number = item.id
// if (layoutType === LAYOUT_TYPE.channel || layoutType === LAYOUT_TYPE.ichannel) {
// productId = item.commodityUnitPriceAndPicId
// }
// getStockCountByProductId(productId)
// }
}
}
...
...
@@ -386,17 +387,17 @@ const CommodityDetail = (props) => {
* 根据商品skuid获取商品库存数量
* @param productId
*/
const
getStockCountByProductId
=
(
productId
:
number
)
=>
{
const
param
:
any
=
{
productId
,
shopId
:
storeId
,
}
PublicApi
.
getWarehouseStockByProductId
(
param
).
then
((
res
=>
{
if
(
res
.
code
===
1000
)
{
setStockCount
(
res
.
data
)
}
}))
}
//
const getStockCountByProductId = (productId: number) => {
//
const param: any = {
//
productId,
//
shopId: storeId,
//
}
//
PublicApi.getWarehouseStockByProductId(param).then((res => {
//
if (res.code === 1000) {
//
setStockCount(res.data)
//
}
//
}))
//
}
const
judgeArrisCommon
=
(
list
,
otherList
)
=>
{
if
(
list
.
length
===
otherList
.
length
)
{
...
...
src/pages/mobileTemplate/channelTemplateEdit/index.tsx
View file @
20761551
...
...
@@ -220,6 +220,8 @@ const mobileShopTempleteEdit: React.FC<ShopPreviewPropsType> = (props) => {
if
(
channelInfo
.
memberId
)
{
const
categoryList
=
await
getCustomerCategoryTreeById
(
channelInfo
.
memberId
)
mobileChannelCategory
[
mobileChannelCategory
.
key
].
props
.
dataList
=
categoryList
mobileChannelGoodsCard
[
mobileChannelGoodsCard
.
key
].
props
.
channelMemberId
=
channelInfo
.
memberId
}
if
(
appConfig
?.
advertBO
)
{
...
...
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