1
0

chunk-3cf666f8.f6af4831.js 13 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3cf666f8"],{"0afc":function(t,e,n){t.exports=n.p+"img/noneData.919a3c84.png"},"0b33":function(t,e,n){"use strict";var i=n("c31d"),r=n("d282"),o=n("9884"),s=n("48f4"),a=Object(r["a"])("tab"),c=a[0],l=a[1];e["a"]=c({mixins:[Object(o["a"])("vanTabs")],props:Object(i["a"])({},s["c"],{dot:Boolean,name:[Number,String],info:[Number,String],badge:[Number,String],title:String,titleStyle:null,titleClass:null,disabled:Boolean}),data:function(){return{inited:!1}},computed:{computedName:function(){var t;return null!=(t=this.name)?t:this.index},isActive:function(){var t=this.computedName===this.parent.currentName;return t&&(this.inited=!0),t}},watch:{title:function(){this.parent.setLine(),this.parent.scrollIntoView()},inited:function(t){var e=this;this.parent.lazyRender&&t&&this.$nextTick((function(){e.parent.$emit("rendered",e.computedName,e.title)}))}},render:function(t){var e=this.slots,n=this.parent,i=this.isActive,r=e();if(r||n.animated){var o=n.scrollspy||i,s=this.inited||n.scrollspy||!n.lazyRender,a=s?r:t();return n.animated?t("div",{attrs:{role:"tabpanel","aria-hidden":!i},class:l("pane-wrapper",{inactive:!i})},[t("div",{class:l("pane")},[a])]):t("div",{directives:[{name:"show",value:o}],attrs:{role:"tabpanel"},class:l("pane")},[a])}}})},"5e46":function(t,e,n){"use strict";var i=n("d282"),r=n("ea8e"),o=n("a142"),s=n("4598"),a=n("a8c1");function c(t,e,n){var i=0,r=t.scrollLeft,o=0===n?1:Math.round(1e3*n/16);function a(){t.scrollLeft+=(e-r)/o,++i<o&&Object(s["b"])(a)}a()}function l(t,e,n,i){var r=Object(a["c"])(t),o=r<e,c=0===n?1:Math.round(1e3*n/16),l=(e-r)/c;function u(){r+=l,(o&&r>e||!o&&r<e)&&(r=e),Object(a["h"])(t,r),o&&r<e||!o&&r>e?Object(s["b"])(u):i&&Object(s["b"])(i)}u()}var u=n("48f4"),d=n("02de"),h=n("1325"),f=n("b1d2");function p(t){var e=t.interceptor,n=t.args,i=t.done;if(e){var r=e.apply(void 0,n);Object(o["f"])(r)?r.then((function(t){t&&i()})).catch(o["h"]):r&&i()}else i()}var b=n("9884"),m=n("5fbe"),v=n("6f2f"),g=Object(i["a"])("tab"),x=g[0],O=g[1],y=x({props:{dot:Boolean,type:String,info:[Number,String],color:String,title:String,isActive:Boolean,disabled:Boolean,scrollable:Boolean,activeColor:String,inactiveColor:String},computed:{style:function(){var t={},e=this.color,n=this.isActive,i="card"===this.type;e&&i&&(t.borderColor=e,this.disabled||(n?t.backgroundColor=e:t.color=e));var r=n?this.activeColor:this.inactiveColor;return r&&(t.color=r),t}},methods:{onClick:function(){this.$emit("click")},genText:function(){var t=this.$createElement,e=t("span",{class:O("text",{ellipsis:!this.scrollable})},[this.slots()||this.title]);return this.dot||Object(o["c"])(this.info)&&""!==this.info?t("span",{class:O("text-wrapper")},[e,t(v["a"],{attrs:{dot:this.dot,info:this.info}})]):e}},render:function(){var t=arguments[0];return t("div",{attrs:{role:"tab","aria-selected":this.isActive},class:[O({active:this.isActive,disabled:this.disabled})],style:this.style,on:{click:this.onClick}},[this.genText()])}}),j=n("3104"),C=n("c31d"),S=n("3875"),w=Object(i["a"])("tabs"),I=w[0],k=w[1],$=50,N=I({mixins:[S["a"]],props:{count:Number,duration:[Number,String],animated:Boolean,swipeable:Boolean,currentIndex:Number},computed:{style:function(){if(this.animated)return{transform:"translate3d("+-1*this.currentIndex*100+"%, 0, 0)",transitionDuration:this.duration+"s"}},listeners:function(){if(this.swipeable)return{touchstart:this.touchStart,touchmove:this.touchMove,touchend:this.onTouchEnd,touchcancel:this.onTouchEnd}}},methods:{onTouchEnd:function(){var t=this.direction,e=this.deltaX,n=this.currentIndex;"horizontal"===t&&this.offsetX>=$&&(e>0&&0!==n?this.$emit("change",n-1):e<0&&n!==this.count-1&&this.$emit("change",n+1))},genChildren:function(){var t=this.$createElement;return this.animated?t("div",{class:k("track"),style:this.style},[this.slots()]):this.slots()}},render:function(){var t=arguments[0];return t("div",{class:k("content",{animated:this.animated}),on:Object(C["a"])({},this.listeners)},[this.genChildren()])}}),T=Object(i["a"])("tabs"),B=T[0],_=T[1];e["a"]=B({mixins:[Object(b["b"])("vanTabs"),Object(m["a"])((function(t){this.scroller||(this.scroller=Object(a["d"])(this.$el)),t(window,"resize",this.resize,!0),this.scrollspy&&t(this.scroller,"scroll",this.onScroll,!0)}))],inject:{vanPopup:{default:null}},model:{prop:"active"},props:{color:String,border:Boolean,sticky:Boolean,animated:Boolean,swipeable:Boolean,scrollspy:Boolean,background:String,lineWidth:[Number,String],lineHeight:[Number,String],beforeChange:Function,titleActiveColor:String,titleInactiveColor:String,type:{type:String,default:"line"},active:{type:[Number,String],default:0},ellipsis:{type:Boolean,default:!0},duration:{type:[Number,String],default:.3},offsetTop:{type:[Number,String],default:0},lazyRender:{type:Boolean,default:!0},swipeThreshold:{type:[Number,String],default:5}},data:function(){return{position:"",currentIndex:null,lineStyle:{backgroundColor:this.color}}},computed:{scrollable:function(){return this.children.length>this.swipeThreshold||!this.ellipsis},navStyle:function(){return{borderColor:this.color,background:this.background}},currentName:function(){var t=this.children[this.currentIndex];if(t)return t.computedName},offsetTopPx:function(){return Object(r["b"])(this.offsetTop)},scrollOffset:function(){return this.sticky?this.offsetTopPx+this.tabHeight:0}},watch:{color:"setLine",active:function(t){t!==this.currentName&&this.setCurrentIndexByName(t)},children:function(){var t=this;this.setCurrentIndexByName(this.active),this.setLine(),this.$nextTick((function(){t.scrollIntoView(!0)}))},currentIndex:function(){this.scrollIntoView(),this.setLine(),this.stickyFixed&&!this.scrollspy&&Object(a["g"])(Math.ceil(Object(a["a"])(this.$el)-this.offsetTopPx))},scrollspy:function(t){t?Object(h["b"])(this.scroller,"scroll",this.onScroll,!0):Object(h["a"])(this.scroller,"scroll",this.onScroll)}},mounted:function(){var t=this;this.init(),this.vanPopup&&this.vanPopup.onReopen((function(){t.setLine()}))},activated:function(){this.init(),this.setLine()},methods:{resize:function(){this.setLine()},init:function(){var t=this;this.$nextTick((function(){t.inited=!0,t.tabHeight=Object(a["e"])(t.$refs.wrap),t.scrollIntoView(!0)}))},setLine:function(){var t=this,e=this.inited;this.$nextTick((function(){var n=t.$refs.titles;if(n&&n[t.currentIndex]&&"line"===t.type&&!Object(d["a"])(t.$el)){var i=n[t.currentIndex].$el,s=t.lineWidth,a=t.lineHeight,c=i.offsetLeft+i.offsetWidth/2,l={width:Object(r["a"])(s),backgroundColor:t.color,transform:"translateX("+c+"px) translateX(-50%)"};if(e&&(l.transitionDuration=t.duration+"s"),Object(o["c"])(a)){var u=Object(r["a"])(a);l.height=u,l.borderRadius=u}t.lineStyle=l}}))},setCurrentIndexByName:function(t){var e=this.children.filter((function(e){return e.computedName===t})),n=(this.children[0]||{}).index||0;this.setCurrentIndex(e.length?e[0].index:n)},setCurrentIndex:function(t){var e=this.findAvailableTab(t);if(Object(o["c"])(e)){var n=this.children[e],i=n.computedName,r=null!==this.currentIndex;this.currentIndex=e,i!==this.active&&(this.$emit("input",i),r&&this.$emit("change",i,n.title))}},findAvailableTab:function(t){var e=t<this.currentIndex?-1:1;while(t>=0&&t<this.children.length){if(!this.children[t].disabled)return t;t+=e}},onClick:function(t,e){var n=this,i=this.children[e],r=i.title,o=i.disabled,s=i.computedName;o?this.$emit("disabled",s,r):(p({interceptor:this.beforeChange,args:[s],done:function(){n.setCurrentIndex(e),n.scrollToCurrentContent()}}),this.$emit("click",s,r),Object(u["b"])(t.$router,t))},scrollIntoView:function(t){var e=this.$refs.titles;if(this.scrollable&&e&&e[this.currentIndex]){var n=this.$refs.nav,i=e[this.currentIndex].$el,r=i.offsetLeft-(n.offsetWidth-i.offsetWidth)/2;c(n,r,t?0:+this.duration)}},onSticktScroll:function(t){this.stickyFixed=t.isFixed,this.$emit("scroll",t)},scrollTo:function(t){var e=this;this.$nextTick((function(){e.setCurrentIndexByName(t),e.scrollToCurrentContent(!0)}))},scrollToCurrentContent:function(t){var e=this;if(void 0===t&&(t=!1),this.scrollspy){var n=this.children[this.currentIndex],i=null==n?void 0:n.$el;if(i){var r=Object(a["a"])(i,this.scroller)-this.scrollOffset;this.lockScroll=!0,l(this.scroller,r,t?0:+this.duration,(function(){e.lockScroll=!1}))}}},onScroll:function(){if(this.scrollspy&&!this.lockScroll){var t=this.getCurrentIndexOnScroll();this.setCurrentIndex(t)}},getCurrentIndexOnScroll:function(){for(var t=this.children,e=0;e<t.length;e++){var n=Object(a["f"])(t[e].$el);if(n>this.scrollOffset)return 0===e?0:e-1}return t.length-1}},render:function(){var t,e=this,n=arguments[0],i=this.type,r=this.animated,o=this.scrollable,s=this.children.map((function(t,r){var s;return n(y,{ref:"titles",refInFor:!0,attrs:{type:i,dot:t.dot,info:null!=(s=t.badge)?s:t.info,title:t.title,color:e.color,isActive:r===e.currentIndex,disabled:t.disabled,scrollable:o,activeColor:e.titleActiveColor,inactiveColor:e.titleInactiveColor},style:t.titleStyle,class:t.titleClass,scopedSlots:{default:function(){return t.slots("title")}},on:{click:function(){e.onClick(t,r)}}})})),a=n("div",{ref:"wrap",class:[_("wrap",{scrollable:o}),(t={},t[f["f"]]="line"===i&&this.border,t)]},[n("div",{ref:"nav",attrs:{role:"tablist"},class:_("nav",[i,{complete:this.scrollable}]),style:this.navStyle},[this.slots("nav-left"),s,"line"===i&&n("div",{class:_("line"),style:this.lineStyle}),this.slots("nav-right")])]);return n("div",{class:_([i])},[this.sticky?n(j["a"],{attrs:{container:this.$el,offsetTop:this.offsetTop},on:{scroll:this.onSticktScroll}},[a]):a,n(N,{attrs:{count:this.children.length,animated:r,duration:this.duration,swipeable:this.swipeable,currentIndex:this.currentIndex},on:{change:this.setCurrentIndex}},[this.slots()])])}})},"9df2":function(t,e,n){"use strict";n.d(e,"l",(function(){return r})),n.d(e,"q",(function(){return o})),n.d(e,"b",(function(){return s})),n.d(e,"r",(function(){return a})),n.d(e,"t",(function(){return c})),n.d(e,"p",(function(){return l})),n.d(e,"c",(function(){return u})),n.d(e,"k",(function(){return d})),n.d(e,"j",(function(){return h})),n.d(e,"h",(function(){return f})),n.d(e,"f",(function(){return p})),n.d(e,"g",(function(){return b})),n.d(e,"m",(function(){return m})),n.d(e,"n",(function(){return v})),n.d(e,"s",(function(){return g})),n.d(e,"i",(function(){return x})),n.d(e,"d",(function(){return O})),n.d(e,"a",(function(){return y})),n.d(e,"e",(function(){return j})),n.d(e,"o",(function(){return C}));var i=n("b775");function r(t){return Object(i["a"])({url:"/api/train/new",method:"post",data:t})}function o(t){return Object(i["a"])({url:"/api/train/trainClassList",method:"post",data:t})}function s(t){return Object(i["a"])({url:"/api/train/classDetail",method:"post",data:t})}function a(t){return Object(i["a"])({url:"/api/train/trainCourseList",method:"post",data:t})}function c(t){return Object(i["a"])({url:"/api/train/watch_feel",method:"post",data:t})}function l(t){return Object(i["a"])({url:"/api/train/thumbing",method:"post",data:t})}function u(t){return Object(i["a"])({url:"/api/train/commentAdd",method:"post",data:t})}function d(t){return Object(i["a"])({url:"/api/exam/submitPaper",method:"post",data:t})}function h(t){return Object(i["a"])({url:"/api/exam/get_questions",method:"post",data:t})}function f(t){return Object(i["a"])({url:"/api/exam/ranking",method:"post",data:t})}function p(t){return Object(i["a"])({url:"/api/train/courseDetail",method:"post",data:t})}function b(t){return Object(i["a"])({url:"/api/train/doneLogging",method:"post",data:t})}function m(t){return Object(i["a"])({url:"/api/exam/paperdetail",method:"post",data:t})}function v(t){return Object(i["a"])({url:"/api/exam/paperlist",method:"post",data:t})}function g(t){return Object(i["a"])({url:"/api/exam/treat_correct_paper",method:"post",data:t})}function x(t){return Object(i["a"])({url:"/api/exam/get_papers",method:"post",data:t})}function O(t){return Object(i["a"])({url:"/api/exam/correct_papers_log",method:"post",data:t})}function y(t){return Object(i["a"])({url:"/api/exam/all_correct_papers",method:"post",data:t})}function j(t){return Object(i["a"])({url:"/api/exam/correct_papers_question_list",method:"post",data:t})}function C(t){return Object(i["a"])({url:"/api/day_study/setting",method:"post",data:t})}},a92e:function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"nonedata",staticStyle:{margin:"auto"}},[i("div",{directives:[{name:"show",rawName:"v-show",value:"0"==t.len&&t.datashow,expression:"len == '0' && datashow"}],staticClass:"noneDataBox"},[i("img",{attrs:{src:n("0afc")}}),i("div",[t._v(t._s(t.text))])])])},r=[],o=(n("a9e3"),{name:"nonedata",props:{len:{type:Number,default:0},datashow:{type:Boolean,default:!1},text:{type:String,default:"暂无数据展示"}},data:function(){return{}},created:function(){},methods:{},mounted:function(){}}),s=o,a=(n("bf10"),n("2877")),c=Object(a["a"])(s,i,r,!1,null,"e6e9b0c4",null);e["a"]=c.exports},b807:function(t,e,n){},bda71:function(t,e,n){"use strict";n("68ef"),n("9d70"),n("ae9e"),n("b807")},bf10:function(t,e,n){"use strict";n("c93c")},c93c:function(t,e,n){},da3c:function(t,e,n){"use strict";n("68ef"),n("f319")},f319:function(t,e,n){}}]);