No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

active_index.htm 8.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. {include file="public/layout" /}
  2. <body class="bodystyle" style="cursor: default; -moz-user-select: inherit;">
  3. <div id="append_parent"></div>
  4. <div id="ajaxwaitid"></div>
  5. {include file="shop/left" /}
  6. <div class="page" style="margin-left:100px;">
  7. {include file="discount/bar" /}
  8. <div class="flexigrid">
  9. <!-- 操作说明 -->
  10. <div id="explanation" class="explanation">
  11. <div id="checkZoom" class="title"><i class="fa fa-lightbulb-o"></i>
  12. <h4 title="提示相关设置操作时应注意的要点">提示</h4>
  13. <span title="收起提示" id="explanationZoom" style="display: block;"></span>
  14. </div>
  15. <ul>
  16. <li style="color: red;">注意:该功能仅限于【可视化微信小程序(商城版)】插件</li>
  17. </ul>
  18. </div>
  19. <div class="mDiv">
  20. <div class="ftitle">
  21. {eq name="$Think.const.CONTROLLER_NAME.'@active_add'|is_check_access" value="1"}
  22. <div class="fbutton" style="float: none;">
  23. <a href="javascript:void(0);" data-href="{:url('Discount/active_add')}" onclick="openFullframe(this, '限时折扣 - 新增活动', '100%', '100%');">
  24. <div class="add">
  25. <span><i class="layui-icon layui-icon-addition"></i>新增活动</span>
  26. </div>
  27. </a>
  28. </div>
  29. {/eq}
  30. </div>
  31. </div>
  32. <div class="hDiv">
  33. <div class="hDivBox">
  34. <table cellspacing="0" cellpadding="0" style="width: 100%">
  35. <thead>
  36. <tr>
  37. <th class="sign w40" axis="col0">
  38. <div class="tc"><input type="checkbox" autocomplete="off" class="checkAll"></div>
  39. </th>
  40. <th abbr="id" axis="col5" class="w60">
  41. <div class="tc">活动ID</div>
  42. </th>
  43. <th abbr="id" axis="col5" class="w200">
  44. <div class="tc">活动名称</div>
  45. </th>
  46. <th abbr="info" axis="col3">
  47. <div class="text-l10">活动日期</div>
  48. </th>
  49. <th abbr="ac_id" axis="col4" class="w100">
  50. <div class="tc">预热</div>
  51. </th>
  52. <th abbr="article_time" axis="col6" class="w50">
  53. <div class="tc">显示</div>
  54. </th>
  55. <th abbr="article_time" axis="col6" class="w100">
  56. <div class="tc">更新时间</div>
  57. </th>
  58. <th axis="col1" class="w120">
  59. <div class="tc">操作</div>
  60. </th>
  61. </tr>
  62. </thead>
  63. </table>
  64. </div>
  65. </div>
  66. <div class="bDiv" style="height: auto;">
  67. <div id="flexigrid" cellpadding="0" cellspacing="0" border="0">
  68. <table style="width: 100%">
  69. <tbody>
  70. {empty name="list"}
  71. <tr>
  72. <td class="no-data" align="center" axis="col0" colspan="50">
  73. <div class="no_row">
  74. <div class="no_pic"><img src="__SKIN__/images/null-data.png"></div>
  75. </div>
  76. </td>
  77. </tr>
  78. {else/}
  79. {foreach name="list" item="vo" key="k" }
  80. <tr>
  81. <td class="sign">
  82. <div class="w40 tc"><input type="checkbox" autocomplete="off" name="ids[]" value="{$vo.active_id}"></div>
  83. </td>
  84. <td class="sort">
  85. <div class="w60 tc">
  86. {$vo.active_id}
  87. </div>
  88. </td>
  89. <td class="sort">
  90. <div class="w200 tc">
  91. {$vo.active_name}
  92. </div>
  93. </td>
  94. <td style="width: 100%">
  95. <div class="text-l10">
  96. {$vo.start_date|date='Y-m-d H:i:s',###} 至 {$vo.end_date|date='Y-m-d H:i:s',###}
  97. </div>
  98. </td>
  99. <td class="">
  100. <div class="w100 tc">
  101. {if condition="$vo['preheat'] eq 1"}
  102. <span title="{$vo.preheat_time|date='Y-m-d H:i:s',###}">是</span>
  103. {else /}
  104. {/if}
  105. </div>
  106. </td>
  107. <td class="">
  108. <div class="w50 tc">
  109. {if condition="$vo['status'] eq 1"}
  110. <span class="yes" {eq name="'Discount@add'|is_check_access" value="1"}onClick="changeTableVal('sharp_active','active_id','{$vo.active_id}','status',this);"{/eq}><i class="fa fa-check-circle"></i>是</span>
  111. {else /}
  112. <span class="no" {eq name="'Discount@add'|is_check_access" value="1"}onClick="changeTableVal('sharp_active','active_id','{$vo.active_id}','status',this);"{/eq}><i class="fa fa-ban"></i>否</span>
  113. {/if}
  114. </div>
  115. </td>
  116. <td class="">
  117. <div class="w100 tc">
  118. {$vo.update_time|date='Y-m-d',###}
  119. </div>
  120. </td>
  121. <td class="operation">
  122. <div class="w120 tc">
  123. {eq name="'Discount@active_edit'|is_check_access" value="1"}
  124. <a href="{:url('Discount/active_edit',array('id'=>$vo['active_id']))}" class="btn blue">编辑</a>
  125. {/eq}
  126. {eq name="'Discount@active_del'|is_check_access" value="1"}
  127. <i></i>
  128. <a class="btn red" href="javascript:void(0)" data-url="{:url('Discount/active_del')}" data-id="{$vo.active_id}" onClick="delfun(this);">删除</a>
  129. {/eq}
  130. </div>
  131. </td>
  132. </tr>
  133. {/foreach}
  134. {/empty}
  135. </tbody>
  136. </table>
  137. </div>
  138. <div class="iDiv" style="display: none;"></div>
  139. </div>
  140. <div class="tDiv">
  141. <div class="tDiv2">
  142. <div class="fbutton checkboxall">
  143. <input type="checkbox" autocomplete="off" class="checkAll">
  144. </div>
  145. {eq name="'Discount@active_del'|is_check_access" value="1"}
  146. <div class="fbutton">
  147. <a onclick="batch_del(this, 'ids');" data-url="{:url('Discount/active_del')}" class="layui-btn layui-btn-primary">
  148. <span>批量删除</span>
  149. </a>
  150. </div>
  151. {/eq}
  152. {include file="public/page" /}
  153. </div>
  154. <div style="clear:both"></div>
  155. </div>
  156. </div>
  157. </div>
  158. <script>
  159. $(function(){
  160. $('input[name*=ids]').click(function(){
  161. if ($('input[name*=ids]').length == $('input[name*=ids]:checked').length) {
  162. $('.checkAll').prop('checked','checked');
  163. } else {
  164. $('.checkAll').prop('checked', false);
  165. }
  166. });
  167. $('input[type=checkbox].checkAll').click(function(){
  168. $('input[type=checkbox]').prop('checked',this.checked);
  169. });
  170. });
  171. $(document).ready(function(){
  172. // 表格行点击选中切换
  173. $('#flexigrid > table>tbody >tr').click(function(){
  174. $(this).toggleClass('trSelected');
  175. });
  176. });
  177. </script>
  178. {include file="public/footer" /}