scroll-left设置需要在数据渲染之后
<scroll-view scroll-x="true" style="white-space: nowrap;height:45px;width:280px" scroll-left="{{x}}">
<view class='timeHeader'>
<view wx:for='{{timeParam}}' id="red" wx:key='index' class="timeBtn {{currentSelect == index ?'active' : ''}}" bindtap='handleSelected' data-idx='{{index}}'>
{{item.time}}
</view>
</view>
</scroll-view>
x需要在这个数据渲染之后