From 587bf74e3c6554fe4f11e19fd7cb99a34a773fc9 Mon Sep 17 00:00:00 2001 From: huxiaolei <286388969@qq.com> Date: Mon, 13 Jan 2025 17:00:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=9B=9B=E7=8E=87=E6=8E=92?= =?UTF-8?q?=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/HotlineRates/HotlineRates.js | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/pages/statistics/modules/HotlineRates/HotlineRates.js b/pages/statistics/modules/HotlineRates/HotlineRates.js index 0486a9b..a52fac4 100644 --- a/pages/statistics/modules/HotlineRates/HotlineRates.js +++ b/pages/statistics/modules/HotlineRates/HotlineRates.js @@ -13,7 +13,8 @@ const formatCurrentAndLastMonthDay = () => { const lastDay = lastMonthDate.getDate(); return { currentDay: [year, month, day].map(formatNumber).join('-'), - lastMonthDay: [lastYear, lastMonth-1, lastDay].map(formatNumber).join('-'), + //lastMonthDay: [lastYear, lastMonth-1, lastDay].map(formatNumber).join('-'), + lastMonthDay: [lastYear, 1, 1].map(formatNumber).join('-'), }; }; Component({ @@ -101,6 +102,12 @@ Component({ }, methods: { toSort(value){ + wx.showToast({ + title: '正在计算排序', + icon: 'loading', + duration: 7000, + mask: true + }) let sortlist= value.currentTarget.dataset.sortlist const evenNumbers= this.data.sortNameList.filter(item=>{ return item.value===sortlist.value @@ -128,10 +135,10 @@ Component({ } }) let sortlist= value.currentTarget.dataset.sortlist - this.data.sortList[sortlist.value-1].type=1 + this.data.sortList[sortlist.value-1].type=2 this.setData({ sortList:this.data.sortList, - orderBy:evenNumbers+"Up" + orderBy:evenNumbers+"Down" } ) } @@ -202,6 +209,7 @@ Component({ // res.data.list.forEach(item => { // item.reportTime = this.formatTime(item.reportTime) // }) + wx.hideToast() this.setData({ list: res.data })