diff --git a/pages/cashFlow/cashFlow.vue b/pages/cashFlow/cashFlow.vue
index 1e222d1..80356b3 100644
--- a/pages/cashFlow/cashFlow.vue
+++ b/pages/cashFlow/cashFlow.vue
@@ -3,22 +3,37 @@
:style="{
background: `linear-gradient(to bottom, #ff803a 0, #ff803a ${getNavBarHeight() * 2}px, transparent ${getNavBarHeight() * 2}px, transparent 100%)`,
}"
- class="agents-page"
+ class="page"
>
- 666
+ 666
@@ -32,8 +47,12 @@ export default {
name: 'AgentsPage',
data() {
+ const currentDate = this.getDate({
+ format: true,
+ })
return {
getNavBarHeight,
+ date: currentDate,
}
},
computed: {
@@ -46,32 +65,72 @@ export default {
},
methods: {
// 保存分享海报
+ bindDateChange: function (e) {
+ this.date = e.detail.value
+ },
+ getDate(type) {
+ const date = new Date()
+ let year = date.getFullYear()
+ let month = date.getMonth() + 1
+ let day = date.getDate()
+
+ if (type === 'start') {
+ year = year - 10
+ } else if (type === 'end') {
+ year = year + 10
+ }
+ month = month > 9 ? month : '0' + month
+ day = day > 9 ? day : '0' + day
+ return `${year}-${month}-${day}`
+ },
},
}