bbxjlist.html 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. <include file="Public:header"/>
  2. <div id="main-content">
  3. <div id="top-alert" class="fixed alert alert-error" style="display: none;">
  4. <button class="close fixed" style="margin-top: 4px;">&times;</button>
  5. <div class="alert-content">警告内容</div>
  6. </div>
  7. <div id="main" class="main">
  8. <div class="main-title-h">
  9. <span class="h1-title">币币交易限价委托订单</span>
  10. <a class="btn btn-warning" onClick="location.href='{:U('Trade/bbxjlist')}'">初始化搜索</a>
  11. </div>
  12. <div class="cf">
  13. <div class="search-form fr cf" style="43px;float: none !important;">
  14. <div class="sleft">
  15. <form name="formSearch" id="formSearch" method="get" name="form1">
  16. <select style="width: 120px; float: left; margin-right: 10px;" name="type" class="form-control">
  17. <option value=""
  18. <empty name="Think.get.type">selected</empty>
  19. >全部类型</option>
  20. <option value="1"
  21. <eq name="Think.get.type" value="1">selected</eq>
  22. >购买</option>
  23. <option value="2"
  24. <eq name="Think.get.type" value="2">selected</eq>
  25. >出售</option>
  26. </select>
  27. <select style="width: 120px; float: left; margin-right: 10px;" name="status" class="form-control">
  28. <option value=""
  29. <empty name="Think.get.status">selected</empty>
  30. >交易状态</option>
  31. <option value="1"
  32. <eq name="Think.get.status" value="1">selected</eq>
  33. >委托中</option>
  34. <option value="2"
  35. <eq name="Think.get.status" value="2">selected</eq>
  36. >已完成</option>
  37. <eq name="Think.get.status" value="3">selected</eq>
  38. >已撤消</option>
  39. </select>
  40. <input type="text" name="username" class="search-input form-control" value="" placeholder="请输入用户名" />
  41. <a class="sch-btn" href="javascript:;" id="search"> <i class="btn-search"></i> </a>
  42. </form>
  43. <script>
  44. //搜索功能
  45. $(function () {
  46. $('#search').click(function () {
  47. $('#formSearch').submit();
  48. });
  49. });
  50. //回车搜索
  51. $(".search-input").keyup(function (e) {
  52. if (e.keyCode === 13) {
  53. $("#search").click();
  54. return false;
  55. }
  56. });
  57. </script>
  58. </div>
  59. </div>
  60. </div>
  61. <div class="data-table table-striped">
  62. <table class="">
  63. <thead>
  64. <tr>
  65. <th class="">ID</th>
  66. <th class="">会员账号</th>
  67. <th class="">交易对</th>
  68. <th class="">方向</th>
  69. <th class="">状态</th>
  70. <th class="">委托额度</th>
  71. <th class="">USDT额度</th>
  72. <th class="">交易限价</th>
  73. <th class="">交易价格</th>
  74. <th class="">委托时间</th>
  75. <th class="">交易时间</th>
  76. <th class="">手续费比例</th>
  77. </tr>
  78. </thead>
  79. <tbody>
  80. <notempty name="list">
  81. <volist name="list" id="vo">
  82. <tr>
  83. <td>{$vo.id}</td>
  84. <td>{$vo.account}</td>
  85. <td>{$vo.symbol}</td>
  86. <td>
  87. <if condition="$vo.type eq 1">
  88. <span style="color:#0ecb81;">购买</span>
  89. <elseif condition="$vo.type eq 2" />
  90. <span style="color:#f5465c;">出售</span>
  91. </if>
  92. </td>
  93. <td>
  94. <if condition="$vo.status eq 1">
  95. <span style="color:#707A8A;">委托中</span>
  96. <elseif condition="$vo.status eq 2" />
  97. <span style="color:#0ecb81;">已交易</span>
  98. <elseif condition="$vo.status eq 3" />
  99. <span style="color:#f5465c;">已撤消</span>
  100. </if>
  101. </td>
  102. <td>{$vo.coinnum}</td>
  103. <td>{$vo.usdtnum}</td>
  104. <td>{$vo.xjprice}</td>
  105. <td>{$vo.price}</td>
  106. <td>{$vo.addtime}</td>
  107. <td>{$vo.tradetime}</td>
  108. <td><?php echo ($vo['sxfbl'] / 100);?>%</td>
  109. </tr>
  110. </volist>
  111. <else/>
  112. <td colspan="12" class="text-center empty-info">
  113. <i class="glyphicon glyphicon-exclamation-sign"></i>暂无数据
  114. </td>
  115. </notempty>
  116. </tbody>
  117. </table>
  118. <div class="page">
  119. <div>{$page}</div>
  120. </div>
  121. </div>
  122. </div>
  123. </div>
  124. <script type="text/javascript">
  125. function setwinloss(id){
  126. var id = id;
  127. var kongyk = $("#kongyk").val();
  128. $.post("{:U('Trade/setwinloss')}",
  129. {'id':id,'kongyk':kongyk},
  130. function(data){
  131. if(data.code == 1){
  132. alert(data.info);
  133. setTimeout(function(){
  134. window.location.reload();
  135. },2000);
  136. }else{
  137. alert(data.info);
  138. setTimeout(function(){
  139. window.location.reload();
  140. },2000);
  141. }
  142. });
  143. }
  144. </script>
  145. <include file="Public:footer"/>
  146. <block name="script">
  147. <script type="text/javascript" charset="utf-8">
  148. //导航高亮
  149. highlight_subnav("{:U('Trade/bbxjlist')}");
  150. </script>
  151. </block>