Commit c44c0f071672d1376cbe908d056abde2b0b69896

Authored by 后端开发-许程
1 parent f5e36aba

会员中心助力人口的判断

Showing 1 changed file with 10 additions and 10 deletions
pages/user/index/index.js
... ... @@ -491,17 +491,17 @@ Page({
491 491 },
492 492 // 判断助力活动是不是存在
493 493 is_assistance:function(){
494   - // var th = this;
495   - // rq.get("/api/weshop/marketing/help/act/judge", {
496   - // data: { storeId: os.stoid, userId: app_d.user_id },
497   - // success: function (res) {
498   - // var code = res.data.code;
499   - // if (code == 0) {
500   - // th.setData({ is_assistance:1});
501   - // }
  494 + var th = this;
  495 + rq.get("/api/weshop/marketing/help/act/judge", {
  496 + data: { storeId: os.stoid, userId: app_d.user_id },
  497 + success: function (res) {
  498 + var code = res.data.code;
  499 + if (code == 0) {
  500 + th.setData({ is_assistance:1});
  501 + }
502 502  
503   - // }
504   - // })
  503 + }
  504 + })
505 505  
506 506 }
507 507  
... ...