|
|
|
@ -127,6 +127,7 @@ Component({ |
|
|
|
}, |
|
|
|
fetchStatisticsInfo: function(loading){ |
|
|
|
getStatisticsInfo(this.data.form).then(result => { |
|
|
|
|
|
|
|
if(Number(result.data.priceOrderNum) > 0){ |
|
|
|
this.data.tabList[0].badge = Number(result.data.priceOrderNum) |
|
|
|
} else { |
|
|
|
@ -163,15 +164,14 @@ Component({ |
|
|
|
} else { |
|
|
|
this.data.tabList1[3].badge = '' |
|
|
|
} |
|
|
|
|
|
|
|
if(util.isEmpty(result.data.availableCreditLine)){ |
|
|
|
result.data.availableCreditLine = app.userInfo.availableCreditLine |
|
|
|
} |
|
|
|
if(util.isEmpty(result.data.usedCreditLine)){ |
|
|
|
result.data.usedCreditLine = app.userInfo.usedCreditLine |
|
|
|
} |
|
|
|
var vdateString = util.formatDate(new Date(vdate[0]), 'Y-M-D') + '至' + util.formatDate(new Date(vdate[1]), 'Y-M-D') |
|
|
|
this.setData({ tabList: this.data.tabList, tabList1: this.data.tabList1, totalInfo: result.data, vdate, vdateString }) |
|
|
|
var vdateString = this.data.form.startTime.substring(0, 10) + '至' + this.data.form.endTime.substring(0, 10) |
|
|
|
this.setData({ tabList: this.data.tabList, tabList1: this.data.tabList1, totalInfo: result.data, vdateString }) |
|
|
|
if(loading){ |
|
|
|
wx.hideLoading() |
|
|
|
} |
|
|
|
|