index.wxml
3.49 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
58
59
60
61
62
63
64
<view class="gl-discover custom-class">
<!-- 左侧菜单 开始 -->
<view class="left-sidebar" wx:if="{{list && list.length}}">
<gl-sidebar active-key="{{menusActive}}" bind:change="onChange">
<block wx:for="{{listData}}" wx:key="index">
<gl-sidebar-item wx:if="{{item.isShow}}" data-id="{{index}}" data-info="{{item}}" catchtap="menuClick" sidebar-active-custom="sidebar-active-custom">
{{item.name}}
</gl-sidebar-item>
</block>
</gl-sidebar>
</view>
<!-- 左侧菜单 end -->
<!-- 右侧内容 开始 -->
<view class="right-content">
<!-- 三级菜单 -->
<scroll-view wx:if="{{subMenuList.length}}" class="sub-menu-scroll" enable-flex scroll-x>
<block wx:for="{{subMenuList}}" wx:key="index">
<view wx:if="{{item.isShow}}" class="sub-menu-item {{index == subMenusActive ? 'sub-menu-active-custom sub-menu-active-item' : ''}}" data-id="{{index}}" data-info="{{item}}" catchtap="subMenuClick">
{{item.name}}
</view>
</block>
</scroll-view>
<!-- 产品列表 开始 -->
<block wx:if="{{productList && productList.length}}">
<view class="head" wx:if="{{productList && productList.length}}">特色方案</view>
<view class="list-box">
<gl-card wx:for="{{productList}}" wx:key="index" title="{{item.proName}}" src="{{item.prodImg}}" custom-class="card" data-info="{{item}}" data-index="{{index}}" catchtap="productClick"></gl-card>
<view class="hidden_cell" wx:for="{{3-productList.length%3}}" wx:key="index"></view>
</view>
</block>
<!-- 产品列表 end -->
<view class="head-menu">
<view class="cell {{tabsActive == 1?'cell-active':''}}" data-id="1" catchtap="tabsClick">
案例视频
</view>
<view class="cell {{tabsActive == 2?'cell-active':''}}" data-id="2" catchtap="tabsClick" wx:if="{{posterList && posterList.length}}">
营销海报
</view>
<view class="cell {{tabsActive == 3?'cell-active':''}}" data-id="3" catchtap="tabsClick">
操作指引
</view>
</view>
<view class="list-box" wx:if="{{tabsActive == 1}}">
<block wx:if="{{!videoList.length}}">
<image class="no-video novideo-img" src="https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/index/no-video.png" />
</block>
<block wx:else>
<gl-video wx:for="{{videoList}}" wx:key="index" title="{{item.name}}" src="{{item.posterUrl}}" user-avatar="{{item.avatar}}" user-name="{{item.manufacturer || '嘀加智慧'}}" visit="{{item.view}}" custom-class="card" data-info="{{item}}" data-index="{{index}}" catchtap="videoClick"></gl-video>
</block>
</view>
<view class="list-box" wx:if="{{tabsActive == 2}}">
<gl-posters wx:for="{{posterList}}" wx:key="index" title="{{item.name}}" src="{{item.src}}" custom-class="card"></gl-posters>
</view>
<view class="list-box" wx:if="{{tabsActive == 3}}">
<block wx:if="{{!operationVideoList.length}}">
<image class="no-video novideo-img" src="https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/index/no-video.png" />
</block>
<block wx:else>
<gl-video wx:for="{{operationVideoList}}" wx:key="index" title="{{item.name}}" src="{{item.posterUrl}}" user-avatar="{{item.avatar}}" user-name="{{item.manufacturer || '嘀加智慧'}}" visit="{{item.view}}" custom-class="card" data-info="{{item}}" data-index="{{index}}" catchtap="videoClick"></gl-video>
</block>
</view>
</view>
<!-- 右侧内容 end -->
</view>