关注企业接口
This commit is contained in:
@@ -89,5 +89,16 @@ Page({
|
||||
wx.navigateTo({
|
||||
url: '/pages/mall/index',
|
||||
})
|
||||
},
|
||||
// 关注企业 取消关注企业
|
||||
force() {
|
||||
wx.$api.companyModule.companyLike(wx.getStorageSync('company_id')).then(res => {
|
||||
console.log(res);
|
||||
var info = this.data.info;
|
||||
info.isSubscrib = !this.data.info.isSubscrib
|
||||
this.setData({
|
||||
info: info
|
||||
})
|
||||
})
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user