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) { console.log(e) this.triggerEvent('onDayTap', e.currentTarget.dataset); let data = e.currentTarget.dataset.index; this.setData({ indexT:data }) console.log(data) }, DateChange(e){ this.triggerEvent('DateChange', e.detail.value); }, todayFun(){ this.triggerEvent('todayFun'); }, } })