You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
63 lines
1.3 KiB
63 lines
1.3 KiB
let View = require('behavior-view'); |
|
|
|
Component({ |
|
externalClasses: ['ex-class'], |
|
behaviors: [ |
|
View |
|
], |
|
properties: { |
|
displayMonthNum: { |
|
type: Number |
|
}, |
|
displayTime: { |
|
type: String |
|
}, |
|
selectedDate: { |
|
type: String |
|
}, |
|
auctionCount: { |
|
type: Array |
|
}, |
|
listedCount: { |
|
type: Array |
|
}, |
|
|
|
year: { |
|
type: String |
|
}, |
|
month: { |
|
type: String |
|
} |
|
}, |
|
data: { |
|
weekDayArr: ['日', '一', '二', '三', '四', '五', '六'], |
|
indexT: -1, |
|
}, |
|
|
|
attached: function () { |
|
|
|
// console.log(this.data.statistics); |
|
// debugger |
|
}, |
|
methods: { |
|
emptyFun() { |
|
this.setData({ |
|
indexT: -1, |
|
}) |
|
}, |
|
onDayTap: function (e) { |
|
this.triggerEvent('onDayTap', e.currentTarget.dataset); |
|
let data = e.currentTarget.dataset.index; |
|
this.setData({ |
|
indexT: data |
|
}) |
|
}, |
|
DateChange(e) { |
|
this.triggerEvent('DateChange', e.detail.value); |
|
}, |
|
todayFun() { |
|
this.triggerEvent('todayFun'); |
|
this.emptyFun(); |
|
}, |
|
} |
|
}) |