PageSourceSearch

https://fe-static-yuketang.yuketang.cn/fe/static/web/1.2.315/js/13831.2d1e7bc0.js

js yuketang.cn collected 2026-09-28 09:24:38 UTC 6,516 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkrainweb=self.webpackChunkrainweb||[]).push([["13831"],{41510:function(t,e,s){s.r(e),s.d(e,{default:function(){return h}}),s(80287),s(13794),s(87481),s(80764);var i=s(1166),a=s(32819),o=s(66746),r=s(80850),n=s.n(r);function c(t,e,s,i,a,o,r){try{var n=t[o](r),c=n.value}catch(t){s(t);return}n.done?e(c):Promise.resolve(c).then(i,a)}function l(t){return function(){var e=this,s=arguments;return new Promise(function(i,a){var o=t.apply(e,s);function r(t){c(o,i,a,r,n,"next",t)}function n(t){c(o,i,a,r,n,"throw",t)}r(void 0)})}}function u(t,e){var s,i,a,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},r=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return r.next=n(0),r.throw=n(1),r.return=n(2),"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function n(n){return function(c){var l=[n,c];if(s)throw TypeError("Generator is already executing.");for(;r&&(r=0,l[0]&&(o=0)),o;)try{if(s=1,i&&(a=2&l[0]?i.return:l[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,l[1])).done)return a;switch(i=0,a&&(l=[2&l[0],a.value]),l[0]){case 0:case 1:a=l;break;case 4:return o.label++,{value:l[1],done:!1};case 5:o.label++,i=l[1],l=[0];continue;case 7:l=o.ops.pop(),o.trys.pop();continue;default:if(!(a=(a=o.trys).length>0&&a[a.length-1])&&(6===l[0]||2===l[0])){o=0;continue}if(3===l[0]&&(!a||l[1]>a[0]&&l[1]<a[3])){o.label=l[1];break}if(6===l[0]&&o.label<a[1]){o.label=a[1],a=l;break}
1if(a&&o.label<a[2]){o.label=a[2],o.ops.push(l);break}a[2]&&o.ops.pop(),o.trys.pop();continue}l=e.call(t,o)}catch(t){l=[6,t],i=0}finally{s=a=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}}var d={props:{},data:function(){return{classroomId:0,leafId:0,skuId:0,courseName:"",classroomName:"",courseId:0,percentDone:!1,endTime:0,percentList:[80,20],legendList:[{text:"已完成",className:["blue"],color:"#5096F5"},{text:"进行中",className:["blue"],color:"#AAD0FF"},{text:"班级总人数",className:["margintop"]}],fillStyle:["#5096F5","#AAD0FF"],completed:0,processing:0,undone:0,total:1,leafData:{},content_info:{},cover:""}},computed:{headerInfo:function(){return{classroomName:this.classroomName,courseName:this.courseName,course_id:this.courseId,classroom_id:this.classroomId}},completionInfo:function(){return{completion:this.completed,total:this.total,hideCheckUnit:!0,classroomId:this.classroomId,leafId:this.leafId,skuId:this.skuId,unitType:"video"}}},created:function(){var t=this.$route.params,e=t.classroom_id,s=t.leaf_id,i=t.sku_id,a=this.$route.query.uvid;window.classroomId=e,a&&(window.uv_id=a,localStorage.setItem("uv_id",a)),this.classroomId=e,this.leafId=s,this.skuId=i,this.init()},methods:{init:function(){return l(function(){var t,e,s,i,a,o,r,n,c,l;return u(this,function(u){switch(u.label){case 0:return[4,this.getClassrommInfo()];case 1:return e=(t=u.sent()).classroom_name,s=t.course_name,i=t.course_id,this.classroomName=e,this.courseName=s,this.courseId=i,[4,this.getLeafData()];case 2:return(a=u.sent()).last_modified,c=void 0===(n=(r=void 0===(o=a.content_info)?{}:o).cover)?"":n,this.leafData=a,this.content_info=r,this.simpleLazyload(c),[4,this.getCompleteStatus()];case 3:return u.sent(),[4,this.getResourceLevelList()];case 4:return l=(u.sent()||{}).score_deadline,this.endTime=l,[2]}})}).call(this)},getClassrommInfo:function(){var t=API.courseself.CLASSROOM_INFO,e={classroom_id:this.classroomId};return request.get(t,e).then(function(t){var e=t.success,s=t.data;if(e){var i=s||{};return{classroom_name:i.classroom_name,course_name:i.course_name,course_id:i.course_id}}})},getLeafData:function(){return l(function(){var t,e;return u(this,function(s){switch(s.label){case 0:return t={sku_id:this.skuId},e=API.cloud.get_leaf_detail.replace(/\{leaf_detail_id\}/gi,this.leafId),[4,request.get(e,t)];case 1:return[2,s.sent().data||{}]}})}).call(this)},getResourceLevelList:function(){var t=this;return request.post(API.cloud.get_resource_level_list.replace(/\{classroom_id\}/gi,this.classroomId),{level_type:3,level_id:+this.leafId,sku_id:+this.skuId}).then(function(e){var s=e.success,i=e.data;if(s)return 0===i.publish_status&&t.$router.push("/lockedError"),i})},getCompleteStatus:function(){var t=this,e=API.cloud.get_single_study_unit_completed.replace(/\{classroom_id\}/gi,this.classroomId).replace(/\{sku_id\}/gi,this.skuId).replace(/\{leaf_id\}/gi,this.leafId);return request.get(e).then(function(e){var s=e.success,i=e.data;if(s){var a=i[t.leafId];if(a){var o=a.completed,r=a.processing,n=a.undone,c=o.length||0,l=r.length||0,u=n.length||0,d=c+l+u;t.total=d,t.completed=c,t.processing=l,t.undone=u,t.percentList=[c,l].map(function(t){return 100*Math.round(t/(d||1))}),t.percentDone=!0}}})},goUnitDetail:function(t){this.$router.push({name:"audio-teacher-unit",params:{classroom_id:this.classroomId,leaf_id:this.leafId,sku_id:this.skuId},query:{uvid:window.uv_id||localStorage.getItem("uv_id")}})},simpleLazyload:function(t){var e=this,s="https://qn-sfe.yuketang.cn/o_1erqvsna71g4d1e98p8u5ajslj9.5x.png",i=new Image,a=t||s;i.src=a,i.onload=function(t){e.cover=a},i.onerror=function(t){e.cover=s}}},components:{pageHeader:i.Z,completionStatus:a.Z,discuss:o.Z},filters:{dateFilter:function(t){return n().locale("zh-cn"),n()(t).format("YYYY-MM-DD dddd HH:mm")}}},h=(0,s(81049).Z)(d,function(){var t=this._self._c;return t("div",{staticClass:"detail-wrapper"},[t("page-header",{attrs:{info:this.headerInfo,role:1}}),this._v(" "),this.percentDone?t("completion-status",{staticClass:"block-gap",attrs:{info:this.completionInfo,legendList:this.legendList,percent:this.percentList,endTime:this.endTime,fillStyle:this.fillStyle},on:{goUnitDetail:this.goUnitDetail}}):this._e(),this._v(" "),t("discuss",{staticClass:"block-gap",attrs:{isDiscusseDetails:!1,skuId:this.skuId,leafId:this.leafId,classroomId:this.classroomId,is_discuss:this.content_info.is_discuss}}),this._v(" "),t("div",{staticClass:"block-gap video-content_wrapper",on:{click:this.goUnitDetail}},[t("div",{staticClass:"title"},[this._v("音频内容")]),this._v(" "),t("div",{staticClass:"cover-title-time-wrapper"},[this.cover?t("img",{staticClass:"cover",attrs:{src:this.cover}}):t("div",{staticClass:"cover"}),this._v(" "),t("div",{staticClass:"left-title-time__wrapper"},[t("div",{staticClass:"title"},[this._v(this._s(this.leafData.name))]),this._v(" "),t("div",{staticClass:"time"},[this._v("发布于:"+this._s(this._f("dateFilter")(this.leafData.created)))])])])])],1
1)},[],!1,null,"6334af6a",null).exports}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.