details.html 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425
  1. <!DOCTYPE html>
  2. <html lang="zh-CN">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  5. <meta name="viewport" content="width=device-width,minimum-scale=1,maximum-scale=1.0,initial-scale=1,user-scalable=no,viewport-fit=true" data-shuvi-head="true">
  6. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.5.0/dist/css/bootstrap.min.css" integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous">
  7. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.3.0/font/bootstrap-icons.css">
  8. <link rel="stylesheet" type="text/css" href="/Public/Home/static/css/base.css" />
  9. <title>{$webname}</title>
  10. <style>
  11. .css-1wr4jig {
  12. box-sizing: border-box;
  13. margin: 0;
  14. min-width: 0;
  15. display: -webkit-box;
  16. display: -webkit-flex;
  17. display: -ms-flexbox;
  18. display: flex;
  19. -webkit-flex-direction: column;
  20. -ms-flex-direction: column;
  21. flex-direction: column;
  22. -webkit-flex: 1;
  23. -ms-flex: 1;
  24. flex: 1;
  25. }
  26. .css-1odg5z2 {
  27. box-sizing: border-box;
  28. margin: 0;
  29. min-width: 0;
  30. height: 260px;
  31. background-color: #1E2329;
  32. position: -webkit-sticky;
  33. position: sticky;
  34. top: -256px;
  35. z-index: 1;
  36. padding: 0;
  37. }
  38. .css-1odg5z2::before {
  39. content: "";
  40. background-repeat: no-repeat;
  41. background-size: cover;
  42. background-position: center;
  43. background-image: url(/Public/Home/static/imgs/bannerissue.png);
  44. position: absolute;
  45. z-index: -1;
  46. top: 0;
  47. left: 0;
  48. bottom: 0;
  49. right: 0;
  50. -webkit-transform: none;
  51. -ms-transform: none;
  52. transform: none;
  53. }
  54. .css-1xrgo9z {
  55. box-sizing: border-box;
  56. margin: 0;
  57. min-width: 0;
  58. display: -webkit-box;
  59. display: -webkit-flex;
  60. display: -ms-flexbox;
  61. display: flex;
  62. -webkit-align-items: center;
  63. -webkit-box-align: center;
  64. -ms-flex-align: center;
  65. align-items: center;
  66. -webkit-box-pack: start;
  67. -webkit-justify-content: flex-start;
  68. -ms-flex-pack: start;
  69. justify-content: flex-start;
  70. font-size: 26px;
  71. color: white;
  72. z-index: 1;
  73. height: 100%;
  74. padding-bottom: 48px;
  75. }.css-1xrgo9z {
  76. -webkit-box-pack: start;
  77. -webkit-justify-content: flex-start;
  78. -ms-flex-pack: start;
  79. justify-content: flex-start;
  80. font-size: 40px;
  81. padding-bottom: 64px;
  82. }
  83. .css-1xrgo9z {
  84. -webkit-box-pack: center;
  85. -webkit-justify-content: center;
  86. -ms-flex-pack: center;
  87. justify-content: center;
  88. }
  89. .css-uliqdc {
  90. box-sizing: border-box;
  91. margin: 0;
  92. min-width: 0;
  93. display: -webkit-box;
  94. display: -webkit-flex;
  95. display: -ms-flexbox;
  96. display: flex;
  97. -webkit-flex-direction: column;
  98. -ms-flex-direction: column;
  99. flex-direction: column;
  100. }
  101. .progress-bar {
  102. display: -ms-flexbox;
  103. display: flex;
  104. -ms-flex-direction: column;
  105. flex-direction: column;
  106. -ms-flex-pack: center;
  107. justify-content: center;
  108. overflow: hidden;
  109. color: #fff;
  110. text-align: center;
  111. white-space: nowrap;
  112. background-color: #007bff;
  113. transition: width .6s ease;
  114. }
  115. .progress-bar {
  116. color: #000;
  117. background-color: #f3c420;
  118. }
  119. ::-webkit-input-placeholder {color: #b5b5b5;font-size: 12px;}
  120. ::-moz-placeholder {color: #b5b5b5;font-size: 12px;}
  121. input:focus{background:#f5f5f5;outline: 1px solid #f5f5f5;}
  122. a:hover,a:link,a:visited,a:active{color:rgb(240, 185, 11);text-decoration:none;}
  123. .allbtn {
  124. width: 100%;
  125. height: 50px;
  126. line-height: 50px;
  127. text-align: center;
  128. background: #ccc;
  129. border-radius: 5px;
  130. background: linear-gradient(to left,#eeb80d,#ffe35b);
  131. margin-top: 20px;
  132. }
  133. .css-bhso1m {
  134. box-sizing: border-box;
  135. margin: 0px;
  136. min-width: 0px;
  137. display: inline-block;
  138. border-radius: 4px;
  139. padding-left: 8px;
  140. padding-right: 8px;
  141. font-size: 14px;
  142. background-color: rgba(240, 185, 11, 0.19);
  143. color: rgb(240, 185, 11);
  144. }
  145. .css-6ul7zn {
  146. box-sizing: border-box;
  147. margin: 0px;
  148. min-width: 0px;
  149. display: flex;
  150. flex: 1 1 0%;
  151. flex-direction: column;
  152. width: 100%;
  153. padding: 32px;
  154. }
  155. .css-joa6mv {
  156. box-sizing: border-box;
  157. margin: 0px 0px 24px;
  158. min-width: 0px;
  159. }
  160. .css-1868gi1 {
  161. box-sizing: border-box;
  162. margin: 0px;
  163. min-width: 0px;
  164. font-weight: 600;
  165. font-size: 32px;
  166. line-height: 40px;
  167. }
  168. .css-1h690ep {
  169. box-sizing: border-box;
  170. margin: 0px;
  171. min-width: 0px;
  172. display: flex;
  173. flex: 1 1 0%;
  174. }
  175. .css-jjjwcg {
  176. box-sizing: border-box;
  177. margin: 0px;
  178. min-width: 0px;
  179. display: flex;
  180. flex-direction: column;
  181. width: 100%;
  182. }
  183. .css-15owl46 {
  184. box-sizing: border-box;
  185. margin: 0px;
  186. min-width: 0px;
  187. position: relative;
  188. }
  189. .btitle{width:100%;height:40px;background:#f5f5f5;}
  190. .btitleop{height:40px;line-height:40px;text-align:center;float:left;}
  191. .bcontentop{height:60px;line-height:60px;text-align:center;float:left;}
  192. .css-1lzksdc {
  193. box-sizing: border-box;
  194. min-width: 0px;
  195. color: rgb(132, 142, 156);
  196. fill: rgb(132, 142, 156);
  197. margin: 16px;
  198. width: 96px;
  199. height: 96px;
  200. font-size: 96px;
  201. }
  202. .dongbox{position:fixed;z-index:9999;display:none;top:0px;width:100%;height:100vh;background:rgba(0,0,0,0.2);}
  203. </style>
  204. </head>
  205. <body>
  206. <div class="App">
  207. <div class="css-tq0shg">
  208. <include file="Public:header"/>
  209. <div class="css-ogtd7z">
  210. <div class="css-jrzkh7">
  211. <div id="header_global_js_wxgy34nj" class="css-1aac2e"></div>
  212. </div>
  213. </div>
  214. <main class="css-1wr4jig" style="background: #fff;">
  215. <div class="css-1odg5z2">
  216. <div class="css-1xrgo9z">{:L('新币认购')}</div>
  217. </div>
  218. <div class="css-uliqdc">
  219. <div style="width:100%;min-height:min-600px;background:#f5f5f5;padding:20px 50px;">
  220. <div style="width:100%;height:600px;background:#fff;margin-bottom:20px;box-shadow: 0 2px 10px 0 rgb(0 0 0 / 10%);border-radius:5px;">
  221. <div style="width:100%;height:240px;">
  222. <div style="width:50%;height:240px;float:left;padding:5px;">
  223. <div style="width:100%;height:240px;background:#fff;">
  224. <div style="width:100%;height:230px;">
  225. <div style="width:25%;heigth:230px;line-height:150px;text-align:center;float:left;">
  226. <img src="/Upload/public/{$info.imgs}" style="width:60%;">
  227. </div>
  228. <div style="width:75%;padding:10px 0px 10px 10px;float:right;">
  229. <div style="width:100%;min-height:30px;">
  230. <span class="f16 fch">{$info.name}</span>
  231. </div>
  232. <div style="width:100%;height:30px;">
  233. <span class="f14 fcc">{:L('认购币种')}:<?php echo strtoupper($info['coinname']);?></span>
  234. </div>
  235. <div style="width:100%;height:30px;">
  236. <span class="f14 fcc">{:L('开始时间')}:{$info.starttime}</span>
  237. </div>
  238. <div style="width:100%;height:30px;">
  239. <span class="f14 fcc">{:L('结束时间')}:<?php echo strtoupper($info['finishtime']);?></span>
  240. </div>
  241. <div style="width:100%;height:30px;">
  242. <span class="f14 fcc">{:L('发行总量')}:{$info.num} <?php echo strtoupper($info['coinname']);?></span>
  243. </div>
  244. <div style="width:100%;height:30px;">
  245. <span class="f14 fcc">{:L('参与数量')}:{$info.ysnum} <?php echo strtoupper($info['coinname']);?></span>
  246. </div>
  247. </div>
  248. </div>
  249. </div>
  250. </div>
  251. <div style="width:50%;height:240px;float:left;padding:5px;">
  252. <div style="width:100%;height:240px;">
  253. <div style="width:100%;height:240px;padding:10px 0px 10px 10px;">
  254. <div style="width:100%;height:30px;">
  255. <span class="f16 fch">{:L('项目说明')}</span>
  256. </div>
  257. <div style="width:100%;height:30px;">
  258. <span class="f14 fcc">{:L('认购上限')} :{$info.allmax}</span>
  259. </div>
  260. <div style="width:100%;height:30px;">
  261. <span class="f14 fcc">{:L('单次最低')} :{$info.ysnum}</span>
  262. </div>
  263. <div style="width:100%;height:30px;">
  264. <span class="f14 fcc">{:L('认购上限')} :{$info.min}</span>
  265. </div>
  266. <div style="width:100%;min-height:30px;">
  267. <span class="f14 fcc">{$info.content}</span>
  268. </div>
  269. </div>
  270. </div>
  271. </div>
  272. </div>
  273. <div style="width:100%;min-height:300px;margin-top:10px;padding:0px 20px;">
  274. <div style="width:100%;min-height:300px;border-bottom:1px solid #f5f5f5;">
  275. <div style="width:100%;height:60px;line-height:60px;">
  276. <span class="fcy f18 fw">{:L('我要参与')}</span>
  277. </div>
  278. <div style="width:50%;height:50px;background:#f5f5f5;border-radius:5px;margin-bottom:10px;padding:0px 15px;margin-bottom:15px;">
  279. <div style="width:70%;height:50px;float:left;">
  280. <input type="number" oninput="tatolcoin();" id="buynum" placeholder="{:L('请输入认购数量')}" style="padding:5 15px;background:#f5f5f5;border:none;margin-top:12px;" <input type="text" name="price" placeholder="请输入价格" autocomplete="off" step="1" min="0" onkeyup="this.value= this.value.match(/\d+(\.\d{0,2})?/) ? this.value.match(/\d+(\.\d{0,2})?/)[0] : ''" />
  281. </div>
  282. <div style="width:30%;height:50px;line-height:50px;float:left;text-align:center;">
  283. <span class="f14 fcc"><?php echo strtoupper($info['coinname']);?></span>
  284. </div>
  285. </div>
  286. <div style="width:50%;height:50px;background:#f5f5f5;border-radius:5px;padding:0px 15px;">
  287. <div style="width:70%;height:50px;line-height:50px;float:left;">
  288. <span class="f14 fcc">{:L('需要支付')}:</span>
  289. <span class="f14 fcc" id="paynum">0.00</span>
  290. </div>
  291. <div style="width:30%;height:50px;line-height:50px;float:left;text-align:center;">
  292. <span class="f14 fcc"><?php echo strtoupper($info['buycoin']);?></span>
  293. </div>
  294. </div>
  295. <div style="width:100%;height:40px;border-radius:5px;padding:0px 15px;">
  296. <div style="width:70%;height:40px;line-height:40px;float:left;">
  297. <span class="f14 fcc">{:L('可用')}<?php echo strtoupper($info['buycoin']);?>:</span>
  298. <span class="f14 fcc">{$money}</span>
  299. </div>
  300. </div>
  301. <input type="hidden" name="price" id="pricebox" value="{$info.price}" />
  302. <input type="hidden" name="min" id="minbox" value="{$info.min}" />
  303. <input type="hidden" name="max" id="maxbox" value="{$info.max}" />
  304. <input type="hidden" id="flag" value="1" />
  305. <if condition="$uid elt 0">
  306. <div class="allbtn" onclick="gologin();" style="height:40px;line-height:50px;margin-top:5px;width:50%; cursor: pointer;">
  307. <span class="fzmm fch">{:L('请先登陆')}</span>
  308. </div>
  309. <else />
  310. <div class="allbtn" id="sumbtn" onclick="buyissue({$info.id})" style="height:50px;line-height:50px;margin-top:5px;width:50%; cursor: pointer;">
  311. <span class="fzmm fch">{:L('立即参与')}</span>
  312. </div>
  313. </if>
  314. </div>
  315. </div>
  316. </div>
  317. </div>
  318. </div>
  319. </main>
  320. <include file="Public:footer"/>
  321. </div>
  322. </div>
  323. <div class="dongbox" id="gotaxbox" style="display:none;">
  324. <div style="width:300px;height:260px;background:#fff;margin:18% auto;border-radius:10px;padding:15px;">
  325. <div style="width:100%;height:100px;line-height:100px;text-align:center;">
  326. <i class="bi bi-exclamation-circle" style="font-size:56px;font-weight:bold;color:#f5465c;"></i>
  327. </div>
  328. <div style="width:100%;height:60px;text-align:center;color:#000;font-size:14px;">
  329. {:L('请先缴纳税金')}
  330. </div>
  331. <div style="width:100%;height:60px;">
  332. <a href="{:U('Finance/cztax')}" target="__blank">
  333. <div style="width:45%;height:36px;line-height:36px;text-align:center;float:left;font-size:14px;color:#fff;background:#0ecb81;border-radius:10px;cursor:pointer;">{:L('缴税')}</div></a>
  334. <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;cursor:pointer;">{:L('取消')}</div>
  335. </div>
  336. </div>
  337. </div>
  338. </body>
  339. <script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
  340. <script type="text/javascript" src="/Public/Home/static/js/layer/layer.js" ></script>
  341. <script type="text/javascript" src="/Public/Home/static/js/jquery.SuperSlide.2.1.1.js" ></script>
  342. <script type="text/javascript">
  343. function hidetaxbox(){
  344. $("#gotaxbox").hide();
  345. }
  346. function buyissue(id){
  347. var flag = $("#flag").val();
  348. if(flag == 2){
  349. return false;
  350. }
  351. var pid = id;
  352. var buynum = $("#buynum").val();
  353. var min = parseFloat($("#minbox").val());
  354. var max = parseFloat($("#maxbox").val());
  355. if(buynum == '' || buynum == 0 || buynum == null){
  356. layer.msg("{:L('请输入认购数量')}");return false;
  357. }
  358. if(buynum < min){
  359. layer.msg("{:L('不能小于最低认购量')}");return false;
  360. }
  361. if(buynum > max){
  362. layer.msg("{:L('不能高于最高认购量')}");return false;
  363. }
  364. $("#flag").val(2);
  365. $.post("{:U('Issue/upbuynum')}",
  366. {'pid':pid,'num':buynum},
  367. function(data){
  368. if(data.code ==1){
  369. layer.msg(data.info);
  370. setTimeout(function(args){
  371. window.location.href = "{:U('Issue/normalissue')}";
  372. },2000);
  373. }else if(data.code == 3){
  374. $("#gotaxbox").show();
  375. }else{
  376. layer.msg(data.info);return false;
  377. }
  378. });
  379. }
  380. </script>
  381. <script type="text/javascript">
  382. function tatolcoin(){
  383. var buynum = parseFloat($("#buynum").val());
  384. var price = parseFloat($("#pricebox").val());
  385. var paynum = buynum * price;
  386. $("#paynum").html(paynum);
  387. }
  388. </script>
  389. <script type="text/javascript">
  390. $("#nav").slide({
  391. type:"menu",// 效果类型,针对菜单/导航而引入的参数(默认slide)
  392. titCell:".nLi", //鼠标触发对象
  393. targetCell:".sub", //titCell里面包含的要显示/消失的对象
  394. effect:"slideDown", //targetCell下拉效果
  395. delayTime:300 , //效果时间
  396. triggerTime:0, //鼠标延迟触发时间(默认150)
  397. returnDefault:true //鼠标移走后返回默认状态,例如默认频道是“预告片”,鼠标移走后会返回“预告片”(默认false)
  398. });
  399. </script>
  400. </html>