这是js
observers :{
'isOpen': function (nV) {
if(nV) {
this.clickPup()
}
},
'timeSelect': function (arr) {
if(arr.length>0) {
let defaultTime = this.data.selectTime.split(' ')
this.setData({
dates: arr,
selectIndex: defaultTime[0] || arr[0].id,
times: arr[0].children,
active: defaultTime[1] || arr[0].children[0].id
})
} else {
this.setData({
dates: [],
times: []
})
}
}
},
data: {
index: '',
selectIndex: '1',
dates: [],
active: '1',
times: [],
click: false,
option: false
}
这是wxml
这时间怎么显示不出来呢?