Brak opisu
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.

index.htm 11KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  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.'@add'|is_check_access" value="1"}
  22. <div class="fbutton" style="float: none;">
  23. <a href="javascript:void(0);" data-href="{:url('Discount/ajax_archives_list')}" onclick="openFullframe(this, '新增限时折扣商品');">
  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. <form class="navbar-form form-inline" action="{:url('Discount/index')}" method="get" onsubmit="layer_loading('正在处理');">
  32. {$searchform.hidden|default=''}
  33. <div class="sDiv">
  34. <div class="sDiv2 fl" style="">
  35. <input type="text" size="30" name="keywords" value="{$Request.param.keywords}" class="qsbox" placeholder="搜索相关数据...">
  36. <input type="submit" class="btn" value="搜索">
  37. <i class="iconfont e-sousuo"></i>
  38. </div>
  39. </div>
  40. </form>
  41. </div>
  42. <div class="hDiv">
  43. <div class="hDivBox">
  44. <table cellspacing="0" cellpadding="0" style="width: 100%">
  45. <thead>
  46. <tr>
  47. <th class="sign w40" axis="col0">
  48. <div class="tc"><input type="checkbox" autocomplete="off" class="checkAll"></div>
  49. </th>
  50. <th abbr="id" axis="col5" class="w60">
  51. <div class="tc">商品ID</div>
  52. </th>
  53. <th align="center" abbr="article_title" axis="col3" class="w60">
  54. <div class="tc">封面图</div>
  55. </th>
  56. <th align="left" abbr="article_title" axis="col3" class="">
  57. <div style="text-align: left; padding-left: 10px;" class="">商品标题</div>
  58. </th>
  59. <th abbr="ac_id" axis="col4" class="w100">
  60. <div class="tc">限购数量</div>
  61. </th>
  62. <th abbr="article_time" axis="col6" class="w60">
  63. <div class="tc">销量</div>
  64. </th>
  65. <th abbr="article_time" axis="col6" class="w60">
  66. <div class="tc">库存</div>
  67. </th>
  68. <th abbr="article_time" axis="col6" class="w50">
  69. <div class="tc">显示</div>
  70. </th>
  71. <th abbr="article_time" axis="col6" class="w100">
  72. <div class="tc">更新时间</div>
  73. </th>
  74. <th axis="col1" class="w120">
  75. <div class="tc">操作</div>
  76. </th>
  77. <th abbr="article_show" axis="col5" class="w60">
  78. <div class="tc">排序</div>
  79. </th>
  80. </tr>
  81. </thead>
  82. </table>
  83. </div>
  84. </div>
  85. <div class="bDiv" style="height: auto;">
  86. <div id="flexigrid" cellpadding="0" cellspacing="0" border="0">
  87. <table style="width: 100%">
  88. <tbody>
  89. {empty name="list"}
  90. <tr>
  91. <td class="no-data" align="center" axis="col0" colspan="50">
  92. <div class="no_row">
  93. <div class="no_pic"><img src="__SKIN__/images/null-data.png"></div>
  94. </div>
  95. </td>
  96. </tr>
  97. {else/}
  98. {foreach name="list" item="vo" key="k" }
  99. <tr>
  100. <td class="sign">
  101. <div class="w40 tc"><input type="checkbox" autocomplete="off" name="ids[]" value="{$vo.discount_gid}"></div>
  102. </td>
  103. <td class="sort">
  104. <div class="w60 tc">
  105. {$vo.discount_gid}
  106. </div>
  107. </td>
  108. <td class="w60">
  109. <div class="tc">
  110. <img width="60" height="60" src="{$vo.litpic|get_default_pic=###}">
  111. </div>
  112. </td>
  113. <td class="" style="width: 100%;">
  114. <div class="tl" style="padding-left: 10px;">
  115. {eq name="$Think.const.CONTROLLER_NAME.'@edit'|is_check_access" value="1"}
  116. <a href="{:url('ShopProduct/edit',array('id'=>$vo['aid']))}" style="{eq name='$vo.is_b' value='1'} font-weight: bold;{/eq}">{$vo.title}</a>
  117. {else /}
  118. {$vo.title}
  119. {/eq}
  120. </div>
  121. </td>
  122. <td class="">
  123. <div class="w100 tc">
  124. {$vo.limit}
  125. </div>
  126. </td>
  127. <td>
  128. <div class="tc w60">
  129. {$vo.sales}
  130. </div>
  131. </td>
  132. <td class="">
  133. <div class="w60 tc">
  134. {$vo.seckill_stock}
  135. </div>
  136. </td>
  137. <td class="">
  138. <div class="w50 tc">
  139. {if condition="$vo['status'] eq 1"}
  140. <span class="yes" {eq name="'Discount@edit'|is_check_access" value="1"}onClick="changeTableVal('discount_goods','discount_gid','{$vo.discount_gid}','status',this);"{/eq}><i class="fa fa-check-circle"></i>是</span>
  141. {else /}
  142. <span class="no" {eq name="'Discount@edit'|is_check_access" value="1"}onClick="changeTableVal('discount_goods','discount_gid','{$vo.discount_gid}','status',this);"{/eq}><i class="fa fa-ban"></i>否</span>
  143. {/if}
  144. </div>
  145. </td>
  146. <td class="">
  147. <div class="w100 tc">
  148. {$vo.update_time|date='Y-m-d',###}
  149. </div>
  150. </td>
  151. <td class="operation">
  152. <div class="w120 tc">
  153. {eq name="'Discount@edit'|is_check_access" value="1"}
  154. <a href="javascript:void(0);" data-href="{:url('Discount/edit',array('id'=>$vo['discount_gid']))}" class="btn blue" onclick="openFullframe(this, '编辑限时折扣商品', '100%', '100%');">编辑</a>
  155. {/eq}
  156. {eq name="'Discount@del'|is_check_access" value="1"}
  157. <i></i>
  158. <a class="btn red" href="javascript:void(0)" data-url="{:url('Discount/del')}" data-id="{$vo.discount_gid}" onClick="delfun(this);">删除</a>
  159. {/eq}
  160. </div>
  161. </td>
  162. <td class="sort">
  163. <div class="w60 tc">
  164. {eq name="'Discount@edit'|is_check_access" value="1"}
  165. <input style="text-align: left;" type="text" onchange="changeTableVal('discount_goods','discount_gid','{$vo.discount_gid}','sort_order',this);" size="4" value="{$vo.sort_order}" />
  166. {else /}
  167. {$vo.sort_order}
  168. {/eq}
  169. </div>
  170. </td>
  171. </tr>
  172. {/foreach}
  173. {/empty}
  174. </tbody>
  175. </table>
  176. </div>
  177. <div class="iDiv" style="display: none;"></div>
  178. </div>
  179. <div class="tDiv">
  180. <div class="tDiv2">
  181. <div class="fbutton checkboxall">
  182. <input type="checkbox" autocomplete="off" class="checkAll">
  183. </div>
  184. {eq name="'Discount@del'|is_check_access" value="1"}
  185. <div class="fbutton">
  186. <a onclick="batch_del(this, 'ids');" data-url="{:url('Discount/del')}" class="layui-btn layui-btn-primary">
  187. <span>批量删除</span>
  188. </a>
  189. </div>
  190. {/eq}
  191. {include file="public/page" /}
  192. </div>
  193. <div style="clear:both"></div>
  194. </div>
  195. </div>
  196. </div>
  197. <script>
  198. function reback(aid) {
  199. layer.closeAll();
  200. var url = eyou_basefile+"?m=admin&c=Discount&a=add&id="+aid;
  201. openFullframe(url, '整点限时折扣 - 新增活动场次', '100%', '100%');
  202. }
  203. $(document).ready(function(){
  204. // 表格行点击选中切换
  205. $('#flexigrid > table>tbody >tr').click(function(){
  206. $(this).toggleClass('trSelected');
  207. });
  208. // 点击刷新数据
  209. $('.fa-refresh').click(function(){
  210. location.href = location.href;
  211. });
  212. });
  213. </script>
  214. {include file="public/footer" /}