From c44c0f071672d1376cbe908d056abde2b0b69896 Mon Sep 17 00:00:00 2001 From: cheng.xu Date: Mon, 13 Jan 2020 09:10:39 +0800 Subject: [PATCH] 会员中心助力人口的判断 --- pages/user/index/index.js | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) 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}); + } - // } - // }) + } + }) } -- libgit2 0.21.4