index.wxml
1.37 KB
<!-- <view class="navigation-bar">
<navigation-bar bindnavbarReady="navbarReady" page-title="攻略专区">攻略专区</navigation-bar>
</view> -->
<view class="strategy-box">
<view wx:if="{{categoryList.length}}" class="category_wrap">
<scroll-view scroll-into-view="{{toCate}}" enhanced scroll-with-animation scroll-x show-scrollbar="{{false}}">
<block wx:for="{{categoryList}}" wx:key="index">
<view id="to-{{index}}" class="cate_itm" bind:tap="selectCate" data-item="{{item}}" data-index="{{index}}">
<view class="cate_text {{currentCateIndex==index?'cate_text_active':''}}">{{item.categoryName}}</view>
<view wx:if="{{currentCateIndex==index}}" class="cate_active_line"></view>
</view>
</block>
</scroll-view>
</view>
<view class="strategy-item" wx:for="{{strategyList}}" wx:key="index" data-item="{{item}}" bind:tap="selectStrategy">
<image mode="aspectFill" webp src="{{item.strategyImg}}" class="strategy-img"></image>
<view class="strategy-detail">
<text class="strategy-detail-title">{{item.strategyName}}</text>
<view class="strategy-detail-bottom">
<view class="viewer">{{item.viewAmount}}人浏览</view>
</view>
</view>
</view>
</view>
<store-select show="{{showStore}}"></store-select>