Commit 1ab17635 authored by Facius's avatar Facius

fix: 订单管理日期

parent cbe16c31
...@@ -87,10 +87,12 @@ export default { ...@@ -87,10 +87,12 @@ export default {
var timestamp = date.getTime() var timestamp = date.getTime()
var today = this.$u.timeFormat(timestamp, 'yyyy-mm-dd') var today = this.$u.timeFormat(timestamp, 'yyyy-mm-dd')
var yesterday = this.$u.timeFormat(date.setDate(date.getDate() - 1)) var yesterday = this.$u.timeFormat(date.setDate(date.getDate() - 1))
date = new Date()
var weekDays = [6, 0, 1, 2, 3, 4, 5] var weekDays = [6, 0, 1, 2, 3, 4, 5]
var week = this.$u.timeFormat( var week = this.$u.timeFormat(
date.setDate(date.getDate() - weekDays[date.getDay()]) date.setDate(date.getDate() - weekDays[date.getDay()])
) )
date = new Date()
var month = this.$u.timeFormat(date.setDate(1)) var month = this.$u.timeFormat(date.setDate(1))
return [ return [
{ start: today, end: today }, { start: today, end: today },
......
...@@ -10,7 +10,6 @@ ...@@ -10,7 +10,6 @@
></u-navbar> ></u-navbar>
<view class="content-view"> <view class="content-view">
<scroll-view <scroll-view
scroll-y
@scrolltolower="reachBottom" @scrolltolower="reachBottom"
scroll-anchoring scroll-anchoring
refresher-enabled="true" refresher-enabled="true"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment