<scroll-view class='scroll-view-x' scrollLeft='{{scrollLeft}}' scrollWithAnimation='true' scrollX='true'><view bindtap='switchNav' class='scroll-view-item {{(cid == 0?"active":"")}}' data-id='0'>        热销    </view><block wx:for='{{cat}}' wx:for-item='item' wx:for-index='index' wx:key='unique'><view bindtap='switchNav' class='scroll-view-item {{(cid == item.id?"active":"")}}' data-id='0'>         {{item.name}}    </view></block></scroll-view>