<view wx:for="{{sevenDays}}" wx:for-index="x">
<view class="block-day">
<view class="block-time">
<view wx:for="{{ timelineAM }}" class="block" wx:for-index="y" bindtap="clickBlock" data-x="{{x}}" data-y="{{y}}">
{{x}}, {{y}}
</view>
<view wx:for="{{ timelinePM2 }}" class="block" wx:for-index="y" bindtap="clickBlock" data-x="{{x}}" data-y="{{y}}">
{{x}}, {{y}}
</view>
</view>
</view>
</view>
clickBlock(e) {
const x = e.currentTarget.dataset['x'];
const y = e.currentTarget.dataset['y'];
console.log(x, y);
},