Index.blade.php 41 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121
  1. {include file="Application/Home/View/Public/header.blade.php"}
  2. <script>
  3. window.location.href="/web/index.html";
  4. </script>
  5. <!--游戏-->
  6. <!-- <div class="Prompt allGame">
  7. <a class="nv" href="#">全部游戏</a>
  8. {literal}
  9. <div class="gameName">
  10. <ul>
  11. <li v-for="(i,game) in games" v-if="i<6"><a href="#"><i class="icon icon-1"></i>{{ game.name }}</a></li>
  12. 其他游戏
  13. <li class="post">
  14. <a href="#"><i class="icon icon-8"></i>其他游戏 <i class="More"></i></a>
  15. </li>
  16. 其他游戏结束
  17. </ul>
  18. </div>
  19. {/literal}
  20. </div> -->
  21. <!-- <div id="js-notice-pop" class="ui-dialog-content ui-widget-content" scrolltop="0" scrollleft="0" style="width: auto; min-height: 0px; height: 562.28px; display: none; z-index: 99999; position: absolute; margin: 0 auto; left: 32.5%" >
  22. <div id="dnone">
  23. <div style="width: 100%">
  24. <a style="float: right;" id='close_me'>关闭</a>
  25. </div>
  26. <div style="width: 100%" v-for="(i,k) in Banner" v-if="k.advert_id == 3 && k.status == 1">
  27. <a v-bind:href="k.banner_link"> <img v-bind:src="k.banner_url" onclick="offer();"></a>
  28. </div>
  29. </div>
  30. </div> -->
  31. <div id="js-notice-pop" class="ui-dialog-content ui-widget-content" scrolltop="0" scrollleft="0"
  32. style="width: auto; min-height: 0px; height: 562.28px; display: none; z-index: 99999; position: absolute; margin: 0 auto; left: 32.5%">
  33. <div id="dnone" style="display: none;">
  34. <div style="width: 53%;">
  35. <a style="" id='close_me'>我知道了</a>
  36. </div>
  37. <!-- <div style="width: 100%" v-for="(i,k) in Banner" v-if="k.advert_id == 3 && k.status == 1">
  38. <a v-bind:href="k.banner_link"> <img v-bind:src="k.banner_url" onclick="offer();"></a>
  39. </div> -->
  40. </div>
  41. </div>
  42. <div class="ky_pop_info" style="display:none;">
  43. <img src="/Public/img/hg0207.jpg" style="margin-left:2px;">
  44. </div>
  45. </div>
  46. <!--内容主体-->
  47. <div style="padding-bottom: 20px">
  48. <!--轮播登录注册-->
  49. <div class="man">
  50. <div class="Eliminate py">
  51. <!--登录注册&&中奖滚动-->
  52. <div class="user yl">
  53. <!--已登录-->
  54. <div class="Roll">
  55. <h4>最新中奖 <a href="#">
  56. <!-- <i class="Refresh"></i> -->
  57. </a></h4>
  58. <div class="Winning">
  59. {literal}
  60. <ul class="borderTop">
  61. <li v-for="z in prize">
  62. <p v-text="z.account_name"></p>
  63. <p v-text="z.name"></p>
  64. <p><span v-text="z.money"></span>元</p>
  65. </li>
  66. </ul>
  67. {/literal}
  68. </div>
  69. </div>
  70. </div>
  71. <!--登录注册&&中奖滚动结束-->
  72. <!--轮播&&投注-->
  73. <div class="user ya">
  74. {literal}
  75. <!--轮播-->
  76. <div id="carousel-example-generic" class="carousel slide" data-ride="carousel" id="dn2">
  77. <!-- Indicators -->
  78. <ol class="carousel-indicators">
  79. <li data-target="#carousel-example-generic" v-for="(i,k) in Banner" data-slide-to="0"
  80. v-if="k.num == 0" class="active"></li>
  81. <li data-target="#carousel-example-generic" v-if="k.num > 0 " v-for="(i,k) in Banner"
  82. data-slide-to="{{k.num}}"></li>
  83. </ol>
  84. <!-- Wrapper for slides -->
  85. <div class="carousel-inner" role="listbox">
  86. <div class="item active" v-if="i==0 && k.type == 1 && k.status == 1"
  87. v-for="(i,k) in Banner">
  88. <a v-bind:href="k.banner_link"><img v-bind:src="k.banner_url"
  89. style="width: 602px;height: 281px" alt=""></a>
  90. </div>
  91. <div class="item" v-if="i > 0 && k.type == 1 && k.status == 1" v-for="(i,k) in Banner">
  92. <a v-bind:href="k.banner_link"><img v-bind:src="k.banner_url"
  93. style="width: 602px;height: 281px" alt=""></a>
  94. </div>
  95. </div>
  96. </div>
  97. {/literal}
  98. <!--轮播结束-->
  99. {literal}
  100. <!--游戏投注-->
  101. <div class="Betting">
  102. <div class="zooA Eliminate">
  103. <h4 class="Prompt"><i class="Hot"></i> 热门彩种</h4>
  104. <ul class="Prompt Eliminate red how" id="hotgame">
  105. <li class="gameE active" v-for="(i,game) in games" v-if="i==0" data-id="{{game.identity}}"
  106. data-name="{{game.table_name}}">
  107. <a href="javascript:;" v-text="game.name"></a></li>
  108. <li class="gameE" v-for="(i,game) in games" v-if="i<4&&i>0" data-id="{{game.identity}}"
  109. data-name="{{game.table_name}}">
  110. <a href="javascript:;" v-text="game.name"></a></li>
  111. <li class="stillMore"><a href="/Home-Gamecenter/Index">更多游戏</a></li>
  112. </ul>
  113. </div>
  114. <!--幸运28-->
  115. <div class="number active">
  116. <p>第<span class="yQnumber" v-text="nowInfo.info_no"></span>期 &nbsp; 截止时间 <span
  117. v-text="nowInfo.open_time" class="overtime"></span></p>
  118. <div class="Eliminate ">
  119. <div class="Prompt no lucky28 g ddl elsename" style="width: 400px;">
  120. <span v-text="nowInfo.other.one"></span> + <span v-text="nowInfo.other.two"></span> +
  121. <span v-text="nowInfo.other.three"></span> = <span v-if="nowInfo.other.color==-1"
  122. class="gray"
  123. v-text="nowInfo.other.code"></span><span
  124. v-else class="{{nowInfo.other.color}}" v-text="nowInfo.other.code"></span>
  125. </div>
  126. <div class="user jo">
  127. <div class="Prompt"><a class="renovateGameNumber1" href="javascript:;"
  128. onclick="gameImformation()"><i
  129. class="nRefresh"></i></a></div>
  130. <div class="Prompt gtr tobet">
  131. <button type="button">投注</button>
  132. </div>
  133. </div>
  134. </div>
  135. </div>
  136. {/literal}
  137. </div>
  138. <!--游戏投注结束-->
  139. </div>
  140. <!--轮播&&投注结束-->
  141. </div>
  142. </div>
  143. <!--轮播登录注册结束-->
  144. <!--过度-->
  145. <div class="man excessive" v-for="(i,k) in Banner" v-if="k.advert_id == 2 && k.status == 1" id="dn3">
  146. <a v-bind:href="k.banner_link"><img v-bind:src="k.banner_url" alt=""></a>
  147. </div>
  148. <!--过度结束-->
  149. <!--开奖&&活动-->
  150. <div class="man Eliminate">
  151. <!--活动-->
  152. <div class="Prompt activity red see">
  153. <h4>最新活动公告 <a href="/home-active/index">更多</a></h4>
  154. {literal}
  155. <ul>
  156. <li v-for="tel in active">
  157. <a href="/Home-Active/lists?identity={{ tel.identity }}&type={{ tel.type }}&id={{ tel.child_id }}">
  158. <p class="Prompt ma" style="width: 150px;" v-html="tel.title"></p>
  159. <p class="user time" v-text="tel.time"></p>
  160. </a>
  161. </li>
  162. </ul>
  163. {/literal}
  164. </div>
  165. <!--活动结束-->
  166. <!--开奖-->
  167. {literal}
  168. <div class="user see red TheLottery">
  169. <h4>最新开奖
  170. <span v-for="(i,game) in games" v-if="i==0" class="changegame defaultprize" data-id="{{game.identity}}"
  171. data-name="{{game.table_name}}" data-type="1" v-text="game.name">
  172. </span>
  173. <span v-for="(i,game) in games" v-if="i<5&&i>0" class="changegame" data-id="{{game.identity}}"
  174. data-name="{{game.table_name}}" v-text="game.name">
  175. </span>
  176. <a href="/home-LotteryNotice/index?game_name={{game.table_name}}" class="more_game">更多</a>
  177. </h4>
  178. <table class="table">
  179. <thead>
  180. <tr>
  181. <th>游戏</th>
  182. <th>期号</th>
  183. <th>时间</th>
  184. <th>开奖结果</th>
  185. <th>投注注数</th>
  186. <th>中奖注数</th>
  187. <th>中奖金额</th>
  188. <th>操作</th>
  189. </tr>
  190. </thead>
  191. <tbody class="prizeList">
  192. <tr v-for="(i,k) in kai" v-if="i<7">
  193. <td v-text="kai.name"></td>
  194. <td v-text="k.info_no"></td>
  195. <td v-text="k.open_time"></td>
  196. <td class="hw game28_codes"><span v-text="k.other.one"></span>+<span
  197. v-text="k.other.two"></span>+<span v-text="k.other.three"></span>=<span
  198. v-if="k.other.color==-1" class="gray" v-text="k.other.code"></span><span v-else
  199. class="{{k.other.color}}"
  200. v-text="k.other.code"></span>
  201. </td>
  202. <td class="hw gamepk10_codes" style="display: none;" v-text="k.codes"></td>
  203. <td v-text="k.tol_tou"></td>
  204. <td v-text="k.win_mun"></td>
  205. <td v-text="k.win_money"></td>
  206. <td class="dm">
  207. <button type="button" onclick="ppl()">投注</button>
  208. </td>
  209. </tr>
  210. </tbody>
  211. </table>
  212. <div class="show_tips" style="display: none;">没有游戏记录</div>
  213. </div>
  214. <!--开奖结束-->
  215. {/literal}
  216. </div>
  217. <!--开奖&&活动结束-->
  218. <!--开奖&&活动结束-->
  219. </div>
  220. <!--签到-->
  221. <!--<div class="sigin">
  222. <a clstag="jr|keycount|jr_index|yhxx_qdao" class="sign" id="sign" onclick="document.querySelector('#sign_box').style.display='block'"><span>今日已签</span></a>
  223. <div id="sign_box" style="display: none">
  224. <div class="modal-mask"></div>
  225. <div class="modal-wrap" style="">
  226. <div class="modal" style="width: 350px; height: 540px; margin-top: -270px;">
  227. <div class="modal-content">
  228. <div class="modal-body">
  229. <div class="sign-box">
  230. <div class="modal-close">
  231. <a class="sign-close" onclick="document.querySelector('#sign_box').style.display='none'"></a>
  232. </div>
  233. <div class="sign-front">
  234. <div class="sign-info">
  235. <b>签到</b>
  236. <div class="sign-g-w sign-total">
  237. <div class="sign-gift s-total" id="sign_money">点击签到得彩金</div>
  238. </div>
  239. </div>
  240. <div class="sign-process">
  241. <ul>
  242. <li class="">
  243. <b class="icon"><span>1</span></b>
  244. </li>
  245. <li class="addcss">
  246. <b class="icon"><span>2</span></b>
  247. <span class="line"></span>
  248. </li>
  249. <li class="">
  250. <b class="icon"><span>3</span></b>
  251. <span class="line"></span>
  252. </li>
  253. <li class="">
  254. <b class="icon"><span>4</span></b>
  255. <span class="line"></span>
  256. </li>
  257. <li class="">
  258. <b class="icon"><span>5</span></b>
  259. <span class="line"></span>
  260. </li>
  261. <li class="">
  262. <b class="icon"><span>6</span></b>
  263. <span class="line"></span>
  264. </li>
  265. <li class="last">
  266. <b class="icon"><span></span></b>
  267. <span class="line"></span>
  268. </li>
  269. </ul>
  270. </div>
  271. <div class="sign-text"><span>已连续签到 <b id="days"></b>天,连续 7 天有惊喜哟 </span><a id="details">详情</a></div>
  272. <div class="sign-btn"><a id="ok_btn">我知道了</a></div>
  273. <div class="sign-promotion"><a clstag="jr|keycount|jr_index|yhxx_qdao_kw" target="_blank"
  274. href="//jrdc.jd.com/dh/nc?keyStr=cKtgYuqkhM1TKh4h2INsKVf6WKGN1ExVSsGIy%2BOXa2KYJeu9k9OcNSOHozfLJDQnXvOidl9mxMzke8n5RsCvMw9KRS845BDMuYOBiTlh1JwTe8dU78mgwotd1jYiGBv7VZxOxFZp77UydZLCUgrty8%2FrsndwumHG&amp;to=https://z.jd.com/project/details/104903.html"><span
  275. class="promotion-img"
  276. style="background-image: url('../../public/Home/img/sign-bg.png') im;"></span>
  277. <div class="promotion-text">
  278. <div class="promotion-name">新大洲本田</div>
  279. <div class="promotion-subName">智慧型风尚摩托车</div>
  280. </div>
  281. </a></div>
  282. </div>
  283. <div class="sign-back">
  284. <div class="sign-rule">
  285. <div class="rule-tit">详细规则</div>
  286. <div class="rule-content"><p>1.
  287. 金融首页“每日签到”、金融会员中心“每日签到”,和金融App“会员签到”同属“签到”类活动,一个用户每天总计只能参加1次。</p>
  288. <p>2. 每天签到有机会获得不等钢镚奖励,连续7天“签到”有机会获得额外惊喜。</p>
  289. <p>3. 若存在用户恶意刷奖行为,京东金融有权取消其获奖资格,并保留相关法律权利。</p>
  290. <p>4. 钢镚可直接用于支付京东商城订单,在消费时1钢镚可抵1元现金使用,钢镚支付不得超过每笔订单结算金额的99%。<br>(京东钢镚可用于支付京东商城网站自营且为京东配送的订单。拍卖、金银类、收藏品、虚拟产品、节能补贴、全球购、京东大药房等不支持钢镚支付。)
  291. </p>
  292. <p>5. 京东钢镚不设有效期,可永久使用。</p></div>
  293. <div class="sign-btn"><a id="back">返回</a></div>
  294. </div>
  295. <div class="sign-btn"><a onclick="document.querySelector('#sign_box').style.display='none'">我知道了</a></div>
  296. <div class="sign-promotion"><a clstag="jr|keycount|jr_index|yhxx_qdao_kw" target="_blank"
  297. href="//jrdc.jd.com/dh/nc?keyStr=cKtgYuqkhM1TKh4h2INsKVf6WKGN1ExVSsGIy%2BOXa2KYJeu9k9OcNSOHozfLJDQnXvOidl9mxMzke8n5RsCvMw9KRS845BDMuYOBiTlh1JwTe8dU78mgwotd1jYiGBv7VZxOxFZp77UydZLCUgrty8%2FrsndwumHG&amp;to=https://z.jd.com/project/details/104903.html"><span
  298. class="promotion-img"
  299. style="background-image: url(&quot;//img30.360buyimg.com/jr_courier/jfs/t1/5643/6/4131/10408/5b9b7577E355393f4/68688f6322be80e3.png&quot;);"></span>
  300. <div class="promotion-text">
  301. <div class="promotion-name">新大洲本田</div>
  302. <div class="promotion-subName">智慧型风尚摩托车</div>
  303. </div>
  304. </a>
  305. </div>
  306. </div>
  307. </div>
  308. </div>
  309. </div>
  310. </div>
  311. </div>
  312. </div>
  313. </div>-->
  314. <!--底部-->
  315. <footer>
  316. <div class="footer">
  317. <div class="red">
  318. <a href="/Home-Index/Index">首页</a>
  319. <a href="/Home-Gamecenter/Index">游戏中心</a>
  320. <a href="/home-active/index">优惠活动中心</a>
  321. <a href="/home-HelpCenter/index">帮助中心</a>
  322. <a :href="webinfo.app_download">手机下载</a>
  323. <a href="/Home-Account/Index">会员中心</a>
  324. </div>
  325. <p>
  326. {literal}
  327. <div class="about_box" id="about_box">
  328. <ul class="foot_info">
  329. <li class="foot_wljc"></li>
  330. <li class="foot_wangan"></li>
  331. <li class="foot_wsjy"></li>
  332. <li class="foot_xylh"></li>
  333. <li class="foot_kxwz"></li>
  334. </ul>
  335. <p>2009-2020©<a>{{webinfo.netname}}</a> | 客服邮箱:<a href="mailto:{{webinfo.con_email}}">
  336. <span class="eng">{{webinfo.con_email}} </span></a> |
  337. 客服QQ:<a href="http://wpa.qq.com/msgrd?v=3&uin={{qq}}&site=qq&menu=yes" target="_blank"><span class="eng">{{ qq }} </span></a> <br><span class="">{{webinfo.netname}}郑重提示:彩票有风险,投注需谨慎!</span>
  338. 不向未满18周岁的青少年出售彩票</p>
  339. <div class="clear"></div>
  340. </div>
  341. {/literal}
  342. </p>
  343. </div>
  344. </footer>
  345. <style>
  346. #mask{
  347. top: 0;
  348. left: 0;
  349. width: 100%;
  350. height: 100%;
  351. z-index: 9999;
  352. background-color: #000;
  353. opacity: 0.3;
  354. position: fixed;
  355. }
  356. #showimg{
  357. -webkit-animation-name: layer-bounceIn;
  358. animation-name: layer-bounceIn;
  359. position: fixed;
  360. m-webkit-overflow-scrolling: touch;
  361. top: 150px;
  362. left: 0;
  363. right: 0px;
  364. margin: 0;
  365. padding: 0;
  366. pointer-events: auto;
  367. width: 750px;
  368. margin: 0px auto;
  369. z-index: 999999;
  370. }
  371. #showimg .colse{
  372. width: 20px;
  373. height: 20px;
  374. text-align: center;
  375. color: #fff;
  376. font-weight:bold;
  377. position: absolute;
  378. top:0px;
  379. right: 0px;
  380. cursor: pointer;
  381. z-index: 10;
  382. }
  383. #showimg img{
  384. width: 100%;
  385. position: relative;
  386. }
  387. .sigin{
  388. display: none;
  389. }
  390. </style>
  391. <div id="mask" style="display: none;"></div>
  392. <div id="showimg" style="display: none;">
  393. <div class="colse">X</div>
  394. </div>
  395. <script src="/Public/Home/js/bootstrap.min.js"></script>
  396. <!--<script src="/Public/js/jquery.cookie.js"></script>-->
  397. {literal}
  398. <script type="text/javascript">
  399. window.onscroll=function () {
  400. var oSign=document.getElementById('sign');
  401. var scrollTop=document.documentElement.scrollTop||document.body.scrollTop;
  402. //oSign.style.top=scrollTop+(document.documentElement.clientHeight-oSign.offsetHeight)/2+'px';
  403. var t=scrollTop+(document.documentElement.clientHeight-oSign.offsetHeight)/2;
  404. startMove(parseInt(t));
  405. }
  406. var timer=null;
  407. function startMove(iTarget) {
  408. var oSign=document.getElementById('sign');
  409. clearInterval(timer);
  410. timer=setInterval(function (){
  411. var iSpeed=(iTarget-oSign.offsetTop)/8;
  412. iSpeed=iSpeed>0?Math.ceil(iSpeed):Math.floor(iSpeed);
  413. if(oSign.offsetTop==iTarget)
  414. {
  415. clearInterval(timer);
  416. }
  417. else
  418. {
  419. oSign.style.top=oSign.offsetTop+iSpeed+'px';
  420. }
  421. }, 30);
  422. }
  423. var details=document.querySelector('#details')
  424. var signBtn=document.querySelector('#back')
  425. var back=document.querySelector('.sign-back')
  426. var ok_btn=document.querySelector('#ok_btn')
  427. details.onclick=function () {
  428. back.style.zIndex=3;
  429. back.style.transform='rotateY(0deg)';
  430. }
  431. signBtn.onclick=function () {
  432. back.style.zIndex=1;
  433. back.style.transform='rotateY(-180deg)';
  434. }
  435. ok_btn.onclick=function () {
  436. document.querySelector('#sign_box').style.display='none'
  437. }
  438. </script>
  439. <style>
  440. .foot_box .about_box {
  441. border: none;
  442. margin: 0px auto;
  443. }
  444. .foot_info {
  445. overflow: hidden;
  446. margin-bottom: 10px;
  447. margin: 0px auto 0px auto;
  448. width: 750px;
  449. }
  450. .foot_info li.foot_wangan {
  451. background-position: 0 -45px;
  452. }
  453. .foot_info li.foot_wsjy {
  454. background-position: 0 -90px;
  455. }
  456. .foot_info li.foot_xylh {
  457. background-position: 0 -135px;
  458. }
  459. .foot_info li.foot_kxwz {
  460. background-position: 0 -180px;
  461. }
  462. .foot_info li.foot_wljc {
  463. background-position: 0 0;
  464. }
  465. .foot_info li {
  466. float: left;
  467. width: 120px;
  468. height: 45px;
  469. background: url(/Public/img/footer_img.png) no-repeat;
  470. margin: 0 10px;
  471. }
  472. .about_box p {
  473. line-height: 22px;
  474. text-align: center;
  475. }
  476. .how li {
  477. float: left;
  478. margin-left: 10px;
  479. }
  480. .zooA > h4 {
  481. margin: 0px 10px 0px 0px;
  482. }
  483. body .layui-ky-pop .layui-layer-title {
  484. background: #e71c49;
  485. color: #f2f2f2;
  486. border: none;
  487. border: 2px solid white;
  488. }
  489. </style>
  490. <script>
  491. //鼠标移入显示
  492. /** $(".gameList>li").mouseover(function () {
  493. $(".kin").mouseover(function () {
  494. $(this).css("display","block")
  495. });
  496. $(".kin").mouseout(function () {
  497. $(this).css("display","none")
  498. });
  499. var s=$(this).attr("data-status");
  500. if(s==2){
  501. var idx=$(this).index();
  502. var l=/Public/Home/js/on[idx].subgame;
  503. console.log(l);
  504. $(".kin").css("display","block");
  505. var Str='';
  506. for(var s=0;s<l.length;s++){
  507. Str += '<li><a href="/Home/Bet/Index?gameid='+l[s].identity+'">'+l[s].name+' </a></li>';
  508. }
  509. $(".gamehc").html(Str);
  510. }
  511. if(s==undefined){
  512. $(".kin").css("display","block");
  513. //其他游戏
  514. var Str='';
  515. for(var o=7;o</Public/Home/js/on.length;o++){
  516. Str += '<li><a href="/Home/Bet/Index?gameid='+/Public/Home/js/on[o].identity+'">'+/Public/Home/js/on[o].name+' </a></li>';
  517. }
  518. $(".gamehc").html(Str);
  519. }
  520. });
  521. $(".gameList>li").mouseout(function () {
  522. $(".kin").css("display","none")
  523. })
  524. }
  525. });**/
  526. function autoScroll(obj) {
  527. $(obj).find("ul").animate({
  528. marginTop: "-25px"
  529. }, 1000, function () {
  530. $(this).css({marginTop: "0px"}).find("li:first").appendTo(this);
  531. })
  532. };
  533. function setCookie(cname,cvalue,minute){
  534. var d = new Date();
  535. d.setTime(d.getTime()+(minute*60*1000));
  536. var expires = "expires="+d.toGMTString();
  537. document.cookie = cname+"="+cvalue+"; "+expires;
  538. }
  539. function getCookie(cname){
  540. var name = cname + "=";
  541. var ca = document.cookie.split(';');
  542. for(var i=0; i<ca.length; i++) {
  543. var c = ca[i].trim();
  544. if (c.indexOf(name)==0) { return c.substring(name.length,c.length); }
  545. }
  546. return "";
  547. }
  548. $(function () {
  549. $.ajax({
  550. url: '/api-other/Mobile_tan',
  551. type: 'post',
  552. data: {},
  553. dataType: 'json',
  554. success: function (data) {
  555. if(getCookie("maskcookie") == 'undefined' || getCookie("maskcookie") =='' || getCookie("maskcookie") == null){
  556. setCookie('maskcookie', '1',10);
  557. var extinfo = data.data.extinfo.split(",");
  558. if (extinfo[0] == 1) {
  559. layer.confirm(data.data.infocontent, {
  560. btn: ['我知道了'] //按钮
  561. });
  562. }
  563. else {
  564. var src = data.data.remarks;
  565. $("#showimg").append('<img src="'+src+'">');
  566. $("#mask,#showimg").show();
  567. }
  568. }
  569. },
  570. error: function (e) {
  571. layer.confirm('接口异常', {
  572. btn: ['我知道了'] //按钮
  573. });
  574. }
  575. });
  576. $("#showimg .colse").click(function () {
  577. $("#showimg,#mask").hide();
  578. });
  579. })
  580. $(function () {
  581. setInterval('autoScroll(".Winning")', 1500);
  582. $('#js-notice-pop').show();
  583. });
  584. $('body').on('click', '#close_me', function () {
  585. $('#js-notice-pop').hide();
  586. })
  587. var body = new Vue({
  588. el: 'body',
  589. data: {
  590. account: [],
  591. games: [],//游戏列表
  592. prize: [],//最近中奖
  593. kai: [],//最近开奖
  594. active: [],//最近活动
  595. tell: [],//公告
  596. nowInfo: [],//当前游戏信息
  597. prizegamename: [], //当前开奖游戏名称
  598. Banner: [], //当前开奖游戏名称
  599. todos:[],
  600. webinfo:[],
  601. qqurl:'',
  602. qq:'',
  603. con_onlines:''
  604. }
  605. });
  606. //初始化页面执行
  607. $(function () {
  608. getAccount();
  609. getAccountstype();
  610. getAccounts();
  611. getGames();
  612. getPrize();
  613. getKai('xy28');
  614. getActive('1,2,3');
  615. preGame('xy28');
  616. getSignInfo();
  617. //签到
  618. });
  619. function getSignInfo(id=6) {
  620. apiAjax('/Api-Signin/signInfo',{id:id},function (data) {
  621. if(data.status===1){
  622. let days = data.data.days.num;
  623. showDays(days)
  624. $("#days").text(days)
  625. if(data.data.signed>0){
  626. $(".sign-info").css("background-image","none")
  627. $("#sign_money").text('获得彩金'+data.data.money+'元')
  628. $(".sign-info b").text("已签到")
  629. }
  630. }
  631. })
  632. $(".sigin").show()
  633. }
  634. function showDays(day){
  635. let lis = $(".sign-process li")
  636. lis.each(function (k,v) {
  637. if(k>=0&&k<=day-1)
  638. $(this).addClass("active")
  639. })
  640. }
  641. $(".sign-info ").click((id) => {
  642. let hasSign = $(".sign-info b").text()
  643. if(hasSign=='已签到'){
  644. layer.msg("今日已签到!")
  645. return false;
  646. }
  647. let storage = window.localStorage;
  648. let token = storage.getItem('token')
  649. $.ajax({
  650. url: '/Api-Signin/goSign?token='+token,
  651. type: "POST",
  652. data: {
  653. id:6,
  654. token:token,
  655. "newdevice[point]":"",
  656. "newdevice[device]":"",
  657. "newdevice[uuid]":""
  658. },
  659. success: (data)=> {
  660. console.log(data.data);
  661. if(data.status===1)
  662. { getSignInfo(id=6)//签到后刷新签到天数状态
  663. $(".sign-info").css("background-image","none")
  664. $("#sign_money").text('获得彩金'+data.data.money+'元')
  665. layer.msg("签到成功")
  666. $(".sign-info b").text("已签到")
  667. }else {
  668. layer.msg(data.msg )
  669. }
  670. // $(".sign-info ").unbind()
  671. },
  672. error: (r)=> {
  673. },
  674. });
  675. })
  676. //获取图片
  677. function getAccounts() {
  678. $.getJSON('/api-Other/Banner', {}, function (data) {
  679. console.log(data);
  680. body.Banner = data.data;
  681. });
  682. }
  683. function getAccountstype() {
  684. $.getJSON('/api-Other/BannerType', {}, function (data) {
  685. var data = data.data;
  686. //console.log(data);
  687. for (var i = 0; i < data.length; i++) {
  688. if (data[i].type == '1' && data[i].status == '2') {
  689. $('#dn2').hide();
  690. }
  691. if (data[i].type == '2' && data[i].status == '2') {
  692. $('#dn3').hide();
  693. }
  694. if (data[i].type == '3' && data[i].status == '2') {
  695. $('#dnone').hide();
  696. }
  697. }
  698. });
  699. }
  700. //获取用户余额,用户名
  701. function getAccount() {
  702. $.getJSON('/api-selfCenter/ReMoney', {}, function (data) {
  703. // console.log(data);
  704. body.account = data.data;
  705. });
  706. }
  707. //获取开奖列表信息
  708. function getGames() {
  709. $.getJSON('/api-GameCenter/GetGame', {}, function (data) {
  710. var val = [];
  711. for(var i=0;i<data.data.length;i++){
  712. if(data.data[i]['table_name']!=-1){
  713. val.push(data.data[i]);
  714. }
  715. }
  716. // $.each(val,function () {
  717. // console.log($(this));
  718. // var temp=$(this)[0];
  719. // if((temp.table_name!='gpxy28'||temp.table_name!='gpjnd28')){
  720. // body.games.push(temp);
  721. // }
  722. // });
  723. body.games = val;
  724. setTimeout(function () {
  725. $('#hotgame a').on('click', function () {
  726. var nm = $(this).parents('li').attr('data-name');
  727. if (nm == -1) {
  728. alert('敬请期待');
  729. return false;
  730. }
  731. location.href = "/Home-" + nm + "/Index";
  732. })
  733. }, 300)
  734. });
  735. }
  736. //获取最近中奖信息
  737. function getPrize() {
  738. var $random = '', num = {};
  739. $.getJSON('/api-gameCenter/PrizeRecord', {}, function (data) {
  740. console.log(data);
  741. body.prize = data.data;
  742. // var data=data.data;
  743. // if(!$.isEmptyObject(data))
  744. // {
  745. // for (var i in data)
  746. // {
  747. // if(data[i] instanceof Object)
  748. // {
  749. // $random += '<li><p>'+data[i]['account_name']+'</p><p>'+data[i]['name']+'</p><p><span>'+Math.floor(Math.random()*900000+100000)+'</span>元</p></li>'
  750. // }
  751. // }
  752. // }
  753. // $('.borderTop').html($random)
  754. });
  755. }
  756. //获取最近开奖信息,默认幸运28
  757. function getKai($game_name) {
  758. $.getJSON('/api-GameCenter/Lottery', {game_name: $game_name}, function (data) {
  759. // console.log('jnd28');
  760. // console.log(data);
  761. body.kai = data.data;
  762. console.log('历史开奖信息',body.kai);
  763. $('.more_game').attr('href', '/Home-LotteryNotice/Index?game_name=' + $game_name);
  764. });
  765. }
  766. function prizeInfo() {
  767. var game_name = $('.defaultprize').attr('data-name');
  768. $.getJSON('/api-GameCenter/Lottery', {game_name: game_name}, function (data) {
  769. // console.log(data);
  770. body.kai = data.data;
  771. $('.more_game').attr('href', '/Home-LotteryNotice/Index?game_name=' + game_name);
  772. });
  773. }
  774. //最近活动列表
  775. function getActive($type, $page) {
  776. $page = 1;
  777. $.post('/api-notice/Notice', {type: $type, curpage: $page}, function (data) {
  778. // console.log(data);
  779. body.active = data.data.data;
  780. }, 'json');
  781. }
  782. /**
  783. * 获取前一期数据
  784. * @return {[type]} [description]
  785. */
  786. function preGame($game_name) {
  787. $.getJSON('/api-GameCenter/preGame', {game_name: $game_name}, function (data) {
  788. body.nowInfo = data.data;
  789. });
  790. }
  791. function gameImformation() {
  792. var gname = $('#hotgame .active').attr('data-name');
  793. //游戏的号码
  794. // console.log(gname)
  795. apiAjax('/api-gameCenter/nowGame?game_name=' + gname, '', function (data) {
  796. if (data.status > 0) {
  797. var allData = data.data;
  798. // console.log(allData);
  799. $(".yQnumber").text(allData.info_no);//期数
  800. $(".overtime").text(allData.open_time);//结束时间
  801. }
  802. });
  803. apiAjax('/api-GameCenter/preGame?game_name=' + gname, '', function (data) {
  804. if (data.status > 0) {
  805. var allData = data.data;
  806. console.log(allData);
  807. var str = '';
  808. if (gname === 'bjpk10' || gnagname === 'hlsmpk10' || me === 'hlftpk10' || gname === 'jspk10' || gname === 'luckyft' || gname == 'cqssc' || gname == 'hljssc' || gname == 'ynssc' || gname == 'ynhnssc') {
  809. var bjpkData = allData.codes;
  810. bjpkData = bjpkData.split(',');
  811. for (var i = 0; i < bjpkData.length; i++) {
  812. str += '<span>' + bjpkData[i] + ' </span>';
  813. }
  814. } else if (gname === 'xy28' || gname === 'jnd28' || gname === 'gpjnd28' || gname === 'gpxy28') {
  815. var data28 = allData.other;
  816. str += '<span>' + data28.one + '</span> + <span>' + data28.two + '</span> + <span>' + data28.three + '</span> = <span id="ios">' + data28.code + '</span>';
  817. } else {
  818. }
  819. $('.elsename').html(str);
  820. }
  821. });
  822. }
  823. setTimeout(gameImformation, 200);
  824. $(function () {
  825. $(document).on('mouseover', "#hotgame .gameE", function () {
  826. $('.gameE').removeClass('active');
  827. $(this).addClass('active');
  828. gameImformation();
  829. })
  830. })
  831. //去投注
  832. $(function () {
  833. $('.tobet button').each(function (e) {
  834. $(this).on('click', function () {
  835. var gname = $('#hotgame .active').attr('data-name');
  836. if (gname != -1) {
  837. window.location.href = "/Home-" + gname + "/Index";
  838. }
  839. })
  840. })
  841. });
  842. //刷新游戏
  843. $(function () {
  844. $('.nRefresh').each(function (e) {
  845. $(this).on('click', function () {
  846. gameImformation();
  847. })
  848. })
  849. });
  850. function ppl() {
  851. var gameName = $('.defaultprize').attr('data-name');
  852. if (gameName != -1) {
  853. window.location.href = "/Home-" + gameName + "/Index";
  854. }
  855. }
  856. /*
  857. *开奖公告
  858. */
  859. $(function () {
  860. $(document).on('click', '.changegame', function () {
  861. var datatype = $(this).attr('data-type');
  862. if (datatype == 1) {
  863. return false;
  864. } else {
  865. $(".changegame").attr('data-type', 2);
  866. $(this).attr('data-type', 1);
  867. $(".changegame").removeClass('defaultprize');
  868. $(this).addClass('defaultprize');
  869. var ids = $(this).attr('data-id');
  870. var gname = $(this).attr('data-name');
  871. $(this).parent().find('a').attr({'href': '/Home-LotteryNotice/Index?game_name=' + gname});
  872. apiAjax('/api-GameCenter/Lottery?game_name=' + gname, '', function (data) {
  873. //console.log(data)
  874. if (data.status > 0) {
  875. // $('.prizeList tr').attr('style','display:block;');
  876. // $('.prizeList .nodata').attr('style','display:none;');
  877. // $('.prizeList .nodata').html('');
  878. if (gname == 'xy28' || gname == 'jnd28') {
  879. $('.game28_codes').show();
  880. $('.gamepk10_codes').hide();
  881. } else if (gname == 'bjpk10' || gname == 'jspk10' || gname == 'hlsmpk10' || gname == 'hlftpk10' || gname == 'luckyft' || gname == 'cqssc' || gname == 'hljssc' || gname == 'ynssc' || gname == 'ynhnssc') {
  882. $('.game28_codes').hide();
  883. $('.gamepk10_codes').show();
  884. }
  885. body.kai = data.data;
  886. $('div.show_tips').hide();
  887. $('.prizeList').show();
  888. } else {
  889. // body.kai=null;
  890. $('.prizeList').hide();
  891. // $('.prizeList tr').attr('style','display:none;');
  892. // $('.prizeList .nodata').attr('style','display:block;');
  893. $('div.show_tips').show();
  894. }
  895. });
  896. }
  897. })
  898. })
  899. /* var wepQQ=new Vue({
  900. el:'#qq',
  901. data:{
  902. qqurl:[]
  903. }
  904. });*/
  905. $(function () {
  906. /* apiAjax('/api-other/getQQ', {}, (data) =>{
  907. wepQQ.qqurl = data.data;
  908. body.qq = data.data.qq;
  909. body.qqurl = data.data.url;
  910. console.log('qqurl', body.qqurl)
  911. });*/
  912. apiAjax('/api-SystemInfo/DefaultInfo', {}, (e)=>{
  913. if(e.status>0){
  914. let url = document.domain;
  915. let data = e.data
  916. body.qq = data.con_qq;
  917. body.con_onlines = data.con_onlines;
  918. data['netname'] = data['netname']+'('+url+')'
  919. body.webinfo=data;
  920. }
  921. });
  922. });
  923. $(function () {
  924. apiAjax('/Api-Account/getAccount', '', function (data) {
  925. if (data.data == '' || data.data == 'null' || data.data == null) {
  926. return false;
  927. } else {
  928. if (data.data.status == 4) {
  929. $(".withdrawaction-indexpage").hide().attr('href', 'javascript:;');
  930. $(".recharge_hc").hide().attr('href', 'javascript:;');
  931. }
  932. }
  933. });
  934. });
  935. $(function() {
  936. kaiYou.id = "{/literal}{$smarty.get.id}{literal}";
  937. var id = kaiYou.id;
  938. apiAjax("/Api-LotterMoney/getInfo?active_type="+id, {}, function (data) {
  939. console.log(data);
  940. data.status=data.status;
  941. data.msg=data.msg;
  942. if(data.status==1){
  943. data.todos = data.data;
  944. }
  945. });
  946. })
  947. function addlog() {
  948. kaiYou.id = "{/literal}{$smarty.get.id}{literal}";
  949. var id = kaiYou.id;
  950. var can_get = $(".can_get").text();
  951. var water = $(".can_get").attr('data-water');
  952. if (can_get<=0) {
  953. return;
  954. }
  955. console.log(can_get);
  956. apiAjax("/Api-LotterMoney/addlog", {lot_id:id,can_get:can_get,water:water}, function (data) {
  957. if (status==1) {
  958. alert(data.msg);
  959. }else{
  960. alert(data.msg);
  961. }
  962. });
  963. }
  964. </script>
  965. <!--<script src="/Public/Home/js/safeopen.js"></script>-->
  966. {/literal}
  967. </body>
  968. </html>