Global.js 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859
  1. window.ObjectPools = null;
  2. window.Games = null;
  3. // 后配音关闭开启按钮
  4. window.OnOff = true;
  5. window.timer = null;
  6. window.MySetting = {
  7. match_time: 60,
  8. life_value : 3,
  9. suspend_text : "等待中...",
  10. share : "",
  11. sound_value : 0.2,
  12. time : [40,20,10],
  13. };
  14. window.PlayerInfo = {
  15. Left: {
  16. id: 9527,
  17. name: "汪汪husky",
  18. gender: 0,
  19. // head: "https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=857896439,118415596&fm=27&gp=0.jpg",
  20. head: "https://dn-qn.move-it.club/FrRjuH4-RslUaAhofSB2NdMn9WMx",
  21. // head: "https://www.yuyekeji.cn/media/user/Images/Share.png",
  22. isfirst: false
  23. },
  24. Right: {
  25. id: 9528,
  26. name: "妹妹husky",
  27. gender: 1,
  28. head: ""
  29. },
  30. };
  31. //游戏统计
  32. window.Statistics = {
  33. // time: 9999,
  34. playtime: 0,
  35. playwin: null,
  36. player1: {
  37. playerUserInfo: null,
  38. attackCount: 0,
  39. leftCount: 0,
  40. midCount: 0,
  41. rightCount: 0,
  42. continuitymax: 0,
  43. continuitymin: 0,
  44. miss: 0,
  45. score : 0
  46. },
  47. player2: {
  48. playerUserInfo: null,
  49. attackCount: 0,
  50. leftCount: 0,
  51. midCount: 0,
  52. rightCount: 0,
  53. continuitymax: 0,
  54. continuitymin: 0,
  55. miss: 0,
  56. score : 0
  57. },
  58. dishu:{
  59. num : 0
  60. },
  61. restStart : function(){
  62. Statistics.playtime = 0;
  63. Statistics.playwin = null;
  64. // var player1 = {
  65. // playerUserInfo: null,
  66. //
  67. // attackCount: 0,
  68. // leftCount: 0,
  69. // midCount: 0,
  70. // rightCount: 0,
  71. //
  72. // continuitymax: 0,
  73. // continuitymin: 0,
  74. //
  75. // miss: 0,
  76. // },
  77. //
  78. // Statistics.player1.playerUserInfo = null;
  79. // Statistics.player1.attackCount = 0;
  80. // Statistics.player1.leftCount = 0;
  81. // Statistics.player1.midCount = 0;
  82. // Statistics.player1.rightCount = 0;
  83. // Statistics.player1.continuitymax = 0;
  84. // Statistics.player1.continuitymin = 0;
  85. //
  86. // Statistics.player1.miss = 0;
  87. // Statistics.player1.score = 0;
  88. this.removes(Statistics.player1);
  89. this.removes(Statistics.player2);
  90. //地鼠出来次数
  91. Statistics.dishu.num = 0
  92. UserInfo.PlayerGameData = {
  93. power : 0,
  94. powerMax : 0,
  95. //默认飞过的星球
  96. currtag : 0,
  97. //流浪距离系数
  98. coefficient : 0,
  99. everypowerdata : [],
  100. everypowerdataOK : []
  101. }
  102. },
  103. removes : function(player){
  104. player.playerUserInfo = null;
  105. player.attackCount = 0;
  106. player.leftCount = 0;
  107. player.midCount = 0;
  108. player.rightCount = 0;
  109. player.continuitymax = 0;
  110. player.continuitymin = 0;
  111. player.miss = 0;
  112. player.score = 0;
  113. },
  114. addScore : function(playertype,score){
  115. var player = this.getPlayer(playertype);
  116. if (parseInt(player.score+score) <0) {
  117. player.score = 0;
  118. }else{
  119. if (score < 0) {
  120. // 减分
  121. // player.score= parseInt(player.score)+parseInt(score);
  122. // if (parseInt(player.score)<0) {
  123. // player.score = 0;
  124. // }
  125. }else{
  126. var temp = 0;
  127. switch (player.continuitymin) {
  128. case 0:
  129. temp = 0;
  130. break;
  131. case 1:
  132. temp = 10;
  133. break;
  134. case 2:
  135. temp = 20;
  136. break;
  137. case 3:
  138. temp = 30;
  139. break;
  140. case 4:
  141. temp = 40;
  142. break;
  143. default:
  144. temp = 40;
  145. break;
  146. }
  147. // 加分 要考虑连击
  148. // player.score= parseInt(player.score)+parseInt(score)+parseInt(player.continuitymin)
  149. player.score= parseInt(player.score)+parseInt(score)+temp
  150. }
  151. }
  152. Games.setScore(playertype,parseInt(player.score));
  153. },
  154. addCount: function (playertype, type) {
  155. var player = this.getPlayer(playertype);
  156. switch (type) {
  157. case 0:
  158. this.addLeftCount(player);
  159. break;
  160. case 1:
  161. this.addMidCount(player);
  162. break;
  163. case 2:
  164. this.addRightCount(player);
  165. break;
  166. }
  167. player.attackCount++;
  168. // if (!player.continuitytag) {
  169. // player.continuitytag = true;
  170. // }
  171. player.continuitymin++;
  172. if (player.continuitymin > player.continuitymax) {
  173. player.continuitymax = player.continuitymin;
  174. }
  175. },
  176. //断了连续
  177. discontinuity: function (playertype) {
  178. var player = this.getPlayer(playertype);
  179. player.continuitymin = 0;
  180. // player.miss++;
  181. },
  182. addmiss: function (playertype) {
  183. var player = this.getPlayer(playertype);
  184. player.continuitymin = 0;
  185. player.miss++;
  186. },
  187. gethit: function (playertype) {
  188. var player = this.getPlayer(playertype);
  189. return player.continuitymin;
  190. },
  191. getPlayer: function (playertype) {
  192. var player = Statistics.player1;
  193. if (playertype == 0) {
  194. return Statistics.player1;
  195. } else {
  196. return Statistics.player2;
  197. }
  198. },
  199. addLeftCount: function (player) {
  200. player.leftCount++;
  201. },
  202. addMidCount: function (player) {
  203. player.midCount++;
  204. },
  205. addRightCount: function (player) {
  206. player.rightCount++;
  207. },
  208. };
  209. window.Btn = null;
  210. window.UserInfo = {
  211. Player : {
  212. id : 200,
  213. name : "本地汪汪",
  214. head : "https://ss0.bdstatic.com/" +
  215. "70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/" +
  216. "u=3356744803,2445309553&fm=26&gp=0.jpg",
  217. gender : 0
  218. },
  219. PlayerGameData : {
  220. power : 0,
  221. powerMax : 0,
  222. //默认飞过的星球
  223. currtag : 0,
  224. //流浪距离系数
  225. coefficient : 0,
  226. everypowerdata : [],
  227. //打中
  228. everypowerdataOK : [],
  229. },
  230. args : {
  231. }
  232. }
  233. window.GameData = {
  234. gameStartTime : 0,
  235. }
  236. window.RankingListData = {
  237. // {"createTime":0,
  238. // "isSurpass":false,
  239. // "isVip":0,
  240. // "maxCombo":0,
  241. // "nickName":"好友姓名200",
  242. // "portraits":"https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=1341035150,
  243. // 2132538438&fm=26&gp=0.jpg",
  244. // "score":160000,
  245. // "sex":0,
  246. // "userId":200}
  247. // {
  248. // createTime:0,
  249. // isVip:0,
  250. // maxCombo:0,
  251. // nickName:"姓名98",
  252. // portraits:"https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=1341035150,213" +
  253. // "2538438&fm=26&gp=0.jpg",
  254. // rank:98,
  255. // score:9902,
  256. // sex:0,
  257. // surpass:false,
  258. // userId:9316
  259. // },
  260. //最后的排行榜
  261. listdata0 :[
  262. {
  263. createTime:0,
  264. isVip:0,
  265. maxCombo:0,
  266. nickName:"姓名98好友",
  267. portraits:"https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=1341035150,213" +
  268. "2538438&fm=26&gp=0.jpg",
  269. rank:1,
  270. score:9902,
  271. sex:0,
  272. isSurpass:false,
  273. userId:9316
  274. },
  275. {
  276. createTime:0,
  277. isVip:0,
  278. maxCombo:0,
  279. nickName:"姓名99好友",
  280. portraits:"https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=1341035150,213" +
  281. "2538438&fm=26&gp=0.jpg",
  282. rank:2,
  283. score:10000,
  284. sex:0,
  285. isSurpass:false,
  286. userId:200
  287. },
  288. {
  289. createTime:0,
  290. isVip:0,
  291. maxCombo:0,
  292. nickName:"姓名100好友",
  293. portraits:"https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=1341035150,213" +
  294. "2538438&fm=26&gp=0.jpg",
  295. rank:3,
  296. score:10000,
  297. sex:0,
  298. isSurpass:false,
  299. userId:9316
  300. },
  301. {
  302. createTime:0,
  303. isVip:0,
  304. maxCombo:0,
  305. nickName:"姓名10好友",
  306. portraits:"https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=1341035150,213" +
  307. "2538438&fm=26&gp=0.jpg",
  308. rank:101,
  309. score:10000,
  310. sex:0,
  311. isSurpass:false,
  312. userId:9316
  313. },
  314. {
  315. createTime:0,
  316. isVip:0,
  317. maxCombo:0,
  318. nickName:"姓名102好友",
  319. portraits:"https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=1341035150,213" +
  320. "2538438&fm=26&gp=0.jpg",
  321. rank:102,
  322. score:10000,
  323. sex:0,
  324. isSurpass:false,
  325. userId:9316
  326. },
  327. {
  328. createTime:0,
  329. isVip:0,
  330. maxCombo:0,
  331. nickName:"姓名103好友",
  332. portraits:"https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=1341035150,213" +
  333. "2538438&fm=26&gp=0.jpg",
  334. rank:103,
  335. score:10000,
  336. sex:0,
  337. isSurpass:false,
  338. userId:9316
  339. },
  340. {
  341. createTime:0,
  342. isVip:0,
  343. maxCombo:0,
  344. nickName:"姓名104好友",
  345. portraits:"https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=1341035150,213" +
  346. "2538438&fm=26&gp=0.jpg",
  347. rank:104,
  348. score:10000,
  349. sex:0,
  350. isSurpass:false,
  351. userId:9316
  352. },
  353. {
  354. createTime:0,
  355. isVip:0,
  356. maxCombo:0,
  357. nickName:"姓名105好友",
  358. portraits:"https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=1341035150,213" +
  359. "2538438&fm=26&gp=0.jpg",
  360. rank:105,
  361. score:10000,
  362. sex:0,
  363. isSurpass:false,
  364. userId:9316
  365. },
  366. {
  367. createTime:0,
  368. isVip:0,
  369. maxCombo:0,
  370. nickName:"姓名106好友",
  371. portraits:"https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=1341035150,213" +
  372. "2538438&fm=26&gp=0.jpg",
  373. rank:106,
  374. score:10000,
  375. sex:0,
  376. isSurpass:false,
  377. userId:9316
  378. },
  379. {
  380. createTime:0,
  381. isVip:0,
  382. maxCombo:0,
  383. nickName:"姓名107好友",
  384. portraits:"https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=1341035150,213" +
  385. "2538438&fm=26&gp=0.jpg",
  386. rank:107,
  387. score:10000,
  388. sex:0,
  389. isSurpass:false,
  390. userId:9316
  391. },
  392. {
  393. createTime:0,
  394. isVip:0,
  395. maxCombo:0,
  396. nickName:"姓名108好友",
  397. portraits:"https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=1341035150,213" +
  398. "2538438&fm=26&gp=0.jpg",
  399. rank:108,
  400. score:10000,
  401. sex:0,
  402. isSurpass:false,
  403. userId:9316
  404. },
  405. {
  406. createTime:0,
  407. isVip:0,
  408. maxCombo:0,
  409. nickName:"姓名109好友",
  410. portraits:"https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=1341035150,213" +
  411. "2538438&fm=26&gp=0.jpg",
  412. rank:109,
  413. score:10000,
  414. sex:0,
  415. isSurpass:false,
  416. userId:9316
  417. },
  418. {
  419. createTime:0,
  420. isVip:0,
  421. maxCombo:0,
  422. nickName:"姓名110好友",
  423. portraits:"https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=1341035150,213" +
  424. "2538438&fm=26&gp=0.jpg",
  425. rank:110,
  426. score:10000,
  427. sex:0,
  428. isSurpass:false,
  429. userId:9316
  430. },
  431. ],
  432. listdata1 :[
  433. {
  434. createTime:0,
  435. isVip:0,
  436. maxCombo:0,
  437. nickName:"姓名98全国",
  438. portraits:"https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=1341035150,213" +
  439. "2538438&fm=26&gp=0.jpg",
  440. rank:98,
  441. score:9902,
  442. sex:0,
  443. isSurpass:false,
  444. userId:9316
  445. },
  446. {
  447. createTime:0,
  448. isVip:0,
  449. maxCombo:0,
  450. nickName:"姓名99全国",
  451. portraits:"https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=1341035150,213" +
  452. "2538438&fm=26&gp=0.jpg",
  453. rank:99,
  454. score:10000,
  455. sex:0,
  456. isSurpass:false,
  457. userId:200
  458. },
  459. {
  460. createTime:0,
  461. isVip:0,
  462. maxCombo:0,
  463. nickName:"姓名100全国",
  464. portraits:"https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=1341035150,213" +
  465. "2538438&fm=26&gp=0.jpg",
  466. rank:100,
  467. score:10000,
  468. sex:0,
  469. isSurpass:false,
  470. userId:9316
  471. },
  472. {
  473. createTime:0,
  474. isVip:0,
  475. maxCombo:0,
  476. nickName:"姓名10全国",
  477. portraits:"https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=1341035150,213" +
  478. "2538438&fm=26&gp=0.jpg",
  479. rank:101,
  480. score:10000,
  481. sex:0,
  482. isSurpass:false,
  483. userId:9316
  484. },
  485. {
  486. createTime:0,
  487. isVip:0,
  488. maxCombo:0,
  489. nickName:"姓名102全国",
  490. portraits:"https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=1341035150,213" +
  491. "2538438&fm=26&gp=0.jpg",
  492. rank:102,
  493. score:10000,
  494. sex:0,
  495. isSurpass:false,
  496. userId:9316
  497. },
  498. {
  499. createTime:0,
  500. isVip:0,
  501. maxCombo:0,
  502. nickName:"姓名103全国",
  503. portraits:"https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=1341035150,213" +
  504. "2538438&fm=26&gp=0.jpg",
  505. rank:103,
  506. score:10000,
  507. sex:0,
  508. isSurpass:false,
  509. userId:9316
  510. },
  511. {
  512. createTime:0,
  513. isVip:0,
  514. maxCombo:0,
  515. nickName:"姓名104全国",
  516. portraits:"https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=1341035150,213" +
  517. "2538438&fm=26&gp=0.jpg",
  518. rank:104,
  519. score:10000,
  520. sex:0,
  521. isSurpass:false,
  522. userId:9316
  523. },
  524. {
  525. createTime:0,
  526. isVip:0,
  527. maxCombo:0,
  528. nickName:"姓名105全国",
  529. portraits:"https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=1341035150,213" +
  530. "2538438&fm=26&gp=0.jpg",
  531. rank:105,
  532. score:10000,
  533. sex:0,
  534. isSurpass:false,
  535. userId:9316
  536. },
  537. {
  538. createTime:0,
  539. isVip:0,
  540. maxCombo:0,
  541. nickName:"姓名106全国",
  542. portraits:"https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=1341035150,213" +
  543. "2538438&fm=26&gp=0.jpg",
  544. rank:106,
  545. score:10000,
  546. sex:0,
  547. isSurpass:false,
  548. userId:9316
  549. },
  550. {
  551. createTime:0,
  552. isVip:0,
  553. maxCombo:0,
  554. nickName:"姓名107全国",
  555. portraits:"https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=1341035150,213" +
  556. "2538438&fm=26&gp=0.jpg",
  557. rank:107,
  558. score:10000,
  559. sex:0,
  560. isSurpass:false,
  561. userId:9316
  562. },
  563. {
  564. createTime:0,
  565. isVip:0,
  566. maxCombo:0,
  567. nickName:"姓名108全国",
  568. portraits:"https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=1341035150,213" +
  569. "2538438&fm=26&gp=0.jpg",
  570. rank:108,
  571. score:10000,
  572. sex:0,
  573. isSurpass:false,
  574. userId:9316
  575. },
  576. {
  577. createTime:0,
  578. isVip:0,
  579. maxCombo:0,
  580. nickName:"姓名109全国",
  581. portraits:"https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=1341035150,213" +
  582. "2538438&fm=26&gp=0.jpg",
  583. rank:109,
  584. score:10000,
  585. sex:0,
  586. isSurpass:false,
  587. userId:9316
  588. },
  589. {
  590. createTime:0,
  591. isVip:0,
  592. maxCombo:0,
  593. nickName:"姓名110全国",
  594. portraits:"https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=1341035150,213" +
  595. "2538438&fm=26&gp=0.jpg",
  596. rank:110,
  597. score:10000,
  598. sex:0,
  599. isSurpass:false,
  600. userId:9316
  601. },
  602. ],
  603. setAdd0 : function(){
  604. let tempList = [
  605. {
  606. createTime:0,
  607. isVip:0,
  608. maxCombo:0,
  609. nickName:"模拟添加出来的0_900",
  610. portraits:"https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=1341035150,213" +
  611. "2538438&fm=26&gp=0.jpg",
  612. rank:900,
  613. score:10000,
  614. sex:0,
  615. isSurpass:false,
  616. userId:9316
  617. },
  618. {
  619. createTime:0,
  620. isVip:0,
  621. maxCombo:0,
  622. nickName:"模拟添加出来的0_901",
  623. portraits:"https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=1341035150,213" +
  624. "2538438&fm=26&gp=0.jpg",
  625. rank:901,
  626. score:10000,
  627. sex:0,
  628. isSurpass:false,
  629. userId:9316
  630. },
  631. {
  632. createTime:0,
  633. isVip:0,
  634. maxCombo:0,
  635. nickName:"模拟添加出来的0_902",
  636. portraits:"https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=1341035150,213" +
  637. "2538438&fm=26&gp=0.jpg",
  638. rank:902,
  639. score:10000,
  640. sex:0,
  641. isSurpass:false,
  642. userId:9316
  643. }
  644. ];
  645. for (var i = 0; i < tempList.length; i++) {
  646. this.listdata0.push(tempList[i])
  647. }
  648. },
  649. setAdd1 : function(){
  650. let tempList = [
  651. {
  652. createTime:0,
  653. isVip:0,
  654. maxCombo:0,
  655. nickName:"1模拟添加出来的0_900",
  656. portraits:"https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=1341035150,213" +
  657. "2538438&fm=26&gp=0.jpg",
  658. rank:900,
  659. score:10000,
  660. sex:0,
  661. isSurpass:false,
  662. userId:9316
  663. },
  664. {
  665. createTime:0,
  666. isVip:0,
  667. maxCombo:0,
  668. nickName:"1模拟添加出来的0_901",
  669. portraits:"https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=1341035150,213" +
  670. "2538438&fm=26&gp=0.jpg",
  671. rank:901,
  672. score:10000,
  673. sex:0,
  674. isSurpass:false,
  675. userId:9316
  676. },
  677. {
  678. createTime:0,
  679. isVip:0,
  680. maxCombo:0,
  681. nickName:"1模拟添加出来的0_902",
  682. portraits:"https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=1341035150,213" +
  683. "2538438&fm=26&gp=0.jpg",
  684. rank:902,
  685. score:10000,
  686. sex:0,
  687. isSurpass:false,
  688. userId:9316
  689. },
  690. {
  691. createTime:0,
  692. isVip:0,
  693. maxCombo:0,
  694. nickName:"1模拟添加出来的0_902",
  695. portraits:"https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=1341035150,213" +
  696. "2538438&fm=26&gp=0.jpg",
  697. rank:902,
  698. score:10000,
  699. sex:0,
  700. isSurpass:false,
  701. userId:9316
  702. },
  703. {
  704. createTime:0,
  705. isVip:0,
  706. maxCombo:0,
  707. nickName:"1模拟添加出来的0_902",
  708. portraits:"https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=1341035150,213" +
  709. "2538438&fm=26&gp=0.jpg",
  710. rank:902,
  711. score:10000,
  712. sex:0,
  713. isSurpass:false,
  714. userId:9316
  715. }
  716. ];
  717. for (var i = 0; i < tempList.length; i++) {
  718. this.listdata1.push(tempList[i])
  719. }
  720. },
  721. UserId : 200,
  722. myRank : {
  723. createTime:0,
  724. isVip:0,
  725. maxCombo:0,
  726. nickName:"汪汪",
  727. portraits:"https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/" +
  728. "it/u=1341035150,2132538438&fm=26&gp=0.jpg",
  729. rank:1,
  730. score:9900,
  731. sex:0,
  732. surpass:false,
  733. userId:200
  734. },
  735. //前中后
  736. aroundArr : [
  737. // {
  738. // createTime:0,
  739. // isVip:0,
  740. // maxCombo:0,
  741. // nickName:"姓名98",
  742. // portraits:"https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=1341035150,213" +
  743. // "2538438&fm=26&gp=0.jpg",
  744. // rank:98,
  745. // score:9902,
  746. // sex:0,
  747. // surpass:false,
  748. // userId:9316
  749. // },
  750. null,
  751. {
  752. createTime:0,
  753. isVip:0,
  754. maxCombo:0,
  755. nickName:"姓名99",
  756. portraits:"https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/" +
  757. "it/u=1341035150,2132538438&fm=26&gp=0.jpg",
  758. rank:0,
  759. score:9900,
  760. sex:0,
  761. surpass:false,
  762. userId:200
  763. },
  764. // {
  765. // createTime:0,
  766. // isVip:0,
  767. // maxCombo:0,
  768. // nickName:"姓名100",
  769. // portraits:"https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=1341035150," +
  770. // "2132538438&fm=26&gp=0.jpg",
  771. // rank:100,
  772. // score:9900,
  773. // sex:0,
  774. // surpass:false,
  775. // userId:5414
  776. // }
  777. null
  778. ]
  779. }
  780. window.ShareImage = {
  781. img : ""
  782. }
  783. window.Log = {
  784. isShow : true,
  785. // isShow : false,
  786. info(){
  787. if (this.isShow) {
  788. console.log.apply(console,arguments);
  789. }
  790. }
  791. }
  792. // window.times = {
  793. // time : null
  794. // }