Geen omschrijving
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.

money_edit.htm 6.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  1. {include file="public/layout" /}
  2. <body class="bodystyle" style="overflow-y: scroll;">
  3. <div id="toolTipLayer" style="position: absolute; z-index: 9999; display: none; visibility: visible; left: 95px; top: 573px;"></div>
  4. <div id="append_parent"></div>
  5. <div id="ajaxwaitid"></div>
  6. <div class="page">
  7. <div class="fixed-bar">
  8. <div class="item-title"><a class="back_xin" href="{:url('Member/money_index')}" title="返回"><i class="iconfont e-fanhui"></i></a></a>
  9. <div class="subject">
  10. <h3>充值管理 - 编辑订单</h3>
  11. <h5></h5>
  12. </div>
  13. </div>
  14. </div>
  15. <form class="form-horizontal" id="postForm" action="{:url('Member/money_mark_order')}" method="post">
  16. <div class="ncap-form-default">
  17. <dl class="row"><dt class="tit"><label><b>会员信息</b></label></dt></dl>
  18. <input type="hidden" name="users_id" value="{$UsersData.users_id}">
  19. <dl class="row">
  20. <dt class="tit">
  21. <label for="username">用户名</label>
  22. </dt>
  23. <dd class="opt">
  24. {$UsersData.username}
  25. </dd>
  26. </dl>
  27. <dl class="row">
  28. <dt class="tit">
  29. <label for="username">会员余额</label>
  30. </dt>
  31. <dd class="opt">
  32. {$UsersData.users_money}
  33. </dd>
  34. </dl>
  35. <dl class="row">
  36. <dt class="tit">
  37. <label for="username">手机号</label>
  38. </dt>
  39. <dd class="opt">
  40. {$UsersData.mobile}
  41. </dd>
  42. </dl>
  43. <dl class="row">
  44. <dt class="tit">
  45. <label for="username">邮箱地址</label>
  46. </dt>
  47. <dd class="opt">
  48. {$UsersData.email}
  49. </dd>
  50. </dl>
  51. </div>
  52. <div class="ncap-form-default">
  53. <dl class="row"><dt class="tit"><label><b>充值订单信息</b></label></dt></dl>
  54. <input type="hidden" name="moneyid" value="{$MoneyData.moneyid}">
  55. <input type="hidden" name="order_number" value="{$MoneyData.order_number}">
  56. <input type="hidden" name="return" value="{$return}">
  57. <dl class="row">
  58. <dt class="tit">
  59. <label for="username">充值订单号</label>
  60. </dt>
  61. <dd class="opt">
  62. {$MoneyData.order_number}
  63. </dd>
  64. </dl>
  65. <dl class="row">
  66. <dt class="tit">
  67. <label for="username">充值方式</label>
  68. </dt>
  69. <dd class="opt">
  70. {$pay_method_arr[$MoneyData['pay_method']]}
  71. </dd>
  72. </dl>
  73. <dl class="row">
  74. <dt class="tit">
  75. <label for="username">充值金额</label>
  76. </dt>
  77. <dd class="opt">
  78. {$MoneyData.money}
  79. </dd>
  80. </dl>
  81. <!-- <dl class="row">
  82. <dt class="tit">
  83. <label for="username">会员充值后的总金额</label>
  84. </dt>
  85. <dd class="opt">
  86. {$MoneyData.users_money}
  87. </dd>
  88. </dl> -->
  89. <dl class="row">
  90. <dt class="tit">
  91. <label for="username">订单状态</label>
  92. </dt>
  93. <dd class="opt">
  94. {$pay_status_arr[$MoneyData['status']]}
  95. </dd>
  96. </dl>
  97. <dl class="row">
  98. <dt class="tit">
  99. <label for="username">充值详情</label>
  100. </dt>
  101. <dd class="opt">
  102. {$return}
  103. </dd>
  104. </dl>
  105. {eq name="$MoneyData['status']" value="1"}
  106. <dl class="row">
  107. <dt class="tit">
  108. <label for="username">订单操作</label>
  109. </dt>
  110. <dd class="opt">
  111. <a href="JavaScript:void(0);" onclick="MarkOrder('yfk');" class="ncap-btn-big ncap-btn-green" id="submitBtn">
  112. 标记为已付款
  113. </a>
  114. <span style="padding-left: 10px; color: blue;">
  115. 若执行此操作,订单状态将会变为充值成功(已完成),订单对应会员余额也将加上该笔订单金额
  116. <b style="color: red;">({$MoneyData.money}+{$UsersData.users_money})</b>
  117. ,谨慎执行!
  118. </span>
  119. </dd>
  120. </dl>
  121. {/eq}
  122. {eq name="$MoneyData['status']" value="3"}
  123. <dl class="row">
  124. <dt class="tit">
  125. <label for="username">订单操作</label>
  126. </dt>
  127. <dd class="opt">
  128. <a href="JavaScript:void(0);" onclick="MarkOrder('wfk');" class="ncap-btn-big ncap-btn-green" id="submitBtn">
  129. 标记为未付款
  130. </a>
  131. <span style="padding-left: 10px; color: blue;">
  132. 若执行此操作,订单状态将会变为未付款,订单对应会员余额也将减去该笔订单金额
  133. <b style="color: red;">({$UsersData.users_money}-{$MoneyData.money})</b>
  134. ,若余额不足则减为0,谨慎执行!
  135. </span>
  136. </dd>
  137. </dl>
  138. {/eq}
  139. <input type="hidden" name="status_name" id="status_name">
  140. </div>
  141. </form>
  142. </div>
  143. <script type="text/javascript">
  144. // 判断输入框是否为空
  145. function MarkOrder(status_name){
  146. if('wfk' == status_name){
  147. var msg = '确定要标记订单为未付款?';
  148. }else{
  149. var msg = '确定要标记订单为已付款?';
  150. }
  151. layer.confirm(msg, {
  152. shade: layer_shade,
  153. area: ['480px', '190px'],
  154. move: false,
  155. title: '提示',
  156. btnAlign:'r',
  157. closeBtn: 3,
  158. btn: ['确定','取消'] ,//按钮
  159. success: function () {
  160. $(".layui-layer-content").css('text-align', 'left');
  161. }
  162. },function(){
  163. $('#status_name').val(status_name);
  164. layer_loading('正在处理');
  165. $('#postForm').submit();
  166. },function(index){
  167. layer.closeAll(index);
  168. });
  169. }
  170. </script>
  171. {include file="public/footer" /}