riku
2022-10-28 b45a01a8bee4a9bff5f9c248ead301b8675d1099
pages/m_ledger/ledgerhome/ledgerhome.js
@@ -63,7 +63,7 @@
   */
  onLoad(options) {
    let now = moment()
    let limitTime = moment().day(this.DEADLINEDAY)
    let limitTime = moment().date(this.DEADLINEDAY)
    //如果是新注册用户不到一个月,则不提醒本月情况,直接提醒下个月的情况
    if (app.globalData.newUser) {
      limitTime.add(1, 'M')
@@ -86,6 +86,7 @@
        pageList: r[1],
        thisMonthInfo: r[2]
      })
      this.tabsHeight('.page0')
    }) //本月
    this.getLedgerType(now.add(-1, 'M').format('YYYY-MM-DD'), r => {
      this.setData({
@@ -147,13 +148,13 @@
      //选项卡
      if (s.upLoad) {
        s.tag = '/res/icons/round_check_fill.png'
        s.opacity = 0.2
        s.opacity = 0.7
      } else if (s.ledgerFinished) {
        s.tag = '/res/icons/warning_yellow.png'
        s.opacity = 1
      } else if (!s.needUpdate) {
        s.tag = '/res/icons/warning_selected.png'
        s.opacity = 0.5
        s.opacity = 0.8
      } else {
        s.tag = '/res/icons/warning_red.png'
        s.opacity = 1
@@ -168,16 +169,16 @@
    if (monthInfo.finishedMust == 0) {
      monthInfo.status = '未提交'
      if (lastMonth) {
        monthInfo.suggestion = '当期台账完全未提交,严重影响评估结果,后续请注意'
        monthInfo.suggestion = '建议:当期台账完全未提交,严重影响评估结果,后续请注意'
      } else {
        monthInfo.suggestion = '请尽快提交台账'
        monthInfo.suggestion = '建议:请尽快提交台账'
      }
    } else if (monthInfo.finishedMust < monthInfo.totalMust) {
      monthInfo.status = '部分提交'
      if (lastMonth) {
        monthInfo.suggestion = '当期台账部分未提交,会影响评估结果,后续请尽量提交所有台账'
        monthInfo.suggestion = '建议:当期台账部分未提交,会影响评估结果,后续请尽量提交所有台账'
      } else {
        monthInfo.suggestion = '当前已提交部分台账,请补全剩余台账'
        monthInfo.suggestion = '建议:当前已提交部分台账,请补全剩余台账'
      }
    } else {
      monthInfo.status = '已提交'
@@ -230,6 +231,7 @@
          let pageList = that.data.pageList
          pageList[i[0]][i[1]].upLoad = true
          pageList[i[0]][i[1]].tag = '/res/icons/round_check_fill.png'
          pageList[i[0]][i[1]].opacity = 0.7
          that.setData({
            pageList
          })