matrix.wxml 2.3 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>{{areaList[index].name}}</view>
    </picker>
    <view class='iconfont icon-gengduo1' bindtap='changeShow'></view>
  </view>
  <scroll-view class='tab_box' scroll-x='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'>{{item.name}}</view>
    </block>

  </scroll-view>
</view>
<scroll-view bindscroll="scroll" bindscrolltolower="getMore" class="scroll-content" hidden="{{!ifData}}" scrollTop="{{scrollTop}}" scrollY="true" style="height:{{scrollHeight-89}}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'>热门</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>
</scroll-view>

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