Commit aaedc8c4 by liang ce

forever修改

parent 0e85b6e4
...@@ -223,9 +223,8 @@ create.Page({ ...@@ -223,9 +223,8 @@ create.Page({
// 保存 // 保存
saveCreate() { saveCreate() {
if (!!this.data.scheduleItem) { if (!!this.data.scheduleItem) {
if (this.store.data.isMeetingNeverStop) { if (this.store.data.recurrenceModel.forever == '1') {
this.store.data.recurrenceModel.terminateTime = this.getTwoYearToday(); this.store.data.recurrenceModel.terminateTime = this.getTwoYearToday();
this.store.data.recurrenceModel.forever = '1';
this.update() this.update()
} }
let data = { let data = {
......
...@@ -81,6 +81,7 @@ create.Page({ ...@@ -81,6 +81,7 @@ create.Page({
return d.getDate() return d.getDate()
}, },
switchChange(e) { switchChange(e) {
debugger
this.store.data.recurrenceModel.forever = e.detail.value ? '1' : '0' this.store.data.recurrenceModel.forever = e.detail.value ? '1' : '0'
this.update() this.update()
}, },
......
...@@ -13,8 +13,7 @@ class Store { ...@@ -13,8 +13,7 @@ class Store {
editList: [{ icon: 'icondingwei', text: '地点' }, { icon: 'iconhuiqiantixing', text: '提醒' }, { icon: 'iconchongfu', text: '重复' }, { icon: 'icondidianmiaoshu', text: '描述' }, { icon: 'iconshanchu', text: '删除' }], editList: [{ icon: 'icondingwei', text: '地点' }, { icon: 'iconhuiqiantixing', text: '提醒' }, { icon: 'iconchongfu', text: '重复' }, { icon: 'icondidianmiaoshu', text: '描述' }, { icon: 'iconshanchu', text: '删除' }],
remark: '', // 会议描述 remark: '', // 会议描述
aheadTimes: [], aheadTimes: [],
requireUserList: [], requireUserList: []
isMeetingNeverStop: true
} }
} }
......
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