weui-wxss
Version:
26 lines (25 loc) • 504 B
JavaScript
Page({
mixins: [require('../../mixin/common')],
data: {
array: ['美国', '中国', '巴西', '日本'],
index: 0,
date: '2016-09-01',
time: '12:01',
},
bindPickerChange(e) {
console.log('picker发送选择改变,携带值为', e.detail.value);
this.setData({
index: e.detail.value,
});
},
bindDateChange(e) {
this.setData({
date: e.detail.value,
});
},
bindTimeChange(e) {
this.setData({
time: e.detail.value,
});
},
});