|
@@ -40,11 +40,19 @@ Page({
|
|
|
if (!res) {
|
|
|
memberList.push(data)
|
|
|
that.setData({ memberList })
|
|
|
- const list = memberList.map(i => { return i.name })
|
|
|
- that.setData({ member: list.join(',') })
|
|
|
+ that.setData({ member: data.name })
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
+ // 删除成员
|
|
|
+ async toDel(e) {
|
|
|
+ const that = this;
|
|
|
+ let res = e.currentTarget.dataset.item
|
|
|
+ if (res) {
|
|
|
+ let memberList = that.data.memberList.filter(i => i._id != res._id);
|
|
|
+ that.setData({ memberList })
|
|
|
+ }
|
|
|
+ },
|
|
|
//日期选择器
|
|
|
bindDateChange: function (e) {
|
|
|
const that = this;
|