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
2241999a
Commit
2241999a
authored
Nov 23, 2020
by
GuanHua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:进货单商品链接问题,订单支付获取余额参数错误的问题
parent
6c7241c1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
index.tsx
src/pages/lxMall/components/Recommand/index.tsx
+3
-3
index.tsx
src/pages/lxMall/pay/components/balance/index.tsx
+4
-3
No files found.
src/pages/lxMall/components/Recommand/index.tsx
View file @
2241999a
...
...
@@ -172,13 +172,13 @@ const Recommand: React.FC<RecommandPropsType> = (props) => {
let
link
=
""
switch
(
layoutType
)
{
case
LAYOUT_TYPE
.
channel
:
link
=
`
${
GlobalConfig
.
channelRootRoute
}
/commodity/detail?id=
${
item
.
id
}
&channelId=
${
btoa
(
JSON
.
stringify
({
shopId
:
item
.
storeId
,
memberId
:
item
.
memberId
}))}
`
link
=
`
${
GlobalConfig
.
channelRootRoute
}
/commodity/detail?id=
${
item
.
id
}
&channelId=
${
btoa
(
JSON
.
stringify
({
memberId
}))}
`
break
case
LAYOUT_TYPE
.
ichannel
:
link
=
`
${
GlobalConfig
.
ichannelRootRoute
}
/commodity/detail?id=
${
item
.
id
}
&channelId=
${
btoa
(
JSON
.
stringify
({
shopId
:
item
.
storeId
,
memberId
:
item
.
memberId
}))}
`
link
=
`
${
GlobalConfig
.
ichannelRootRoute
}
/commodity/detail?id=
${
item
.
id
}
&channelId=
${
btoa
(
JSON
.
stringify
({
memberId
}))}
`
break
default
:
link
=
`/shop/commodity/detail?id=
${
item
.
id
}
&shopId=
${
btoa
(
JSON
.
stringify
({
shopId
:
item
.
storeId
,
memberId
:
item
.
memberId
}))}
`
link
=
`/shop/commodity/detail?id=
${
item
.
id
}
&shopId=
${
btoa
(
JSON
.
stringify
({
memberId
}))}
`
break
}
return
link
...
...
src/pages/lxMall/pay/components/balance/index.tsx
View file @
2241999a
...
...
@@ -36,18 +36,19 @@ const BablancePayWay: React.FC<BablancePayWayPropsType> = (props) => {
}
useEffect
(()
=>
{
if
(
orderInfo
)
{
if
(
orderInfo
&&
payInfo
)
{
fetchBalanceInfo
()
fetchSecurity
()
}
},
[
orderInfo
])
},
[
orderInfo
,
payInfo
])
const
fetchBalanceInfo
=
()
=>
{
let
param
=
{
payType
:
order
Info
.
ruleConfigurationId
,
payType
:
pay
Info
.
ruleConfigurationId
,
parentMemberId
:
orderInfo
.
supplyMembersId
,
parentMemberRoleId
:
orderInfo
.
supplyMembersRoleId
}
//@ts-ignore
PublicApi
.
getPayAssetAccountGetUserBalance
(
param
).
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
setBalanceInfo
(
res
.
data
)
...
...
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