diff --git a/pages/merchantAccount/index.vue b/pages/merchantAccount/index.vue index a77a075..69cfcb3 100644 --- a/pages/merchantAccount/index.vue +++ b/pages/merchantAccount/index.vue @@ -138,13 +138,20 @@ export default { dataList:[],// 数据数组 } }, - onLoad(){ + onLoad(query){ + console.log('query',query) this.menu = uni.getMenuButtonBoundingClientRect() let lastDay = uni.getStorageSync('lastDay') - const date = new Date(lastDay) + let date = undefined + if (query.month){ + date = new Date(query.month) + }else{ + date = new Date(lastDay) + } let y = date.getFullYear() let m = date.getMonth() + 1 this.single = `${y}-${m<10?'0'+m :m}` + console.log('this.single',this.single) this.endData = lastDay this.handleGetPageData() }, diff --git a/pages/revenueStatistics/detail.vue b/pages/revenueStatistics/detail.vue index 8379ea8..b38ca37 100644 --- a/pages/revenueStatistics/detail.vue +++ b/pages/revenueStatistics/detail.vue @@ -11,6 +11,11 @@ {{ServerpartName || ''}} +
+ 更多筛选 + + +
@@ -193,11 +198,37 @@ + + + + 统计时间: + + + + {{ selectStart || '开始时间' }} + + + + - + + + {{ selectEnd || '结束时间' }} + + + + + 查询 + +