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
陈智峰
jinfa-platform
Commits
0d58c631
Commit
0d58c631
authored
Jan 29, 2021
by
GuanHua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 进货单商品推荐问题
parent
957a1049
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
5 deletions
+23
-5
index.tsx
...nel/propsSettings/components/recommendCommodity/index.tsx
+19
-1
index.tsx
src/pages/lxMall/components/Recommand/index.tsx
+2
-2
index.tsx
src/pages/mobileTemplate/shopTemplateEdit/index.tsx
+2
-2
No files found.
src/pages/editor/mobileSettingPanel/propsSettings/components/recommendCommodity/index.tsx
View file @
0d58c631
...
...
@@ -219,13 +219,31 @@ const RecommendCommodity: React.FC<BannerPropsType> = (props) => {
setModalVisible
(
true
)
}
const
fetchCategoryByCommodityId
=
(
idList
:
number
[])
=>
{
return
new
Promise
((
resolve
)
=>
{
const
param
=
{
idList
}
PublicApi
.
postSearchMobileShopStoreGetCategoryByCommodityId
(
param
).
then
((
res
)
=>
{
if
(
res
.
code
===
1000
)
{
resolve
(
res
.
data
)
}
})
})
}
// const changeData = (dataList) => {
// }
const
handleModalOk
=
async
()
=>
{
const
selectResult
=
productRowCtl
.
selectRow
if
(
!
selectResult
||
isEmpty
(
selectResult
))
{
message
.
info
(
"请选择"
)
return
null
}
console
.
log
(
productRowCtl
.
selectedRowKeys
,
"productRowCtl.selectedRowKeys"
)
fetchCategoryByCommodityId
(
productRowCtl
.
selectedRowKeys
)
// const newList = [...list]
// newList.map(item => {
// if (item.sort === currentInfo?.sort) {
...
...
src/pages/lxMall/components/Recommand/index.tsx
View file @
0d58c631
...
...
@@ -64,7 +64,7 @@ const Recommand: React.FC<RecommandPropsType> = (props) => {
const
param
:
any
=
{
current
:
1
,
pageSize
:
5
,
c
ategoryId
c
ustomerCategoryId
:
categoryId
,
}
let
headers
=
{}
let
getListFn
...
...
@@ -84,7 +84,7 @@ const Recommand: React.FC<RecommandPropsType> = (props) => {
getListFn
=
PublicApi
.
postSearchShopChannelGetCommodityList
break
default
:
getListFn
=
PublicApi
.
postSearchShop
Stor
eGetCommodityList
getListFn
=
PublicApi
.
postSearchShop
Enterpris
eGetCommodityList
break
}
getListFn
&&
getListFn
(
param
,
{
headers
}).
then
(
res
=>
{
...
...
src/pages/mobileTemplate/shopTemplateEdit/index.tsx
View file @
0d58c631
...
...
@@ -198,8 +198,6 @@ const mobileShopTempleteEdit: React.FC<ShopPreviewPropsType> = (props) => {
const
shopInfo
=
await
fetchShopInfo
()
mobileShopHeaderNav
[
mobileShopHeaderNav
.
key
].
props
.
shopInfo
=
shopInfo
mobileShopCommodityList
[
mobileShopCommodityList
.
key
].
props
.
storeId
=
shopInfo
.
id
if
(
appConfig
?.
backdropBO
)
{
mobileShopHeaderNav
[
mobileShopHeaderNav
.
key
].
props
.
backdrop
=
appConfig
?.
backdropBO
.
backdrop
}
...
...
@@ -214,10 +212,12 @@ const mobileShopTempleteEdit: React.FC<ShopPreviewPropsType> = (props) => {
if
(
appConfig
?.
productBO
)
{
mobileShopCommodityList
[
mobileShopCommodityList
.
key
].
props
=
{
storeId
:
shopInfo
.
id
,
title
:
appConfig
.
productBO
.
title
,
productIdList
:
appConfig
.
productBO
.
productIdList
}
}
else
{
mobileShopCommodityList
[
mobileShopCommodityList
.
key
].
props
.
storeId
=
shopInfo
.
id
mobileShopCommodityList
[
mobileShopCommodityList
.
key
].
props
.
title
=
'热销商品'
}
...
...
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