|
|
@@ -22,7 +22,7 @@
|
|
|
</picker>
|
|
|
|
|
|
<view class="datetime" @click="open" v-if="currentIndexTime != 3">
|
|
|
- <uv-datetime-picker :value="Date.now()" ref="datetimePicker" :mode="mode" @confirm="confirm"></uv-datetime-picker>
|
|
|
+ <uv-datetime-picker :value="Date.now() - 1000 * 60 * 60 * 24" ref="datetimePicker" :mode="mode" @confirm="confirm"></uv-datetime-picker>
|
|
|
{{ timeValue ? timeValue : '请选择时间' }}
|
|
|
<u-icon name="calendar" color="#111111" size="28"></u-icon>
|
|
|
</view>
|
|
|
@@ -72,7 +72,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
onLoad() {
|
|
|
- this.timeValue = dayjs(Date.now()).format('YYYY-MM-DD')
|
|
|
+ this.timeValue = dayjs(Date.now() - 1000 * 60 * 60 * 24).format('YYYY-MM-DD')
|
|
|
this.startTime = this.timeValue + ' 00:00:00'
|
|
|
this.endTime = this.timeValue + ' 23:59:59'
|
|
|
this.getData()
|