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
00b2b8ef
Commit
00b2b8ef
authored
Dec 02, 2020
by
Bill
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of 10.0.0.22:lingxi/lingxi-business-paltform into dev
parents
1885ff18
4dcc1be6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
fontawesome.min.css
public/fonts/fontawesome.min.css
+0
-0
commodity.tsx
src/pages/systemSetting/collection/commodity.tsx
+7
-5
No files found.
public/fonts/fontawesome.min.css
deleted
100644 → 0
View file @
1885ff18
This diff is collapsed.
Click to expand it.
src/pages/systemSetting/collection/commodity.tsx
View file @
00b2b8ef
...
...
@@ -24,11 +24,11 @@ const Commodity: React.FC = () => {
* 获取收藏的商品列表
*/
const
fetchCollectCommodityList
=
()
=>
{
let
param
=
{
const
param
:
any
=
{
current
,
pageSize
}
//@ts-ignore
PublicApi
.
getSearchShopCommodityCollectGetCommodityCollectList
(
param
).
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
setList
(
res
.
data
.
data
)
...
...
@@ -38,16 +38,18 @@ const Commodity: React.FC = () => {
}
const
linkToDetail
=
(
detail
)
=>
{
le
t
el
=
document
.
createElement
(
'a'
)
cons
t
el
=
document
.
createElement
(
'a'
)
switch
(
detail
.
type
)
{
case
1
:
case
2
:
el
.
href
=
`/shop/commodity/detail?id=
${
detail
.
commodity
.
id
}
&shopId=
${
btoa
(
JSON
.
stringify
({
shopId
:
detail
.
storeId
,
memberId
:
detail
.
member
Id
}))}
`
;
el
.
href
=
`/shop/commodity/detail?id=
${
detail
.
commodity
.
id
}
&shopId=
${
btoa
(
JSON
.
stringify
({
shopId
:
detail
.
commodity
.
storeId
,
memberId
:
detail
.
commodity
.
memberId
,
roleId
:
detail
.
commodity
.
memberRole
Id
}))}
`
;
break
case
3
:
el
.
href
=
`
${
GlobalConfig
.
channelRootRoute
}
/commodity/detail?id=
${
detail
.
commodity
.
id
}
&channelId=
${
btoa
(
JSON
.
stringify
({
memberId
:
detail
.
channelMemberId
}))}
`
;
break
case
4
:
el
.
href
=
`
${
GlobalConfig
.
ichannelRootRoute
}
/commodity/detail?id=
${
detail
.
commodity
.
id
}
&channelId=
${
btoa
(
JSON
.
stringify
({
memberId
:
detail
.
channelMemberId
}))}
`
;
break
case
5
:
el
.
href
=
`
${
GlobalConfig
.
channelRootRoute
}
/commodity/detail?id=
${
detail
.
commodity
.
id
}
&channelId=
${
btoa
(
JSON
.
stringify
({
memberId
:
detail
.
channelMemberId
}))}
`
;
break
...
...
@@ -104,7 +106,7 @@ const Commodity: React.FC = () => {
content
:
`是否要取消收藏?`
,
onOk
:
()
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
le
t
param
:
any
=
{
cons
t
param
:
any
=
{
commodityId
:
detail
.
commodity
.
id
,
type
:
detail
.
type
}
...
...
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