Commit a7f5d49a authored by sujie@126.com's avatar sujie@126.com

Merge branch 'lvtz' of git.server:wangxuelai/wechatapp.shangjiadao.com into sj-dev-v2

parents cc637523 af3ecc9c
......@@ -197,12 +197,13 @@ Page({
},()=>{this.memberListGet('down');})
},
cancelDetail(e){
let that = this;
let cancelId = e.currentTarget.dataset.id;
let cancelStatus = e.currentTarget.dataset.status;
if(cancelStatus !=1){
return false
}
let memberList = this.data.memberList;
let memberList = that.data.memberList;
wx.showModal({
content: "确认核销该客户的领奖记录吗",
......@@ -215,10 +216,18 @@ Page({
activityconsumersconfirm({
id: cancelId,
}).then((res) => {
let staticDeal = memberList.find(ele => ele.status == res.status);
this.setData({
wx.showToast({
title: '核销成功'
})
let staticDeal = memberList.filter(ele => ele.id != cancelId);
that.setData({
memberList: staticDeal
})
if(that.data.memberList.length==0){
that.setData({
hasData: false
})
}
})
}else{
}
......
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