matrix.wxml 2.9 KB
<!--pages/matrix/matrix.wxml-->
<view class='tab_content'>
  <!-- 园区选择 -->
  <!-- <view class='areasChoose'>
    <picker class='areaName' mode='selector' range='{{areaList}}' value="{{index}}" range-key="name" bindchange='changeAreas'>
      <view class='chooseArea {{choose?"choose":""}}'>园区选择:{{areaList[index].name}}</view>
    </picker>
    
  </view> -->
  <scroll-view class='tab_box' scroll-left="{{navScrollLeft}}" scroll-x='true' scroll-with-animation='true'>
    <view class="tab_item {{selectindex==0?'active':''}}" data-current='0' bindtap='tabCharge' data-idx='-1' data-beau="0">全部</view>

    <view class="tab_item zuiactive" data-idx='-2' data-current='0' bindtap='tabCharge' data-beau="1">
    最美企业

    <view class="iconfont icon-huangguan"></view>
    </view>
    <block wx:for="{{typeList}}" wx:key=''>
      <view class="tab_item {{selectindex == item.id?'active':''}}" data-idx="{{item.id}}" data-current='{{item.id}}' bindtap='tabCharge' data-index='{{index}}' data-beau="0">{{item.name}}</view>
    </block>
  </scroll-view>
  <view class='iconfont icon-gengduo1' bindtap='changeShow'></view>
</view>
<view class="scroll-content" hidden="{{!ifData}}"style="height:{{scrollHeight}}px;">
  <view class='content_box' wx:if='{{showType}}'>
    <navigator class='item_list'  wx:for='{{companyList}}' wx:key=''  url="/pages/matrix/company/company?id={{item.id}}"
    open-type="navigate"
    hover-class="other-navigator-hover">
      <image class='label_img' hidden='{{!item.recommend_switch}}' src='/images/zuire@2x.png'></image>
      <text class='label_info' hidden='{{!item.recommend_switch}}'>推荐</text>
      <image class='list_img' src='{{item.logo_image}}'></image>
      <view class='list_left'>
        <view>
          <view class='list_title'>{{item.name}}</view>
          <view class='list_info'>{{item.excerpt}}</view>
        </view>
        <view class='iconfont icon-go'></view>
      </view>
    </navigator>
  </view>

  <view class='content_box content_box2' wx:else>
    <navigator class='list_item' wx:for='{{companyList}}' wx:key=''  url="/pages/matrix/company/company?id={{item.id}}"
    open-type="navigate"
    hover-class="other-navigator-hover">

    
    
      <image class='label_img' hidden='{{!item.recommend_switch}}' src='/images/zuire@2x.png'></image>
    <text class='label_info' hidden='{{!item.recommend_switch}}'>推荐</text>
      <image src='{{item.logo_image}}' mode='aspectFill' class='top_logo'></image>
      
      
      
      <view class='list_content_box'>
        <view class='list_title_box'>
          <!-- <image src='{{item.logo_image}}'></image> -->
          <text>{{item.name}}</text>
        </view>
        <view class='list_content'>{{item.excerpt}}</view>
        <!-- <view class='iconfont icon-gengduo'></view> -->
      </view>
    </navigator>
  </view>
</view>

<view class="none-box" hidden="{{ifData}}">
    <view>暂无相关企业</view>
</view>