1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["PeriodRecord"],{"38f0":function(t,e,a){"use strict";var n=a("5b7e"),i=a.n(n);i.a},"3be5":function(t,e,a){"use strict";var n=a("9c9d"),i=a.n(n);i.a},"51c7":function(t,e,a){},"5b7e":function(t,e,a){},"6e6e":function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"mheader",style:{height:"calc("+t.titleHeight+"px + "+t.navBarHeight+"px)"}},[a("header",{staticClass:"m-nav-header",class:[t.isFixed?"fixed":""],style:[t.headStyle]},[a("div",{directives:[{name:"show",rawName:"v-show",value:t.isBack,expression:"isBack"}],staticClass:"m-nav-bar__left",on:{click:t.goBack}},[a("van-icon",{staticClass:"arrow-left",attrs:{name:"arrow-left"}})],1),a("div",{staticClass:"m-nav-bar__title"},[t._t("default",[t._v(t._s(t.name?t.name:this.$route.meta.descrition))])],2),a("div",{staticClass:"m-nav-bar__right"},[t._t("right")],2)])])},i=[],r=a("a34a"),s=a.n(r),o=a("ddf4");function c(t,e,a,n,i,r,s){try{var o=t[r](s),c=o.value}catch(u){return void a(u)}o.done?e(c):Promise.resolve(c).then(n,i)}function u(t){return function(){var e=this,a=arguments;return new Promise(function(n,i){var r=t.apply(e,a);function s(t){c(r,n,i,s,o,"next",t)}function o(t){c(r,n,i,s,o,"throw",t)}s(void 0)})}}var l={name:"mheader",props:{name:String,isNative:{type:Boolean,default:!0},isBack:{type:Boolean,default:!0},isFixed:{type:Boolean,default:!0},backUrl:{type:Object,default:function(){return{callBack:null,path:"",params:{}}}}},data:function(){return{navBarHeight:0,headStyle:{},titleHeight:44}},mounted:function(){this.isNative||(Object(o["b"])({api:"setBarStatus",content:{status:0}}),this.getNav(),this.isBack=!1)},methods:{getNav:function(){var t=u(s.a.mark(function t(){var e,a,n=this;return s.a.wrap(function(t){while(1)switch(t.prev=t.next){case 0:if(e=sessionStorage.getItem("navHeight"),a=sessionStorage.getItem("titleHeight"),!e||!a){t.next=7;break}this.navBarHeight=e,this.headStyle={paddingTop:e+"px",height:a+"px",lineHeight:a+"px"},t.next=9;break;case 7:return t.next=9,Object(o["b"])({api:"getNavHeight"},function(t){var e=t.content,a={},i=e.dpi||2;if(e.navHeight){var r=e.navHeight/i;sessionStorage.setItem("navHeight",r),n.navBarHeight=r,a={paddingTop:r+"px"}}if(e.titleHeight){var s=e.titleHeight/i;sessionStorage.setItem("titleHeight",s),n.titleHeight=s,a.height=s+"px",a.lineHeight=s+"px"}n.headStyle=a});case 9:case"end":return t.stop()}},t,this)}));function e(){return t.apply(this,arguments)}return e}(),goBack:function(){var t=this.backUrl;"function"==typeof t.callBack?t.callBack():t.path?this.$router.push({path:t.path,query:t.params}):history.go(-1)}},beforeDestroy:function(){this.isNative||(Object(o["b"])({api:"setBarStatus",content:{status:1}}),this.isBack=!0)}},d=l,f=(a("38f0"),a("2877")),p=Object(f["a"])(d,n,i,!1,null,"6a74717c",null);e["a"]=p.exports},"9c9d":function(t,e,a){},"9e0f":function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"periodExchange"},[t.headerStatus?a("m-header"):t._e(),t.dataShow?a("van-list",{key:"data",attrs:{finished:t.finished,"finished-text":"- 没有更多数据了 -"},on:{load:t.getTeacherCourse},model:{value:t.loading,callback:function(e){t.loading=e},expression:"loading"}},[a("van-cell-group",t._l(t.dataList,function(e,n){return a("van-cell",{key:n,attrs:{center:!0}},[a("template",{slot:"title"},[a("p",{staticClass:"exchangeText"},[t._v(t._s(e.name))])]),a("template",{slot:"label"},[a("p",{staticClass:"info"},[t._v(t._s(t._f("periodRecordStatus")(e.status)))]),a("p",{staticClass:"info"},[t._v(t._s(e.createTime))])]),a("template",{slot:"default"},[a("p",{staticClass:"exchangeText enum"},[t._v("占用"+t._s(t._f("calcMinute")(e.freezeMinutes)))]),a("p",{staticClass:"info"},[t._v("已消耗"+t._s(t._f("calcMinute")(e.consumeMinutes)))])])],2)}),1)],1):a("m-empty",{key:"data",staticClass:"empty",attrs:{msg:"暂无课时使用记录"}})],1)},i=[],r=a("6e6e"),s=a("d678"),o=a("ff51"),c=a("b562"),u={name:"courseApply",components:{MHeader:r["a"],MEmpty:s["a"]},data:function(){return{headerStatus:!0,loading:!1,finished:!1,params:{page:1,rows:20},dataShow:!0,dataList:[]}},mounted:function(){var t=this.$route.query;t.Authorization&&(localStorage.setItem("Authorization",decodeURI(t.Authorization)),localStorage.setItem("userInfo",decodeURI(t.Authorization))),document.title="课时使用记录",(Object(o["b"])().android||Object(o["b"])().iPhone)&&(this.headerStatus=!1)},methods:{getTeacherCourse:function(){var t=this,e=this.params;Object(c["q"])(e).then(function(a){var n=a.data;t.loading=!1,200==n.code?(e.page=n.data.pageNo,t.dataList=t.dataList.concat(n.data.rows),e.page>=n.data.totalPage&&(t.finished=!0),t.params.page++):t.finished=!0,t.dataList.length<=0&&(t.dataShow=!1)})}}},l=u,d=(a("3be5"),a("2877")),f=Object(d["a"])(l,n,i,!1,null,"7da1f31a",null);e["default"]=f.exports},c063:function(t,e,a){"use strict";var n=a("51c7"),i=a.n(n);i.a},d678:function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"mempty",class:t.full?"full":null},[a("div",{class:[t.icon?t.icon:"icon_nodata","icon"]}),a("div",{staticClass:"msg"},[t._v(t._s(t.msg?t.msg:"暂无内容"))])])},i=[],r={name:"mempty",props:{icon:String,msg:String,full:Boolean}},s=r,o=(a("c063"),a("2877")),c=Object(o["a"])(s,n,i,!1,null,"45d1a48f",null);e["a"]=c.exports},ddf4:function(t,e,a){"use strict";a.d(e,"b",function(){return f}),a.d(e,"a",function(){return p});var n=a("ff51");function i(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),a.push.apply(a,n)}return a}function r(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?i(Object(a),!0).forEach(function(e){s(t,e,a[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):i(Object(a)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))})}return t}function s(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}var c=function(){},u={},l=Object(n["b"])();l.isApp&&window.addEventListener("message",function(t){try{var e=t.data?"object"===o(t.data)?t.data:JSON.parse(t.data):{},a=e.content.uuid||e.uuid;try{e.content&&(e.content=JSON.parse(e.content))}catch(v){}if(!a){var n=Object.keys(u).filter(function(t){return 0===t.indexOf(e.api)}),i=!0,r=!1,s=void 0;try{for(var l,d=n[Symbol.iterator]();!(i=(l=d.next()).done);i=!0){var f=l.value,p=u[f]||c;p(e)}}catch(g){r=!0,s=g}finally{try{i||null==d.return||d.return()}finally{if(r)throw s}}return}var h=u[e.content.uuid||e.uuid||e.api+e.uuid]||c;h(e)}catch(v){console.error("通信消息解析错误",v)}});var d=window.DAYA||window.webkit&&window.webkit.messageHandlers&&window.webkit.messageHandlers.DAYA,f=function(t,e){if(l.isApp){var a=Object(n["g"])();u[a]=e||c,t.content=t.content?r({},t.content,{uuid:a}):{uuid:a},d.postMessage(JSON.stringify(t))}},p=function(t,e){if(l.isApp){var a=t+Object(n["g"])();u[a]=e||c}}}}]);
|