kjshare.html 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277
  1. <!DOCTYPE html>
  2. <html lang="zh-CN">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1">
  6. <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
  7. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.5.0/dist/css/bootstrap.min.css" integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous">
  8. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.3.0/font/bootstrap-icons.css">
  9. <link rel="stylesheet" type="text/css" href="/Public/Static/css/base2.css" />
  10. <link rel="stylesheet" type="text/css" href="/Public/Static/css/nologed.css" />
  11. <link rel="stylesheet" href="/Public/Static/Icoinfont/iconfont.css">
  12. <script src="/Public/Static/Icoinfont/iconfont.js"></script>
  13. <title>{$webname}</title>
  14. <style>
  15. ::-webkit-input-placeholder {color: #b5b5b5;font-size: 12px;}
  16. ::-moz-placeholder {color: #b5b5b5;font-size: 12px;}
  17. input:focus{background:#ebecf0;outline: 1px solid #ebecf0;}
  18. a:hover,a:link,a:visited,a:active{color:#707A8A;text-decoration:none;}
  19. .no_header{position: fixed;z-index: 9999;background:#fff;padding:0px 10px;top:0px;box-shadow: 0 2px 10px 0 rgb(0 0 0 / 10%);}
  20. .txtl{line-height:50px;width:10%;}
  21. .oplist{width:100%;height:50px;background:#000;padding:0px 15px;}
  22. .listbox{width:30px;height:50px;line-height:50px;float:left;}
  23. .emptybox{width:30px;height:50px;float:left;}
  24. .hsborder{border-bottom:3px solid #FCD535;}
  25. .btmbox{width:100%;height:60px;background:#f5f5f5;}
  26. .orebox{width:100%;margin:0px auto;background:#fff;margin-bottom:20px;box-shadow: 0 2px 10px 0 rgb(0 0 0 / 10%);padding: 10px;}
  27. .progress-bar{color: #000;background-color: #f3c420;}
  28. .progress{height:0.9rem;background-color: #f5f5f5;border-radius: .5rem;}
  29. .obbox{width:33.33%;height:80px;float:left;}
  30. .obbox_h{width:100%;height:40px;line-height:40px;}
  31. .bm20{margin-bottom:2px;}
  32. .infobox{width:100%;background:#fff;border-top:1px solid #f5f5f5;}
  33. .infobox_1{width:100%;min-height:36px;padding:5px 0px;}
  34. .infobox_1l{width:30%;height:26px;line-height:26px;float:left;}
  35. .infobox_1r{width:70%;height:26px;line-height:26px;float:right;}
  36. .festyle{width:80px;height:30px;line-height:30px;text-align:center;border-radius:5px;float:left;}
  37. .feactive{border:1px solid #FCD535;}
  38. .fenc{border:1px solid #707A8A;}
  39. .copyurl{background: linear-gradient(to left,#eeb80d,#ffe35b);padding:5px 10px;border-radius:5px;}
  40. .buybtn{width:100%;height:40px;line-height:40px;background: linear-gradient(to left,#eeb80d,#ffe35b);margin-top:20px;text-align:center;border-radius:5px;}
  41. </style>
  42. </head>
  43. <body>
  44. <div class="container-fluid " style="padding:0px;width:100vw;">
  45. <div class="no_header">
  46. <div class="fl allhg txtl">
  47. <i class="bi bi-arrow-left fcc fw" onclick="goback()" style="font-size: 24px;"></i>
  48. </div>
  49. <div class="fl allhg" id="centerbox" style="width:80%;text-align:center;line-height:50px;">
  50. <span class="fcc fzmmm">{:L('矿机详情')}</span>
  51. </div>
  52. <div class="fr allhg txtr" style="line-height:50px;width:10%;">
  53. </div>
  54. </div>
  55. <div id="zlbox" style="width:100%;height:500px;background:#f5f5f5;padding:10px 0px;margin-top:50px;">
  56. <div class="orebox">
  57. <div style="width:100%;height:120px;">
  58. <div style="width:30%;height:120px;line-height: 120px;float:left;text-align: center;">
  59. <img src="/Upload/public/{$info.imgs}" style="width:100%;"/>
  60. </div>
  61. <div style="width:70%;height:120px;float:left;padding:5px;">
  62. <p class="fzmmm fcc fw">{$info.title}</p>
  63. <p class="fzmm fcc">{:L('上市时间')}:{$info.addtime}</p>
  64. <p class="fzmm fcc">{:L('产出币种')}:<?php echo strtoupper($info['outcoin']);?></p>
  65. </div>
  66. </div>
  67. <div style="width:100%;">
  68. <div class="progress">
  69. <div class="progress-bar" role="progressbar" style="width:<?php echo $info['ycnum'] / $info['allnum'] * 100;?>%;" aria-valuenow="<?php echo $info['ycnum'] / $info['allnum'] * 100;?>" aria-valuemin="0" aria-valuemax="100"><?php echo $info['ycnum'] / $info['allnum'] * 100;?>%</div>
  70. </div>
  71. </div>
  72. <div style="width:100%;height:80px;margin-top:15px;padding:0px 15px;">
  73. <div class="obbox" style="width:40%;">
  74. <div class="obbox_h">
  75. <span class="fzmm fcc">{:L('矿机单价')}</span>
  76. </div>
  77. <div class="obbox_h">
  78. <span class="fzmm fcc">{$info.pricenum} <?php echo strtoupper($info['pricecoin']);?></span>
  79. </div>
  80. </div>
  81. <div class="obbox" style="width:30%;">
  82. <div class="obbox_h" style="text-align:center;">
  83. <span class="fzmm fcc">{:L('矿机产权')}</span>
  84. </div>
  85. <div class="obbox_h" style="text-align:center;">
  86. <span class="fzmm fcc">{$info.cycle} {:L('天')}</span>
  87. </div>
  88. </div>
  89. <div class="obbox" style="width:30%;">
  90. <div class="obbox_h" style="text-align:right;">
  91. <span class="fzmm fcc">{:L('矿机类型')}</span>
  92. </div>
  93. <div class="obbox_h" style="text-align:right;">
  94. <if condition="$info.type eq 1">
  95. <span class="fzmmm fcy" style="font-weight:bold;">{:L('独资机型')}</span>
  96. <elseif condition="$info.type eq 2" />
  97. <span class="fzmmm fcy" style="font-weight:bold;">{:L('共享机型')}</span>
  98. </if>
  99. </div>
  100. </div>
  101. </div>
  102. <div class="infobox">
  103. <div style="width:100%;height:10px;"></div>
  104. <div class="infobox_1">
  105. <div class="infobox_1l">
  106. <span class="fzmm fcc">{:L('产出说明')}:</span>
  107. </div>
  108. <div class="infobox_1r">
  109. <if condition="$info.outtype eq 1">
  110. <span class="fzmm fcc">{:L('按产值')}:{$info.dayoutnum}USDT</span>
  111. <elseif condition="$info.outtype eq 2" />
  112. <span class="fzmm fcc">{:L('按币量,产出:')}{$info.dayoutnum} <?php echo strtoupper($info['outcoin']);?></span>
  113. </if>
  114. </div>
  115. </div>
  116. <div style="width:100%;min-height:60px;padding:10px 0px;">
  117. <div style="width:30%;height:60px;float:left;">
  118. <span class="fzmm fcc">{:L('矿机说明')}:</span>
  119. </div>
  120. <div style="width:70%;height:60px;float:right;">
  121. <span class="fzmm fcc">{$info.content} </span>
  122. </div>
  123. </div>
  124. <div class="infobox_1">
  125. <div class="infobox_1l">
  126. <span class="fzmm fcc">{:L('结算说明')}:</span>
  127. </div>
  128. <div class="infobox_1r">
  129. <span class="fzmm fcc">{:L('定期自动结算')}</span>
  130. </if>
  131. </div>
  132. </div>
  133. <if condition="$info.type eq 2">
  134. <div class="infobox_1">
  135. <div class="infobox_1l">
  136. <span class="fzmm fcc">{:L('剩余份额')}:</span>
  137. </div>
  138. <div class="infobox_1r">
  139. <div class="festyle feactive">
  140. <input type="hidden" id="fe1box" value="{$fe}" />
  141. <span class="fzmm fcy" id="fe1span">{$fe}%</span>
  142. </div>
  143. </div>
  144. </div>
  145. </if>
  146. <input type="hidden" value="{$fe}" id="cfebox" />
  147. <input type="hidden" value="{$info.id}" id="kjid" />
  148. <input type="hidden" value="{$sharbltxt}" id="sharbltxt" />
  149. <div class="buybtn" onclick="gxbuynow({$info.id});">
  150. <span class="fzmm fch">{:L('购买')}</span>
  151. </div>
  152. </div>
  153. </div>
  154. <div class="btmbox"></div>
  155. </div>
  156. </div>
  157. <!--底部-->
  158. <div class="footer">
  159. <a href="{:U('Index/index')}">
  160. <div class="footer_op">
  161. <div class="f_op_t">
  162. <span class="iconfont icon-shouye" style="font-size:22px;"></span>
  163. </div>
  164. <div class="f_op_b">
  165. <span class="fzm fcc">{:L('首页')}</span>
  166. </div>
  167. </div>
  168. </a>
  169. <a href="{:U('Trade/index')}">
  170. <div class="footer_op">
  171. <div class="f_op_t" style="line-height:35px;">
  172. <span class="iconfont icon-fukuan" style="font-size:22px;"></span>
  173. </div>
  174. <div class="f_op_b">
  175. <span class="fzm fcc">{:L('交易')}</span>
  176. </div>
  177. </div>
  178. </a>
  179. <a href="{:U('Orepool/index')}">
  180. <div class="footer_op">
  181. <div class="f_op_t" style="line-height:35px;">
  182. <svg class="icon fticon" aria-hidden="true"><use xlink:href="#icon-ziyuan14"></use></svg>
  183. </div>
  184. <div class="f_op_b">
  185. <span class="fzm fcy">{:L('矿机')}</span>
  186. </div>
  187. </div>
  188. </a>
  189. <a href="{:U('Levertade/index')}">
  190. <div class="footer_op">
  191. <div class="f_op_t" style="line-height:35px;">
  192. <span class="iconfont icon-xuanxiang" style="font-size:22px;"></span>
  193. </div>
  194. <div class="f_op_b">
  195. <span class="fzm fcc">{:L('合约')}</span>
  196. </div>
  197. </div>
  198. </a>
  199. <a href="{:U('User/index')}">
  200. <div class="footer_op">
  201. <div class="f_op_t" style="line-height:35px;">
  202. <span class="iconfont icon-ziyuan24" style="font-size:22px;"></span>
  203. </div>
  204. <div class="f_op_b">
  205. <span class="fzm fcc">{:L('资产')}</span>
  206. </div>
  207. </div>
  208. </a>
  209. </div>
  210. </body>
  211. <script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
  212. <script type="text/javascript" src="/Public/Static/js/layer/layer.js" ></script>
  213. <script type="text/javascript">
  214. function gxbuynow(id){
  215. var kid = id;
  216. if(kid <= 0 || kid == null){
  217. layer.msg("{:L('缺少重要参数')}");return false;
  218. }
  219. var gxfe = $("#cfebox").val();
  220. if(gxfe <= 0 || gxfe == null){
  221. layer.msg("{:L('请选择份额')}");return false;
  222. }
  223. var sharbltxt = $("#sharbltxt").val();
  224. if(sharbltxt <= 0 || sharbltxt == null){
  225. layer.msg("{:L('缺少重要参数')}");return false;
  226. }
  227. $.post("{:U('Orepool/buygxmining')}",
  228. {'kid':kid,'gxfe':gxfe,'st':8 , 'sharbltxt':sharbltxt},
  229. function(data){
  230. if(data.code == 1){
  231. layer.msg(data.msg);
  232. setTimeout(function(){
  233. window.location.href="{:U('Orepool/index')}";
  234. },2000);
  235. }else{
  236. layer.msg(data.msg);
  237. setTimeout(function(){
  238. window.location.reload();
  239. },2000);
  240. }
  241. });
  242. }
  243. </script>
  244. <script type="text/javascript">
  245. function goback(){
  246. window.history.go(-1);
  247. }
  248. </script>
  249. </html>