diff --git a/pages/customer/detail/index.js b/pages/customer/detail/index.js index 1689d77..346b314 100644 --- a/pages/customer/detail/index.js +++ b/pages/customer/detail/index.js @@ -787,7 +787,7 @@ Page({ let cindex = '' let dateList = this.data.dateList dateList.forEach((item,index) => { - if(item.day == this.data.cDay&&cindex == ''){ + if(item.year == this.data.cYear&&item.month == this.data.cMonth&&item.day == this.data.cDay){ cindex = index } })