|
@@ -123,7 +123,7 @@ Page({
|
|
|
setTimeout(() => {
|
|
|
if (wx.getStorageSync('uid')) {
|
|
|
httpRequestApi.userLoginRecord().success(res => {
|
|
|
- if (res.data.data) {
|
|
|
+ if (res.data.data.length !== 0) {
|
|
|
// 有数据弹任务窗口
|
|
|
if (this.data.unfinishedCount > 0) {
|
|
|
this.setData({
|
|
@@ -135,7 +135,8 @@ Page({
|
|
|
// 没数据弹签到
|
|
|
let oldDay = wx.getStorageSync('oldDay');
|
|
|
let newDate = new Date();
|
|
|
- let timeStep =(newDate.getMonth() + 1).toString() + newDate.getDate().toString()
|
|
|
+ let day = newDate.getDate() < 10 ? '0' + newDate.getDate() : newDate.getDate()
|
|
|
+ let timeStep =(newDate.getMonth() + 1).toString() + day
|
|
|
if (oldDay) {
|
|
|
let temp = parseInt(timeStep) - parseInt(oldDay)
|
|
|
if (temp > 0) {
|