2 lines
31 KiB
JavaScript
2 lines
31 KiB
JavaScript
|
"use strict";var PAGE_SIZE=48,courseCurrentPage=1,isLoadWare=!0,jsUrlArr=["/design/designstatic/chatroom/js/xgplayer/xgplayer.js","/design/designstatic/common/live/xgplayer-flv.js","/design/designstatic/common/live/xgplayer-hls.js","/design/designstatic/chatroom/video/playerreview.js"],mapwaretypes=["\u89C6\u9891\u97F3\u9891","\u6559\u5B66\u76F4\u64AD","\u5C0F\u73ED\u8BFE\u76F4\u64AD","\u624B\u673A\u76F4\u64AD","\u8BBE\u5907\u76F4\u64AD","\u7C7B\u6559\u5B66\u76F4\u64AD","","","","\u6587\u6863\u8BFE","\u56FE\u6587\u8BFE","\u53CC\u5E08\u8BFE\u5802","",""];let mapwaretypeicon=["/design/designstatic/aroom/img/courseware/coursewaretype/5.png","/design/designstatic/aroom/img/courseware/coursewaretype/1.png","/design/designstatic/aroom/img/courseware/coursewaretype/9.png","/design/designstatic/aroom/img/courseware/coursewaretype/6.png","/design/designstatic/aroom/img/courseware/coursewaretype/4.png","/design/designstatic/aroom/img/courseware/coursewaretype/3.png","","","","/design/designstatic/aroom/img/courseware/coursewaretype/8.png","","/design/designstatic/aroom/img/courseware/coursewaretype/7.png","",""];var wapurl=window.location.origin+"/pages/elective.html"+window.location.search,iniframe=/Android|webOS|iPhone|iPod|iPad|BlackBerry/i.test(navigator.userAgent)&&window.frames.length!=parent.frames.length;!/Android|webOS|iPhone|iPod|iPad|BlackBerry/i.test(navigator.userAgent)&&getPar("hideFooter")!=1&&(window.location.href=wapurl);function getCookie(u){var a=document.cookie.match(new RegExp("(^| )"+u+"=([^;]*)(;|$)"));return a?unescape(a[2]):""}function getPar(u){var a=decodeURI(decodeURI(window.location.search)),s=a.indexOf(u+"=");if(s===-1)return"";var e=a.slice(u.length+s+1),t=e.indexOf("&");return t!==-1&&(e=e.slice(0,t)),e}function resetImgSrc(u){var a=u.replace(/([^.]*).([^.]*)$/g,"$1!large.$2");return a}function coverError(u){var a=event.target;parseInt(a.dataset.errorcount)==0?(a.setAttribute("data-errorcount",1),a.src=u):parseInt(a.dataset.errorcount)==1&&(a.setAttribute("data-errorcount",2),a.src="/design/designstatic/common/image/course/defult.jpg")}function addreviewscript(u){var a=this;addJsFun(u)}function addJsFun(u){var a=this,s=jsUrlArr.length;s?addJs(jsUrlArr[0],function(){jsUrlArr.shift(),addJsFun.call(a,u)}):u.call(a)}function addJs(u,a){var s=document.getElementsByTagName("head")[0],e=document.createElement("script");e.type="text/javascript",e.src=u+"?v="+new Date().valueOf(),typeof a=="function"&&(e.onload=e.onreadystatechange=function(){(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")&&(a(),e.onload=e.onreadystatechange=null)}),s.appendChild(e)}(function(){var u={init:function(){var a=this;a.sortType=1,a.sortord=7,a.mainClassify=getPar("mainClassify")||"",a.childClassify=getPar("childClassify")||"",a.condition=getPar("keyword")||"",a.hideFooter=getPar("hideFooter")||"",a.designUrl=getPar("designUrl")?decodeURIComponent(getPar("designUrl")):"",a.regionList=[],a.regionShopList=[],a.isformsocialcard=getPar("isformsocialcard")||"",a.currentPage=1,a.pageSize=48,a.isLoadWare=!0,a.getClassifysData=[],a.classifyData=[],a.classifyData2=[],a.classifyData3=[],a.classifyData4=[],a.classifyData5=[],a.classifyData6=[],a.isApp(),a.getList(),a.getClassifys(),a.changeSort(),a.bindEvent(),a.getGlobalDesignConfig()},isApp:function(){var a=this;a.isSimplify=localStorage.appAdapt==="true"||a.hideFooter=="1",a.isSimplify?($("head").append("<style>.content>.foot{display: none; }</style>"),a.hideFooter=="1"&&$("html").css({"font-size":"39.9px"}),a.isformsocialcard&&$("body").removeClass("formsocialcard").addClass("formsocialcard")):(document.write('<script type="text/javascript" charset="utf-8" src="/design/designstatic/home/js/getPage.js"></script>'),document.write('<script type="text/javascript" charset="utf-8" src="/design/designstatic/home/waphome/js/module.js"></script>'))},getdesignUrl:function(){var a=this;!a.designUrl||$.ajax({headers:{token:getCookie("token")},type:"GET",url:a.designUrl,data:{targetServerNameForOverride:getPar("targetServerNameForOverride")||void 0},dataType:"json",async:
|