From ceaf48fd45c84b4483000f162f18cc452f88b705 Mon Sep 17 00:00:00 2001 From: "eason.qian" Date: Tue, 26 Dec 2017 16:54:09 +0800 Subject: [PATCH] fix --- src/main/resources/templates/reports/daily_report.html | 4 ++-- src/main/resources/templates/reports/week_report.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/resources/templates/reports/daily_report.html b/src/main/resources/templates/reports/daily_report.html index efad5bf24..a1d8944c5 100644 --- a/src/main/resources/templates/reports/daily_report.html +++ b/src/main/resources/templates/reports/daily_report.html @@ -8,7 +8,7 @@ - $report.range 财务报表 + @@ -17,7 +17,7 @@ $('.weui-navbar>.weui-navbar__item').click(function () { $('.weui-navbar>.weui-navbar__item').removeClass('weui-bar__item_on'); $(this).addClass('weui-bar__item_on'); - var idx = $(this).prevAll('.weui-navbar__item').length + var idx = $(this).prevAll('.weui-navbar__item').length; $('.weui-tab__panel>.tabcontent').hide(); $('.weui-tab__panel>.tabcontent').eq(idx).show(); }); diff --git a/src/main/resources/templates/reports/week_report.html b/src/main/resources/templates/reports/week_report.html index 4416f456a..41c182525 100644 --- a/src/main/resources/templates/reports/week_report.html +++ b/src/main/resources/templates/reports/week_report.html @@ -17,7 +17,7 @@ $('.weui-navbar>.weui-navbar__item').click(function () { $('.weui-navbar>.weui-navbar__item').removeClass('weui-bar__item_on'); $(this).addClass('weui-bar__item_on'); - var idx = $(this).prevAll('.weui-navbar__item').length + var idx = $(this).prevAll('.weui-navbar__item').length; $('.weui-tab__panel>.tabcontent').hide(); $('.weui-tab__panel>.tabcontent').eq(idx).show(); });