header.blade.php 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420
  1. <!DOCTYPE html>
  2. <html>
  3. <head lang="en">
  4. <meta charset="UTF-8">
  5. <meta http-equiv = "X-UA-Compatible" content = "IE=edge,chrome=1"/>
  6. <title>{$site.site_name}</title>
  7. <META name="keywords" content="{$site.site_keywords}" />
  8. <META name="description" content="{$site.site_desc}" />
  9. <link rel="stylesheet" href="/Public/Home/css/sign_in.css">
  10. <link rel="stylesheet" href="/Public/Home/css/bootstrap.min.css"/>
  11. <link rel="stylesheet" href="/Public/Home/css/home.css"/>
  12. <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon"/>
  13. <link rel="stylesheet" href="/Public/Home/css/common.css"/>
  14. <link rel="stylesheet" href="/Public/Home/css/HomePage-p.css"/>
  15. <link rel="stylesheet" href="/Public/Home/css/Administration.css"/>
  16. <link rel="stylesheet" href="/Public/css/liMarquee.css"/>
  17. <link rel="stylesheet" href="/Public/Home/css/Apply_h.css"/>
  18. <link rel="stylesheet" href="/Public/Home/css/agent.css"/>
  19. <link rel="stylesheet" href="/Public/css/layer.css"/>
  20. <script src="/Public/Home/js/jquery-1.11.3.js"></script>
  21. <script src="/Public/js/jquery.liMarquee.js"></script>
  22. <script src="/Public/js/layer/layer.js"></script>
  23. <script src="/Public/js/laypage/laypage.js"></script>
  24. <script src="/Public/js/commons.js"></script>
  25. <script src="/Public/js/vue.min.js"></script>
  26. <script src="/Public/Home/js/headerlist.js"></script>
  27. <style>
  28. #message_tto{
  29. display: inline-block;
  30. padding-bottom: 5px;
  31. width: 20px;
  32. height: 20px;
  33. background-color: red;
  34. border-radius: 100%;
  35. color: white;
  36. text-align: center;
  37. font-size: 12px;
  38. font-style:normal;
  39. line-height: 20px;
  40. }
  41. #dowebok {
  42. width: 560px;margin-top: 5px;height: 30px;padding-top: 10px;
  43. height: 25px;
  44. /* top: -20px; */
  45. display: inline-block;
  46. line-height: 25px;
  47. vertical-align: middle;
  48. font-size: 14px;
  49. }
  50. </style>
  51. </head>
  52. <body>
  53. <header class="co">
  54. <a name="top"></a>
  55. <div class="head">
  56. <div class="man oh clearfix" style="position: relative;">
  57. <div class="Prompt">
  58. hi,欢迎{$site.site_name}用户!
  59. </div>
  60. <div class="user clearfix">
  61. <div class="Prompt but">游客:
  62. <a class="SignOut" href="/Home-Login/Index">请登录</a>
  63. <a class="SignOut" href="/Home-testplay/testLogin">免费试玩</a>
  64. </div>
  65. <div class="Prompt but" style="display: none">
  66. 用户名:<span class="userName">xxx</span><a class="SignOut" href="javascript:logout()">退出</a>
  67. </div>
  68. <div class="Prompt red mk">
  69. <p class="balance" style="margin: 0px;float:left;">我的余额:<span
  70. class="money"></span> 元 <a
  71. class="acn" href="javascript:hiddenAcn()">隐藏</a></p>
  72. <p class="balance" style="margin: 0px; display: none">我的余额:<span
  73. class="money"></span> 元 <a class="acn" href="#">显示</a></p>
  74. </div>
  75. <div class="Prompt News" id="information_newy">
  76. 消息 <i class="" style="color: red" id="charges" v-text='val.data'></i>
  77. <ul id="information_y">
  78. <li>
  79. <h5>暂无消息!</h5>
  80. </li>
  81. </ul>
  82. </div>
  83. </div>
  84. </div>
  85. </div>
  86. {literal}
  87. <div class="man mar5 Eliminate webinfo">
  88. <div class="logo Prompt">
  89. <img style="max-height: 55px" src="/Public/Home/img/xinlogo.png" alt=""/>
  90. </div>
  91. <div class="Noticess" style="width: 600px;float:left;margin-top: 20px;">
  92. <img src="/Public/Mobile/img/image_01.png" alt="" style="width: 20px;margin-bottom: -5px;">
  93. <div id="dowebok" style="height:25px"></div>
  94. </div>
  95. <div class="user service Eliminate" >
  96. <div class="Prompt"><i class="icon icon-redPhone"></i><a href="http://wpa.qq.com/msgrd?v=3&uin={{webinfo.con_qq}}&site=qq&menu=yes" target="view_window">
  97. <span >QQ客服</span></a></div>
  98. <div class="Prompt" ><i class="icon icon-service"></i><a
  99. href="{{webinfo.con_onlines}}"
  100. target="view_window">在线客服</a>
  101. </div>
  102. </div>
  103. </div>
  104. {/literal}
  105. <div class="Navigation">
  106. <div class=" man ">
  107. <div class="Prompt allGame ">
  108. <a href="#">全部游戏</a>
  109. <div class="gameName y_list">
  110. <ul style="cursor: pointer;" class="gameList">
  111. </ul>
  112. </div>
  113. <div class="kin">
  114. <h4>所有游戏</h4>
  115. <ul class="Eliminate gamehc">
  116. </ul>
  117. </div>
  118. </div>
  119. <ul class="menu Eliminate Prompt" style="width: 840px;height: 40px;">
  120. <li class="active" style="width: 90px;">
  121. <a href="/Home-Index/Index">首页</a></li>
  122. <li class="" style="width: 110px;">
  123. <a href="/Home-Gamecenter/Index">游戏中心</a></li>
  124. <li class="" style="width: 110px;">
  125. <a href="/home-active/index">优惠活动中心</a></li>
  126. <!--<li class="" style="width: 110px;">
  127. <a href="/home-GameTrend/Index">走势图表</a></li>-->
  128. <li class="" style="width: 110px;">
  129. <a id="dns" target="_blank" v-bind:href="webinfo.app_download+'dns/index.html'">DNS防劫持</a></li>
  130. <li class="" style="width: 110px;">
  131. <a class="app_download" v-bind:href="webinfo.app_download" target="_blank">APP下载</a></li>
  132. <li class="" style="width: 100px;">
  133. <a href="/Home-Account/Index">会员中心</a></li>
  134. <!-- <li class="" id="asb" style="width: 100px; display: none;" >
  135. <a href="/home-agent/index">代理中心</a> /home-agent/AgentDesc
  136. </li>-->
  137. </ul>
  138. </div>
  139. </div>
  140. </header>
  141. {literal}
  142. <script>
  143. var asss=new Vue({
  144. el:'#asb',
  145. data:{
  146. val:[],
  147. }
  148. });
  149. $(document).ready(function(){
  150. $.getJSON('/api-other/Notice', {}, function(data) {
  151. if (!data) data = [];
  152. var url = data.data.remarks;
  153. if(url ==null){
  154. url ='#';
  155. }
  156. $('#dowebok').html('<a href="'+url+'">'+data.data.infocontent+'</a>');
  157. $('#dowebok').liMarquee({
  158. runshort: false,
  159. circular:false
  160. });
  161. $('#dowebok').css('height','25px');
  162. });
  163. });
  164. //新增新代理处理 2018-12-10 anton liu
  165. console.log('getUrlParam------',getUrlParam('invita'));
  166. if (getUrlParam('invita') != null) {
  167. localStorage.setItem('invita',getUrlParam('invita'))
  168. } else {
  169. let dom = window.location.origin
  170. apiAjax('/api-Nologin/getInviteByDom',{dom:dom},function (e) {
  171. console.log('data',e);
  172. if(e.status == 1){
  173. console.log('invita',e.data.invite);
  174. localStorage.setItem('invita',e.data.invite)
  175. }
  176. })
  177. }
  178. function getUrlParam(name) {
  179. var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); //构造一个含有目标参数的正则表达式对象
  180. var r = window.location.search.substr(1).match(reg); //匹配目标参数
  181. if (r != null) return unescape(r[2]); return null; //返回参数值
  182. }
  183. apiAjax('/Api-Other/AgentList',{},function(data) {
  184. //console.log(data);
  185. asss.val=data.data;
  186. //console.log(asss.val['status'])
  187. if (asss.val['status'] !=0){
  188. $('#asb').show();
  189. }
  190. });
  191. var webQQ=new Vue({
  192. el:'#qq',
  193. data:{
  194. qqurl:[]
  195. }
  196. });
  197. $(function() {
  198. apiAjax('/api-other/getQQ',{},function(data) {
  199. webQQ.qqurl=data.data;
  200. });
  201. })
  202. // function getMyMsg() {
  203. // apiAjax('/Api-Other/Message',{},function (data) {
  204. // console.log(data);
  205. // if(data.status==1&&data.data>0){
  206. // $('.warning').show();
  207. // }else{
  208. // $('.warning').hide();
  209. // }
  210. // });
  211. // }
  212. function getMyMsgtwo() {
  213. var arr=[];
  214. apiAjax('/api/other/AllMessagetwo',{},function (data) {
  215. if(data.status==1){
  216. var id='';
  217. $('.warning').show();
  218. val=data.data.data;
  219. val.forEach(function (e) {
  220. if(e.hasread !='1'){
  221. arr.push(e);
  222. }
  223. });
  224. console.log(arr);
  225. if (arr.length > 0){
  226. var content ="<div style='padding: 20px 80px;'>"+arr[0].content+"</div>"
  227. layer.open({
  228. type: 1
  229. ,offset: 'rb' //具体配置参考:offset参数项
  230. ,area: ['356px', '219px']
  231. ,content: content
  232. ,btnAlign: 'c' //按钮居中
  233. ,time: 5000
  234. ,shade: 0 //不显示遮罩
  235. ,yes: function(){
  236. layer.closeAll();
  237. }
  238. });
  239. aa(arr[0].id)
  240. }
  241. }
  242. })
  243. }
  244. function getMyMsgone() {
  245. var type_arr=[];
  246. var type_arr_two=[];
  247. apiAjax('/api/other/AllMessageOne',{},function (data) {
  248. let newdata=data.data.dataone;
  249. if(data.status==1){
  250. var id='';
  251. $('.warning').show();
  252. val=data.data.dataone;
  253. val.forEach(function (e) {
  254. type_arr.push(e);
  255. });
  256. vals=data.data.datatwo;
  257. vals.forEach(function (e) {
  258. type_arr_two.push(e);
  259. });
  260. let newData=[];
  261. for(let i=type_arr.length-1;i>0;i--){
  262. if(type_arr[i].add_status==1){
  263. newData.push(type_arr.splice(i, 1))
  264. }
  265. }
  266. for(let i of newdata){
  267. console.log(newdata);
  268. if (i.add_status==1) {
  269. if (type_arr.length > 0){
  270. layer.open({
  271. type: 1
  272. ,offset: 'rb' //具体配置参考:offset参数项
  273. ,area: ['356px', '219px']
  274. ,content: '<div style="padding: 11px 80px 0 80px;">您有管理员发送的信息,请查收</div><br/><div style="color: red;text-align: center;">'+newData[0][0].title+'</div><br/><div style="text-align: center;">'+newData[0][0].add_time+'</div>'
  275. ,btnAlign: 'c' //按钮居中
  276. ,shade: 0 //不显示遮罩
  277. ,time: 7000
  278. ,yes: function(){
  279. layer.closeAll();
  280. }
  281. ,btn: ['点击查看']
  282. ,yes: function(index, layero){
  283. aa(type_arr[0].id);
  284. window.location.href='/home/account/messge?id='+type_arr[0].id;
  285. }
  286. ,cancel: function(){
  287. //右上角关闭回调
  288. //return false 开启该代码可禁止点击该按钮关闭
  289. }
  290. });
  291. }
  292. }
  293. }
  294. if (data.data.data > 0){
  295. $('#message_tto').text(data.data.data);
  296. $('#message_tto').show();
  297. }else {
  298. $('#message_tto').hide();
  299. }
  300. if (type_arr_two.length > 0){
  301. var content ="<div style='padding: 20px 80px;'>"+type_arr_two[0].content+"</div>"
  302. layer.open({
  303. type: 1
  304. ,offset: 'rb' //具体配置参考:offset参数项
  305. ,area: ['356px', '219px']
  306. ,content: content
  307. ,btnAlign: 'c' //按钮居中
  308. ,time: 5000
  309. ,shade: 0 //不显示遮罩
  310. ,yes: function(){
  311. layer.closeAll();
  312. }
  313. });
  314. aa(type_arr_two[0].id)
  315. }
  316. }else {
  317. $('.warning').hide();
  318. }
  319. })
  320. }
  321. // getMyMsgtwo();
  322. // getMyMsgone();
  323. function aa(id) {
  324. apiAjax('/Api-Other/MessageRed',{'id':id},function(data){
  325. });
  326. }
  327. apiAjax('/Api-Other/Message', {}, function (data) {
  328. if (data.status == 1 && data.data > 0){
  329. $('#message_tto').text(data.data);
  330. $('#message_tto').show();
  331. }else {
  332. $('#message_tto').hide();
  333. }
  334. });
  335. $(function () {
  336. setInterval("getMyMsgone()",10000);
  337. });
  338. // kaiYou.storage.getItem('message_id',1);
  339. function tiped(id) {
  340. apiAjax('/Api-Other/Tmessage',{'id':id},function(data){
  341. });
  342. }
  343. </script>
  344. {/literal}