1 line
6.3 KiB
JavaScript
1 line
6.3 KiB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([[42],{2457:function(t,e,a){var n=a(2458);"string"==typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);(0,a(18).default)("fa36ff14",n,!1,{})},2458:function(t,e,a){(t.exports=a(15)(!1)).push([t.i,"\n.component-wrapper[data-v-12e096c6] {\n display: flex;\n justify-content: center;\n width: 375px;\n}\n/* 单行文本的溢出显示省略号 */\n.pl[data-v-12e096c6] {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.ell[data-v-12e096c6] {\n text-overflow: ellipsis;\n display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 2;\n /* 定义显示的行数*/\n overflow: hidden;\n}\n.nav-title[data-v-12e096c6] {\n padding: 10px 12px 0;\n line-height: 26px;\n}\n/* @import url(); 引入公共css类 */\n.courseItem[data-v-12e096c6] {\n background-color: #fff;\n padding: 10px 10px 12px 10px;\n margin: 10px;\n border-radius: 8px;\n}\n.courseItem .courseItem-img[data-v-12e096c6] {\n min-width: 100px;\n width: 100px;\n height: 100px;\n border-radius: 8px;\n overflow: hidden;\n}\n.courseItem .courseItem-img img[data-v-12e096c6] {\n width: 100%;\n height: 100%;\n object-fit: cover;\n}\n.courseItem .wrap-lecturer[data-v-12e096c6] {\n flex-direction: column;\n}\n.courseItem .wrap[data-v-12e096c6] {\n width: 72%;\n box-sizing: border-box;\n padding-left: 10px;\n}\n.courseItem .wrap .title[data-v-12e096c6] {\n font-size: 15px;\n font-weight: 400;\n color: #333333;\n text-align: left;\n}\n.courseItem .wrap .chapter[data-v-12e096c6] {\n background: #f6f7fb;\n border-radius: 2px;\n padding: 3px 0;\n}\n.courseItem .wrap .chapter .chapter-left[data-v-12e096c6] {\n padding: 0 0 0 10px;\n}\n.courseItem .wrap .chapter .chapter-left img[data-v-12e096c6] {\n width: 20px;\n height: 20px;\n background: #ffffff;\n border-radius: 50%;\n}\n.courseItem .wrap .chapter .chapter-left span[data-v-12e096c6] {\n font-size: 14px;\n font-weight: bold;\n color: #516ea9;\n line-height: 17px;\n padding-left: 6px;\n}\n.courseItem .wrap .chapter .chapter-right[data-v-12e096c6] {\n font-size: 13px;\n font-weight: 500;\n color: #516ea9;\n line-height: 17px;\n padding-right: 13px;\n}\n.courseItem .wrap .chapter-price[data-v-12e096c6] {\n align-items: flex-end;\n}\n.courseItem .wrap .chapter-price .price[data-v-12e096c6] {\n padding-right: 7px;\n font-size: 18px;\n font-weight: bold;\n color: #fd453f;\n line-height: 26px;\n}\n.courseItem .wrap .chapter-price .price span[data-v-12e096c6] {\n font-size: 12px;\n font-weight: 800;\n color: #fd453f;\n line-height: 17px;\n}\n.courseItem .wrap .chapter-price .purchased[data-v-12e096c6] {\n font-size: 12px;\n font-weight: 500;\n color: #8a8c92;\n line-height: 21px;\n}\n",""])},2580:function(t,e,a){"use strict";a.r(e);var n=a(40),s=a.n(n),i=function(){if(this.datas.preview_color){var t=this.datas,e=t.preview_color,a=t.title_color,n=t.small_title_color;return"\n .component-"+this.id+"{\n background-color: "+e+";\n }\n\n\t\t\t\t.component-"+this.id+" .nav-title .title{\n color: "+a+";\n\t\t\t\t\tfont-size: 16px;\n\t\t\t\t\tfont-weight: bold;\n }\n\n\t\t\t\t.component-"+this.id+" .nav-title .small_title{\n color: "+n+";\n\t\t\t\t\tfont-size: 12px;\n }\n "}},c={data:function(){return{emptyImage:s.a}},props:["id","datas","styles","languages"],computed:{css:function(){return"<style>"+i.call(this)+"</style>"},className:function(){return["component-wrapper","component-"+this.id]}},methods:{},mounted:function(){}},r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{class:t.className},[a("div",{domProps:{innerHTML:t._s(t.css)}}),t._v(" "),a("div",{staticStyle:{width:"100%"}},[a("div",{staticClass:"flex-j-sb nav-title"},[a("div",{staticClass:"title"},[t._v(t._s(t.datas.title))]),t._v(" "),a("div",{staticClass:"small_title"},[t._v(t._s(t.datas.small_title)+" >")])]),t._v(" "),a("div",{staticStyle:{width:"100%"}},[t.datas.list&&2==t.datas.get_style?t._l(t.datas.list,(function(e){return a("div",{key:e.id,staticClass:"courseItem flex"},[a("div",{staticClass:"courseItem-img"},[a("img",{attrs:{src:e.thumb,alt:""}})]),t._v(" "),a("div",{staticClass:"wrap flex-j-sb wrap-lecturer"},[a("p",{staticClass:"title ell",staticStyle:{margin:"0"}},[t._v(t._s(e.title))]),t._v(" "),a("div",{staticClass:"flex-a-c chapter flex-j-sb"},[a("div",{staticClass:"chapter-left flex-a-c"},[a("img",{staticClass:"chapter-img",attrs:{src:e.lecturer_img}}),t._v(" "),a("span",[t._v(t._s(e.lecturer_name))])]),t._v(" "),a("div",{staticClass:"chapter-right"},[t._v(t._s(e.chapter_count)+"章"+t._s(e.section_count)+"节")])]),t._v(" "),a("div",{staticClass:"chapter-price flex"},["0"!==e.price?a("div",{staticClass:"price"},[a("span",[t._v("¥")]),t._v(t._s(e.price))]):a("div",{staticClass:"price"},[t._v("免费")]),t._v(" "),a("div",{staticClass:"purchased"},[t._v("已购 xx")])])])])})):t._e(),t._v(" "),t.datas.list&&1==t.datas.get_style?t._l(t.datas.get_number,(function(e){return a("div",{key:e.id,staticClass:"courseItem flex"},[a("div",{staticClass:"courseItem-img"},[a("img",{attrs:{src:t.emptyImage,alt:""}})]),t._v(" "),a("div",{staticClass:"wrap flex-j-sb wrap-lecturer"},[a("p",{staticClass:"title ell",staticStyle:{margin:"0"}},[t._v("课程名称")]),t._v(" "),a("div",{staticClass:"flex-a-c chapter flex-j-sb"},[a("div",{staticClass:"chapter-left flex-a-c"},[a("img",{staticClass:"chapter-img",attrs:{src:t.emptyImage}}),t._v(" "),a("span",[t._v("讲师")])]),t._v(" "),a("div",{staticClass:"chapter-right"},[t._v("xx章xx节")])]),t._v(" "),t._m(0,!0)])])})):t._e(),t._v(" "),a("p",{directives:[{name:"show",rawName:"v-show",value:0==t.datas.list.length&&2==t.datas.get_style||0==t.datas.get_number&&1==t.datas.get_style,expression:"(datas.list.length == 0 && datas.get_style == 2) || (datas.get_number == 0 && datas.get_style == 1)"}],staticStyle:{"text-align":"center",padding:"10px"}},[t._v("暂无数据...")])],2)])])};r._withStripped=!0;var l=a(10);var p=function(t){a(2457)},o=Object(l.a)(c,r,[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"chapter-price flex"},[e("div",{staticClass:"price"},[e("span",[this._v("¥")]),this._v("XXX.xx")]),this._v(" "),e("div",{staticClass:"purchased"},[this._v("已购 xx")])])}],!1,p,"data-v-12e096c6",null);o.options.__file="src\\ui-component\\U_courseSupply\\m\\index.vue";e.default=o.exports}}]); |