bztang-admin/addons/yun_shop/static/app/js/chunk-4eae7101.cccfa566.js

1 line
7.1 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4eae7101"],{"206b4":function(e,t,o){var i=o("24fb");t=i(!1),t.push([e.i,".course-list[data-v-e98e06e8]{padding-left:.5rem}.course-list[data-v-e98e06e8] .courseItem{padding:.625rem .625rem .375rem .625rem}",""]),e.exports=t},"3ce6":function(e,t,o){var i=o("24fb");t=i(!1),t.push([e.i,".user-info[data-v-e98e06e8]{margin:0 0 1rem 0;padding:2.5rem 0 0 0;background-image:-webkit-gradient(linear,left top,left bottom,color-stop(80%,var(--themeBaseColor)),color-stop(20%,#f5f5f5));background-image:-webkit-linear-gradient(top,var(--themeBaseColor) 80%,#f5f5f5 0);background-image:linear-gradient(180deg,var(--themeBaseColor) 80%,#f5f5f5 0);background-repeat:no-repeat;background-position:50%}.user-info .info[data-v-e98e06e8]{background:#fff;border-radius:.9375rem;padding:2.5rem 1.25rem .625rem 1.25rem;-webkit-box-sizing:border-box;box-sizing:border-box;position:relative}.user-info .info .header-avatar[data-v-e98e06e8]{width:3.125rem;height:3.125rem;border-radius:50%;background-color:#fff;border:.125rem solid #fff;position:absolute;top:-1.25rem;z-index:10}.user-info .info .header-avatar img[data-v-e98e06e8]{width:3rem;height:3rem;border-radius:50%;display:inline}.user-info .info .info-tag[data-v-e98e06e8]{-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap}.user-info .info .info-tag h3[data-v-e98e06e8]{font-weight:800;color:#242424;line-height:1.4375rem;padding:0 1.125rem 0 0}.user-info .info .info-tag .tag[data-v-e98e06e8]{min-width:3.4375rem;-webkit-box-sizing:border-box;box-sizing:border-box;margin-right:.75rem;font-size:.625rem;line-height:.625rem;font-weight:500;color:#fffae7;border-radius:.5625rem;padding:.25rem .5rem;background:-webkit-linear-gradient(346deg,#bf863c,#e0b070);background:linear-gradient(104deg,#bf863c,#e0b070)}.user-info .info .user-desc[data-v-e98e06e8]{padding:.625rem 0 0 0;font-size:.6875rem;font-weight:500;color:#727272;line-height:.9375rem;text-align:left}.course-content[data-v-e98e06e8]{border-radius:.9375rem;background-color:#fff;padding:.9375rem 0 .625rem 0}.course-content h3[data-v-e98e06e8]{font-size:1.0625rem;font-weight:800;color:#0d0d0d;text-align:left;padding:0 0 .5rem 1.125rem}.img-tag[data-v-e98e06e8]{position:absolute;right:0;bottom:0;z-index:10;font-size:.75rem;line-height:.75rem;font-weight:500;color:#fff;padding:.25rem .375rem;background:rgba(25,25,25,.5);border-radius:.375rem}",""]),e.exports=t},"918e":function(e,t,o){"use strict";o("9c51")},"9c51":function(e,t,o){var i=o("206b4");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var r=o("499e").default;r("111d6d13",i,!0,{sourceMap:!1,shadowMode:!1})},ac0d:function(e,t,o){"use strict";o.d(t,"a",(function(){return a}));var i=document.documentElement,r=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 i&&i.scrollTop?e=i.scrollTop:r&&(e=r.scrollTop),e},getClientHeight:function(){var e=0;return e=r.clientHeight&&i.clientHeight?Math.min(r.clientHeight,i.clientHeight):Math.max(r.clientHeight,i.clientHeight),e},getScrollHeight:function(){return Math.max(r.scrollHeight,i.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(){}}}},d6d8:function(e,t,o){var i=o("3ce6");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var r=o("499e").default;r("65a30dda",i,!0,{sourceMap:!1,shadowMode:!1})},e53a:function(e,t,o){"use strict";o.r(t);var i=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",[o("div",{staticClass:"user-info "},[o("div",{staticClass:"info"},[o("div",{staticClass:"header-avatar flex-a-c flex-j-c"},[o("img",{attrs:{src:e.details.pic}})]),o("div",{staticClass:"info-tag flex-a-c"},[o("h3",[e._v(e._s(e.details.name))]),e.details.label&&e.details.label.length>0?o("block",{staticClass:"flex-a-c"},e._l(e.details.label,(function(t,i){return o("div",{key:i,staticClass:"tag"},[e._v(e._s(t))])})),0):e._e()],1),o("p",{staticClass:"user-desc"},[e._v(" "+e._s(e.details.introduce)+" ")])])]),o("div",{staticClass:"course-content"},[o("h3",[e._v("主讲课程")]),o("div",{staticClass:"course-list",style:e.iPnoneBottomBol?"padding-bottom: 34px;":""},e._l(e.courseList,(function(t,i){return o("block",{key:i},[o("course-item",{attrs:{datas:t,courseType:3},scopedSlots:e._u([{key:"imgTag",fn:function(){return[o("div",{staticClass:"img-tag"},[e._v(e._s(t.chapter_count)+"章"+e._s(t.section_count)+"节")])]},proxy:!0}],null,!0)})],1)})),1)])])},r=[],a=o("2909"),n=(o("b0c0"),o("ac1f"),o("466d"),o("99af"),o("a9e3"),o("c359")),s=o("ac0d"),d={name:"",components:{courseItem:n["a"]},mixins:[s["a"]],data:function(){return{lecturerId:"",keyword:"",page:1,isLoadMore:!0,total_page:0,details:{},courseList:[],iPnoneBottomBol:!1}},computed:{},watch:{},methods:{lecturerDetails:function(){var e=this;$http.post("plugin.course-supply.api.lecturer.info",{id:this.lecturerId,basic_info:1},"加载中..").then((function(t){if(1==t.result){var o=t.data,i=t.basic_info;e.$nextTick((function(){var t,o;e.fun.wxShare("",{mid:e.fun.getKeyByMid()},{link:window.location.href,title:"课程供应链-"+(null===i||void 0===i||null===(t=i.home.mailInfo)||void 0===t?void 0:t.name),imgUrl:null===i||void 0===i||null===(o=i.home.mailInfo)||void 0===o?void 0:o.logo_url,description:"课程供应链"})}),50),e.details=o}else e.$dialog.alert({message:t.msg})}))},getiPnoneBottom:function(){var e=navigator.userAgent,t=!!e.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);this.iPnoneBottomBol=!!t},getCourseList:function(){var e=this,t={keyword:this.keyword,page:this.page,lecturer_id:this.lecturerId};$http.post("plugin.course-supply.api.course.index",t,"加载中..").then((function(t){if(1==t.result){var o=t.data;e.isLoadMore=!0,e.total_page=o.last_page,e.total_page||(e.page=0),e.courseList=o.data}else e.page=e.page-1,e.isLoadMore=!1,e.$dialog.alert({message:t.msg})}))},getMoreData:function(){var e=this;if(this.isLoadMore=!1,!(this.page>=this.total_page)){this.page=this.page+1;var t={keyword:this.keyword,page:this.page,lecturerId:this.lecturerId};$http.post("plugin.course-supply.api.course.index",t,"加载中").then((function(t){if(e.isLoadMore=!0,1===t.result){var o=t.data.data;e.courseList=[].concat(Object(a["a"])(e.courseList),Object(a["a"])(o))}else e.page=e.page-1,e.isLoadMore=!1}),(function(e){}))}}},created:function(){this.$route.query.lecturerId&&(this.lecturerId=Number(this.$route.query.lecturerId),this.lecturerDetails(),this.getCourseList()),this.getiPnoneBottom()},mounted:function(){},beforeCreate:function(){},beforeMount:function(){},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},activated:function(){}},l=d,c=l,u=(o("918e"),o("ed0c"),o("2877")),f=Object(u["a"])(c,i,r,!1,null,"e98e06e8",null);t["default"]=f.exports},ed0c:function(e,t,o){"use strict";o("d6d8")}}]);