| | |
| | | customer |
| | | } = this.data |
| | | const enjoyList = wx.getStorageSync('enjoyList') || [] |
| | | if (!customer.customerId) return wx.showToast({ |
| | | if (!customer.platSourceId) return wx.showToast({ |
| | | title: '请先选择要关联的客户', |
| | | icon: 'none' |
| | | }) |
| | | if(enjoyList.filter(i => i.checked).length == 0) return wx.showToast({ |
| | | title: '请重新选择要关联的的产品', |
| | | icon: 'none' |
| | | }) |
| | | batchAddLike({ |
| | |
| | | icon: 'none' |
| | | }) |
| | | }, 500) |
| | | const temp = enjoyList.filter(i => !i.checked) |
| | | wx.setStorageSync('enjoyList', temp) |
| | | this.setData({ |
| | | customer: {}, |
| | | total: 0, |
| | | dataList: [], |
| | | page: 1 |
| | | }) |
| | | wx.navigateBack() |
| | | this.getList() |
| | | }else{ |
| | | return wx.showToast({ |