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

let View = require('behavior-view');
Component({
4 years ago
externalClasses: ['ex-class'],
behaviors: [
View
],
properties: {
displayMonthNum: {
type: Number
},
displayTime: {
type: String
},
selectedDate: {
type: String
},
auctionCount: {
type: Array
},
listedCount: {
type: Array
},
4 years ago
4 years ago
year: {
type: String
},
month: {
type: String
}
},
data: {
weekDayArr: ['日', '一', '二', '三', '四', '五', '六'],
indexT: -1,
4 years ago
},
4 years ago
attached: function () {
4 years ago
// console.log(this.data.statistics);
// debugger
4 years ago
},
4 years ago
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();
4 years ago
},
}
})