Aucune description
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

article_index.htm 15KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311
  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="order/left" /}
  6. <div class="page" style="min-width:auto;margin-left:100px;padding-bottom: 0;">
  7. <div class="flexigrid flexigrid-xin">
  8. <div class="header-bar">
  9. <div class="more">
  10. <div class="search">
  11. <div class="content">
  12. <form id="postForm" action="{:url('Member/article_index')}" method="get" onsubmit="layer_loading('正在处理');" style="display: unset;">
  13. {$searchform.hidden|default=''}
  14. <div class="ey-form-item"><label class="users-form-item-label">订单状态:</label>
  15. <div class="users-form-item-content">
  16. <div class="users-select">
  17. <div tabindex="0" class="users-select-selection">
  18. <div class="">
  19. <select name="order_status">
  20. <option value="1" {eq name="$Request.param.order_status" value="1"}selected{/eq}>已付款</option>
  21. <option value="9" {eq name="$Request.param.order_status" value="9"}selected{/eq}>未付款</option>
  22. <option value="" {if condition="!$Request.param.order_status"}selected{/if}>全部</option>
  23. </select>
  24. </div>
  25. </div>
  26. </div>
  27. </div>
  28. </div>
  29. <div class="ey-form-item"><label class="users-form-item-label">关键词:</label>
  30. <div class="users-form-item-content">
  31. <div class="users-select">
  32. <div tabindex="0" class="users-select-selection">
  33. <div class="sDiv2">
  34. <input type="text" size="50" name="keywords" value="{$Request.param.keywords}" class="qsbox" style="width: 170px;" placeholder="订单号或用户名">
  35. </div>
  36. </div>
  37. </div>
  38. </div>
  39. </div>
  40. <div class="ey-form-item"><label class="users-form-item-label">支付方式:</label>
  41. <div class="users-form-item-content">
  42. <div class="users-select">
  43. <div tabindex="0" class="users-select-selection">
  44. <div class="">
  45. <select name="pay_name" id="pay_name">
  46. <option value="" {if condition="!$Request.param.pay_name"}selected{/if}>全部</option>
  47. <option value="balance" {eq name="$Request.param.pay_name" value="balance"}selected{/eq}>余额支付</option>
  48. <option value="wechat" {eq name="$Request.param.pay_name" value="wechat"}selected{/eq}>微信支付</option>
  49. <option value="alipay" {eq name="$Request.param.pay_name" value="alipay"}selected{/eq}>支付宝支付</option>
  50. </select>
  51. </div>
  52. </div>
  53. </div>
  54. </div>
  55. </div>
  56. <div class="ey-form-item"><label class="users-form-item-label">下单时间:</label>
  57. <div class="users-form-item-content">
  58. <div class="users-select">
  59. <div tabindex="0" class="users-select-selection">
  60. <div class="sDiv2">
  61. <input type="text" name="add_time_begin" id="add_time_begin" autocomplete="off" value="{$Request.param.add_time_begin}" class="qsbox" placeholder="起始日期">
  62. </div>
  63. &nbsp;至&nbsp;
  64. <div class="sDiv2">
  65. <input type="text" name="add_time_end" id="add_time_end" autocomplete="off" value="{$Request.param.add_time_end}" class="qsbox" placeholder="结束日期">
  66. </div>
  67. </div>
  68. </div>
  69. </div>
  70. </div>
  71. <div class="ey-form-item">
  72. <div class="users-form-item-content">
  73. <span class="bt-xin" onclick="OrderQuery();">查询</span>
  74. <span class="bt-xin-no" onclick="OrderQuery('reset');">重置</span>
  75. <div class="fbutton">
  76. <a href="javascript:void(0);" onclick="OrderExcelExport(this);" data-url="{:url('Order/ajax_order_excel_export')}" class="bt-xin-xia"><i class="iconfont e-xiazai"></i>导出</a>
  77. </div>
  78. </div>
  79. </div>
  80. </form>
  81. </div>
  82. </div>
  83. </div>
  84. </div>
  85. </div>
  86. </div>
  87. <div class="page" style="min-width:auto;margin-left:100px;">
  88. <div class="flexigrid flexigrid-xin">
  89. <div class="tableDiv " style="height: auto;">
  90. <div id="flexigrid" cellpadding="0" cellspacing="0" border="0">
  91. <table cellspacing="0" cellpadding="0" style="width: 100%">
  92. <thead>
  93. <tr>
  94. <th abbr="article_title" axis="col3" class="w200">
  95. <div class="">订单号</div>
  96. </th>
  97. <th abbr="article_time" axis="col6" class="">
  98. <div class="">文章名称</div>
  99. </th>
  100. <th abbr="article_time" axis="col6" class="w160">
  101. <div class="">订单金额</div>
  102. </th>
  103. <th abbr="article_time" axis="col6" class="w160">
  104. <div class="">用户</div>
  105. </th>
  106. <th abbr="article_time" axis="col6" class="w160">
  107. <div class="tc">下单时间</div>
  108. </th>
  109. <th abbr="article_time" axis="col6" class="w100">
  110. <div class="tc">订单状态</div>
  111. </th>
  112. <th axis="col1" class="w100">
  113. <div class="tc">操作</div>
  114. </th>
  115. </tr>
  116. </thead>
  117. <tbody class="no-border">
  118. {empty name="list"}
  119. <tr>
  120. <td class="no-data" align="center" axis="col0" colspan="50">
  121. <div class="">
  122. <div class="no_pic"><img src="__SKIN__/images/null-data.png"></div>
  123. </div>
  124. </td>
  125. </tr>
  126. {else/}
  127. {volist name="list" id="vo"}
  128. <tr>
  129. <td >
  130. <div class="">
  131. <!-- 此处判断余额支付,微信支付,支付宝支付 -->
  132. {if condition='$vo.pay_name == "wechat"'}
  133. <i class="iconfont e-weixinzhifu zhifu"></i>
  134. {elseif condition='$vo.pay_name == "alipay"'/}
  135. <i class="iconfont e-zhifubaozhifu zhifu"></i>
  136. {else /}
  137. <i class="iconfont e-yuezhifu zhifu"></i>
  138. {/if}
  139. {$vo.order_code}
  140. </div>
  141. </td>
  142. <td> <div class=""> <a href="{:url('Ajax/toHomeView', ['aid'=>$vo['product_id']])}" target="_blank">{$vo.product_name}</a> </div> </td>
  143. <td> <div class="red"> ¥{$vo.order_amount} </div> </td>
  144. <td class="sort">
  145. <div class="d-flex" style=" padding-left: 10px;">
  146. <img id="img_head_pic" style="margin-right: 5px;float: unset;border: 1px solid #e9edef;width: 24px;height: 24px;border-radius: 50%;" src="{$vo.head_pic|get_head_pic=###,false,$vo['sex']}" />
  147. <a href="javascript:void(0);" data-href="{:url('Member/users_edit',array('id'=>$vo['users_id'],'iframe'=>1))}" onclick="openFullframe(this, '会员资料','100%','100%');" class="l-height-24">{$vo.username}</a>
  148. </div>
  149. </td>
  150. <td> <div class="tc"> {$vo.add_time|MyDate='Y-m-d H:i:s',###} </div> </td>
  151. <td> <div class="tc"> {eq name="$vo.order_status" value="0"}未付款{else/}已付款{/eq} </div> </td>
  152. <td>
  153. <div class="tc">
  154. <a class="btn blue" href="JavaScript:void(0);" data-url="{:url('Member/article_order_details',array('order_id'=>$vo['order_id']))}" onclick="OpenOrderDetails(this);">详情</a>
  155. </div>
  156. </td>
  157. </tr>
  158. {/volist}
  159. {/empty}
  160. </tbody>
  161. </table>
  162. </div>
  163. <div class="iDiv" style="display: none;"></div>
  164. </div>
  165. <div class="tDiv"> <div class="tDiv2"> {include file="public/page" /} </div> <div style="clear:both"></div> </div>
  166. </div>
  167. </div>
  168. <script type="text/javascript">
  169. $(function() {
  170. $('input[name*=ids]').click(function() {
  171. if ($('input[name*=ids]').length == $('input[name*=ids]:checked').length) {
  172. $('.checkAll').prop('checked','checked');
  173. } else {
  174. $('.checkAll').prop('checked', false);
  175. }
  176. });
  177. $('input[type=checkbox].checkAll').click(function(){
  178. $('input[type=checkbox]').prop('checked',this.checked);
  179. });
  180. });
  181. layui.use('laydate', function() {
  182. var laydate = layui.laydate;
  183. //执行一个laydate实例
  184. laydate.render({
  185. elem: '#add_time_begin' //指定元素
  186. });
  187. laydate.render({
  188. elem: '#add_time_end' //指定元素
  189. });
  190. });
  191. $(document).ready(function() {
  192. // 表格行点击选中切换
  193. $('#flexigrid > table>tbody >tr').click(function() {
  194. $(this).toggleClass('trSelected');
  195. });
  196. });
  197. // 订单查询
  198. function OrderQuery(isReset) {
  199. if (isReset && 'reset' == isReset) {
  200. window.location.href = "{:url('Member/article_index', ['order_status'=>1])}";
  201. } else {
  202. $('#postForm').submit();
  203. }
  204. }
  205. // AJAX调用下载
  206. function OrderExcelExport(obj) {
  207. layer_loading('订单导出中');
  208. $.ajax({
  209. type: 'post',
  210. url : $(obj).attr('data-url'),
  211. data: {
  212. _ajax: 1,
  213. // 导出类型,文章订单固定值5
  214. export_type: 5,
  215. // 搜索条件信息,可为空
  216. pay_name: "{$Request.param.pay_name}",
  217. keywords: "{$Request.param.keywords}",
  218. order_status: "{$Request.param.order_status}",
  219. end_time: "{$Request.param.add_time_end}",
  220. start_time: "{$Request.param.add_time_begin}"
  221. },
  222. dataType: 'json',
  223. success: function(res) {
  224. layer.closeAll();
  225. if (1 == res.code) {
  226. window.location.href = res.url;
  227. } else {
  228. showErrorAlert(res.msg);
  229. }
  230. },
  231. error: function(e) {
  232. layer.closeAll();
  233. showErrorAlert(e.responseText);
  234. }
  235. });
  236. }
  237. // 打开订单详情
  238. function OpenOrderDetails(obj) {
  239. var url = $(obj).attr('data-url');
  240. // iframe窗
  241. var iframes = layer.open({
  242. type: 2,
  243. title: '订单详情',
  244. fixed: true, //不固定
  245. shadeClose: false,
  246. shade: layer_shade,
  247. area: ['100%', '100%'],
  248. content: url
  249. });
  250. layer.full(iframes);
  251. }
  252. // 订单操作
  253. function OrderDel(order_id) {
  254. layer.confirm('确认删除订单?', {
  255. shade: layer_shade,
  256. area: ['480px', '190px'],
  257. move: false,
  258. title: '提示',
  259. btnAlign:'r',
  260. closeBtn: 3,
  261. btn: ['确定','取消'] ,//按钮
  262. success: function () {
  263. $(".layui-layer-content").css('text-align', 'left');
  264. }
  265. },function(){
  266. $.ajax({
  267. url: "{:url('Member/article_order_del')}",
  268. data: {del_id: order_id, _ajax: 1},
  269. type:'post',
  270. dataType:'json',
  271. success:function(res){
  272. layer.closeAll();
  273. if (1 == res.code) {
  274. layer.msg(res.msg, {time: 1500}, function(){
  275. window.location.reload();
  276. });
  277. } else {
  278. layer.msg(res.msg, {time: 1500});
  279. }
  280. }
  281. });
  282. },function(index){
  283. layer.closeAll(index);
  284. });
  285. }
  286. </script>
  287. {include file="public/footer" /}