作者 朱振飞

回家

@@ -15,7 +15,7 @@ Page({ @@ -15,7 +15,7 @@ Page({
15 onLoad: function (options) { 15 onLoad: function (options) {
16 this.setData({ 16 this.setData({
17 id: options.id 17 id: options.id
18 - }), this.getDetail() 18 + }), this.getDetail(), this.tuijian();
19 }, 19 },
20 getDetail(){ 20 getDetail(){
21 let url = '/api/Company/detail', a = this; 21 let url = '/api/Company/detail', a = this;
@@ -47,6 +47,13 @@ Page({ @@ -47,6 +47,13 @@ Page({
47 }) 47 })
48 }) 48 })
49 }, 49 },
  50 + // 推荐企业
  51 + tuijian(){
  52 + let url ='/api/Company/recommend';
  53 + app.post(url,{header:true}).then((r)=>{
  54 + console.log(r)
  55 + })
  56 + },
50 onReady: function () {}, 57 onReady: function () {},
51 onShow: function () {}, 58 onShow: function () {},
52 onHide: function () {}, 59 onHide: function () {},
@@ -7,7 +7,7 @@ @@ -7,7 +7,7 @@
7 <view class='compony_info'> 7 <view class='compony_info'>
8 <view class='compony_title'> 8 <view class='compony_title'>
9 <view class='compony_left'>{{detailInfo.name}}</view> 9 <view class='compony_left'>{{detailInfo.name}}</view>
10 - <view class='focus_button cancle_focus' wx:if='{{detailInfo.isLikes}}' bindtap='canclefocus'>已关注</view> 10 + <view class='focus_button cancle_focus' wx:if='{{!detailInfo.is_like}}' bindtap='canclefocus'>已关注</view>
11 <view class='focus_button' bindtap='onfocus' wx:else>+ 关注</view> 11 <view class='focus_button' bindtap='onfocus' wx:else>+ 关注</view>
12 12
13 </view> 13 </view>
@@ -46,7 +46,7 @@ @@ -46,7 +46,7 @@
46 </view> 46 </view>
47 <!-- 企业推荐 --> 47 <!-- 企业推荐 -->
48 <view class='tuijian_content'> 48 <view class='tuijian_content'>
49 - <view class='tuijian_item'> 49 + <navigator class='tuijian_item'>
50 企业推荐:网易云 50 企业推荐:网易云
51 </view> 51 </view>
52 <view class='tuijian_item'> 52 <view class='tuijian_item'>