| | |
| | | } |
| | | }); |
| | | |
| | | monthInfo.percent = Math.round(monthInfo.finishedMust / monthInfo.totalMust * 100) |
| | | monthInfo.percent2 = Math.round(monthInfo.finishedSelf / monthInfo.totalSelf * 100) |
| | | monthInfo.percent = monthInfo.totalMust == 0 ? 0 : Math.round(monthInfo.finishedMust / monthInfo.totalMust * 100) |
| | | monthInfo.percent2 = monthInfo.totalSelf == 0 ? 0 : Math.round(monthInfo.finishedSelf / monthInfo.totalSelf * 100) |
| | | |
| | | this.setData({monthInfo}) |
| | | }, |
| | |
| | | wx.navigateTo({ |
| | | url: url |
| | | }) |
| | | } else { |
| | | wx.showToast({ |
| | | title: '功能敬请期待', |
| | | duration: 1000, |
| | | icon: 'none', |
| | | mask: true, |
| | | }) |
| | | } |
| | | } |
| | | }) |