| @@ -37,6 +37,10 @@ Page({ | |||||
| id: id | id: id | ||||
| } | } | ||||
| }).then(res => { | }).then(res => { | ||||
| that.setData({ | |||||
| status: res.data.status | |||||
| }); | |||||
| if (res && res.data && res.data.activity) { | if (res && res.data && res.data.activity) { | ||||
| that.setData({ | that.setData({ | ||||
| data: res.data.activity | data: res.data.activity | ||||
| @@ -65,12 +69,6 @@ Page({ | |||||
| }) | }) | ||||
| } | } | ||||
| } | } | ||||
| if (res && res.data && res.data.status) { | |||||
| that.setData({ | |||||
| status: res.data.status | |||||
| }); | |||||
| } | |||||
| }).catch(err => { | }).catch(err => { | ||||
| wx.showToast({ | wx.showToast({ | ||||
| title: err.errMsg, | title: err.errMsg, | ||||