index.html 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <div id="actionbar" class="button-group">
  2. <a href="{:url('product/create')}" class="button button-blue"> <i class="iconfont icon-add_icon"></i>新增新产品</a>
  3. </div>
  4. <table class="table table-border">
  5. <thead>
  6. <tr>
  7. <th class="w60 fn-tac">排序</th>
  8. <th class="w80"></th>
  9. <th>产品名称</th>
  10. <th class="w140">一物一码</th>
  11. <th class="w140">更新时间</th>
  12. <th class="w160 fn-tac">操作</th>
  13. </tr>
  14. </thead>
  15. <tbody>
  16. {foreach $lists as $vo}
  17. <tr>
  18. <td class="fn-tac"><input name="sort" class="fn-tac w40 input input-mini" type="text" value="{$vo['sort']}" id="{$vo.id}" /></td>
  19. <td class="fn-tac"><img src="{$vo.images ? $vo.images:'__STATIC__/bestbao/nullimg.png'}?x-oss-process=style/80" class="w60" /></td>
  20. <td>
  21. <span class="fn-fb">【{$vo.category.title}】</span>
  22. <a href="{:url('product/edit',['id'=>$vo.id])}">{$vo.title}</a><br />
  23. <span class="gray">{$vo.note}</span>
  24. </td>
  25. <td>{$vo.code}</td>
  26. <td>{$vo.update_time|date='Y-m-d H:i'}</td>
  27. <td class="button-group fn-tac">
  28. <a class="button" href="{:url('product/edit',['id'=>$vo.id])}"><i class="iconfont icon-edit"></i>编辑</a>
  29. <a class="button isDel" url="{:url('product/delete',['id'=>$vo.id])}" href="javascript:;"><i class="iconfont icon-lajixiang"></i>删除</a>
  30. </td>
  31. </tr>
  32. {/foreach}
  33. </tbody>
  34. </table>
  35. {$lists|raw}
  36. <script type="text/javascript">
  37. Do('base', 'layer', function () {
  38. $('.isDel').isDel();
  39. sort("{:url('product/sort')}");
  40. })
  41. </script>