<!--logs.wxml--> <view class="container log-list"> <block wx:for="{{logs}}" wx:key="timeStamp" wx:for-item="log"> <text class="log-item">{{index + 1}}. {{log.date}}</text> </block> </view>