Commit de8acb25 by xiexiaoqin

fix: repeat click and timepicker nan

parent 3f31812d
......@@ -66,6 +66,7 @@ function getPostTimeByDate(date) {
}
function getPickerValue(date) {
const res = getYMDWHMIN(date);
return [timeData.indexOf(res.y + "年" + res.m + "月" + res.d + "日 " + res.w), timeHour.indexOf(res.h), timeMin.indexOf(res.min)];
}
// 将周几转换为今天,明天, 昨天
......@@ -238,7 +239,10 @@ Component({
},
onChange(e) {
const pickValue = e.detail.value;
console.log(pickValue)
//开始时间的分钟数必须是5的倍数才对的上
if (pickValue.includes(-1)) {
pickValue[pickValue.indexOf(-1)] = 0
}
if (this.data.currentTab === 'start') {
const startDate = getDateByPickValue(pickValue);
this.changeStart(startDate, pickValue);
......
......@@ -74,8 +74,9 @@
}
.edit-column>.checkbox {
width: 32rpx;
height: 32rpx;
width: 32rpx!important;
height: 32rpx!important;
line-height: 32rpx!important;
}
.margin-bottom {
......
import create from 'dd-store';
import pageStore from '../../pages/meetingDetail/store';
import { debounce } from '../../utils/utils';
import { debounce, throttle } from '../../utils/utils';
create.Component({
store: pageStore,
mixins: [],
......@@ -46,13 +46,15 @@ create.Component({
}
},
//新建才有完成按钮
complete() {
const { currentTask } = this.store.data;
if (!currentTask.taskInfos) {
return
complete: throttle(
function () {
const { currentTask } = this.store.data;
if (!currentTask.taskInfos) {
return
}
this.props.onComplete()
}
this.props.onComplete()
},
, 1000),
//删除任务
handleDelete() {
dd.confirm({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment