diff --git a/pages/user/index/index.js b/pages/user/index/index.js index 87f15de..8568ec1 100644 --- a/pages/user/index/index.js +++ b/pages/user/index/index.js @@ -491,17 +491,17 @@ Page({ }, // 判断助力活动是不是存在 is_assistance:function(){ - // var th = this; - // rq.get("/api/weshop/marketing/help/act/judge", { - // data: { storeId: os.stoid, userId: app_d.user_id }, - // success: function (res) { - // var code = res.data.code; - // if (code == 0) { - // th.setData({ is_assistance:1}); - // } + var th = this; + rq.get("/api/weshop/marketing/help/act/judge", { + data: { storeId: os.stoid, userId: app_d.user_id }, + success: function (res) { + var code = res.data.code; + if (code == 0) { + th.setData({ is_assistance:1}); + } - // } - // }) + } + }) }