Commit de8acb25 by xiexiaoqin

fix: repeat click and timepicker nan

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