| | |
| | | methods: { |
| | | toDetail(item) { |
| | | uni.navigateTo({ |
| | | url: '/sub_pages/customer/shop/shop?id=' + (item.id || '') |
| | | url: '/sub_pages/customer/shop/shop?id=' + (item.supplierId || '') |
| | | }) |
| | | }, |
| | | async clearFollow(item) { |
| | |
| | | code |
| | | } = await this.$http.request('get', `/api/follow/delete`, { |
| | | params: { |
| | | supplierId: item.id |
| | | supplierId: item.supplierId |
| | | } |
| | | }) |
| | | this.$message.hideLoading() |
| | | if (code === 0) { |
| | | //删除list里的本元素 |
| | | for (var i = 0; i < this.list.length; i++) { |
| | | if (this.list[i].id === item.id) { |
| | | this.list.splice(i, 1) |
| | | } |
| | | } |
| | | // for (var i = 0; i < this.list.length; i++) { |
| | | // if (this.list[i].id === item.id) { |
| | | // this.list.splice(i, 1) |
| | | // } |
| | | // } |
| | | this.refreshList() |
| | | } |
| | | }, |
| | | getList_after() { |
| | | // uni. |
| | | } |
| | | // getList_after() { |
| | | // // uni. |
| | | // } |
| | | } |
| | | } |
| | | </script> |