assist_bargain_me_fetch.html 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php foreach($list as $goods){ ?>
  2. <li role="button" class="cb-order-item">
  3. <img class="scrollLoading" src="{$fan_ly_image}" data-echo="__UPLOAD__/<?php echo $goods['image']; ?>" alt="order" />
  4. <div class="order-right">
  5. <p class="goods-name"><?php echo $goods['name']; ?></p>
  6. <?php if($goods['state'] == 0 && $goods['end_time'] > time() ){ ?>
  7. <div class="bargain-order-item-countdown clock_div" endtime="<?php echo date('m/d/Y H:i:s', $goods['end_time']);?>">
  8. <span></span>
  9. </div>
  10. <?php } ?>
  11. <?php if($goods['state'] == 0 && $goods['end_time'] > time() ){ ?>
  12. <div class="remain">
  13. <p class="remain-desc">离免费领取</p>
  14. <p class="remain-price">
  15. 还差
  16. <i><?php echo $goods['deal_money']; ?></i>
  17. </p>
  18. </div>
  19. <button class="button" onclick="location.href='{:U('Subject/assist_bargain_coupon_detail', array('id' =>$goods[id] ) )}';">继续砍价</button>
  20. <?php }else if($goods['state'] == 1){ ?>
  21. <button class="button">砍价成功</button>
  22. <?php }else if( ($goods['state'] == 0 && $goods['end_time'] < time()) || $goods['state'] == 2 ){ ?>
  23. <div class="remain">
  24. <p class="remain-desc"></p>
  25. <p class="remain-price">
  26. 砍价失败
  27. </p>
  28. </div>
  29. <button class="button" onclick="location.href='{:U('Subject/assist_bargain_coupon')}';">重砍一个</button>
  30. <?php } ?>
  31. </div>
  32. </li>
  33. <?php } ?>