classification.wxml 1.3 KB

12345678910111213141516171819202122232425262728293031
  1. <!--pages/classification/classification.wxml-->
  2. <!-- 搜索框 -->
  3. <search></search>
  4. <!-- 分类索引 -->
  5. <view class="ification">
  6. <!-- 左边部分 -->
  7. <scroll-view class="scroll-left" scroll-y scroll-with-animation style="height:{{phoneHeight}}rpx" scroll-top="{{VerticalNavTop}}">
  8. <block wx:for="{{ificationTitle}}" wx:key="index">
  9. <view class="leftTitle {{index === activeIndex ? 'active':''}}" data-index="{{index}}" data-id="{{index}}" bindtap="change">{{item.title}}</view>
  10. </block>
  11. </scroll-view>
  12. <!-- 右边部分 -->
  13. <scroll-view class="scroll-right" scroll-y bindscroll="showActive" style="height:{{phoneHeight}}rpx" scroll-into-view="main-id-{{TabCur}}">
  14. <view class="contentScroll-item" wx:for="{{ificationContent}}" wx:key="index" data-index="{{index}}" id="main-id-{{index}}" >
  15. <view class="top">
  16. <view class="contentTitle">
  17. {{item.title}}
  18. <text class="icon-right"></text>
  19. </view>
  20. </view>
  21. <view class="content">
  22. <view class="contentText" wx:for="{{item.content}}" wx:key>
  23. {{item.text}}
  24. </view>
  25. </view>
  26. </view>
  27. </scroll-view>
  28. </view>