| | |
| | | app.MG.store |
| | | .delProductLink({ |
| | | productIds: [this.data.digitalsData.id], |
| | | linkType: 'FavoriteBookCity' |
| | | linkType: 'FavoriteTextBooks' |
| | | }) |
| | | .then(() => { |
| | | this.setData({ |
| | |
| | | } else { |
| | | let params = { |
| | | productIds: [this.data.digitalsData.id], |
| | | linkType: 'FavoriteBookCity' |
| | | linkType: 'FavoriteTextBooks' |
| | | } |
| | | app.MG.store.addProductLink(params).then((res) => { |
| | | this.setData({ |
| | |
| | | app.MG.store |
| | | .delProductLink({ |
| | | productIds: [this.data.digitalsData.id], |
| | | linkType: 'FavoriteBookCity' |
| | | linkType: 'FavoriteTextBooks' |
| | | }) |
| | | .then(() => { |
| | | this.setData({ |
| | |
| | | } else { |
| | | let params = { |
| | | productIds: [this.data.digitalsData.id], |
| | | linkType: 'FavoriteBookCity' |
| | | linkType: 'FavoriteTextBooks' |
| | | } |
| | | app.MG.store.addProductLink(params).then((res) => { |
| | | this.setData({ |