<!--components/table/table.wxml-->
<wxs src="../../wxs/utils.wxs" module="utils" />
<wxs src="./handler.wxs" module="tools" />

<view class='table'>
  <view class="thead">
    <view class='tr'>
      <view class="th" wx:for="{{tableThemes}}" wx:key="{{index}}">{{item}}</view>
    </view>
  </view>
  <view class="tbody">
    <view class="tr" wx:for="{{tableItems}}" wx:for-item="item" wx:for-index="k" wx:key="{{k}}" >
       <view class="td">{{item.productCount}}</view>
       <view class="td">{{item.productName}}</view>
       <view class="td">{{utils.numberFormat(item.productMoney / 100)}}</view>
    </view>
  </view>
</view>
