| | |
| | | <template> |
| | | <!-- 列表页面 --> |
| | | <view> |
| | | <view class="m-t-12 m-b-12 flex"> |
| | | <!-- v-if="!selecttoday" --> |
| | | <view class="m-l-a m-r-20 w-fit" :class="[query.date?'':'desc-gray']" @click="show_time_picker_time=true"> |
| | | {{query.date || '请选择日期'}} |
| | | </view> |
| | | <view class="m-t-12 m-b-12 text-center" :class="[query.recordDateStart?'':'desc-gray']" |
| | | @click="show_time_picker_time=true"> |
| | | {{query.recordDateStart&&( (query.recordDateStart||'') + ' ~ ' + (query.recordDateEnd || '')) || '请选择日期'}} |
| | | |
| | | </view> |
| | | <view class="p15" style="min-height: calc(100vh - 260rpx);"> |
| | | <no-data v-if="!list||list.length==0" style="width: 100%;"></no-data> |
| | |
| | | </view> |
| | | </view> |
| | | |
| | | |
| | | <!-- 判断是否到底了,自动吧 --> |
| | | <footer-msg :more="page.total>0&&page.total>page.current*page.size"></footer-msg> |
| | | |
| | | <u-calendar :show="show_time_picker_time" mode="range" @confirm="select_time_picker_time" :monthNum="3" |
| | | @cancel="show_time_picker_time = false" rowHeight="100" @close="show_time_picker_time = false" |
| | | minDate="2024-07-01" :maxDate="maxDate" toolTip="选择日期"> |
| | | </u-calendar> |
| | | |
| | | </view> |
| | | </template> |
| | | |
| | |
| | | return { |
| | | query: { |
| | | // status: '' |
| | | } |
| | | recordDateStart: '', |
| | | recordDateEnd: '' |
| | | }, |
| | | show_time_picker_time: false, |
| | | maxDate: '', |
| | | } |
| | | }, |
| | | onLoad() { |
| | | |
| | | this.maxDate = this.$util.toDate(new Date()) |
| | | |
| | | this.listApi = '/api/customer/point/list' |
| | | |
| | |
| | | uni.stopPullDownRefresh() |
| | | }, |
| | | methods: { |
| | | |
| | | select_time_picker_time(e) { |
| | | console.log('select_time_picker_time', e) |
| | | if (e && e.length > 0) { |
| | | this.query.recordDateStart = e[0] |
| | | this.query.recordDateEnd = e[e.length - 1] |
| | | this.show_time_picker_time = false |
| | | } else { |
| | | this.query.recordDateStart = '' |
| | | this.query.recordDateEnd = '' |
| | | this.show_time_picker_time = false |
| | | } |
| | | this.refreshList() |
| | | } |
| | | } |
| | | } |
| | | </script> |