<!--components/detail-table/index.wxml-->
<view class="sg-box">
  <view class="sg-table">
    <view class="sg-row" wx:for="{{data}}" wx:key="index">
    <view class="sg-cell {{index == 0 ? 'sg-light-gray-bg' : ''}}" >{{item.date}}</view>
    <view class="sg-cell {{index == 0 ? 'sg-light-gray-bg' : ''}}" >{{item.total}}</view>
    <view class="sg-cell {{index == 0 ? 'sg-light-gray-bg' : ''}}" wx:for="{{item.data}}" wx:key="i_index" wx:for-item="i_item" wx:for-index="i_index">{{i_item}}</view>
  </view>
  </view>
</view>
