project init & fix ui

This commit is contained in:
2023-01-06 14:24:11 +08:00
parent abc4f65a8e
commit ac9b479805
866 changed files with 39916 additions and 53 deletions

44
pages/chart/index.js Normal file
View File

@@ -0,0 +1,44 @@
Page({
data: {
// 指定选择区间起始值
start: '2000-01-01 00:00:00',
end: '2030-09-09 12:12:12',
showDateVisible:false,
showDate:'2022-01',
},
onLoad: function (options) {
},
onShow: function () {
if (wx.canIUse('hideHomeButton')) {
wx.hideHomeButton()
}
},
showPicker(e) {
console.log('12312312')
console.log(e.currentTarget.dataset)
const { mode } = e.currentTarget.dataset;
this.setData({
mode,
[`${mode}Visible`]: true,
});
},
hidePicker() {
const { mode } = this.data;
this.setData({
[`${mode}Visible`]: false,
});
},
onConfirm(e) {
const { value } = e.detail;
const { mode } = this.data;
console.log('confim', value);
this.setData({
[mode]: value
// [`${mode}Text`]: value,
});
this.hidePicker();
}
});