footer.blade.php 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335
  1. <link rel="stylesheet" href="/Public/Mobile/font/iconfont.css"><!--文字图标-->
  2. <style type="text/css">
  3. .msgg {
  4. width: 25px;
  5. height: 25px;
  6. text-align: center;
  7. line-height: 25px;
  8. background-color: #C41200;
  9. position: absolute;
  10. top: 30%;
  11. right: 10px;
  12. font-size: 15px;
  13. margin-top: -12.5px;
  14. display: inline-block;
  15. color: white;
  16. border-radius: 100%;
  17. }
  18. </style>
  19. <!--底部-->
  20. <nav class="mui-bar mui-bar-tab footerblin_y">
  21. <a class="mui-tab-item" href="/Mobile-Index/Index">
  22. <span class="iconfont icon-shouye"></span>
  23. <span class="mui-tab-label">首页</span>
  24. </a>
  25. <a href="/Mobile-GameCenter/Index" class="mui-tab-item">
  26. <span class="iconfont icon-94"></span>
  27. <span class="mui-tab-label">游戏</span>
  28. </a>
  29. <a href="https://www.pc777888.com/wap.php" data-href="https://www.pc777888.com/wap.php" class="mui-tab-item" id="charge">
  30. <span class="iconfont icon-chuxuqia"></span>
  31. <span class="mui-tab-label">快速充值</span>
  32. </a>
  33. <a id='url' href="https://f88.live800.com/live800/chatClient/chatbox.jsp?companyID=706401&configID=139703&jid=7401491209&s=1" class="mui-tab-item" >
  34. <span class="iconfont icon-htmal5icon31"></span>
  35. <span class="mui-tab-label">客服</span>
  36. </a>
  37. <a href="javascript:;" data-href="/Mobile-SelfCenter/Index" data-name="my" class="mui-tab-item mine" id="charges">
  38. <span class="iconfont icon-iconfontwohover"></span>
  39. <span class="mui-tab-label">我的</span>
  40. <span v-if="val.data!=0" class="msgg" id="message_cc" v-text='val.data' style="display: none"></span>
  41. </a>
  42. </nav>
  43. <link rel="stylesheet" type="text/css" href="/Public/Mobile/css/prizecode.css"/>
  44. <script src="/Public/Mobile/js/prizecode.js"></script>
  45. {literal}
  46. <style>
  47. .mui-toast-message{
  48. opacity: 0.8;
  49. }
  50. a{
  51. color: orangered;
  52. }
  53. </style>
  54. <script>
  55. function foo() {
  56. var my=$(this).attr('data-name');
  57. var url=$(this).attr('data-href');
  58. var $this=this;
  59. // if($(this).hasClass('active')){
  60. // return;
  61. // }
  62. if(my=='my'){
  63. console.log(1);
  64. apiAjax('/Api-Account/getAccount', '', function(data) {
  65. console.log(data);
  66. if (data.status == 1) {
  67. console.log(url);
  68. kaiYou.User = data.data;
  69. // try {
  70. // initUser(); //初始化用户
  71. // } catch (ex) {}
  72. location.href=url;
  73. } else if (data.status == -4001) {
  74. console.log(2);
  75. // console.log(1234567);
  76. $($this).removeClass('mui-active');
  77. mui.confirm('你未登录,请登录', '', ['取消','确定'], function (o) {
  78. if (o.index == 1) {
  79. kaiYou.storage.setItem('message','');
  80. location.href='/Mobile-Login/Index';
  81. }
  82. }, 'div');
  83. } else {
  84. console.log(12345678);
  85. $($this).removeClass('mui-active');
  86. mui.confirm('登录过期', '', ['取消','确定'], function (t) {
  87. if (t.index == 1) {
  88. kaiYou.storage.setItem('message','');
  89. location.href='/Mobile-Login/Index';
  90. }
  91. }, 'div');
  92. }
  93. });
  94. }else {
  95. //console.log(this.href);
  96. location.href=this.href;
  97. }
  98. }
  99. mui("nav").on('tap','nav a',foo);
  100. function color() {
  101. var colors = $('#charge span.mui-tab-label').css('color');
  102. if (colors == "blue") {
  103. $('#charge span.mui-tab-label').css('color', 'yellow');
  104. }
  105. else {
  106. $('#charge span.mui-tab-label').css('color', 'blue');
  107. }
  108. }
  109. setInterval(color, 500);
  110. var skjdhf=new Vue({
  111. el:'#charges',
  112. data:{
  113. val:[],
  114. }
  115. });
  116. function cde() {
  117. apiAjax('/Api-Other/Message', {}, function (data) {
  118. if(data != null){
  119. skjdhf.val = data;
  120. if (data.data != 0){
  121. $('#message_cc').show();
  122. }
  123. }
  124. })
  125. }
  126. // cde();
  127. // function getMyMsg() {
  128. // var arr=[];
  129. // var type_arr=[];
  130. // apiAjax('/api/other/AllMessageOne',{},function (data) {
  131. // if(data.status==1){
  132. // val=data.data.data;
  133. // val.forEach(function (e) {
  134. // if(e.hasread !='1'&& e.type != '3'){
  135. // arr.push(e);
  136. //// console.log(1);
  137. // }
  138. // if(e.hasread !='1' && e.type == '3'){
  139. // type_arr.push(e);
  140. // }
  141. // });
  142. //
  143. //
  144. // if (arr.length > 0){
  145. // kaiYou.storage.setItem('message',1);
  146. // mui.toast('消息提醒:'+arr[0].title,{ duration:'long', type:'div' })
  147. // aa(arr[0].id)
  148. //// }, 'div');
  149. //
  150. //
  151. // }else {
  152. // kaiYou.storage.setItem('message',2);
  153. //// console.log(1);
  154. // mui.toast('系统消息:'+type_arr[0].title,{ duration:'long', type:'div' })
  155. //// mui.confirm(type_arr[0].content, '', ['确定'], function (o) {
  156. ////
  157. //// }, 'div');
  158. //
  159. // }
  160. //
  161. // }else {
  162. // }
  163. // })
  164. //
  165. // }
  166. // function getMyMsgtwo() {
  167. // var arr=[];
  168. //
  169. // apiAjax('/api/other/AllMessagetwo',{},function (data) {
  170. // if(data.status==1){
  171. // var id='';
  172. // $('.warning').show();
  173. // val=data.data.data;
  174. // val.forEach(function (e) {
  175. // if(e.hasread !='1'){
  176. // arr.push(e);
  177. // }
  178. //
  179. // });
  180. //
  181. // //console.log(arr);
  182. //
  183. // if (arr.length > 0){
  184. //
  185. //// var content ="<div style='padding: 20px 80px;'>"+arr[0].content+"</div>"
  186. //
  187. // mui.toast('消息提醒:'+arr[0].content,{ duration:'long', type:'div' })
  188. // aa(arr[0].id)
  189. //
  190. // }
  191. //
  192. //
  193. // }
  194. // })
  195. //
  196. // }
  197. if($('#baa').length > 0){
  198. var msgg=new Vue({
  199. el:'#baa',
  200. data:{
  201. val:[],
  202. }
  203. });
  204. }
  205. function getMyMsgone() {
  206. var type_arr=[];
  207. apiAjax('/api/other/AllMessageOne',{},function (data) {
  208. let newdata=data.data.dataone;
  209. if(data.status==1){
  210. var id='';
  211. $('.warning').show();
  212. val=data.data.dataone;
  213. val.forEach(function (e) {
  214. if(e.hasread !='1'){
  215. type_arr.push(e);
  216. }
  217. });
  218. if(type_arr.length > 0){
  219. kaiYou.storage.setItem('message',2);
  220. for(let i of newdata){
  221. if (i.add_status==1) {
  222. if (type_arr.length > 0){
  223. mui.toast('<a href="/Mobile-other/MessageList?id='+type_arr[0].id+'">系统消息:您有管理员发送的信息,请查收',{ duration:'long(5000ms)', type:'div' })
  224. }
  225. }
  226. }
  227. skjdhf.val = data.data;
  228. if($('#baa').length > 0){
  229. msgg.val = data.data
  230. }
  231. $('#message_cc').show();
  232. $('#message_aa').show();
  233. }
  234. }else {
  235. $('.warning').hide();
  236. }
  237. })
  238. }
  239. function aa(id) {
  240. apiAjax('/Api-Other/MessageRed',{'id':id},function(data){
  241. });
  242. }
  243. function bb(id) {
  244. apiAjax('/Api-Other/Tmessage',{'id':id},function(data){
  245. });
  246. }
  247. // getMyMsg();
  248. // var nums=kaiYou.storage.getItem('message');
  249. //// console.log(nums);
  250. // if (nums == '1'){
  251. // $(function () {
  252. // setInterval("getMyMsg()",5000);
  253. // setInterval(function(){
  254. // apiAjax('/Api-Other/Message', {}, function (data) {
  255. // skjdhf.val = data;
  256. // })
  257. // },5000);
  258. // });
  259. // }else {
  260. // $(function () {
  261. // setInterval("getMyMsg()",30000);
  262. // });
  263. // }
  264. $(function () {
  265. // setInterval("getMyMsgtwo()",7000);
  266. //setInterval("getMyMsgone()",10000);
  267. //游戏名
  268. try{
  269. apiAjax('/api-GameCenter/getGamename?gamecode='+gameNames,'',function(data) {
  270. if(data.status==1){
  271. $('.selfSureGamename').text(data.data);
  272. }
  273. });
  274. }catch(ex){}
  275. });
  276. var weQQ=new Vue({
  277. el:'#url',
  278. data:{
  279. qqurl:''
  280. }
  281. });
  282. kaiYou.storage.setItem('message','');
  283. $(function() {
  284. apiAjax('/api-other/getQQ',{},function(data) {
  285. weQQ.qqurl=data.data;
  286. });
  287. });
  288. </script>
  289. {/literal}