Commit 912c2d1c authored by 前端-钟卫鹏's avatar 前端-钟卫鹏

fix: 处理待发货订单分享拼团链接显示异常

parent ddcd6e56
......@@ -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({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment