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
912c2d1c
Commit
912c2d1c
authored
Jan 25, 2022
by
前端-钟卫鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 处理待发货订单分享拼团链接显示异常
parent
ddcd6e56
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
index.tsx
...ges/transaction/purchaseOrder/readyDelevedOrder/index.tsx
+1
-4
No files found.
src/pages/transaction/purchaseOrder/readyDelevedOrder/index.tsx
View file @
912c2d1c
...
...
@@ -67,14 +67,12 @@ const ReadyDelevedOrder:React.FC<ReadyDelevedOrderProps> = () => {
])
const
[
shareVisible
,
setShareVisible
]
=
useState
<
boolean
>
(
false
)
const
[
payModel
,
setPayModel
]
=
useState
<
number
>
()
const
currentPayRef
=
useRef
<
any
>
({})
const
currentOrderRef
=
useRef
<
any
>
({})
const
[
qrCode
,
setQrCode
]
=
useState
(
''
)
const
[
activityInfo
,
setActivityInfo
]
=
useState
<
any
>
()
useEffect
(()
=>
{
if
(
payModel
===
STORE_ENV_MAP
[
"WEB"
])
{
console
.
log
(
activityInfo
,
'activityInfo'
)
const
element
=
document
.
getElementById
(
'linkInput'
)
element
[
'value'
]
=
`原价¥
${
activityInfo
.
price
}
,
${
activityInfo
.
assembleNum
}
人团 ,只需¥
${
activityInfo
.
activityPrice
}
,
${
activityInfo
.
productName
}
http://lx-
${
activityInfo
.
shopPrefix
}
.
${
TOP_DOMAIN
}
/shop/
${
activityInfo
.
supplierMemberId
}
_
${
activityInfo
.
supplierRoleId
}
/group/detail/
${
activityInfo
.
productId
}
?groupId=
${
activityInfo
.
groupId
}
`
;
}
else
if
(
payModel
===
STORE_ENV_MAP
[
"APP"
])
{
...
...
@@ -145,8 +143,7 @@ const ReadyDelevedOrder:React.FC<ReadyDelevedOrderProps> = () => {
// 根据接口数据,拼团活动信息和商品信息
postMarketingWebActivityOrderOrderGroupPurchaseShareDetail
({
id
:
record
.
orderId
},
{
ctlType
:
'none'
}).
then
(
res
=>
{
const
{
code
,
data
}
=
res
currentPayRef
.
current
=
data
currentOrderRef
.
current
=
record
currentOrderRef
.
current
=
{
...
record
,
timeStamp
:
new
Date
().
getTime
()
}
// 加入商城链接前缀 拼团id和商城id
const
shop
=
shopInfo
.
filter
(
item
=>
item
.
id
===
record
.
shopId
)[
0
]
setActivityInfo
({
...
...
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