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.

media_index.htm 15KB

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