效果图
wxml
<scroll-view class="scroll-view" scroll-left="{
{scrollLeftIndex*itemWidth}}" scroll-x scroll-with-animation>
<view class='item' style='width:{
{itemWidth}}px' wx:for="{
{dateList}}" data-index='{
{index}}' bindtap='clickDate'>
<view class='text-view'>
<view class='day {
{index==clickIndex?"day-active":""}}'>{
{item.day}}</view>
<text class='m