<table>
  <thead>
    <tr>
      <th class="left">
        <span class="cd-ui-checkbox J_ui-checkbox {{if (list.length && isAll===true) }}checked{{/if}}"></span>
        SKU ID
      </th>
      <th>商品图</th>
      <th>商品名称</th>
      <th>优惠内容</th>
      <th>状态</th>
    </tr>
  </thead>
  <tbody>
    {{if list.length}}
    {{each list item index}}
    <tr>
      <td class="left">
        <span class="cd-ui-checkbox J_ui-checkbox {{each skus skuItem skuIndex}}{{if skuItem.id === item.id}}checked{{/if}}{{/each}}"></span>
        {{item.id}}
      </td>
      <td><img src="{{(item.imageurl && item.imageurl.indexOf('360buyimg') > 0) ? item.imageurl : 'http://img10.360buyimg.com/n1/s450x450_'+item.imageurl}}" alt=""></td>
      <td class="left">
          {{item.wname}}
      </td>
      <td>
        <p>预售模式：{{item.type === 1 ? '一阶梯':'三阶梯'}}</p>
        <p>预售期是否销售：{{item.isSale === 0 ?'否' : '是'}}</p>
        <p>定金是否膨胀：{{item.goldDilation === 0 ?'否' : '是'}}</p>
      </td>
      <td>{{status4[item.status]}}</td>
    </tr>
    {{/each}}
    {{else}}
    <tr>
      <td colspan="5">暂无数据</td>
    </tr>
    {{/if}}
  </tbody>
</table>
