From d828320e6384df831839bde49f09cf2ad1c49899 Mon Sep 17 00:00:00 2001 From: liuwh <liuwh@hugeinfo.com.cn> Date: Thu, 27 Feb 2020 08:43:55 +0800 Subject: [PATCH] 提交 --- SunshineLnsMinApp/pages/fzpxInfo/fzpxInfo.js | 14 +++++++++----- 1 files changed, 9 insertions(+), 5 deletions(-) diff --git a/SunshineLnsMinApp/pages/fzpxInfo/fzpxInfo.js b/SunshineLnsMinApp/pages/fzpxInfo/fzpxInfo.js index 5662339..4704e66 100644 --- a/SunshineLnsMinApp/pages/fzpxInfo/fzpxInfo.js +++ b/SunshineLnsMinApp/pages/fzpxInfo/fzpxInfo.js @@ -12,7 +12,9 @@ loading: false, peopleInfo: {}, signStatus: '', - id: "" + id: "", + topattList:[], + bottomattList:[] }, /** @@ -40,7 +42,9 @@ if (res.data.code == 0) { res.data.data.startTime = app.formatDate(res.data.data.startTime) that.setData({ - activity: res.data.data + activity: res.data.data, + bottomattList:res.data.data.attList.filter((item)=>(item.associateType==1020)), + topattList:res.data.data.attList.filter((item)=>(item.associateType==1000)) }) console.log('传过来', options.flag) console.log('传过来', options.signStatus) @@ -49,7 +53,7 @@ that.setData({ signStatus: options.signStatus }) - } else { + } else {sign if (options.flag == 'true') { //可报名 console.log('可报名') @@ -134,7 +138,7 @@ title: '识别中', }) wx.request({ - url: app.globalData.url + '/api/activity/sign?id'+id+'&code='+res.result+'&userId='+userId, + url: app.globalData.url + '/api/activity/sign?id='+id+'&code='+res.result+'&userId='+userId, method: 'GET', header: { "Content-Type": "application/json" @@ -149,7 +153,7 @@ }) } else { wx.showToast({ - title: '报名失败,请稍后重试!', + title: '签到失败,请稍后重试!', icon: 'none' }) } -- Gitblit v1.8.0