matrix.wxml 2.4 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 {{current==0?'active':''}}" data-current='0' bindtap='tabCharge'>全部</view>
    <block wx:for="{{typeList}}" wx:key=''>
      <view class="tab_item {{current == item.id?'active':''}}" data-current='{{item.id}}' bindtap='tabCharge' data-index='{{index}}'>{{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' 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 src='{{item.banner_image}}'></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>