<view class="table">
  <view class="tr bg-w">
    <view class="th">存货名称</view>
    <view class="th">存货数量</view>
    <view class="th ">单价</view>
    <view class="th ">金额</view>
  </view>
  <block wx:for="{{list}}" wx:key="{{code}}">
    <view class="tr bg-g" wx:if="{{index % 2 == 0}}">
      <view class="td">{{item.Goods_Name}}</view>
      <view class="td">{{item.Number}}</view>
      <view class="td">￥{{item.Price}}</view>
      <view class="td">￥{{item.Money}}</view>
    </view>
    <view class="tr" wx:else>
      <view class="td">{{item.Goods_Name}}</view>
      <view class="td">{{item.Number}}</view>
      <view class="td">￥{{item.Price}}</view>
      <view class="td">￥{{item.Money}}</view>
    </view>
  </block>
</view>