作者 朱振飞

回家

... ... @@ -15,7 +15,7 @@ Page({
onLoad: function (options) {
this.setData({
id: options.id
}), this.getDetail()
}), this.getDetail(), this.tuijian();
},
getDetail(){
let url = '/api/Company/detail', a = this;
... ... @@ -47,6 +47,13 @@ Page({
})
})
},
// 推荐企业
tuijian(){
let url ='/api/Company/recommend';
app.post(url,{header:true}).then((r)=>{
console.log(r)
})
},
onReady: function () {},
onShow: function () {},
onHide: function () {},
... ...
... ... @@ -7,7 +7,7 @@
<view class='compony_info'>
<view class='compony_title'>
<view class='compony_left'>{{detailInfo.name}}</view>
<view class='focus_button cancle_focus' wx:if='{{detailInfo.isLikes}}' bindtap='canclefocus'>已关注</view>
<view class='focus_button cancle_focus' wx:if='{{!detailInfo.is_like}}' bindtap='canclefocus'>已关注</view>
<view class='focus_button' bindtap='onfocus' wx:else>+ 关注</view>
</view>
... ... @@ -46,7 +46,7 @@
</view>
<!-- 企业推荐 -->
<view class='tuijian_content'>
<view class='tuijian_item'>
<navigator class='tuijian_item'>
企业推荐:网易云
</view>
<view class='tuijian_item'>
... ...