| | |
| | | wx.setStorageSync('enjoyList', enjoyList) |
| | | this.initData() |
| | | }, |
| | | itemClick(e) { |
| | | let map = [ |
| | | '/pages/detailDis/product', |
| | | '/pages/detailDis/case', |
| | | '/pages/detailDis/realpic', |
| | | '/pages/consult/detail', |
| | | ] |
| | | const { id, type } = e.currentTarget.dataset |
| | | wx.navigateTo({ |
| | | url: map[type] + '?id=' + id, |
| | | }) |
| | | }, |
| | | bind() { |
| | | const enjoyList = wx.getStorageSync('enjoyList') || [] |
| | | const temp = enjoyList.filter(i => i.checked) |
| | | if(temp.length == 0) return wx.showToast({ |
| | | title: '请先选择要关联的商品',icon:'none' |
| | | }) |
| | | wx.navigateTo({ |
| | | url: '/pages/kefu/select', |
| | | }) |