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.

upgrade_index.htm 12KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249
  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('Level/upgrade_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="sDiv2">
  19. <input type="text" size="50" name="keywords" value="{$Request.param.keywords}" class="qsbox" style="width: 170px;" placeholder="订单号或用户名">
  20. </div>
  21. </div>
  22. </div>
  23. </div>
  24. </div>
  25. <div class="ey-form-item"><label class="users-form-item-label">支付方式:</label>
  26. <div class="users-form-item-content">
  27. <div class="users-select">
  28. <div tabindex="0" class="users-select-selection">
  29. <div class="">
  30. <select name="pay_method" id="pay_method">
  31. <option value="" {if condition="!$Request.param.pay_method"}selected{/if}>全部</option>
  32. <option value="balance" {eq name="$Request.param.pay_method" value="balance"}selected{/eq}>余额支付</option>
  33. <option value="wechat" {eq name="$Request.param.pay_method" value="wechat"}selected{/eq}>微信支付</option>
  34. <option value="alipay" {eq name="$Request.param.pay_method" value="alipay"}selected{/eq}>支付宝支付</option>
  35. </select>
  36. </div>
  37. </div>
  38. </div>
  39. </div>
  40. </div>
  41. <div class="ey-form-item"><label class="users-form-item-label">升级类别:</label>
  42. <div class="users-form-item-content">
  43. <div class="users-select">
  44. <div tabindex="0" class="users-select-selection">
  45. <div class="">
  46. <select name="level_id" id="level_id">
  47. <option value="" {if condition="!$Request.param.level_id"}selected{/if}>全部</option>
  48. {volist name="$usersLevel" id="ul"}
  49. <option value="{$ul.level_id}" {if condition='$Request.param.level_id == $ul.level_id'}selected{/if}>{$ul.level_name}</option>
  50. {/volist}
  51. </select>
  52. </div>
  53. </div>
  54. </div>
  55. </div>
  56. </div>
  57. <div class="ey-form-item"><label class="users-form-item-label">下单时间:</label>
  58. <div class="users-form-item-content">
  59. <div class="users-select">
  60. <div tabindex="0" class="users-select-selection">
  61. <div class="sDiv2">
  62. <input type="text" name="add_time_begin" id="add_time_begin" autocomplete="off" value="{$Request.param.add_time_begin}" class="qsbox" placeholder="起始日期">
  63. </div>
  64. &nbsp;至&nbsp;
  65. <div class="sDiv2">
  66. <input type="text" name="add_time_end" id="add_time_end" autocomplete="off" value="{$Request.param.add_time_end}" class="qsbox" placeholder="结束日期">
  67. </div>
  68. </div>
  69. </div>
  70. </div>
  71. </div>
  72. <div class="ey-form-item">
  73. <div class="users-form-item-content">
  74. <span class="bt-xin" onclick="OrderQuery();">查询</span>
  75. <span class="bt-xin-no" onclick="OrderQuery('reset');">重置</span>
  76. <div class="fbutton">
  77. <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>
  78. </div>
  79. </div>
  80. </div>
  81. </form>
  82. </div>
  83. </div>
  84. </div>
  85. </div>
  86. </div>
  87. </div>
  88. <div class="page" style="min-width:auto;margin-left:100px;">
  89. <div class="flexigrid flexigrid-xin">
  90. <div class="tableDiv " style="height: auto;">
  91. <div id="flexigrid" cellpadding="0" cellspacing="0" border="0">
  92. <table cellspacing="0" cellpadding="0" style="width: 100%">
  93. <thead style="background-color: #f7f7f7; height: 40px;line-height: 40px;">
  94. <tr>
  95. <th abbr="article_title" class="w200">
  96. <div class="" class="">订单号</div>
  97. </th>
  98. <th abbr="article_time" class="">
  99. <div class="">升级类别</div>
  100. </th>
  101. <th abbr="article_time" class="w160">
  102. <div class="">订单金额</div>
  103. </th>
  104. <th abbr="article_title" class="w160">
  105. <div class="">用户</div>
  106. </th>
  107. <th abbr="article_time" class="w160">
  108. <div class="tc">升级时间</div>
  109. </th>
  110. <th class="w100">
  111. <div class="tc">状态</div>
  112. </th>
  113. </tr>
  114. </thead>
  115. <tbody class="no-border">
  116. {empty name="list"}
  117. <tr>
  118. <td class="no-data" align="center" axis="col0" colspan="50">
  119. <div class="">
  120. <div class="no_pic"><img src="__SKIN__/images/null-data.png"></div>
  121. </div>
  122. </td>
  123. </tr>
  124. {else/}
  125. {foreach name="list" item="vo" key="k" }
  126. <tr>
  127. <td>
  128. <div class="">
  129. <!-- 此处判断余额支付,微信支付,支付宝支付 -->
  130. {if condition='$vo.pay_method == "wechat"'}
  131. <i class="iconfont e-weixinzhifu zhifu"></i>
  132. {elseif condition='$vo.pay_method == "alipay"'/}
  133. <i class="iconfont e-zhifubaozhifu zhifu"></i>
  134. {else /}
  135. <i class="iconfont e-yuezhifu zhifu"></i>
  136. {/if}
  137. {$vo.order_number}
  138. </div>
  139. </td>
  140. <td class=""> <div class=""> {$vo.cause.type_name} </div> </td>
  141. <td class=""> <div class="red"> ¥{$vo.money} </div> </td>
  142. <td class="sort">
  143. <div class="d-flex" style=" padding-left: 10px;">
  144. <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']}" />
  145. <a href="javascript:void(0);" data-href="{:url('Member/users_edit', ['id'=>$vo.users_id,'from'=>'money_index','iframe'=>1])}" onclick="openFullframe(this, '会员资料','100%','100%');" class="l-height-24">{$vo.username}</a>
  146. </div>
  147. </td>
  148. <td class="sort "> <div class="tc"> {$vo.add_time|date='Y-m-d H:i:s',###} </div> </td>
  149. <td> <div class="tc"> {$pay_status_arr[$vo['status']]} </div> </td>
  150. </tr>
  151. {/foreach}
  152. {/empty}
  153. </tbody>
  154. </table>
  155. </div>
  156. <div class="iDiv" style="display: none;"></div>
  157. </div>
  158. {notempty name="list"}
  159. <div class="tDiv"> <div class="tDiv2"> {include file="public/page" /} </div> <div style="clear:both"></div> </div>
  160. {/notempty}
  161. </div>
  162. </div>
  163. <script type="text/javascript">
  164. $(function() {
  165. $('input[name*=ids]').click(function() {
  166. if ($('input[name*=ids]').length == $('input[name*=ids]:checked').length) {
  167. $('.checkAll').prop('checked','checked');
  168. } else {
  169. $('.checkAll').prop('checked', false);
  170. }
  171. });
  172. $('input[type=checkbox].checkAll').click(function() {
  173. $('input[type=checkbox]').prop('checked', this.checked);
  174. });
  175. });
  176. layui.use('laydate', function() {
  177. var laydate = layui.laydate;
  178. //执行一个laydate实例
  179. laydate.render({
  180. elem: '#add_time_begin' //指定元素
  181. });
  182. laydate.render({
  183. elem: '#add_time_end' //指定元素
  184. });
  185. });
  186. $(document).ready(function() {
  187. // 表格行点击选中切换
  188. $('#flexigrid > table>tbody >tr').click(function(){
  189. $(this).toggleClass('trSelected');
  190. });
  191. });
  192. // 订单查询
  193. function OrderQuery(isReset) {
  194. if (isReset && 'reset' == isReset) {
  195. window.location.href = "{:url('Level/upgrade_index')}";
  196. } else {
  197. $('#postForm').submit();
  198. }
  199. }
  200. // AJAX调用下载
  201. function OrderExcelExport(obj) {
  202. layer_loading('订单导出中');
  203. $.ajax({
  204. type: 'post',
  205. url : $(obj).attr('data-url'),
  206. data: {
  207. _ajax: 1,
  208. // 导出类型,升级订单固定值3
  209. export_type: 3,
  210. // 搜索条件信息,可为空
  211. level_id: "{$Request.param.level_id}",
  212. keywords: "{$Request.param.keywords}",
  213. pay_method: "{$Request.param.pay_method}",
  214. end_time: "{$Request.param.add_time_end}",
  215. start_time: "{$Request.param.add_time_begin}"
  216. },
  217. dataType: 'json',
  218. success: function(res) {
  219. layer.closeAll();
  220. if (1 == res.code) {
  221. window.location.href = res.url;
  222. } else {
  223. showErrorAlert(res.msg);
  224. }
  225. },
  226. error: function(e) {
  227. layer.closeAll();
  228. showErrorAlert(e.responseText);
  229. }
  230. });
  231. }
  232. </script>
  233. {include file="public/footer" /}