Commit d2230958 by FE

midify btn in togroup page

parent 1b615bcc
...@@ -243,13 +243,15 @@ function GorupContent(props) { ...@@ -243,13 +243,15 @@ function GorupContent(props) {
if (groupon_member && groupon_member.length > 0) { if (groupon_member && groupon_member.length > 0) {
let uid = ''; let uid = '';
let flag = false;
groupon_member.map(item=>{ groupon_member.map(item=>{
if(item.user_type === 1) { if(item.uid == userInfo.data.data.uid) {
uid = `${item.uid}`; // uid = `${item.uid}`;
flag = true
} }
}) })
if(uid === userInfo.data.data.uid) { if(flag) {
tip = <p className='tip'>{`拼团省¥${pdd_price}元`}</p> tip = <p className='tip'>{`拼团省¥${pdd_price}元`}</p>
btn = <span className='group-btn' onClick={props.invitedFriends}>邀请好友参团 {countdown} 后结束</span> btn = <span className='group-btn' onClick={props.invitedFriends}>邀请好友参团 {countdown} 后结束</span>
dec = <p className='dec'>分享到3个群后,成团率高达98%</p> dec = <p className='dec'>分享到3个群后,成团率高达98%</p>
......
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