| @@ -39,6 +39,7 @@ Page({ | |||
| signIn() { | |||
| app.wxRequest(app.globalData.urlRoot +"task/signToday",{},res=>{ | |||
| if (res.code == 200) { | |||
| this.getShareId(); | |||
| if (!this.data.shareId) { | |||
| this.setData({ | |||
| maskShow: false | |||
| @@ -236,7 +237,6 @@ Page({ | |||
| }, | |||
| getSignInfo: function () {//查看当日是否签到 | |||
| app.wxRequest(app.globalData.urlRoot + "task/getSignInfo", {}, res => { | |||
| this.getShareId(); | |||
| if(res.code==200){ | |||
| if (res.data.state==0) {//未签到 | |||
| this.setData({ | |||
| @@ -245,6 +245,8 @@ Page({ | |||
| taskShow: true, | |||
| isSign: true | |||
| }) | |||
| }else{ | |||
| this.getShareId(); | |||
| } | |||
| } | |||
| },this) | |||