guanzhu.wxml 3.1 KB
<view class="kindnav">
  <view wx:for="{{navbar}}" data-idx="{{index}}" class="kindnav_item {{currentTab==index ? 'kindactive' : ''}}" wx:key="unique" bindtap="navbarTap" data-id="{{item.id}}">{{item}}
  </view>
</view>
<!-- 酒企 -->
<view class="guanzhulist" wx:if="{{currentTab==0}}">
  <view class="guanzhuitem" wx:for='{{compony}}' wx:key='' bindtap="jumpcompany" data-id="{{item.id}}">
    <view class="guanzhuitemleft">
      <view class="guanzhuleftname">{{item.name}}</view>
      <view class="gouimg">
        <image src="{{url}}/aicon_20x.png"></image>
      </view>
    </view>
    <view class="guanzhuright" catchtap='atten' id='{{item.id}}' wx:if="{{item.is_concern==1}}">已关注</view>
    <view class="guanzhuright" catchtap='atten' id='{{item.id}}' wx:if="{{item.is_concern==0}}">关注</view>
  </view>
</view>

<!-- 酿酒师 -->

<view class="guanzhulist" wx:if="{{currentTab==1}}">
  <!-- <view class="guanzhuitem" wx:for='{{compony}}' wx:key='' bindtap="niangjiuteacherdetail" data-id="{{item.id}}">
    <view class="guanzhuitemleft">
      <view class="teacherimg">
        <image src="{{item.avatar}}"></image>
      </view>
      <view class="guanzhuleftname teachername">{{item.name}}</view>
      <view class="gouimg">
        <image src="{{url}}/aicon_20x.png"></image>
      </view>
    </view>
    <view class="guanzhuright" catchtap='jiuatten' data-id="{{item.id}}" wx:if="{{item.is_concern==0}}">关注</view>
      <view class="guanzhuright" catchtap='jiuatten' data-id="{{item.id}}" wx:if="{{item.is_concern==1}}">已关注</view>
  </view> -->

  <view class="niangjiulist" >
    <view class="niangjiuitem" wx:for="{{compony}}" wx:key="">

      <view bindtap="niangjiuteacherdetail" data-id="{{item.id}}">
        <view class="teachimg">
          <image src="{{item.avatar}}"></image>
        </view>
        <view class="jiuname">{{item.name}}</view>

        <view class="atten" wx:if="{{item.is_concern==0}}" catchtap="jiuatten" data-id="{{item.id}}">关注</view>
        <view class="atten aten1" wx:else catchtap="jiuatten" data-id="{{item.id}}">取消关注</view>

      </view>


      <view class="jiubottom">
        <view class="jiuleft">
          <view class="jiuleftimg" catchtap="zan" data-id="{{item.id}}">
            <image src="{{url}}/aicon_47x.png" wx:if="{{item.is_good==0}}"></image>
            <image src="{{url}}/aicon_46x.png" wx:else></image>
          </view>
          <view class="jiuzan">{{item.good_count}}</view>
        </view>

        <view class="jiumiddle" catchtap="ping" data-id="{{item.id}}">
          <view class="middleimg">
            <image src="{{url}}/aicon_67x.png"></image>
          </view>
          <view class="tiao">{{item.comment_count}}</view>
        </view>

        <view class="jiuright">
          <image src="{{url}}/aicon_68x.png"></image>
          <button class="lj_share"  open-type='share' data-id="{{item.winemaker_id}}"></button>
        </view>
      </view>
    </view>

  </view>
</view>

<!-- <view class='noData' wx:if='{{!noData}}'>
  暂无相关数据
</view> -->

<view class="nodataimg" wx:if='{{!noData}}'>
  <image src="/img/wushuju.png"></image>
</view>