123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478 |
- <?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
- <html lang="zh-CN">
- <head>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.5.0/dist/css/bootstrap.min.css" integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous">
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.3.0/font/bootstrap-icons.css">
- <link rel="stylesheet" type="text/css" href="/Public/Static/css/base2.css" />
- <link rel="stylesheet" type="text/css" href="/Public/Static/css/nologed.css" />
- <link rel="stylesheet" href="/Public/Static/Icoinfont/iconfont.css">
- <script src="/Public/Static/Icoinfont/iconfont.js"></script>
- <title><?php echo ($webname); ?></title>
- <style>
- ::-webkit-input-placeholder {color: #b5b5b5;font-size: 12px;}
- ::-moz-placeholder {color: #b5b5b5;font-size: 12px;}
- input:focus{background:#ebecf0;outline: 1px solid #ebecf0;}
- a:hover,a:link,a:visited,a:active{color:#707A8A;text-decoration:none;}
- .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%);}
- .txtl{line-height:50px;width:10%;}
- .oplist{width:100%;height:50px;background:#000;padding:0px 15px;}
- .listbox{width:30px;height:50px;line-height:50px;float:left;}
- .emptybox{width:30px;height:50px;float:left;}
- .hsborder{border-bottom:3px solid #FCD535;}
- .btmbox{width:100%;height:60px;background:#f5f5f5;}
- .orebox{width:100%;margin:0px auto;background:#fff;margin-bottom:20px;box-shadow: 0 2px 10px 0 rgb(0 0 0 / 10%);padding: 10px;}
- .progress-bar{color: #000;background-color: #f3c420;}
- .progress{height:0.9rem;background-color: #f5f5f5;border-radius: .5rem;}
- .obbox{width:33.33%;height:80px;float:left;}
- .obbox_h{width:100%;height:40px;line-height:40px;}
- .bm20{margin-bottom:2px;}
- .infobox{width:100%;background:#fff;border-top:1px solid #f5f5f5;}
- .infobox_1{width:100%;min-height:40px;}
- .infobox_1l{width:30%;float:left;}
- .infobox_1r{width:70%;float:right;}
- .festyle{width:80px;height:30px;line-height:30px;text-align:center;border-radius:5px;float:left;}
- .feactive{border:1px solid #FCD535;}
- .fenc{border:1px solid #707A8A;}
- .copyurl{background: linear-gradient(to left,#eeb80d,#ffe35b);padding:5px 10px;border-radius:5px;}
- .buybtn{width:100%;height:40px;line-height:40px;background: linear-gradient(to left,#eeb80d,#ffe35b);margin-top:30px;text-align:center;border-radius:5px;}
- .dongbox{position:fixed;z-index:9999999999;display:none;top:0px;width:100%;height:100vh;background:rgba(0,0,0,0.2);}
- </style>
- </head>
- <body>
- <div class="container-fluid " style="padding:0px;width:100vw;">
- <div class="no_header">
- <div class="fl allhg txtl">
- <i class="bi bi-arrow-left fcc fw" onclick="goback()" style="font-size: 24px;"></i>
- </div>
- <div class="fl allhg" id="centerbox" style="width:80%;text-align:center;line-height:50px;">
- <span class="fcc fzmmm"><?php echo L('矿机详情');?></span>
- </div>
- <div class="fr allhg txtr" style="line-height:50px;width:10%;">
- </div>
- </div>
- <div id="zlbox" style="width:100%;height:500px;background:#f5f5f5;padding:10px 0px;margin-top:50px;">
- <div class="orebox">
- <div style="width:100%;height:120px;">
- <!-- <div style="width:30%;height:120px;line-height: 120px;float:left;text-align: center;">
- <img src="/Upload/public/<?php echo ($info["imgs"]); ?>" style="width:100%;"/>
- </div>-->
- <div style="width:70%;height:120px;float:left;padding:5px;">
- <p class="fzmmm fcc fw"><?php echo ($info["title"]); ?></p>
- <!-- <p class="fzmm fcc"><?php echo L('上市时间');?>:<?php echo ($info["addtime"]); ?></p>-->
- <p class="fzmm fcc"><?php echo L('产出币种');?>:<?php echo strtoupper($info['outcoin']);?></p>
- </div>
- </div>
- <div style="width:100%;">
- <div class="progress">
- <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>
- </div>
- </div>
- <div style="width:100%;height:80px;margin-top:15px;padding:0px 15px;">
- <div class="obbox" style="width:40%;">
- <div class="obbox_h">
- <span class="fzmm fcc"><?php echo L('单笔限额');?></span>
- </div>
- <div class="obbox_h">
- <span class="fzmm fcc"><?php echo ($info["di"]); ?> ~ <?php echo ($info["gao"]); ?></span>
- </div>
- </div>
-
- <div class="obbox" style="width:40%;">
- <div class="obbox_h" style="text-align:left;">
- <span class="fzmm fcc"><?php echo L('日收益率');?></span>
- </div>
- <div class="obbox_h" style="text-align:left;">
- <span class="fzmm fcc"><!--<?php echo $info['dayoutnum'] / $info['pricenum'] * 100 ?> ~ --><?php echo $info['dayoutnum'] /$info['pricenum'] * 100+ 0.01 ?> %</span>
- </div>
- </div>
- <div class="obbox" style="width:20%;">
- <div class="obbox_h" style="text-align:center;">
- <span class="fzmm fcc"><?php echo L('周期');?></span>
- </div>
- <div class="obbox_h" style="text-align:center;">
- <span class="fzmm fcc" style="font-weight:bold;"><?php echo ($info["cycle"]); ?> <?php echo L('天');?></span>
- </div>
- </div>
- </div>
- <div class="infobox">
- <div style="width:100%;height:10px;"></div>
- <div class="infobox_1">
- <div class="infobox_1l">
- <span class="fzmm fcc"><?php echo L('产出说明');?>:</span>
- </div>
- <div class="infobox_1r">
- <?php if($info["outtype"] == 1): ?><span class="fzmm fcc"><?php echo L('按产值');?>:<?php echo ($info["dayoutnum"]); ?>USDT</span>
- <?php elseif($info["outtype"] == 2): ?>
- <span class="fzmm fcc"><?php echo L('按币量');?>:<?php echo ($info["dayoutnum"]); ?> <?php echo strtoupper($info['outcoin']);?></span><?php endif; ?>
- </div>
- </div>
- <div style="width:100%;min-height:60px;padding:10px 0px;">
- <div style="width:30%;height:60px;float:left;">
- <span class="fzmm fcc"><?php echo L('矿机说明');?>:</span>
- </div>
- <div style="width:70%;height:60px;float:right;">
- <span class="fzmm fcc"><?php echo ($info["content"]); ?> </span>
- </div>
- </div>
-
- <?php if($info["buyask"] == 1): ?><div class="infobox_1">
- <div class="infobox_1l">
- <span class="fzmm fcc"><?php echo L('购买条件');?>:</span>
- </div>
- <div class="infobox_1r">
- <span class="fzmm fcc"><?php echo L('最低持仓');?>:<?php echo ($info["asknum"]); echo L('平台币');?></span>
- </div>
- </div>
- <?php elseif($info["buyask"] == 2): ?>
- <div class="infobox_1">
- <div class="infobox_1l">
- <span class="fzmm fcc"><?php echo L('购买条件');?>:</span>
- </div>
- <div class="infobox_1r">
- <span class="fzmm fcc"><?php echo L('要求直推'); echo ($info["asknum"]); echo L('人');?></span>
- </div>
- </div><?php endif; ?>
- <?php if($info["djout"] == 1): ?><div class="infobox_1">
- <div class="infobox_1l">
- <span class="fzmm fcc"><?php echo L('产币冻结');?>:</span>
- </div>
- <div class="infobox_1r">
- <span class="fzmm fcc"><?php echo L('否');?></span>
- </div>
- </div>
- <?php elseif($info["djout"] == 2): ?>
- <div class="infobox_1">
- <div class="infobox_1l">
- <span class="fzmm fcc"><?php echo L('产币冻结');?>:</span>
- </div>
- <div class="infobox_1r">
- <span class="fzmm fcc"><?php echo ($info["djday"]); echo L('天');?></span>
- </div>
- </div><?php endif; ?>
-
- <div class="infobox_1">
- <div class="infobox_1l">
- <span class="fzmm fcc"><?php echo L('结算说明');?>:</span>
- </div>
- <div class="infobox_1r">
- <span class="fzmm fcc"><?php echo L('定期自动结算');?></span>
- </if>
- </div>
- </div>
-
- <?php if($info["type"] == 2): ?><div class="infobox_1">
- <div class="infobox_1l">
- <span class="fzmm fcc"><?php echo L('选择份额');?>:</span>
- </div>
- <div class="infobox_1r">
- <div class="festyle feactive" id="fe1btn">
- <input type="hidden" id="fe1box" value="<?php echo ($info["fe1"]); ?>" />
- <span class="fzmm fcy" id="fe1span"><?php echo ($info["fe1"]); ?>%</span>
- </div>
- <div class="festyle fenc" style="margin-left:15px;" id="fe2btn">
- <input type="hidden" id="fe2box" value="<?php echo ($info["fe2"]); ?>" />
- <span class="fzmm fcc" id="fe2span"><?php echo ($info["fe2"]); ?>%</span>
- </div>
- </div>
- </div>
-
- <div class="infobox_1">
- <div class="infobox_1l">
- <span class="fzmm fcc"><?php echo L('共享链接');?>:</span>
- </div>
- <div class="infobox_1r">
- <div style="width:70%;float:left;">
- <span class="fzmm fcc"><?php echo L('修改份额后需重新复制链接');?></span>
- </div>
-
- <input type="hidden" value="" id="qrcode_url">
- <div style="width:20%;float:left;">
- <span class="copyurl" onclick="copyUrl()"><?php echo L('复制');?></span>
- </div>
- </div>
- </div><?php endif; ?>
- <div class="infobox_1">
- <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;">
- </div>
- </if>
- <input type="hidden" value="<?php echo ($info["fe1"]); ?>" id="cfebox" />
- <input type="hidden" value="<?php echo ($info["id"]); ?>" id="kjid" />
-
- <input type="hidden" id="flag" value="1" />
- <input type="hidden" id="sharbltxt" var="" />
-
- <?php if($uid <= 0): ?><div class="buybtn">
- <span class="fzmm fch"><?php echo L('请先登陆');?></span>
- </div>
- <?php else: ?>
- <?php if($info["type"] == 1): ?><div class="buybtn" onclick="dzbuynow(<?php echo ($info["id"]); ?>,<?php echo ($info["di"]); ?>,<?php echo ($info["gao"]); ?>);">
- <span class="fzmm fch"><?php echo L('购买');?></span>
- </div>
- <?php elseif($info["type"] == 2): ?>
- <div class="buybtn" onclick="gxbuynow(<?php echo ($info["id"]); ?>);">
- <span class="fzmm fch"><?php echo L('购买');?></span>
- </div><?php endif; endif; ?>
-
-
-
- </div>
- </div>
- <div class="btmbox"></div>
- </div>
-
- </div>
-
-
- <div class="dongbox" id="gotaxbox" style="display:none;">
- <div style="width:300px;height:260px;background:#fff;margin:50% auto;border-radius:10px;padding:15px;">
- <div style="width:100%;height:100px;line-height:100px;text-align:center;">
- <i class="bi bi-exclamation-circle" style="font-size:56px;font-weight:bold;color:#f5465c;"></i>
- </div>
- <div style="width:100%;height:60px;text-align:center;color:#000;font-size:14px;">
- <?php echo L('请先缴纳税金');?>
- </div>
- <div style="width:100%;height:60px;">
- <a href="<?php echo U('User/cztax');?>">
- <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>
- <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>
- </div>
- </div>
- </div>
-
- <!--底部-->
- <div class="footer">
- <a href="<?php echo U('Index/index');?>">
- <div class="footer_op">
- <div class="f_op_t">
-
- <span class="iconfont icon-shouye" style="font-size:22px;"></span>
- </div>
- <div class="f_op_b">
- <span class="fzm fcc"><?php echo L('首页');?></span>
- </div>
- </div>
- </a>
- <a href="<?php echo U('Trade/index');?>">
- <div class="footer_op">
- <div class="f_op_t" style="line-height:35px;">
- <span class="iconfont icon-fukuan" style="font-size:22px;"></span>
- </div>
- <div class="f_op_b">
- <span class="fzm fcc"><?php echo L('交易');?></span>
- </div>
- </div>
- </a>
- <a href="<?php echo U('Orepool/index');?>">
- <div class="footer_op">
- <div class="f_op_t" style="line-height:35px;">
- <svg class="icon fticon" aria-hidden="true"><use xlink:href="#icon-ziyuan14"></use></svg>
- </div>
- <div class="f_op_b">
- <span class="fzm fcy"><?php echo L('矿机');?></span>
- </div>
- </div>
- </a>
- <a href="<?php echo U('Levertade/index');?>">
- <div class="footer_op">
- <div class="f_op_t" style="line-height:35px;">
- <span class="iconfont icon-xuanxiang" style="font-size:22px;"></span>
- </div>
- <div class="f_op_b">
- <span class="fzm fcc"><?php echo L('合约');?></span>
- </div>
- </div>
- </a>
-
- <a href="<?php echo U('User/index');?>">
- <div class="footer_op">
- <div class="f_op_t" style="line-height:35px;">
- <span class="iconfont icon-ziyuan24" style="font-size:22px;"></span>
- </div>
- <div class="f_op_b">
- <span class="fzm fcc"><?php echo L('资产');?></span>
- </div>
- </div>
- </a>
- </div>
- </body>
- <script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
- <script type="text/javascript" src="/Public/Static/js/layer/layer.js" ></script>
- <script type="text/javascript">
- $(function(){
- var fetxt2 = $("#fe2box").val();
- var oid = $("#kjid").val();
- var domain = "http://" + window.location.host + "/Orepool/kjshare?oid="+ oid +"&fe=" + fetxt2;
- $("#qrcode_url").val(domain);
- });
- </script>
- <script type="text/javascript">
- function hidetaxbox(){
- $("#gotaxbox").hide();
- }
- function gxbuynow(id){
- var flag = $("#flag").val();
- if(flag == 2){
- return false;
- }
-
- var kid = id;
- if(kid <= 0 || kid == null){
- layer.msg("<?php echo L('缺少重要参数');?>");return false;
- }
- var gxfe = $("#cfebox").val();
- if(gxfe <= 0 || gxfe == null){
- layer.msg("<?php echo L('请选择份额');?>");return false;
- }
- var sharbltxt = $("#sharbltxt").val();
- if(sharbltxt <= 0 || sharbltxt == null){
- layer.msg("<?php echo L('缺少重要参数');?>");return false;
- }
- $("#flag").val(2);
- $.post("<?php echo U('Orepool/buygxmining');?>",
- {'kid':kid,'gxfe':gxfe,'st':8,"sharbltxt":sharbltxt},
- function(data){
- if(data.code == 1){
- layer.msg(data.msg);
- setTimeout(function(){
- window.location.href="<?php echo U('Orepool/index');?>";
- },2000);
- }else if(data.code == 3){
- $("#gotaxbox").show();
- }else{
- layer.msg(data.msg);
- setTimeout(function(){
- window.location.reload();
- },2000);
- }
- });
- }
- </script>
- <script type="text/javascript">
- function dzbuynow(id,di,gao){
-
- var flag = $("#flag").val();
- var ordernum = $("#ordernum").val();
- if(ordernum <= 0 || ordernum == null){
- layer.msg("<?php echo L('请输入购买数量');?>");return false;
- }
- if(ordernum < di || ordernum > gao){
- layer.msg("<?php echo L('购买数量超过限制');?>");return false;
- }
- if(flag == 2){
- return false;
- }
-
-
- var kid = id;
- if(kid <= 0 || kid == null){
- layer.msg("<?php echo L('缺少重要参数');?>");return false;
- }
- $("#flag").val(2);
- $.post("<?php echo U('Orepool/buydzmining');?>",
- {'kid':kid,'st':7 , 'ordernum':ordernum},
- function(data){
- if(data.code == 1){
- layer.msg(data.msg);
- setTimeout(function(){
- window.location.href="<?php echo U('Orepool/index');?>";
- },2000);
- }else if(data.code == 3){
- $("#gotaxbox").show();
- }else{
- layer.msg(data.msg);
- setTimeout(function(){
- window.location.reload();
- },2000);
- }
- });
- }
- </script>
- <script type="text/javascript">
- function createRand(){
- var x = 100000;
- var y = 1;
- var randnum = parseInt(Math.random() * (x - y + 1) + y);
- return randnum;
- }
- $("#fe1btn").click(function(){
- $("#fe1btn").addClass("feactive");
- $("#fe1btn").removeClass("fenc");
- $("#fe1span").addClass("fcy");
- $("#fe1span").removeClass("fcc");
-
- $("#fe2btn").removeClass("feactive");
- $("#fe2btn").addClass("fenc");
- $("#fe2span").removeClass("fcy");
- $("#fe2span").addClass("fcc");
- var fetxt1 = $("#fe1box").val();
- var fetxt2 = $("#fe2box").val();
- var oid = $("#kjid").val();
- $("#cfebox").val(fetxt1);
- var randnum = createRand();
- $("#sharbltxt").val(randnum);
- var domain = "https://" + window.location.host + "/Orepool/kjshare?oid="+ oid +"&fe="+fetxt2 + "&sharbltxt=" + randnum;
- $("#qrcode_url").val(domain);
- });
- $("#fe2btn").click(function(){
- $("#fe2btn").addClass("feactive");
- $("#fe2btn").removeClass("fenc");
- $("#fe2span").addClass("fcy");
- $("#fe2span").removeClass("fcc");
-
- $("#fe1btn").removeClass("feactive");
- $("#fe1btn").addClass("fenc");
- $("#fe1span").removeClass("fcy");
- $("#fe1span").addClass("fcc");
- var fetxt1 = $("#fe1box").val();
- var fetxt2 = $("#fe2box").val();
- var oid = $("#kjid").val();
- $("#cfebox").val(fetxt2);
- var randnum = createRand();
- $("#sharbltxt").val(randnum);
- var domain = "https://" + window.location.host + "/Orepool/kjshare?oid="+ oid +"&fe="+fetxt1 + "&sharbltxt=" + randnum;
- $("#qrcode_url").val(domain);
-
- });
- </script>
- <script type="text/javascript">
- function copyUrl(){
- var qrcode_url=$("#qrcode_url").val();
- copy(qrcode_url);
- }
- function copy(message) {
- var input = document.createElement("input");
- input.value = message;
- document.body.appendChild(input);
- input.select();
- input.setSelectionRange(0, input.value.length), document.execCommand('Copy');
- document.body.removeChild(input);
- layer.msg("<?php echo L('复制成功');?>");
- }
- </script>
- <script type="text/javascript">
- function goback(){
- window.history.go(-1);
- }
- </script>
- </html>
|