kjinfo.html 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493
  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:40px;}
  34. .infobox_1l{width:30%;float:left;}
  35. .infobox_1r{width:70%;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:30px;text-align:center;border-radius:5px;}
  41. .dongbox{position:fixed;z-index:9999999999;display:none;top:0px;width:100%;height:100vh;background:rgba(0,0,0,0.2);}
  42. </style>
  43. </head>
  44. <body>
  45. <div class="container-fluid " style="padding:0px;width:100vw;">
  46. <div class="no_header">
  47. <div class="fl allhg txtl">
  48. <i class="bi bi-arrow-left fcc fw" onclick="goback()" style="font-size: 24px;"></i>
  49. </div>
  50. <div class="fl allhg" id="centerbox" style="width:80%;text-align:center;line-height:50px;">
  51. <span class="fcc fzmmm">{:L('矿机详情')}</span>
  52. </div>
  53. <div class="fr allhg txtr" style="line-height:50px;width:10%;">
  54. </div>
  55. </div>
  56. <div id="zlbox" style="width:100%;height:500px;background:#f5f5f5;padding:10px 0px;margin-top:50px;">
  57. <div class="orebox">
  58. <div style="width:100%;height:120px;">
  59. <!-- <div style="width:30%;height:120px;line-height: 120px;float:left;text-align: center;">
  60. <img src="/Upload/public/{$info.imgs}" style="width:100%;"/>
  61. </div>-->
  62. <div style="width:70%;height:120px;float:left;padding:5px;">
  63. <p class="fzmmm fcc fw">{$info.title}</p>
  64. <!-- <p class="fzmm fcc">{:L('上市时间')}:{$info.addtime}</p>-->
  65. <p class="fzmm fcc">{:L('产出币种')}:<?php echo strtoupper($info['outcoin']);?></p>
  66. </div>
  67. </div>
  68. <div style="width:100%;">
  69. <div class="progress">
  70. <div class="progress-bar" role="progressbar" style="width:<?php echo ($info['ycnum'] + $info['sellnum']) / $info['allnum'] * 100;?>%;" aria-valuenow="<?php echo ($info['ycnum'] + $info['sellnum']) / $info['allnum'] * 100;?>" aria-valuemin="0" aria-valuemax="100"><?php echo ($info['ycnum'] + $info['sellnum']) / $info['allnum'] * 100;?>%</div>
  71. </div>
  72. </div>
  73. <div style="width:100%;height:80px;margin-top:15px;padding:0px 15px;">
  74. <div class="obbox" style="width:40%;">
  75. <div class="obbox_h">
  76. <span class="fzmm fcc">{:L('单笔限额')}</span>
  77. </div>
  78. <div class="obbox_h">
  79. <span class="fzmm fcc">{$info.di}&nbsp;~&nbsp;{$info.gao}</span>
  80. </div>
  81. </div>
  82. <div class="obbox" style="width:40%;">
  83. <div class="obbox_h" style="text-align:left;">
  84. <span class="fzmm fcc">{:L('日收益率')}</span>
  85. </div>
  86. <div class="obbox_h" style="text-align:left;">
  87. <span class="fzmm fcc"><!--<?php echo $info['dayoutnum'] / $info['pricenum'] * 100 ?> ~ --><?php echo $info['dayoutnum'] /$info['pricenum'] * 100+ 0.01 ?> %</span>
  88. </div>
  89. </div>
  90. <div class="obbox" style="width:20%;">
  91. <div class="obbox_h" style="text-align:center;">
  92. <span class="fzmm fcc">{:L('周期')}</span>
  93. </div>
  94. <div class="obbox_h" style="text-align:center;">
  95. <span class="fzmm fcc" style="font-weight:bold;">{$info.cycle} {:L('天')}</span>
  96. </div>
  97. </div>
  98. </div>
  99. <div class="infobox">
  100. <div style="width:100%;height:10px;"></div>
  101. <div class="infobox_1">
  102. <div class="infobox_1l">
  103. <span class="fzmm fcc">{:L('产出说明')}:</span>
  104. </div>
  105. <div class="infobox_1r">
  106. <if condition="$info.outtype eq 1">
  107. <span class="fzmm fcc">{:L('按产值')}:{$info.dayoutnum}USDT</span>
  108. <elseif condition="$info.outtype eq 2" />
  109. <span class="fzmm fcc">{:L('按币量')}:{$info.dayoutnum} <?php echo strtoupper($info['outcoin']);?></span>
  110. </if>
  111. </div>
  112. </div>
  113. <div style="width:100%;min-height:60px;padding:10px 0px;">
  114. <div style="width:30%;height:60px;float:left;">
  115. <span class="fzmm fcc">{:L('矿机说明')}:</span>
  116. </div>
  117. <div style="width:70%;height:60px;float:right;">
  118. <span class="fzmm fcc">{$info.content} </span>
  119. </div>
  120. </div>
  121. <if condition="$info.buyask eq 1">
  122. <div class="infobox_1">
  123. <div class="infobox_1l">
  124. <span class="fzmm fcc">{:L('购买条件')}:</span>
  125. </div>
  126. <div class="infobox_1r">
  127. <span class="fzmm fcc">{:L('最低持仓')}:{$info.asknum}{:L('平台币')}</span>
  128. </div>
  129. </div>
  130. <elseif condition="$info.buyask eq 2" />
  131. <div class="infobox_1">
  132. <div class="infobox_1l">
  133. <span class="fzmm fcc">{:L('购买条件')}:</span>
  134. </div>
  135. <div class="infobox_1r">
  136. <span class="fzmm fcc">{:L('要求直推')}{$info.asknum}{:L('人')}</span>
  137. </div>
  138. </div>
  139. </if>
  140. <if condition="$info.djout eq 1">
  141. <div class="infobox_1">
  142. <div class="infobox_1l">
  143. <span class="fzmm fcc">{:L('产币冻结')}:</span>
  144. </div>
  145. <div class="infobox_1r">
  146. <span class="fzmm fcc">{:L('否')}</span>
  147. </div>
  148. </div>
  149. <elseif condition="$info.djout eq 2" />
  150. <div class="infobox_1">
  151. <div class="infobox_1l">
  152. <span class="fzmm fcc">{:L('产币冻结')}:</span>
  153. </div>
  154. <div class="infobox_1r">
  155. <span class="fzmm fcc">{$info.djday}{:L('天')}</span>
  156. </div>
  157. </div>
  158. </if>
  159. <div class="infobox_1">
  160. <div class="infobox_1l">
  161. <span class="fzmm fcc">{:L('结算说明')}:</span>
  162. </div>
  163. <div class="infobox_1r">
  164. <span class="fzmm fcc">{:L('定期自动结算')}</span>
  165. </if>
  166. </div>
  167. </div>
  168. <if condition="$info.type eq 2">
  169. <div class="infobox_1">
  170. <div class="infobox_1l">
  171. <span class="fzmm fcc">{:L('选择份额')}:</span>
  172. </div>
  173. <div class="infobox_1r">
  174. <div class="festyle feactive" id="fe1btn">
  175. <input type="hidden" id="fe1box" value="{$info.fe1}" />
  176. <span class="fzmm fcy" id="fe1span">{$info.fe1}%</span>
  177. </div>
  178. <div class="festyle fenc" style="margin-left:15px;" id="fe2btn">
  179. <input type="hidden" id="fe2box" value="{$info.fe2}" />
  180. <span class="fzmm fcc" id="fe2span">{$info.fe2}%</span>
  181. </div>
  182. </div>
  183. </div>
  184. <div class="infobox_1">
  185. <div class="infobox_1l">
  186. <span class="fzmm fcc">{:L('共享链接')}:</span>
  187. </div>
  188. <div class="infobox_1r">
  189. <div style="width:70%;float:left;">
  190. <span class="fzmm fcc">{:L('修改份额后需重新复制链接')}</span>
  191. </div>
  192. <input type="hidden" value="" id="qrcode_url">
  193. <div style="width:20%;float:left;">
  194. <span class="copyurl" onclick="copyUrl()">{:L('复制')}</span>
  195. </div>
  196. </div>
  197. </div>
  198. </if>
  199. <div class="infobox_1">
  200. <input type="text" id="ordernum" placeholder="{:L('请输入购买数量')}-USDT" style="width:98%;margin:auto;height:35px;line-height:35px;background:#f5f5f5;padding-left:15px;border:none;margin-top:2px;">
  201. </div>
  202. </if>
  203. <input type="hidden" value="{$info.fe1}" id="cfebox" />
  204. <input type="hidden" value="{$info.id}" id="kjid" />
  205. <input type="hidden" id="flag" value="1" />
  206. <input type="hidden" id="sharbltxt" var="" />
  207. <if condition="$uid elt 0">
  208. <div class="buybtn">
  209. <span class="fzmm fch">{:L('请先登陆')}</span>
  210. </div>
  211. <else />
  212. <if condition="$info.type eq 1">
  213. <div class="buybtn" onclick="dzbuynow({$info.id},{$info.di},{$info.gao});">
  214. <span class="fzmm fch">{:L('购买')}</span>
  215. </div>
  216. <elseif condition="$info.type eq 2" />
  217. <div class="buybtn" onclick="gxbuynow({$info.id});">
  218. <span class="fzmm fch">{:L('购买')}</span>
  219. </div>
  220. </if>
  221. </if>
  222. </div>
  223. </div>
  224. <div class="btmbox"></div>
  225. </div>
  226. </div>
  227. <div class="dongbox" id="gotaxbox" style="display:none;">
  228. <div style="width:300px;height:260px;background:#fff;margin:50% auto;border-radius:10px;padding:15px;">
  229. <div style="width:100%;height:100px;line-height:100px;text-align:center;">
  230. <i class="bi bi-exclamation-circle" style="font-size:56px;font-weight:bold;color:#f5465c;"></i>
  231. </div>
  232. <div style="width:100%;height:60px;text-align:center;color:#000;font-size:14px;">
  233. {:L('请先缴纳税金')}
  234. </div>
  235. <div style="width:100%;height:60px;">
  236. <a href="{:U('User/cztax')}">
  237. <div style="width:45%;height:36px;line-height:36px;text-align:center;float:left;font-size:14px;color:#fff;background:#0ecb81;border-radius:10px;">{:L('缴税')}</div></a>
  238. <div onclick="hidetaxbox()" style="width:45%;height:36px;line-height:36px;text-align:center;float:right;font-size:14px;color:#fff;background:#f5465c;border-radius:10px;">{:L('取消')}</div>
  239. </div>
  240. </div>
  241. </div>
  242. <!--底部-->
  243. <div class="footer">
  244. <a href="{:U('Index/index')}">
  245. <div class="footer_op">
  246. <div class="f_op_t">
  247. <span class="iconfont icon-shouye" style="font-size:22px;"></span>
  248. </div>
  249. <div class="f_op_b">
  250. <span class="fzm fcc">{:L('首页')}</span>
  251. </div>
  252. </div>
  253. </a>
  254. <a href="{:U('Trade/index')}">
  255. <div class="footer_op">
  256. <div class="f_op_t" style="line-height:35px;">
  257. <span class="iconfont icon-fukuan" style="font-size:22px;"></span>
  258. </div>
  259. <div class="f_op_b">
  260. <span class="fzm fcc">{:L('交易')}</span>
  261. </div>
  262. </div>
  263. </a>
  264. <a href="{:U('Orepool/index')}">
  265. <div class="footer_op">
  266. <div class="f_op_t" style="line-height:35px;">
  267. <svg class="icon fticon" aria-hidden="true"><use xlink:href="#icon-ziyuan14"></use></svg>
  268. </div>
  269. <div class="f_op_b">
  270. <span class="fzm fcy">{:L('矿机')}</span>
  271. </div>
  272. </div>
  273. </a>
  274. <a href="{:U('Levertade/index')}">
  275. <div class="footer_op">
  276. <div class="f_op_t" style="line-height:35px;">
  277. <span class="iconfont icon-xuanxiang" style="font-size:22px;"></span>
  278. </div>
  279. <div class="f_op_b">
  280. <span class="fzm fcc">{:L('合约')}</span>
  281. </div>
  282. </div>
  283. </a>
  284. <a href="{:U('User/index')}">
  285. <div class="footer_op">
  286. <div class="f_op_t" style="line-height:35px;">
  287. <span class="iconfont icon-ziyuan24" style="font-size:22px;"></span>
  288. </div>
  289. <div class="f_op_b">
  290. <span class="fzm fcc">{:L('资产')}</span>
  291. </div>
  292. </div>
  293. </a>
  294. </div>
  295. </body>
  296. <script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
  297. <script type="text/javascript" src="/Public/Static/js/layer/layer.js" ></script>
  298. <script type="text/javascript">
  299. $(function(){
  300. var fetxt2 = $("#fe2box").val();
  301. var oid = $("#kjid").val();
  302. var domain = "http://" + window.location.host + "/Orepool/kjshare?oid="+ oid +"&fe=" + fetxt2;
  303. $("#qrcode_url").val(domain);
  304. });
  305. </script>
  306. <script type="text/javascript">
  307. function hidetaxbox(){
  308. $("#gotaxbox").hide();
  309. }
  310. function gxbuynow(id){
  311. var flag = $("#flag").val();
  312. if(flag == 2){
  313. return false;
  314. }
  315. var kid = id;
  316. if(kid <= 0 || kid == null){
  317. layer.msg("{:L('缺少重要参数')}");return false;
  318. }
  319. var gxfe = $("#cfebox").val();
  320. if(gxfe <= 0 || gxfe == null){
  321. layer.msg("{:L('请选择份额')}");return false;
  322. }
  323. var sharbltxt = $("#sharbltxt").val();
  324. if(sharbltxt <= 0 || sharbltxt == null){
  325. layer.msg("{:L('缺少重要参数')}");return false;
  326. }
  327. $("#flag").val(2);
  328. $.post("{:U('Orepool/buygxmining')}",
  329. {'kid':kid,'gxfe':gxfe,'st':8,"sharbltxt":sharbltxt},
  330. function(data){
  331. if(data.code == 1){
  332. layer.msg(data.msg);
  333. setTimeout(function(){
  334. window.location.href="{:U('Orepool/index')}";
  335. },2000);
  336. }else if(data.code == 3){
  337. $("#gotaxbox").show();
  338. }else{
  339. layer.msg(data.msg);
  340. setTimeout(function(){
  341. window.location.reload();
  342. },2000);
  343. }
  344. });
  345. }
  346. </script>
  347. <script type="text/javascript">
  348. function dzbuynow(id,di,gao){
  349. var flag = $("#flag").val();
  350. var ordernum = $("#ordernum").val();
  351. if(ordernum <= 0 || ordernum == null){
  352. layer.msg("{:L('请输入购买数量')}");return false;
  353. }
  354. if(ordernum < di || ordernum > gao){
  355. layer.msg("{:L('购买数量超过限制')}");return false;
  356. }
  357. if(flag == 2){
  358. return false;
  359. }
  360. var kid = id;
  361. if(kid <= 0 || kid == null){
  362. layer.msg("{:L('缺少重要参数')}");return false;
  363. }
  364. $("#flag").val(2);
  365. $.post("{:U('Orepool/buydzmining')}",
  366. {'kid':kid,'st':7 , 'ordernum':ordernum},
  367. function(data){
  368. if(data.code == 1){
  369. layer.msg(data.msg);
  370. setTimeout(function(){
  371. window.location.href="{:U('Orepool/index')}";
  372. },2000);
  373. }else if(data.code == 3){
  374. $("#gotaxbox").show();
  375. }else{
  376. layer.msg(data.msg);
  377. setTimeout(function(){
  378. window.location.reload();
  379. },2000);
  380. }
  381. });
  382. }
  383. </script>
  384. <script type="text/javascript">
  385. function createRand(){
  386. var x = 100000;
  387. var y = 1;
  388. var randnum = parseInt(Math.random() * (x - y + 1) + y);
  389. return randnum;
  390. }
  391. $("#fe1btn").click(function(){
  392. $("#fe1btn").addClass("feactive");
  393. $("#fe1btn").removeClass("fenc");
  394. $("#fe1span").addClass("fcy");
  395. $("#fe1span").removeClass("fcc");
  396. $("#fe2btn").removeClass("feactive");
  397. $("#fe2btn").addClass("fenc");
  398. $("#fe2span").removeClass("fcy");
  399. $("#fe2span").addClass("fcc");
  400. var fetxt1 = $("#fe1box").val();
  401. var fetxt2 = $("#fe2box").val();
  402. var oid = $("#kjid").val();
  403. $("#cfebox").val(fetxt1);
  404. var randnum = createRand();
  405. $("#sharbltxt").val(randnum);
  406. var domain = "https://" + window.location.host + "/Orepool/kjshare?oid="+ oid +"&fe="+fetxt2 + "&sharbltxt=" + randnum;
  407. $("#qrcode_url").val(domain);
  408. });
  409. $("#fe2btn").click(function(){
  410. $("#fe2btn").addClass("feactive");
  411. $("#fe2btn").removeClass("fenc");
  412. $("#fe2span").addClass("fcy");
  413. $("#fe2span").removeClass("fcc");
  414. $("#fe1btn").removeClass("feactive");
  415. $("#fe1btn").addClass("fenc");
  416. $("#fe1span").removeClass("fcy");
  417. $("#fe1span").addClass("fcc");
  418. var fetxt1 = $("#fe1box").val();
  419. var fetxt2 = $("#fe2box").val();
  420. var oid = $("#kjid").val();
  421. $("#cfebox").val(fetxt2);
  422. var randnum = createRand();
  423. $("#sharbltxt").val(randnum);
  424. var domain = "https://" + window.location.host + "/Orepool/kjshare?oid="+ oid +"&fe="+fetxt1 + "&sharbltxt=" + randnum;
  425. $("#qrcode_url").val(domain);
  426. });
  427. </script>
  428. <script type="text/javascript">
  429. function copyUrl(){
  430. var qrcode_url=$("#qrcode_url").val();
  431. copy(qrcode_url);
  432. }
  433. function copy(message) {
  434. var input = document.createElement("input");
  435. input.value = message;
  436. document.body.appendChild(input);
  437. input.select();
  438. input.setSelectionRange(0, input.value.length), document.execCommand('Copy');
  439. document.body.removeChild(input);
  440. layer.msg("{:L('复制成功')}");
  441. }
  442. </script>
  443. <script type="text/javascript">
  444. function goback(){
  445. window.history.go(-1);
  446. }
  447. </script>
  448. </html>