| 1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["Account"],{"0339":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:"account"},[t.headerStatus?a("m-header"):t._e(),a("van-cell-group",{staticStyle:{"margin-bottom":".15rem"}},[a("van-cell",{attrs:{title:"剩余时间","value-class":"available"}},[a("i",{staticClass:"icon icon_times",attrs:{slot:"icon"},slot:"icon"}),a("div",{attrs:{slot:"default"},slot:"default"},[t._v("\n "+t._s(t._f("calcMinute")(t.availableMinutes))+"\n ")])])],1),a("van-cell-group",[a("van-cell",{attrs:{title:"兑换记录","is-link":"",to:"exchangeRecord"}},[a("i",{staticClass:"icon icon_record",attrs:{slot:"icon"},slot:"icon"})]),a("van-cell",{attrs:{title:"课时使用记录","is-link":"",to:"periodRecord"}},[a("i",{staticClass:"icon icon_use",attrs:{slot:"icon"},slot:"icon"})])],1)],1)},i=[],r=a("6e6e"),o=a("ff51"),s=a("b562"),c={name:"courseApply",components:{MHeader:r["a"]},data:function(){return{headerStatus:!0,availableMinutes:0,frozenMinutes:0}},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),this.__init()},methods:{__init:function(){var t=this;this.$toast.loading({duration:0,message:"加载中...",forbidClick:!0,loadingType:"spinner"}),Object(s["p"])().then(function(e){var a=e.data;if(t.$toast.clear(),200==a.code){var n=a.data;n&&(t.availableMinutes=n.availableMinutes?n.availableMinutes:0)}else t.$toast(a.msg)})}}},l=c,u=(a("cce4"),a("2877")),f=Object(u["a"])(l,n,i,!1,null,"00724f46",null);e["default"]=f.exports},2407:function(t,e,a){},"38f0":function(t,e,a){"use strict";var n=a("5b7e"),i=a.n(n);i.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"),o=a.n(r),s=a("ddf4");function c(t,e,a,n,i,r,o){try{var s=t[r](o),c=s.value}catch(l){return void a(l)}s.done?e(c):Promise.resolve(c).then(n,i)}function l(t){return function(){var e=this,a=arguments;return new Promise(function(n,i){var r=t.apply(e,a);function o(t){c(r,n,i,o,s,"next",t)}function s(t){c(r,n,i,o,s,"throw",t)}o(void 0)})}}var u={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(s["a"])({api:"setBarStatus",content:{status:0}}),this.getNav(),this.isBack=!1)},methods:{getNav:function(){var t=l(o.a.mark(function t(){var e,a,n=this;return o.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(s["a"])({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 o=e.titleHeight/i;sessionStorage.setItem("titleHeight",o),n.titleHeight=o,a.height=o+"px",a.lineHeight=o+"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(s["a"])({api:"setBarStatus",content:{status:1}}),this.isBack=!0)}},f=u,d=(a("38f0"),a("2877")),h=Object(d["a"])(f,n,i,!1,null,"6a74717c",null);e["a"]=h.exports},cce4:function(t,e,a){"use strict";var n=a("2407"),i=a.n(n);i.a},ddf4:function(t,e,a){"use strict";a.d(e,"a",function(){return d});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){o(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 o(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}function s(t){return s="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},s(t)}var c=function(){},l={},u=Object(n["b"])();u.isApp&&window.addEventListener("message",function(t){try{var e=t.data?"object"===s(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(l).filter(function(t){return 0===t.indexOf(e.api)}),i=!0,r=!1,o=void 0;try{for(var u,f=n[Symbol.iterator]();!(i=(u=f.next()).done);i=!0){var d=u.value,h=l[d]||c;h(e)}}catch(b){r=!0,o=b}finally{try{i||null==f.return||f.return()}finally{if(r)throw o}}return}var p=l[e.content.uuid||e.uuid||e.api+e.uuid]||c;p(e)}catch(v){console.error("通信消息解析错误",v)}});var f=window.DAYA||window.webkit&&window.webkit.messageHandlers&&window.webkit.messageHandlers.DAYA,d=function(t,e){if(u.isApp){var a=Object(n["g"])();l[a]=e||c,t.content=t.content?r({},t.content,{uuid:a}):{uuid:a},f.postMessage(JSON.stringify(t))}}}}]);
|