关注企业接口

This commit is contained in:
zdx
2020-12-30 17:34:35 +08:00
parent 428d0bb7d9
commit 043dfce6cc
25 changed files with 143 additions and 198 deletions

View File

@@ -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
})
})
}
})