index.wxml 646 B

1234567891011121314
  1. <view class="goods-list" style="{{'background-color:'+(value.backgroundColor)+';'+('margin-top:'+(value.marginTop*2+'rpx')+';')}}">
  2. <scroll-view scrollWithAnimation scroll-x="true" scroll-y="false" class="tabs__navs">
  3. <view class="navlist">
  4. <block wx:for="{{value.list}}" wx:key="index">
  5. <view class="split-line" wx:if="{{index!=0}}"></view>
  6. <view class="item {{index==current?'active':''}}" data-idx="{{index}}" bindtap="changeCate">
  7. <view class="name">{{item.title}}</view>
  8. <view class="tag">{{item.desc}}</view>
  9. </view>
  10. </block>
  11. </view>
  12. </scroll-view>
  13. <slot></slot>
  14. </view>