| | |
| | | <view class="container"> |
| | | <view class="home_top"> |
| | | <view class="search_wrap"> |
| | | <image src="../../static/icon/ic_search@2x.png" mode="widthFix"></image> |
| | | <image src="../../static/icon/ic_search@2x.png"></image> |
| | | <input bindconfirm="searchList" model:value="{{ query }}" type="text" placeholder="搜索资讯标题" /> |
| | | </view> |
| | | </view> |
| | | <!-- 分类 --> |
| | | <view class="cate_wrap"> |
| | | <view class="cate_one"> |
| | | <scroll-view scroll-x="true" style="width: 710rpx;margin-bottom: 30rpx;"> |
| | | <scroll-view scroll-x="true"> |
| | | <view class="scroll_cate"> |
| | | <view bindtap="cateClick" data-code="{{item.code}}" wx:for="{{ category }}" class="item {{ catalogCode == item.code ? 'active': '' }}">{{ item.name }}</view> |
| | | </view> |
| | | </scroll-view> |
| | | </view> |
| | | <view class="cate_two"> |
| | | <scroll-view scroll-x="true" style="width: 710rpx;margin-bottom: 24rpx;"> |
| | | <view animation="{{animationData}}" wx:if="{{showCate && secondCategory && secondCategory.length > 0}}" class="cate_two"> |
| | | <scroll-view scroll-x="true"> |
| | | <view class="scroll_cate second_list"> |
| | | <view bindtap="seCateClick" data-code="{{item.code}}" wx:for="{{ secondCategory }}" class="item {{ tagCode == item.code ? 'active': '' }}">{{ item.name }}</view> |
| | | </view> |
| | |
| | | </view> |
| | | </view> |
| | | <!-- content --> |
| | | <view class="content" style="padding-top: {{ secondCategory.length > 0 ? 274 : 184 }}rpx;"> |
| | | <scroll-view scroll-y enhanced class="content" bindscrolltolower="bindscrolltolower" bindscrolltoupper="bindscrolltoupper" binddragging="touchmove" binddragstart="touchstart"> |
| | | <view wx:if="{{ secondCategory && secondCategory.length > 0 }}" class="empty"></view> |
| | | <view wx:for="{{ dataList }}" class="item" bindtap="itemClick" data-item="{{item}}"> |
| | | <image class="img" src="{{ item.coverImage }}" mode="widthFix"></image> |
| | | <view class="title">{{ item.title }}</view> |
| | |
| | | <view wx:if="{{ dataList.length == 0 }}" class="empty_wrap"> |
| | | <image class="default_empty" src="../../static/images/default_empty.png"></image> |
| | | </view> |
| | | </view> |
| | | </scroll-view> |
| | | </view> |
| | | <wxs module="math" src="../../utils/math.wxs"></wxs> |