Commit 8b11da96011a6c1a166c3d4daa2688aeb80f897f

Authored by wangfan
1 parent dde45fb7

c端预定

@@ -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 => {
@@ -172,4 +172,7 @@ export default { @@ -172,4 +172,7 @@ export default {
172 172
173 //是否收藏 173 //是否收藏
174 'App.Customer.IsCollectionSeller':null, 174 'App.Customer.IsCollectionSeller':null,
  175 +
  176 + //顾客收藏、取消收藏店铺
  177 + 'App.Customer.SetCollectionRel':null,
175 } 178 }