| | |
| | | customer |
| | | } = this.data |
| | | const enjoyList = wx.getStorageSync('enjoyList') || [] |
| | | if (!customer.userId) return wx.showToast({ |
| | | if (!customer.platSourceId) return wx.showToast({ |
| | | title: '请先选择要关联的客户', |
| | | icon: 'none' |
| | | }) |
| | | batchAddLike({ |
| | | articleIds: enjoyList.filter(i => i.checked).map(i => i.id).join(','), |
| | | customerId: customer.platSourceId, |
| | | customerId: customer.customerId, |
| | | platId: customer.platSourceId, |
| | | platSource: customer.platSource |
| | | }).then(res => { |
| | | setTimeout(() => { |
| | | wx.showToast({ |
| | | title: '绑定成功',icon: 'none' |
| | | if (res.code == 200) { |
| | | setTimeout(() => { |
| | | wx.showToast({ |
| | | title: '绑定成功', |
| | | icon: 'none' |
| | | }) |
| | | }, 500) |
| | | this.setData({ |
| | | customer: {}, |
| | | total: 0, |
| | | dataList: [], |
| | | page: 1 |
| | | }) |
| | | }, 500) |
| | | this.setData({ |
| | | customer: {} |
| | | }) |
| | | this.setData({ |
| | | total: 0, |
| | | dataList: [], |
| | | page: 1 |
| | | }) |
| | | this.getList() |
| | | this.getList() |
| | | }else{ |
| | | return wx.showToast({ |
| | | title: res.message, |
| | | icon: 'none' |
| | | }) |
| | | } |
| | | }) |
| | | }, |
| | | tabsClick(e) { |