1 line
13 KiB
JavaScript
1 line
13 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-743a3c70"],{"33d3":function(e,t,i){"use strict";i.r(t);var o=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticStyle:{"background-color":"white"},attrs:{id:"course"}},[o("c-title",{attrs:{hide:!1,text:"精选推荐课程"}}),o("div",{staticClass:"box01"},[o("div",{staticClass:"Search-box",style:{width:3==this.fun.getPhoneEnv()?"375px":"100%"}},[o("div",{staticStyle:{"margin-left":"1rem"},on:{click:function(t){return e.$router.back()}}},[o("img",{staticStyle:{color:"#FF7800",width:"1.2rem",height:"1rem"},attrs:{src:i("f331")}})]),o("van-search",{staticStyle:{flex:"1"},attrs:{placeholder:"搜索课程/讲师"},model:{value:e.searchVal,callback:function(t){e.searchVal=t},expression:"searchVal"}})],1),o("ul",{staticClass:"screen",style:{width:3==this.fun.getPhoneEnv()?"375px":"100%"}},[o("li",{staticClass:"whole",class:[e.filter_order?"":"activeColor"],on:{click:function(t){return e.getDataBth("")}}},[e._v("综合")]),o("li",{staticClass:"sales_volume",on:{click:function(t){return e.getDataBth("sales")}}},[o("div",{staticClass:"left",class:["sales_asc"===e.filter_order||"sales_desc"===e.filter_order?"activeColor":""]},[e._v("销量")]),o("div",{staticClass:"right"},[o("i",{staticClass:"fa fa-angle-up",class:["sales_asc"===e.filter_order?"activeColor":""]}),o("i",{staticClass:"fa fa-angle-down",class:["sales_desc"===e.filter_order?"activeColor":""]})])]),o("li",{staticClass:"price",on:{click:function(t){return e.getDataBth("price")}}},[o("div",{staticClass:"left",class:["price_asc"===e.filter_order||"price_desc"===e.filter_order?"activeColor":""]},[e._v("价格")]),o("div",{staticClass:"right"},[o("i",{staticClass:"fa fa-angle-up",class:["price_asc"===e.filter_order?"activeColor":""]}),o("i",{staticClass:"fa fa-angle-down",class:["price_desc"===e.filter_order?"activeColor":""]})])])]),o("div",{staticClass:"full_video"},[o("van-pull-refresh",{attrs:{"success-text":"刷新成功"},on:{refresh:e.loadTop},model:{value:e.isLoading,callback:function(t){e.isLoading=t},expression:"isLoading"}},[o("ul",{staticClass:"full_video_list"},e._l(e.goodsList,(function(t,i){return o("li",{key:i,on:{click:function(i){return e.goToDetail(t.goods_id)}}},[o("div",{staticClass:"full_video_left"},[o("img",{attrs:{src:t.thumb,alt:""}})]),o("div",{staticClass:"full_video_right"},[o("div",{staticClass:"video_name"},[e._v(e._s(t.title))]),o("div",{staticClass:"full_video_bottom"},[o("div",{staticClass:"leftContent"},[o("div",{staticClass:"pitch_number"},[e._v("共"+e._s(t.course_chapter_num)+"小节")]),t.has_one_lecturer?o("div",{staticClass:"left"},[e._v(" 讲师:"+e._s(t.has_one_lecturer.real_name))]):e._e()]),t.vip_level_status&&1==t.vip_level_status.status?o("div",{staticClass:"price"},[e._v(" "+e._s(e.$i18n.t("money"))+" "),o("span",{staticClass:"cost2"},[e._v(e._s(t.vip_level_status.word))])]):o("div",{staticClass:"price"},[e._v(e._s(e.$i18n.t("money"))+" "+e._s(t.price))])])])])})),0)])],1)])],1)},l=[],a=(i("99af"),i("6968")),s=i("ac0d"),r={mixins:[s["a"]],data:function(){return{goodsList:[],searchVal:"",loading:!1,allLoaded:!1,goload:!0,isLoadMore:!0,page:1,total_page:0,filter_order:"",salesBol:!0,priceBol:!0,isLoading:!1}},mounted:function(){window.courseSearchScrollTop=0},beforeRouteLeave:function(e,t,i){window.courseSearchScrollTop=document.documentElement.scrollTop||document.body.scrollTop,i()},activated:function(){1!==this.$route.params.fromHome?window.location.href.indexOf("#/member/coursesearch/")>-1&&setTimeout((function(){window.scrollTo(0,window.courseSearchScrollTop)}),200):(window.scrollTo(0,0),this.searchVal="",this.getData())},created:function(){1!==this.$route.params.fromHome&&(this.searchVal="",this.getData())},methods:{getDataBth:function(e){e?"sales"===e?(this.priceBol=!0,this.salesBol?(this.salesBol=!1,this.filter_order="sales_asc"):(this.salesBol=!0,this.filter_order="sales_desc")):"price"===e&&(this.salesBol=!0,this.priceBol?(this.filter_order="price_asc",this.priceBol=!1):(this.filter_order="price_desc",this.priceBol=!0)):(this.salesBol=!0,this.priceBol=!0,this.filter_order=""),this.getData()},getData:function(){var e=this;this.initData();var t={goods_type:"allGoods"==this.$route.params.goods_type?"":this.$route.params.goods_type,search:this.searchVal,page:this.page,filter_order:this.filter_order};$http.get("plugin.video-demand.api.video-course-goods.get-course-goods",t).then((function(t){e.goodsList=t.data.data,e.total_page=t.data.last_page,e.isLoading=!1})).catch((function(e){}))},loadTop:function(){this.getData()},getMoreData:function(e){var t=this;this.page!=this.total_page&&(this.page>=this.total_page?(t.loading=!0,t.allLoaded=!0):(this.page=this.page+1,$http.get("plugin.video-demand.api.video-course-goods.get-course-goods",{goods_type:"allGoods"==this.$route.params.goods_type?"":this.$route.params.goods_type,page:this.page,search:this.searchVal,filter_order:this.filter_order},"加载中...").then((function(e){if(1===e.result){var i=e.data.data;t.loading=!1,t.allLoaded=!1,t.goodsList=t.goodsList.concat(i)}else t.page=t.page-1,t.loading=!0,t.allLoaded=!0,t.isLoadMore=!1}),(function(e){}))))},initData:function(){this.page=1,this.total_page=0,this.goload=!0,this.loading=!0,this.allLoaded=!1,this.isLoadMore=!0,this.goodsList=[]},goToDetail:function(e){this.$router.push(this.fun.getUrl("CourseDetail",{id:e}))}},components:{cTitle:a["a"]}},d=r,n=d,c=(i("56e1"),i("2877")),f=Object(c["a"])(n,o,l,!1,null,"176e7d5e",null);t["default"]=f.exports},"56e1":function(e,t,i){"use strict";i("bd5a")},"68c5":function(e,t,i){var o=i("24fb");t=o(!1),t.push([e.i,".Search-box[data-v-176e7d5e]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;width:100%;height:2.8125rem;line-height:2.8125rem;position:fixed;background-color:#fff;z-index:98}.Search-box[data-v-176e7d5e] .van-search__content{border-radius:1rem}.screen[data-v-176e7d5e]{width:100%;position:fixed;top:5rem;background:#fff;border-bottom:.0625rem solid #ebebeb;z-index:10}.screen[data-v-176e7d5e],.screen li[data-v-176e7d5e]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.screen li[data-v-176e7d5e]{-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;border-right:1px solid #e5e5e5;margin-top:.969rem;margin-bottom:.969rem;line-height:.844rem;height:.844rem;font-size:.875rem;color:#666}.screen li .right[data-v-176e7d5e]{padding-left:.344rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}.screen li .right i[data-v-176e7d5e]{line-height:.5rem;height:.5rem;font-size:.4rem}.screen li[data-v-176e7d5e]:last-of-type{border:none}.screen .activeColor[data-v-176e7d5e]{color:#ff972c}.full_video[data-v-176e7d5e]{background:#fff;padding-top:6rem}.full_video .full_video_list[data-v-176e7d5e]{margin-left:.781rem;margin-right:.781rem}.full_video .full_video_list li[data-v-176e7d5e]{padding-left:.375rem;border-bottom:1px solid #f2f2f7;padding-bottom:.906rem;margin-bottom:.781rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.full_video .full_video_list li .full_video_left[data-v-176e7d5e]{width:6.281rem;height:6.281rem;margin-right:1.156rem}.full_video .full_video_list li .full_video_left img[data-v-176e7d5e]{width:100%;height:100%}.full_video .full_video_list li .full_video_right[data-v-176e7d5e]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;position:relative;padding-top:.2rem}.full_video .full_video_list li .full_video_right .video_name[data-v-176e7d5e]{text-align:left;line-height:1rem;height:2rem;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;margin-bottom:.25rem}.full_video .full_video_list li .full_video_right .full_video_bottom[data-v-176e7d5e]{position:absolute;bottom:.2rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.full_video .full_video_list li .full_video_right .full_video_bottom .leftContent .pitch_number[data-v-176e7d5e]{text-align:left;height:.9rem;line-height:.9rem;font-size:.875rem;color:#999;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:8rem}.full_video .full_video_list li .full_video_right .full_video_bottom .leftContent .left[data-v-176e7d5e]{width:8rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:.75rem;color:#999;text-align:left}.full_video .full_video_list li .full_video_right .full_video_bottom .price[data-v-176e7d5e]{width:6rem;white-space:nowrap;overflow:hidden;line-height:.938rem;height:.938rem;text-overflow:ellipsis;font-size:.875rem;color:#e20606;margin-right:.563rem;text-align:right}.full_video .full_video_list li .full_video_right .full_video_bottom .price .cost2[data-v-176e7d5e]{color:#ccc;font-size:.75rem;padding-left:.4rem}.full_video .full_video_list li .full_video_right .full_video_bottom .gratis[data-v-176e7d5e]{width:6rem;white-space:nowrap;overflow:hidden;line-height:.938rem;height:.938rem;text-overflow:ellipsis;color:#ff9d27;font-size:.875rem;text-align:right;margin-right:.563rem}.full_video .video_more[data-v-176e7d5e]{font-size:.799rem;line-height:.938rem;height:.938rem;color:#999;padding-bottom:1.531rem}li[data-v-176e7d5e]{list-style:none}input[data-v-176e7d5e]{border:none;width:90%;height:1.75rem;line-height:1.75rem;border-radius:.9375rem;padding:0 1.125rem 0 1.125rem;margin:0 auto;position:relative;top:0;background-color:#fafafa}.Hot[data-v-176e7d5e],.Newest[data-v-176e7d5e],.Recommend[data-v-176e7d5e]{background-color:#fff;padding-right:.75rem;padding-left:.75rem}.touxiang[data-v-176e7d5e]{width:5rem;height:5rem;background-color:green;float:left}.content[data-v-176e7d5e]{padding-top:.625rem}.title[data-v-176e7d5e]{width:calc(100% - 6.75rem);float:left;text-align:left;margin-left:.75rem;padding-right:.875rem}.title02[data-v-176e7d5e]{color:#999;font-size:12px;margin-bottom:.125rem}.title01[data-v-176e7d5e]{margin-bottom:.5rem;font-size:15px;color:#333;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.lecturer[data-v-176e7d5e]{float:left;color:#999;font-size:12px}.cost[data-v-176e7d5e]{float:right;color:#f15353;line-height:1rem;font-size:14px}.cost1[data-v-176e7d5e]{font-size:.75rem;background:#f15353;color:#fff;padding:.2rem .5rem;border-top-left-radius:.5rem;border-bottom-right-radius:.5rem}#course .course[data-v-176e7d5e]{margin-top:2.5rem}",""]),e.exports=t},ac0d:function(e,t,i){"use strict";i.d(t,"a",(function(){return a}));var o=document.documentElement,l=document.body,a={data:function(){return{}},activated:function(){window.addEventListener("scroll",this.handleScroll)},deactivated:function(){window.removeEventListener("scroll",this.handleScroll)},methods:{getScrollTop:function(){var e=0;return o&&o.scrollTop?e=o.scrollTop:l&&(e=l.scrollTop),e},getClientHeight:function(){var e=0;return e=l.clientHeight&&o.clientHeight?Math.min(l.clientHeight,o.clientHeight):Math.max(l.clientHeight,o.clientHeight),e},getScrollHeight:function(){return Math.max(l.scrollHeight,o.scrollHeight)},handleScroll:function(){this.otherScroll();var e=document.documentElement.scrollTop||document.body.scrollTop;this.btnFlag=e>60,this.getScrollTop()+this.getClientHeight()+105>this.getScrollHeight()?(this.isLoadMore&&this.getMoreData(),this.isBottom=!0):this.isBottom=!1},otherScroll:function(){}}}},bd5a:function(e,t,i){var o=i("68c5");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);var l=i("499e").default;l("45392b42",o,!0,{sourceMap:!1,shadowMode:!1})},f331:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACcAAAAjCAYAAAAXMhMjAAAAAXNSR0IArs4c6QAAAphJREFUWEftmEtoE1EUhr+TppQgKlTEBwiCLmpxJeIDUcSFK+nCV0V0pQhiQTBNZ0RB8dVMqHZRVFBBcWOj4kZBXQlCKdiFi6IibqIguBAFW4u0NUdmMCVpM83czEQ3uev//P/HYc7chxDBUov5KDsQlqDkGOWZXGM0rLWENdAUm4nRj7C0yOsjE+yRywyF8Q8Fpyc5QZ4MQkMZiHGUTnHoqxawKjjtZA5xrgMHKwYrt0nQIWcZq6idJjCGU5vlwGNgdeAwZRihTdLkAtcARnBqsx3lHkKzSYinVb4BB8ThadDawHBqcRrhfFBjX51yThzOBPGpCOf9JoS7QFsQw0Aa5Tnj7Jder5u+a1Y4TdJCnCcIKwKFmolyKG3iMOxX5gunNu3ATWCuWaaR2p3gY5LmTrmqGXDqDolNN2AZxYQRK318Jyk3mCi2KYHT4ywiQT+wNUxWVbXKK+LslIt8LtRPwWkXa4nxCFhWlXkURcoXYuyWbgZcOw9OLY4i9AJNUWSE9JhEscThiqjNBeBUSMNalHeLWgwibADGUBKI2a4RKZWiCCPAPJQX4g1BE+00MESegf8K525yedYhbCJPtnggVhHjbaSdqMYsT6tkeDc1EN5QdFGHq9jMeucqtshHUIPOvQQeoHwFFiDsBbZUxRcpnJISh57pIGqTAjLGgBHCvZY0a/wA1OYN0GoEGCFcVtLsmwXOPeG458LgKzI45b44/uFqkf37/dXhSjtQ75y7tyZppdGbruDrn3XOZiXwITiZp6zFtLZIhvelp5IjNNLMJ2CxAeAgcAuIlanJA4eBjQZ+v/jBwsLbXunty2aXtw0ZvqEYhM8uVa6KQ0dBNPPearMNuASsjyy0kpHyG+EhkxySHn4W5H8A7CP74YQgkt4AAAAASUVORK5CYII="}}]); |