Showing
2 changed files
with
12 additions
and
5 deletions
| @@ -126,14 +126,18 @@ Page({ | @@ -126,14 +126,18 @@ Page({ | ||
| 126 | }, | 126 | }, |
| 127 | follow(e){ | 127 | follow(e){ |
| 128 | console.log('收藏',e) | 128 | console.log('收藏',e) |
| 129 | + | ||
| 130 | + let param={ | ||
| 131 | + sid:this.options.id, | ||
| 132 | + openid:getApp().openid, | ||
| 133 | + } | ||
| 134 | + if(this.data.IsCollectionSeller){//已收藏 | ||
| 135 | + param.cancel=1 | ||
| 136 | + } | ||
| 129 | this.setData({ | 137 | this.setData({ |
| 130 | IsCollectionSeller:!this.data.IsCollectionSeller | 138 | IsCollectionSeller:!this.data.IsCollectionSeller |
| 131 | }) | 139 | }) |
| 132 | - if(this.data.IsCollectionSeller){//已收藏 | ||
| 133 | - | ||
| 134 | - }else{ | ||
| 135 | - | ||
| 136 | - } | 140 | + App.Customer.SetCollectionRel(param); |
| 137 | }, | 141 | }, |
| 138 | getPos(){ | 142 | getPos(){ |
| 139 | this._getPos().then(res => { | 143 | this._getPos().then(res => { |
-
Please register or login to post a comment