matrix.wxml
2.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<!--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' 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>