DZKJ_DistributorAccount.aspx 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DZKJ_DistributorAccount.aspx.cs" Inherits="LYFZ.WeixinServers.DZKJ.DZKJ_DistributorAccount" %>
  2. <!--#include file="/WeiXinAPP/html/head.html" -->
  3. <!--#include file="/WeiXinAPP/html/leftMenu.html" -->
  4. <div class="content">
  5. <ul class="breadcrumb">
  6. <!--#include file="/WeiXinAPP/html/indexBread.html" -->
  7. <li class="active">点赞科技分销商列表</li>
  8. </ul>
  9. <div class="container-fluid">
  10. <div class="row-fluid">
  11. <div style="width: 100%; min-height: 700px;">
  12. <div class="btn-toolbar">
  13. <div style="width: 320px; height: 24px; float: left;">
  14. <form id="tab2">
  15. <label style="width: 50px; height: 100%; padding-top: 5px; float: left;">关键字</label>
  16. <div style="width: 200px; height: 100%; float: left; margin-right: 5px;">
  17. <input id="Keyword" name="Keyword" type="text" class="span12" />
  18. </div>
  19. <button class="btn">查询</button>
  20. </form>
  21. </div>
  22. <a class="btn" href="/DZKJ/DZKJ_DistributorAccount.aspx?IsEnabled=0">已禁用</a>
  23. <a class="btn btn-primary" href="/DZKJ/DZKJ_AddDistributor.aspx"><i class="icon-plus"></i>添加分销商</a>
  24. <!-- <button class="btn">Import</button>
  25. <button class="btn">Export</button>-->
  26. <div class="btn-group">
  27. </div>
  28. </div>
  29. <div class="well">
  30. <table class="table">
  31. <thead>
  32. <tr>
  33. <th>状态</th>
  34. <th>分销商企业名</th>
  35. <th>帐号</th>
  36. <th>联系人</th>
  37. <th>性别</th>
  38. <th>联系电话</th>
  39. <th>购买总套数</th>
  40. <th>剩余套数</th>
  41. <th>注册时间</th>
  42. <th>最新登录IP</th>
  43. <th>最新登录时间</th>
  44. <th style="width: 80px;">操作</th>
  45. </tr>
  46. </thead>
  47. <tbody>
  48. <%=this.CustomerAccountListHtmlTb.ToString() %>
  49. </tbody>
  50. </table>
  51. </div>
  52. <%=PagingInfoHtml %>
  53. </div>
  54. <!--#include file="/WeiXinAPP/html/DeleteDialog.html" -->
  55. <!--#include file="/WeiXinAPP/html/footer.html" -->
  56. </div>
  57. </div>
  58. </div>
  59. <div class="modal hide fade" id="ChargeModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
  60. <div class="modal-header">
  61. <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
  62. <h3 id="myModalLabel">充值</h3>
  63. </div>
  64. <div class="modal-body">
  65. <div class="form-horizontal">
  66. <div class="control-group">
  67. <label class="control-label">充值数量:</label>
  68. <div class="controls">
  69. <input type="text" name="charge" class="form-control" value="" />
  70. </div>
  71. </div>
  72. </div>
  73. </div>
  74. <div class="modal-footer">
  75. <button class="btn" data-dismiss="modal" aria-hidden="true">取消</button>
  76. <button class="btn btn-danger" id="btn-confirm">确定</button>
  77. </div>
  78. </div>
  79. <script type="text/javascript">
  80. function setModalValue(i) {
  81. $('#myModal').attr("rel", i);
  82. }
  83. </script>
  84. <script type="text/javascript">
  85. $(document).ready(function () {
  86. var Keyword = GetQueryString("Keyword");
  87. if (Keyword) {
  88. $("#Keyword").val(Keyword);
  89. }
  90. var $chargeModel = $("#ChargeModal")
  91. $('.btn-charge').on('click', function () {
  92. $chargeModel.data($(this).data());
  93. })
  94. $("#btn-confirm").on("click", function () {
  95. $.post("DZKJ_DistributorAccount.aspx?a=recharge", {
  96. distributorId: $chargeModel.data("distributorId"),
  97. amount: $chargeModel.find("input").val()
  98. }).done(function () {
  99. window.location.reload();
  100. });
  101. })
  102. });
  103. //打印出js 对象
  104. function writeObj(obj) {
  105. var description = "";
  106. for (var i in obj) {
  107. var property = obj[i];
  108. description += i + " = " + property + "\n";
  109. }
  110. alert(description);
  111. }
  112. function myModalDefine(objModal) {
  113. var relValue = objModal.attr("rel");
  114. document.location = "DZKJ_DistributorAccount.aspx?del=" + relValue;
  115. }
  116. </script>
  117. <!--#include file="/WeiXinAPP/html/bottom.html" -->