videodetails.js 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775
  1. $(document).ready(function () {
  2. var languageParameter = localStorage.getItem('language') || 'CN';
  3. LanguageSwitching();
  4. if (languageParameter == "CN") {
  5. $('#chinese').addClass(" isSelectLanguage");
  6. $('#chinese').siblings().removeClass(" isSelectLanguage");
  7. } else {
  8. $('#english').addClass(" isSelectLanguage");
  9. $('#english').siblings().removeClass(" isSelectLanguage");
  10. }
  11. $("#iiif").hide();
  12. $('.logo').on('click', function () {
  13. localStorage.setItem('logo', true);
  14. $(location).attr("href", "index.html?logo=true");
  15. })
  16. var bannerArr = new Array();
  17. let url = window.location.search;
  18. var theRequest = new Object();
  19. if (url.indexOf("?") != -1) {
  20. var str = url.substr(1);
  21. strs = str.split("&");
  22. for (var i = 0; i < strs.length; i++) {
  23. theRequest[strs[i].split("=")[0]] = unescape(
  24. decodeURIComponent(strs[i].split("=")[1])
  25. );
  26. }
  27. }
  28. console.log(theRequest);
  29. $('.back').on('click', function () {
  30. let labelname = theRequest.labelname || '';
  31. let type = theRequest.type || '';
  32. let name = theRequest.name || 'Asia';
  33. window.location.href = "index.html?labelname=" +
  34. labelname +
  35. "&type=" +
  36. type +
  37. "&videotype=" +
  38. theRequest.videotype +
  39. "&name=" +
  40. name;
  41. })
  42. $('.videoName').text(theRequest.videoname);
  43. var uid = localStorage.getItem("uid") || 0;
  44. if(uid) {
  45. let uname = localStorage.getItem('username');
  46. $('.userName').show();
  47. $('.userName').text(uname);
  48. $('.myCollection').show();
  49. $('.loginOut').show();
  50. $('.userBtn').hide();
  51. }else{
  52. $('.userName').hide();
  53. $('.myCollection').hide();
  54. $('.loginOut').hide();
  55. $('.userBtn').show();
  56. }
  57. // 获取视频id
  58. var videoid = theRequest.videoid;
  59. // 获取视频数据
  60. function getData() {
  61. let languageParameter = localStorage.getItem('language') || 'CN';
  62. $.ajax({
  63. type: 'post',
  64. url: 'https://www.bibidd.com/bibidd/Mediasix/video_detail',
  65. dataType: "json",
  66. data: {
  67. video_id: videoid,
  68. LNG:languageParameter
  69. },
  70. success: function (res) {
  71. let videoLabelText = res.type_list.join();
  72. // 获取推荐视频
  73. getTuiJianVideoData(videoLabelText);
  74. // 记录观看视频
  75. recordWatch(videoLabelText);
  76. $('.fabulous').find("p").eq(0).text(res.zan);
  77. let videoSrc = res.data;
  78. let adv = res.adv;
  79. $('.headBannerImg').attr('data-original', adv.img);
  80. $('.headBannerImg').on('click', function() {
  81. window.location.href = adv.jump_link;
  82. })
  83. var loadingUrl = "/Public/bibidd/images/loading.png";
  84. $(".lazy").lazyload({
  85. effect: "show",
  86. placeholder: loadingUrl,
  87. failurelimit: 10,
  88. skip_invisible: false,
  89. });
  90. let setTimeOutNum = 5;
  91. let timer = setInterval(function () {
  92. setTimeOutNum--;
  93. $('.setTimeOutNum').text(setTimeOutNum);
  94. }, 1000)
  95. let iframe = document.getElementById('iiif')
  96. setTimeout(() => {
  97. $('.headBannerImg').hide();
  98. clearInterval(timer);
  99. iframe.src = videoSrc;
  100. if (iframe.attachEvent) { // IE下
  101. iframe.attachEvent("onload", function() {
  102. //后续操作
  103. $("#iiif").show();
  104. $(".quanquan").hide();
  105. });
  106. } else {
  107. iframe.onload = function() {
  108. //后续操作
  109. $("#iiif").show();
  110. $(".quanquan").hide();
  111. };
  112. }
  113. }, 5000);
  114. },
  115. complete:function(res){
  116. // 页面渲染
  117. let videoDetailsData = res.responseJSON.type_list;
  118. let labelListHtml = '';
  119. $.each(videoDetailsData, function(index, item){
  120. labelListHtml += '<div class="labelText">' + item+ '</div>'
  121. })
  122. $('.labelList').html(labelListHtml);
  123. let hhh = $('.labelList').innerHeight();
  124. if(hhh > 50) {
  125. $('.expandLabelImg').show();
  126. }
  127. $('.labelListBackground').hide();
  128. // 展开该视频包含标签
  129. $('.expandLabelImg').on('click', function(){
  130. $('.labelList').css('height', 'auto');
  131. $(this).hide();
  132. })
  133. // 查看更多标签视频
  134. $('.labelText').on('click', function(){
  135. let typename = $(this).text();
  136. let labelname = theRequest.labelname || '';
  137. let type = theRequest.type || '';
  138. let name = theRequest.name || 'Asia';
  139. $(location).attr('href', 'labelVideoMore.html?typename=' + typename +
  140. "&labelname=" +
  141. labelname +
  142. "&type=" +
  143. type +
  144. "&videotype=" +
  145. theRequest.videotype +
  146. "&name=" +
  147. name);
  148. })
  149. }
  150. })
  151. }
  152. // 调用 获取视频数据 接口
  153. getData();
  154. // 用于获取用户ip地址
  155. $.get('https://jsonip.com/', function(res){
  156. var userIp = res.ip;
  157. });
  158. // 判断该视频是否被收藏
  159. var collectionStatus;
  160. function collectionData() {
  161. $.ajax({
  162. type: 'post',
  163. url: 'https://www.bibidd.com/bibidd/Mediasix/yn_shoucang',
  164. dataType: "json",
  165. data: {
  166. type: 'video',
  167. cid: videoid,
  168. uid: uid
  169. },
  170. success: function (res) {
  171. },
  172. complete: function (res) {
  173. let collectionData = res.responseJSON.message;
  174. if (collectionData === 'ok') {
  175. // 已经被收藏
  176. $('.collection img').attr('src', '/Public/bibidd/images/xingsel.png');
  177. collectionStatus = true;
  178. } else {
  179. $('.collection img').attr('src', '/Public/bibidd/images/xing.png');
  180. collectionStatus = false;
  181. }
  182. }
  183. })
  184. }
  185. if (uid) {
  186. collectionData();
  187. }
  188. // 点赞
  189. var fabulousStatus = true;
  190. $('.fabulous').on('click', function () {
  191. $('.fabulous img').attr('src', '/Public/bibidd/images/loading.gif');
  192. $.ajax({
  193. type: 'post',
  194. url: 'https://www.bibidd.com/bibidd/Mediasix/dianzan_img_video',
  195. dataType: "json",
  196. data: {
  197. type: 'video',
  198. cid: videoid,
  199. uid: uid
  200. },
  201. success: function (res) {
  202. let fabulous = $('.fabulous').find("p").eq(0).text();
  203. $('.fabulous').find("p").eq(0).text(Number(fabulous) + 1);
  204. $('.fabulous img').attr('src', '/Public/bibidd/images/zan.png');
  205. }
  206. })
  207. })
  208. var collectionChange = false;
  209. // 收藏
  210. $('.collection').on('click', function () {
  211. if (uid) {
  212. if (collectionStatus) {
  213. $('.collection img').attr('src', '/Public/bibidd/images/xing.png');
  214. collectionclose();
  215. } else {
  216. $('.collection img').attr('src', '/Public/bibidd/images/xingsel.png');
  217. collectionAdd();
  218. }
  219. } else {
  220. // 弹窗提示去登录
  221. $('.mine').animate({
  222. width:'100%'
  223. }, 100)
  224. }
  225. })
  226. // 添加收藏
  227. function collectionAdd() {
  228. $.ajax({
  229. type: 'post',
  230. url: 'https://www.bibidd.com/bibidd/Mediasix/add_to_shoucang',
  231. dataType: "json",
  232. data: {
  233. type: 'video',
  234. cid: videoid,
  235. uid: uid
  236. },
  237. success: function (res) {
  238. },
  239. complete: function (res) {
  240. let collectionData = res.responseJSON.message;
  241. if (collectionData === 'ok') {
  242. // 已经被收藏
  243. $('.collection img').attr('src', '/Public/bibidd/images/xingsel.png');
  244. collectionStatus = true;
  245. } else {
  246. $('.collection img').attr('src', '/Public/bibidd/images/xing.png');
  247. collectionStatus = false;
  248. if ( languageParameter == 'CN') {
  249. tip('請稍後再試');
  250. }else{
  251. tip('Please try again later');
  252. }
  253. }
  254. }
  255. })
  256. }
  257. // 取消收藏
  258. function collectionclose() {
  259. $.ajax({
  260. type: 'post',
  261. url: 'https://www.bibidd.com/bibidd/Mediasix/quxiao_shoucang',
  262. dataType: "json",
  263. data: {
  264. type: 'video',
  265. cid: videoid,
  266. uid: uid
  267. },
  268. success: function (res) {
  269. },
  270. complete: function (res) {
  271. let collectionData = res.responseJSON.message;
  272. if (collectionData === 'ok') {
  273. // 已经取消收藏
  274. $('.collection img').attr('src', '/Public/bibidd/images/xing.png');
  275. collectionStatus = false;
  276. } else {
  277. $('.collection img').attr('src', '/Public/bibidd/images/xingsel.png');
  278. collectionStatus = true;
  279. if ( languageParameter == 'CN') {
  280. tip('請稍後再試');
  281. }else{
  282. tip('Please try again later');
  283. }
  284. }
  285. }
  286. })
  287. }
  288. // 获取推荐视频
  289. function getTuiJianVideoData(videoLabelText) {
  290. $.ajax({
  291. type: 'post',
  292. url: 'https://www.bibidd.com/bibidd/Mediasix/tuijian_shipin',
  293. dataType: "json",
  294. data: {
  295. cid: videoid,
  296. now_video_type:videoLabelText
  297. },
  298. success: function (res) {
  299. },
  300. complete: function (res) {
  301. let dataArray = res.responseJSON.data;
  302. let videoHtml = '';
  303. $.each(dataArray, function (index, data) {
  304. if(data.jump_link) {
  305. let headBannerHtml =
  306. `
  307. <div class="banner">
  308. <div class="lazy bannerImg" data-original="${data.img}"></div>
  309. </div>
  310. `;
  311. videoHtml += headBannerHtml;
  312. }else{
  313. if(data.top_img != 'https://www.bibidd.com/bibidd_testtest/A.jpg') {
  314. videoHtml += `
  315. <div id="videoContent${index}" class="videoContent">
  316. <div class="lazy videoPhoto" data-original="${data.top_img}">
  317. <div class="videoTime">${videoTime(data.time_chuo)}</div>
  318. </div>
  319. <div class="videoTitle">${data.title}</div>
  320. </div>`;
  321. }
  322. }
  323. })
  324. $('.video').html(videoHtml);
  325. var loadingUrl = "/Public/bibidd/images/loading.png";
  326. $(".lazy").lazyload({
  327. effect: 'show',
  328. placeholder: loadingUrl,
  329. failurelimit: 10,
  330. skip_invisible: false,
  331. });
  332. // 查看视频详情
  333. $(".videoContent").on("click", function () {
  334. let thisId = $(this).attr('id');
  335. let thisIdLength = $(this).attr('id').length;
  336. let thisIndex = Number(thisId.substring(12, thisIdLength));
  337. let labelname = theRequest.labelname || '';
  338. let type = theRequest.type || '';
  339. let name = theRequest.name || 'Asia';
  340. $(location).attr("href", "videodetails.html?videoid=" + dataArray[thisIndex].id + "&fabulous=" + dataArray[thisIndex].thumbs_up + "&favorite=" + dataArray[thisIndex].favorite + "&videoname=" + dataArray[thisIndex].title +
  341. "&labelname=" +
  342. labelname +
  343. "&type=" +
  344. type +
  345. "&videotype=" +
  346. theRequest.videotype +
  347. "&name=" +
  348. name);
  349. });
  350. // 广告详情
  351. $('.banner').on('click', function() {
  352. window.location.href = dataArray[$(this).index()].jump_link;
  353. })
  354. }
  355. })
  356. }
  357. // 记录观看视频
  358. function recordWatch(videoLabelText) {
  359. $.ajax({
  360. type: 'post',
  361. url: 'https://www.bibidd.com/bibidd/Mediasix/add_user_views',
  362. dataType: "json",
  363. data: {
  364. uid: uid,
  365. video_type:videoLabelText
  366. },
  367. success: function (res) {
  368. },
  369. })
  370. }
  371. // 时间戳转换
  372. function formatDateTime(inputTime) {
  373. var timeStr;
  374. var date = new Date(inputTime);
  375. var y = date.getFullYear();
  376. var m = date.getMonth() + 1;
  377. m = m < 10 ? "0" + m : m;
  378. var d = date.getDate();
  379. d = d < 10 ? "0" + d : d;
  380. var h = date.getHours();
  381. h = h < 10 ? "0" + h : h;
  382. var minute = date.getMinutes();
  383. var second = date.getSeconds();
  384. minute = minute < 10 ? "0" + minute : minute;
  385. second = second < 10 ? "0" + second : second;
  386. let date1 = new Date(inputTime).getTime(); //开始时间
  387. let date2 = new Date().getTime(); //结束时间
  388. let date3 = Math.floor(date2 - date1);
  389. //计算出相差天数
  390. let days = Math.floor(date3 / (24 * 3600 * 1000));
  391. //计算出小时数
  392. let leave1 = date3 % (24 * 3600 * 1000); //计算天数后剩余的毫秒数
  393. let hours = Math.floor(leave1 / (3600 * 1000));
  394. //计算相差分钟数
  395. let leave2 = leave1 % (3600 * 1000); //计算小时数后剩余的毫秒数
  396. let minutes = Math.floor(leave2 / (60 * 1000));
  397. //计算相差秒数
  398. let leave3 = leave2 % (60 * 1000); //计算分钟数后剩余的毫秒数
  399. let seconds = Math.round(leave3 / 1000);
  400. if (days === 0 && hours === 0 && minutes <= 5) {
  401. // 超过一分钟的显示具体时间,精确到分钟,如:15分钟前。
  402. // timeStr = minutes < 10 ? "0" + minutes + '分钟前' : minutes + '分钟前';
  403. timeStr = "just";
  404. } else if (days === 0 && hours < 1 && minutes >= 5) {
  405. // 超过一分钟的显示具体时间,精确到分钟,如:15分钟前。
  406. // timeStr = hours < 10 ? "0" + hours + '小时前' : hours + '小时前';
  407. timeStr = "Within 1 hour";
  408. } else if (days === 0 && hours < 24 && hours >= 1) {
  409. // 超过一分钟的显示具体时间,精确到分钟,如:15分钟前。
  410. // timeStr = hours < 10 ? "0" + hours + '小时前' : hours + '小时前';
  411. timeStr = h + ":" + minute;
  412. }
  413. return timeStr;
  414. }
  415. Date.prototype.format = function (fmt) {
  416. var o = {
  417. "M+": this.getMonth() + 1, //月份
  418. "d+": this.getDate(), //日
  419. "h+": this.getHours(), //小时
  420. "m+": this.getMinutes(), //分
  421. "s+": this.getSeconds(), //秒
  422. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  423. "S": this.getMilliseconds() //毫秒
  424. };
  425. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  426. for (var k in o)
  427. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  428. return fmt;
  429. };
  430. function judgeDate(timestamp) { // 判断是否是今天还是昨天,在项目中用于说说时的时间显示
  431. //昨天的时间
  432. var day1 = new Date();
  433. day1.setDate(day1.getDate() - 1);
  434. var yesterday = day1.format("yyyy-MM-dd");
  435. //今天的时间
  436. var day2 = new Date();
  437. day2.setTime(day2.getTime());
  438. var today = day2.format("yyyy-MM-dd");
  439. if (timestamp) {
  440. var date = new Date(timestamp);
  441. } else {
  442. var date = new Date();
  443. }
  444. Y = date.getFullYear(),
  445. m = date.getMonth() + 1,
  446. d = date.getDate(),
  447. H = date.getHours(),
  448. i = date.getMinutes();
  449. if (m < 10) {
  450. m = '0' + m;
  451. }
  452. if (d < 10) {
  453. d = '0' + d;
  454. }
  455. if (H < 10) {
  456. H = '0' + H;
  457. }
  458. if (i < 10) {
  459. i = '0' + i;
  460. }
  461. var t = Y + '-' + m + '-' + d + ' ' + H + ':' + i;
  462. if (t.split(" ")[0] == today) {
  463. // return "今天"+t.split(" ")[1];
  464. return formatDateTime(timestamp);
  465. return H + ':' + i;
  466. } else if (t.split(" ")[0] == yesterday) {
  467. return "yesterday ";
  468. } else {
  469. return m + '-' + d;
  470. }
  471. }
  472. function tip(text) {
  473. $('#tip').show();
  474. $('.tiptext').text(text);
  475. setTimeout(() => {
  476. $('#tip').hide();
  477. }, 1000);
  478. }
  479. function videoTime(time) {
  480. let timeStr = "";
  481. let h =
  482. Math.floor(time / 60 / 60) < 10
  483. ? "0" + Math.floor(time / 60 / 60)
  484. : Math.floor(time / 60 / 60);
  485. let m =
  486. Math.floor(Math.floor(time / 60) % 60) < 10
  487. ? "0" + Math.floor(Math.floor(time / 60) % 60)
  488. : Math.floor(Math.floor(time / 60) % 60);
  489. let s =
  490. Math.floor(time % 60) < 10
  491. ? "0" + Math.floor(time % 60)
  492. : Math.floor(time % 60);
  493. timeStr = h + ":" + m + ":" + s;
  494. return timeStr;
  495. }
  496. var languageIsLong = false;
  497. $('.language').on('click', function() {
  498. if(languageIsLong) {
  499. $('.language img').attr('src', '/Public/bibidd/images/shang.png');
  500. $(".languageWrap").css('height','50px');
  501. }else{
  502. $('.language img').attr('src', '/Public/bibidd/images/xia.png');
  503. $(".languageWrap").css('height','150px');
  504. window.scrollTo(0, 99999999999);
  505. }
  506. languageIsLong = !languageIsLong;
  507. })
  508. $('.languageText').on('click', function() {
  509. switchLanguage($(this).attr("id"));
  510. })
  511. function LanguageSwitching() {
  512. var languageParameter = localStorage.getItem('language') || 'CN';
  513. if ( languageParameter == 'CN') {
  514. // 切换中文语言
  515. $("#register").find('p').eq(0).text("註冊");
  516. $("#login").find('p').eq(0).text("登錄");
  517. $(".myCollectionTxt").text("我的收藏");
  518. $(".mineLanguage").find('p').eq(0).text("語言");
  519. $(".loginOut").text("退出登錄");
  520. $('.language').find('p').eq(0).text('語言');
  521. $('.footerTitle').text('世界上最大的色情網站');
  522. $('.footerText').text("9169團隊每天都在更新和添加更多的色情視頻。 我們提供流媒體色情視頻、XXX相册和網絡上排名第一的免費性愛社區。 我們一直在努力新增更多的功能,讓你對色情的熱愛一直保持下去。");
  523. }else if (!languageParameter || languageParameter == 'EN'){
  524. // 切换英文语言
  525. $("#register").find('p').eq(0).text("Sign Up");
  526. $("#login").find('p').eq(0).text("Sign In");
  527. $(".myCollectionTxt").text("My collection");
  528. $(".mineLanguage").find('p').eq(0).text("Language");
  529. $(".loginOut").text("sign out");
  530. $('.language').find('p').eq(0).text('Language');
  531. $('.footerTitle').text("The world's largest pornographic website");
  532. $('.footerText').text("The 9169 team is always updating and adding more porn videos every day.We offer streaming porn videos, XXX photo albums, and the number 1 free sex community on the net. We’re always working towards adding more features that will keep your love for porno alive and well.");
  533. }
  534. }
  535. $('.mine').on('click', function(e) {
  536. e.preventDefault();
  537. $(this).animate({
  538. width:0
  539. }, 100)
  540. })
  541. // 前往我的收藏
  542. $('.myCollection').on('click', function() {
  543. $(location).attr("href", "collection.html");
  544. })
  545. // 前往註冊
  546. $('#login').on('click', function() {
  547. $(location).attr("href", "blogin.html");
  548. })
  549. // 前往登录
  550. $('#register').on('click', function() {
  551. $(location).attr("href", "register.html");
  552. })
  553. // 退出登录
  554. $('.myCollection').on('click', function() {
  555. localStorage.removeItem("uid");
  556. location.reload();
  557. })
  558. // 个人中心切换语言
  559. $('.languageType div').on('click', function() {
  560. $(this).addClass(" isSelectLanguage");
  561. $(this).siblings().removeClass(" isSelectLanguage");
  562. switchLanguage($(this).attr("id"));
  563. languageIsLong = false;
  564. })
  565. // 切换语言
  566. function switchLanguage (id) {
  567. languageIsLong = !languageIsLong;
  568. $(".language img").attr("src", "/Public/bibidd/images/shang.png");
  569. $(".languageWrap").css('height','50px');
  570. if (id == "CN" || id == "chinese") {
  571. // 切换中文
  572. localStorage.setItem("language", "CN");
  573. $('#chinese').addClass(" isSelectLanguage");
  574. $('#chinese').siblings().removeClass(" isSelectLanguage");
  575. } else {
  576. // 切换英文
  577. localStorage.setItem("language", "EN");
  578. $('#english').addClass(" isSelectLanguage");
  579. $('#english').siblings().removeClass(" isSelectLanguage");
  580. }
  581. LanguageSwitching();
  582. let labelname = theRequest.labelname || '';
  583. let type = theRequest.type || '';
  584. let name = theRequest.name || 'Asia';
  585. $(location).attr("href",
  586. "videodetails.html?videoid=" +
  587. theRequest.videoid +
  588. "&fabulous=" +
  589. theRequest.thumbs_up +
  590. "&favorite=" +
  591. theRequest.favorite +
  592. "&videoname=" +
  593. theRequest.videoname +
  594. "&labelname=" +
  595. labelname +
  596. "&type=" +
  597. type +
  598. "&videotype=" +
  599. theRequest.videotype +
  600. "&name=" +
  601. name
  602. );
  603. }
  604. // $(function() {
  605. // $.ajax({
  606. // type: "post",
  607. // url: "https://www.bibidd.com/bibidd/Mediasix/Return_to_ads",
  608. // dataType: "json",
  609. // data: {
  610. // adv_type:'video_beg'
  611. // },
  612. // success: function (res) {
  613. // bannerArr = res.data;
  614. // $('.headBannerImg').attr('data-original', bannerArr[0].img);
  615. // $('.headBannerImg').on('click', function() {
  616. // window.location.href = bannerArr[0].jump_link;
  617. // })
  618. // var loadingUrl = "/Public/bibidd/images/loading.png";
  619. // $(".lazy").lazyload({
  620. // effect: "show",
  621. // placeholder: loadingUrl,
  622. // failurelimit: 10,
  623. // skip_invisible: false,
  624. // });
  625. // let setTimeOutNum = 5;
  626. // let timer = setInterval(function () {
  627. // setTimeOutNum--;
  628. // $('.setTimeOutNum').text(setTimeOutNum);
  629. // }, 1000)
  630. // setTimeout(() => {
  631. // $('.headBannerImg').hide();
  632. // clearInterval(timer);
  633. // }, 5000);
  634. // }
  635. // })
  636. // }())
  637. })