d>
    <td class="td6">总价</td>
  </tr>
    <?php $i = 1;
    $total_quantity = 0;
    $total_money = 0; ?>
    <?php foreach ($need_order_goods as $goods) { ?>
      <tr class="a">
        <td class="num"><?php echo $i; ?></td>
        <td>{$goods['name']}</td>
        <td>
          {$goods['quantity']} <?php if ($goods['has_refund_quantity'] > 0) { ?> (已退{$goods['has_refund_quantity']})  <?php } ?> </td>
        <td>{$goods['option_sku']}</td>
          <?php if ($order_info['type'] == "integral")