webpackJsonp([30],{ZP4e:function(e,t){},"g2/O":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("//Fk"),s=a.n(n),o=a("mvHQ"),i=a.n(o),r=a("Au9i"),c=a("PGxA"),d=a("7zYZ"),l=a("LxxX"),u=a("nfCj"),m=(a("/VJG"),a("TCmv")),f={name:"cloudCourse",metaInfo:{title:document.title,meta:[{name:"description",content:"涓熆浜戣鍫傛槸涓熆浜戠煡锛堢熆灞辩煡璇嗕俊鎭湇鍔″钩鍙帮級鏃椾笅鍦ㄧ嚎鐭夸笟瑙嗛鎾斁骞冲彴锛屼负鐭垮北涓撲笟鎶€鏈汉鍛樻彁渚涚熆涓氫笓瀹惰棰戠偣鎾湇鍔★紝鍚屾椂涓虹熆灞变紒涓氭彁渚涚熆灞卞畨鍏ㄣ€佺熆灞辨妧鏈€佺熆灞变笓涓氬煿璁湇鍔★紝鏄泦鍦ㄧ嚎璇剧▼瀛︿範銆佽祫鏍艰€冭瘯涓€浣撳寲鐨勭熆灞变笓涓氬煿璁钩鍙�"},{name:"keyWords",content:"涓熆浜戣鍫�,涓熆浜戣棰�,涓熆浜戝钩鍙�,鐭夸笟鍩硅,鐭垮北瀹夊叏鍩硅"}]},components:{QrcodeOfPayment:m.a,DivButtom:c.a,commonLoginTop:d.a,scienceNav:l.a,topNavRow:u.a},data:function(){return{EnumItem:[],hotEnumItem:[],demandClassifyColor:-1,demandHotColor:-1,demandPage:1,demandVideoArray:[],demandTotal:0,searchContent:"",searchInfo:[],pageModel:{pageIndex:1,pageSize:20,orderField:"DTM_ADD_TIME",isAscending:!1,searchInfo:"[]"}}},methods:{PageLoadEnumItem:function(e){var t=this;r.Indicator.open(),this.$axios({method:"get",url:"/Admin/Common/GetEnumItems?parentNode="+e+"&date="+(new Date).getTime(),transformRequest:[function(e){return e=i()(e)}],data:{}}).then(function(a){r.Indicator.close(),a.data.success&&(1005==e?t.EnumItem=a.data.data:1012==e&&(t.hotEnumItem=a.data.data))}).catch(function(e){r.Indicator.close()})},getVideoInfosInOrder:function(e){switch(this.demandClassifyColor=-1,this.demandHotColor=-1,document.getElementsByClassName("demand-all")[0].style.color="#666",e){case 1:this.searchInfo=[{field:"NVC_RECOMMAND",value:"鏄�",opt:"1",group:"1",link:!0}];break;case 2:this.searchInfo=[],this.pageModel.orderField="DTM_ADD_TIME";break;case 3:this.searchInfo=[],this.pageModel.orderField="INT_CLICK_COUNT"}this.getPersonVideoInfos()},getAllVideoInfos:function(){document.getElementsByClassName("demand-all")[0].style.color="#43bc60",this.demandClassifyColor=-1,this.demandHotColor=-1,this.demandPage=1,this.searchInfo=[],this.pageModel.orderField="INT_RECOMMAND_SORT DESC,DTM_ADD_TIME DESC",this.getPersonVideoInfos()},demandClassifyClick:function(e,t){document.getElementsByClassName("demand-all")[0].style.color="#666",this.pageModel.orderField="DTM_ADD_TIME",this.demandPage=1,this.demandClassifyColor=t,this.demandHotColor=-1,this.searchInfo=[{field:"NVC_VIDEO_NAMECLASSIFY",value:e.NVC_NAME,opt:"9",group:"1",link:!0}],this.getPersonVideoInfos()},demandHotClick:function(e,t){document.getElementsByClassName("demand-all")[0].style.color="#666",this.pageModel.orderField="DTM_ADD_TIME",this.demandPage=1,this.demandHotColor=t,this.demandClassifyColor=-1,this.searchInfo=[{field:"NVC_LABEL",value:e.NVC_NAME,opt:"9",group:"1",link:!0}],this.getPersonVideoInfos()},searchClick:function(){this.demandPage=1,this.demandClassifyColor=-1,this.demandHotColor=-1,document.getElementsByClassName("demand-all")[0].style.color="#666",this.searchInfo=[{field:"NVC_AUTHOR",value:this.searchContent,opt:"9",group:"1",link:!1},{field:"NVC_VIDEO_NAME",value:this.searchContent,opt:"9",group:"1",link:!1}],this.getPersonVideoInfos()},getPersonVideoInfos:function(){var e=this;this.pageModel.pageIndex=this.demandPage,this.pageModel.searchInfo=i()(this.searchInfo),r.Indicator.open(),this.$axios({method:"post",url:"/CloudVideo/OndemandCourses/GetPersonVideoInfos?date="+(new Date).getTime(),transformRequest:[function(e){return e=i()(e)}],data:this.pageModel}).then(function(t){r.Indicator.close(),e.demandVideoArray=t.data.data,e.demandTotal=t.data.total;for(var n=0;n<e.demandVideoArray.length;n++)""!=e.demandVideoArray[n].NVC_IMG_URL?e.demandVideoArray[n].NVC_IMG_URL=""+e.demandVideoArray[n].NVC_IMG_URL:e.demandVideoArray[n].NVC_IMG_URL=a("nP1P")}).catch(function(e){r.Indicator.close()})},handleDemandChange:function(e){this.demandPage=e,this.getPersonVideoInfos()},clickDemandVideo:function(e){var t=this;event.stopPropagation(),s.a.all([this.checkLogin()]).then(function(a){a&&t.checkVipStatus(e)}).catch(function(e){})},checkVipStatus:function(e){var t=void 0;if("2"==e.isHaving?t=!0:"VIP"==e.NVC_SHOW?this.getcookie("roleCode").indexOf("VIP002")>-1?t=!0:this.$message.warning("褰撳墠瑙嗛浠呬細鍛樺彲浠ヨ鐪�,鍙仈绯荤鐞嗗憳璧电粡鐞嗭紙鑱旂郴鐢佃瘽锛�0555-2309838锛夋垚涓篤IP"):t=!0,t){var a=this.$router.resolve({name:"demandVideo",query:{id:e.ID}});window.open(a.href,"_blank")}},saveShoppingCart:function(e,t){var a=this;event.stopPropagation(),r.Indicator.open();var n={NVC_MERCHANDISE_ID:"",NVC_MERCHANDISE_TYPE:"瑙嗛",INT_MERCHANDISE_QUANTITY:1};n.NVC_MERCHANDISE_ID=e.ID,this.$axios({method:"post",url:"/Admin/User/SaveShoppingCart?date="+(new Date).getTime(),transformRequest:[function(e){return e=i()(e)}],data:{NVC_MERCHANDISE_ID:n.NVC_MERCHANDISE_ID,NVC_MERCHANDISE_TYPE:n.NVC_MERCHANDISE_TYPE,INT_MERCHANDISE_QUANTITY:n.INT_MERCHANDISE_QUANTITY}}).then(function(e){r.Indicator.close(),e.data.success?(a.$message({message:"鍔犲叆璐墿杞︽垚鍔�",type:"success"}),a.demandVideoArray[t].isHaving="1"):a.$message.error("鍔犲叆璐墿杞﹀け璐�")}).catch(function(e){r.Indicator.close(),a.$message.error("鍔犲叆璐墿杞﹀け璐�")})},showSuccessPayPage:function(){var e=this;this.$refs.qrcodeOfPayment.showSuccessPayPage(),setTimeout(function(){e.$router.go(0)},1500)},closeDialog:function(){this.$refs.qrcodeOfPayment.closeDialog(),this.$refs.qrcodeOfPayment.clearTimeOut1()},confirmPurchase:function(e){event.stopPropagation(),this.$refs.qrcodeOfPayment.confirmPurchase(e)}},mounted:function(){document.title="涓熆浜戣鍫�-涓熆浜戣棰�-涓熆浜戠煡",this.PageLoadEnumItem("1005"),this.PageLoadEnumItem("1012"),this.getAllVideoInfos()},beforeRouteEnter:function(e,t,a){a()}},C={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticStyle:{padding:"0",margin:"0"}},[a("common-login-top"),e._v(" "),a("science-nav",{attrs:{tabActive:"1"}}),e._v(" "),e._m(0),e._v(" "),a("top-nav-row",{attrs:{activeId:"1"}}),e._v(" "),a("div",{staticStyle:{width:"1200px",height:"50px",margin:"-50px auto 0 auto"}},[a("div",{staticClass:"search-group"},[a("el-input",{staticClass:"input-with-select",staticStyle:{width:"300px","margin-top":"10px","font-size":"13px"},attrs:{placeholder:"璇锋悳绱�(璇剧▼鍚嶇О銆佷綔鑰�)",size:"small"},model:{value:e.searchContent,callback:function(t){e.searchContent=t},expression:"searchContent"}},[a("el-button",{staticStyle:{padding:"11px 20px"},attrs:{slot:"append",icon:"el-icon-search"},on:{click:e.searchClick},slot:"append"})],1)],1)]),e._v(" "),a("div",{staticClass:"course"},[a("div",{staticClass:"classify"},[a("h3"),e._v(" "),a("div",{staticClass:"course-allgroup"},[a("span",{staticClass:"course-group-all"},[e._v("鎵€鏈夊垎绫�")]),e._v(" "),a("span",{staticClass:"course-groups"},[a("a",{staticClass:"demand-all",attrs:{href:""},on:{click:function(t){return t.preventDefault(),e.getAllVideoInfos(t)}}},[e._v("鍏ㄩ儴")])])]),e._v(" "),a("div",{staticClass:"course-group",staticStyle:{"border-bottom":"0"}},[a("span",{staticClass:"course-group-all"},[e._v("鍒嗙被")]),e._v(" "),e._l(e.EnumItem,function(t,n){return a("span",{key:n,staticClass:"course-groups"},[n==e.demandClassifyColor?a("a",{staticStyle:{color:"#43bc60"},attrs:{href:""},on:{click:function(a){return a.preventDefault(),e.demandClassifyClick(t,n)}}},[e._v(e._s(t.NVC_NAME))]):a("a",{attrs:{href:""},on:{click:function(a){return a.preventDefault(),e.demandClassifyClick(t,n)}}},[e._v(e._s(t.NVC_NAME))])])})],2),e._v(" "),a("div",{staticClass:"course-group"},[a("span",{staticClass:"course-group-all"},[e._v("鐑偣")]),e._v(" "),e._l(e.hotEnumItem,function(t,n){return a("span",{key:n,staticClass:"course-groups"},[n==e.demandHotColor?a("a",{staticStyle:{color:"#43bc60"},attrs:{href:""},on:{click:function(a){return a.preventDefault(),e.demandHotClick(t,n)}}},[e._v(e._s(t.NVC_NAME))]):a("a",{attrs:{href:""},on:{click:function(a){return a.preventDefault(),e.demandHotClick(t,n)}}},[e._v(e._s(t.NVC_NAME))])])})],2),e._v(" "),a("div",{staticClass:"label-all"},[a("span",{staticStyle:{border:"none"}},[a("a",{attrs:{href:""},on:{click:function(t){return t.preventDefault(),e.getVideoInfosInOrder(1)}}},[e._v("鎺ㄨ崘")])]),e._v(" "),a("span",{staticStyle:{border:"none"}},[a("a",{attrs:{href:""},on:{click:function(t){return t.preventDefault(),e.getVideoInfosInOrder(2)}}},[e._v("鏈€鏂�")])]),e._v(" "),a("span",{staticStyle:{border:"none"}},[a("a",{attrs:{href:""},on:{click:function(t){return t.preventDefault(),e.getVideoInfosInOrder(3)}}},[e._v("鏈€鐑�")])])])]),e._v(" "),a("div",{staticClass:"course-lists"},[e._l(e.demandVideoArray,function(t,n){return a("div",{key:n,staticClass:"course-list"},[a("img",{staticClass:"video-img",attrs:{title:t.NVC_VIDEO_NAME,src:t.NVC_IMG_URL,alt:"鍥剧墖"}}),e._v(" "),a("span",{staticClass:"span-coursetitle-off",attrs:{title:t.NVC_VIDEO_NAME}},[e._v(e._s(t.NVC_VIDEO_NAME))]),e._v(" "),t.DCL_PRICE>0&&"0"===t.isHaving?a("span",{staticClass:"span-join-shoppingtrolley",on:{click:function(a){return e.confirmPurchase(t)}}},[e._v("\n          璐拱瑙嗛\n        ")]):e._e(),e._v(" "),0===t.DCL_PRICE||"2"===t.isHaving?a("span",{staticClass:"span-join-shoppingtrolley",on:{click:function(a){return e.clickDemandVideo(t)}}},[e._v("\n          鐐瑰嚮瑙傜湅\n        ")]):e._e(),e._v(" "),"VIP"==t.NVC_SHOW?a("span",{staticClass:"span-CHARGE_STANDARD-off",staticStyle:{color:"#de0000"}},[e._v("浼氬憳")]):e._e(),e._v(" "),"VIP"!==t.NVC_SHOW&&0==t.DCL_PRICE?a("span",{staticClass:"span-CHARGE_STANDARD-off",staticStyle:{color:"green"}}):e._e(),e._v(" "),"VIP"!==t.NVC_SHOW&&0!==t.DCL_PRICE?a("span",{staticClass:"span-CHARGE_STANDARD-off"},[e._v("楼"+e._s(t.DCL_PRICE))]):e._e()])}),e._v(" "),a("div",{staticStyle:{width:"100%",float:"left","margin-top":"25px"}},[a("el-pagination",{staticStyle:{"text-align":"center"},attrs:{background:"","current-page":e.demandPage,"page-size":e.pageModel.pageSize,layout:"total, prev, pager, next",total:e.demandTotal},on:{"current-change":e.handleDemandChange}})],1)],2)]),e._v(" "),e._m(1),e._v(" "),a("div",[a("div-buttom")],1),e._v(" "),a("QrcodeOfPayment",{ref:"qrcodeOfPayment"})],1)},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticStyle:{position:"relative",height:"210px"}},[t("img",{staticClass:"image",attrs:{src:a("Vy1l")}})])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"advertisement"},[t("img",{staticStyle:{width:"1200px"},attrs:{src:a("MYcX"),alt:"鍥剧墖"}})])}]};var _=a("VU/8")(f,C,!1,function(e){a("ZP4e")},"data-v-74daded8",null);t.default=_.exports},nP1P:function(e,t,a){e.exports=a.p+"static/img/no.1ee2f8f.png"}});
//# sourceMappingURL=30.547dcb4d6df62cb0f5e0.js.map