bztang-admin/addons/yun_shop/static/app/js/chunk-54b788a0.bfbd63b4.js

1 line
13 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-54b788a0"],{"1f0b":function(e,t,i){var a=i("24fb");t=a(!1),t.push([e.i,'[data-v-16edaee2] .van-button__content,[data-v-16edaee2] .van-nav-bar__content{background:#fe5e56}[data-v-16edaee2] .van-nav-bar__title{color:#fff;font-size:1.125rem;font-weight:unset}[data-v-16edaee2] .van-nav-bar .van-icon{color:#fff}.main-box[data-v-16edaee2]{margin:.625rem .75rem;padding:.75rem .75rem 0;border-radius:.625rem;background:#fff}#course[data-v-16edaee2]{min-height:100vh}#course .nickname[data-v-16edaee2]{font-size:1rem;font-weight:700}#course .user-info[data-v-16edaee2]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;color:#fff;text-align:left}#course .level_name[data-v-16edaee2]{display:inline-block;margin-top:.5375rem;height:1.25rem;line-height:1.25rem;color:#fe5e56;font-size:.6875rem;padding:0 .5rem;background-color:#fff;border-radius:100px;-webkit-box-sizing:border-box;box-sizing:border-box}#course .nickname-wrapper[data-v-16edaee2]{padding-top:.3875rem}#course .course-list[data-v-16edaee2]{margin:.625rem .75rem;padding:.75rem 1.25rem;border-radius:.625rem;background:#fff;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;color:#000;font-size:.75rem}#header[data-v-16edaee2]{padding:1.25rem;background-color:#fe5e56;line-height:1rem}#header span[data-v-16edaee2]{color:#fff}.touxiang[data-v-16edaee2]{width:3.25rem;height:3.25rem;border-radius:50%;margin-right:.625rem;overflow:hidden;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0}#last[data-v-16edaee2]{border:none}.box[data-v-16edaee2]{background-color:#fff;width:100%}.box .list[data-v-16edaee2]{font-size:15px;height:2.75rem;line-height:2.75rem;border-bottom:.0625rem solid #ebebeb;margin-left:.875rem;padding-right:.875rem;text-align:left;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}.box .list i.fa.fa-angle-right[data-v-16edaee2]{line-height:2.75rem;font-size:1.5rem;color:#c9c9c9;float:right;position:absolute;right:.875rem}.box .list span[data-v-16edaee2]:last-child{position:absolute;right:1.625rem}#header .van-cell__title[data-v-16edaee2]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}[data-v-16edaee2] .van-cell--clickable:active{background-color:#fff}.carefully_chosen_more[data-v-16edaee2]{position:relative;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-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}.carefully_chosen_more .title_name[data-v-16edaee2]{font-size:1rem;font-weight:700}.carefully_chosen_more .bg-img[data-v-16edaee2]{position:absolute;width:1rem;height:100%;left:.5625rem}.carefully_chosen_more .left[data-v-16edaee2]{line-height:1.156rem;height:1.156rem;font-size:1rem}.carefully_chosen_more .right[data-v-16edaee2]{line-height:1.156rem;height:1.156rem;color:#999;font-size:.875rem;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}.carefully_chosen_more .right i[data-v-16edaee2]{padding-left:.3125rem;font-size:.875rem}.full_video .left[data-v-16edaee2]{text-align:left}.full_video .full_video_list li[data-v-16edaee2]:last-child{margin-bottom:0}.full_video .full_video_list li[data-v-16edaee2]{margin:.75rem 0;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.full_video .full_video_list li .full_video_left[data-v-16edaee2]{overflow:hidden;width:6.25rem;height:6.25rem;margin-right:.75rem;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0}.full_video .full_video_list li .full_video_left img[data-v-16edaee2]{width:100%;height:100%;border-radius:.3125rem}.full_video .full_video_list li .full_video_right[data-v-16edaee2]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}.full_video .full_video_list li .full_video_right[data-v-16edaee2],.full_video .full_video_list li .full_video_right .teacher-info[data-v-16edaee2]{position:relative;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}.full_video .full_video_list li .full_video_right .teacher-info[data-v-16edaee2]{margin-top:.5rem;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;font-size:.75rem;color:#4b6aa7;padding:0 .75rem;height:1.625rem;line-height:1.625rem}.full_video .full_video_list li .full_video_right .teacher-info[data-v-16edaee2]:after{position:absolute;content:"";left:0;right:0;top:0;bottom:0;background:#4b6aa7;opacity:.05}.full_video .full_video_list li .full_video_right .video_name[data-v-16edaee2]{text-align:left;line-height:1rem;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.full_video .full_video_list li .full_video_right .full_video_bottom[data-v-16edaee2]{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}.full_video .full_video_list li .full_video_right .full_video_bottom .total-sales[data-v-16edaee2]{margin-left:.1875rem}.full_video .full_video_list li .full_video_right .full_video_bottom .buy[data-v-16edaee2]{color:#999;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;font-size:.75rem;-webkit-box-align:end;-webkit-align-items:flex-end;-ms-flex-align:end;align-items:flex-end;margin-left:.5rem}.full_video .full_video_list li .full_video_right .full_video_bottom .leftContent .pitch_number[data-v-16edaee2]{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-16edaee2]{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-16edaee2]{line-height:.938rem;height:.938rem;font-size:1.125rem;color:#f15353;margin-right:.563rem;text-align:right}.full_video .full_video_list li .full_video_right .full_video_bottom .price .cost2[data-v-16edaee2]{color:#ccc;font-size:.75rem;padding-left:.4rem}.full_video .full_video_list li .full_video_right .full_video_bottom .gratis[data-v-16edaee2]{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-16edaee2]{font-size:.799rem;line-height:.938rem;height:.938rem;color:#999;padding-bottom:1.531rem}',""]),e.exports=t},"6c28":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"show",rawName:"v-show",value:e.info,expression:"info"}],attrs:{id:"course"}},[i("c-title",{attrs:{hide:!1,text:"我的课程"}}),i("div",{staticStyle:{"margin-top":"-1px"}},[i("van-cell-group",[i("van-cell",{attrs:{id:"header",center:""},nativeOn:{click:function(t){return e.gotoVip.apply(null,arguments)}}},[i("div",{staticClass:"user-info",attrs:{slot:"title"},slot:"title"},[i("div",{staticClass:"touxiang"},[i("img",{staticStyle:{width:"100%",height:"100%","border-radius":"1.5625rem"},attrs:{src:e.memberInfo.avatar}})]),i("div",{staticClass:"nickname-wrapper"},[i("p",{staticClass:"nickname"},[e._v(e._s(e.memberInfo.nickname))]),i("span",{staticClass:"level_name"},[e._v(" "+e._s(e.memberInfo.level_name))])])])])],1)],1),i("ul",{staticClass:"course-list"},[i("router-link",{attrs:{to:e.fun.getUrl("CourseMy"),tag:"li"}},[i("img",{attrs:{src:"https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/images/my_course.png",alt:""}}),i("p",[e._v("我的课程")])]),i("router-link",{attrs:{to:e.fun.getUrl("CourseHistory"),tag:"li"}},[i("img",{attrs:{src:"https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/images/course_history.png",alt:""}}),i("p",[e._v("课程观看历史")])]),i("router-link",{attrs:{to:e.fun.getUrl("CourseReward"),tag:"li"}},[i("img",{attrs:{src:"https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/images/my_play_tour.png",alt:""}}),i("p",[e._v("我的打赏")])]),i("router-link",{attrs:{to:e.fun.getUrl("CourseIndex",{fromHome:1}),tag:"li"}},[i("img",{attrs:{src:"https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/images/all_course.png",alt:""}}),i("p",[e._v("全部课程")])])],1),i("div",{staticClass:"main-box"},[i("div",{staticClass:"carefully_chosen_more"},[i("div",{staticClass:"title_name"},[e._v("推荐课程")]),i("router-link",{attrs:{to:e.fun.getUrl("CourseIndex",{fromHome:1}),tag:"div"}},[i("div",{staticClass:"right"},[i("span",[e._v("更多")]),i("i",{staticClass:"fa fa-angle-right"})])])],1),i("div",{staticClass:"full_video"},[i("d-list",{staticClass:"DList",attrs:{StyleOptions:{"font-size":"0.75rem"},loading:e.more_loading,finished:e.finished},on:{load:e.onLoad}},[i("ul",{staticClass:"full_video_list"},e._l(e.newGoodList,(function(t,a){return i("li",{key:a,on:{click:function(i){return e.goToDetail(t.goods_id)}}},[i("div",{staticClass:"full_video_left"},[i("img",{attrs:{src:t.thumb,alt:""}})]),i("div",{staticClass:"full_video_right"},[i("div",[i("div",{staticClass:"video_name"},[e._v(e._s(t.goods_title))]),i("div",{staticClass:"teacher-info"},[t.member_avatar?i("div",{staticStyle:{display:"flex","align-items":"center"}},[i("img",{staticStyle:{"margin-right":"0.25rem",width:"1.375rem",height:"1.375rem","border-radius":"100px"},attrs:{src:t.member_avatar,alt:""}}),i("span",[e._v(e._s(t.real_name))])]):e._e(),i("div",[e._v("共"+e._s(t.course_chapter_num)+"节课")])])]),i("div",{staticClass:"full_video_bottom"},[t.has_one_goods&&t.has_one_goods.vip_level_status&&1==t.has_one_goods.vip_level_status.status?i("div",{staticClass:"price"},[e._v(" "+e._s(e.$i18n.t("money"))+" "),i("span",{staticClass:"cost2"},[e._v(e._s(t.has_one_goods.vip_level_status.word))])]):i("div",{staticClass:"price"},[i("span",{staticStyle:{"font-size":"0.75rem","margin-right":"0.1563rem"}},[e._v(e._s(e.$i18n.t("money")))]),i("span",{staticStyle:{"font-size":"1.125rem"}},[e._v(e._s(t.price))])]),i("div",{staticClass:"buy"},[i("span",[e._v("已购")]),i("span",{staticStyle:{"margin-left":"0.1563rem"}},[e._v(e._s(t.total_sales))])])])])])})),0)]),e.isLoadMore?i("div",{staticClass:"video_more",on:{click:e.getMoreData}},[i("span",[e._v(e._s(e.$i18n.t("加载更多")))])]):e._e()],1)])],1)},l=[],o=i("c7eb"),s=i("2909"),r=i("1da1"),n=(i("14d9"),i("6968")),d=i("94b4"),f={data:function(){return{memberInfo:{},newGoodList:[],info:!1,loading:!1,finished:!1,page:1,total:0,is_show:!1}},watch:{$route:function(e,t){document.body.scrollTop=0,document.documentElement.scrollTop=0}},mounted:function(){window.scrollTo(0,0)},methods:{getMemberInfo:function(){var e=this;$http.get("plugin.video-demand.api.video-demand-member.get-member-data",{}).then((function(t){1===t.result&&(e.memberInfo=t.data,e.getRecommendData())})).catch((function(e){}))},gotoVip:function(){this.$router.push(this.fun.getUrl("CourseMemberUpdate"))},getRecommendData:function(){var e=this;return Object(r["a"])(Object(o["a"])().mark((function t(){var i,a,l,r,n;return Object(o["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!0!==e.loading&&!0!==e.finished){t.next=2;break}return t.abrupt("return");case 2:return e.loading=!0,t.next=5,$http.get("plugin.video-demand.api.video-demand-member.get-recommend-goods",{page:e.page});case 5:if(a=t.sent,l=a.data,r=a.result,n=a.msg,0!==r){t.next=12;break}return e.$toast(n),t.abrupt("return");case 12:(0===l.data.length||l.data.length<l.per_page||l.current_page===l.last_page)&&(e.finished=!0),e.total=l.total,(i=e.newGoodList).push.apply(i,Object(s["a"])(l.data)),e.page++,e.loading=!1,e.info=!0;case 18:case"end":return t.stop()}}),t)})))()},onLoad:function(){this.getRecommendData()},moreGoods:function(e){this.$router.push(this.fun.getUrl("CourseSearch",{goods_type:e,fromHome:1}))},goToDetail:function(e){var t=this;$http.get("plugin.video-demand.api.video-course-goods.get-course-goods-detail",{goods_id:e}).then((function(i){1==i.result?t.$router.push(t.fun.getUrl("goods",{id:e})):t.$toast(i.msg)})).catch((function(e){}))}},activated:function(){this.getMemberInfo(),document.getElementById("course").scrollTop="40px"},components:{cTitle:n["a"],DList:d["a"]}},c=f,m=c,u=(i("97f4"),i("2877")),g=Object(u["a"])(m,a,l,!1,null,"16edaee2",null);t["default"]=g.exports},"97f4":function(e,t,i){"use strict";i("df30")},df30:function(e,t,i){var a=i("1f0b");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var l=i("499e").default;l("46c8c7f6",a,!0,{sourceMap:!1,shadowMode:!1})}}]);