Commit ac0abe7d499b9b2f04d7f3e360ddf3f67c034ce5
1 parent
646d23e5
注册是,有领过礼包就不再显示礼包赠送
Showing
1 changed file
with
2 additions
and
1 deletions
packageA/pages/profile/profile.js
... | ... | @@ -772,7 +772,8 @@ Page({ |
772 | 772 | data:{store_id:r.stoid,user_id:uid,lbid:lbid,act_type:7} |
773 | 773 | }).then(res=>{ |
774 | 774 | var is_ling=0; |
775 | - if(res.data.code==0 && res.data.data && res.data.data.total>0){ | |
775 | + //-1就表示有领过 | |
776 | + if(res.data.code==-1 ){ | |
776 | 777 | is_ling=1; |
777 | 778 | } |
778 | 779 | //没有领过礼包,就显示 | ... | ... |