7a5852e46662e99b2c4040d99fb3cae5.php 19 KB

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