Account.e417617a.js 5.0 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["Account"],{"0339":function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"account"},[t.headerStatus?n("m-header"):t._e(),n("div",{staticClass:"accountHeader"},[n("div",{staticClass:"bgColor"}),n("van-row",{staticClass:"content",attrs:{type:"flex",justify:"center",align:"center"}},[n("van-col",{attrs:{span:"24"}},[n("i",{staticClass:"icon icon_times"}),t._v("剩余时间"),n("span",[t._v(t._s(t.availableMinutes))])])],1)],1),n("van-cell-group",[n("van-cell",{attrs:{title:"课时兑换","is-link":"",to:"periodExchange"}}),n("van-cell",{attrs:{title:"兑换记录","is-link":"",to:"exchangeRecord"}}),n("van-cell",{attrs:{title:"课时使用记录","is-link":"",to:"periodRecord"}})],1)],1)},r=[],i=n("6e6e"),u=n("ff51"),o=n("b562"),s={name:"courseApply",components:{MHeader:i["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(u["a"])().android||Object(u["a"])().iPhone)&&(this.headerStatus=!1),this.__init()},methods:{__init:function(){var t=this;this.$toast.loading({duration:0,message:"加载中...",forbidClick:!0,loadingType:"spinner"}),Object(o["n"])().then(function(e){var n=e.data;if(t.$toast.clear(),200==n.code){var a=n.data;a&&(t.availableMinutes=Object(u["b"])(a.availableMinutes?a.availableMinutes:0),t.frozenMinutes=Object(u["b"])(a.frozenMinutes?a.frozenMinutes:0))}else t.$toast(n.msg)})}}},c=s,l=(n("0f76"),n("2877")),d=Object(l["a"])(c,a,r,!1,null,"40dc6b38",null);e["default"]=d.exports},"0f76":function(t,e,n){"use strict";var a=n("ff5c"),r=n.n(a);r.a},3354:function(t,e,n){},5115:function(t,e,n){"use strict";var a=n("3354"),r=n.n(a);r.a},"6e6e":function(t,e,n){"use strict";var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"mheader"},[n("header",{staticClass:"m-nav-header",class:[t.isFixed?"fixed":""]},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.isBack,expression:"isBack"}],staticClass:"m-nav-bar__left",on:{click:t.goBack}},[n("van-icon",{staticClass:"arrow-left",attrs:{name:"arrow-left"}})],1),n("div",{staticClass:"m-nav-bar__title"},[t._t("default",[t._v(t._s(t.name?t.name:this.$route.meta.descrition))])],2),n("div",{staticClass:"m-nav-bar__right"},[t._t("right")],2)])])},r=[],i={name:"mheader",props:{name:String,isBack:{type:Boolean,default:!0},isFixed:{type:Boolean,default:!0},backUrl:{type:Object,default:function(){return{callBack:null,path:"",params:{}}}}},methods:{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)}}},u=i,o=(n("5115"),n("2877")),s=Object(o["a"])(u,a,r,!1,null,"61d0e2e4",null);e["a"]=s.exports},b562:function(t,e,n){"use strict";n.d(e,"l",function(){return o}),n.d(e,"m",function(){return s}),n.d(e,"e",function(){return c}),n.d(e,"b",function(){return l}),n.d(e,"c",function(){return d}),n.d(e,"n",function(){return f}),n.d(e,"j",function(){return h}),n.d(e,"g",function(){return b}),n.d(e,"h",function(){return y}),n.d(e,"o",function(){return p}),n.d(e,"p",function(){return m}),n.d(e,"k",function(){return _}),n.d(e,"d",function(){return v}),n.d(e,"i",function(){return g}),n.d(e,"f",function(){return C}),n.d(e,"a",function(){return k});var a=n("4328"),r=n.n(a),i=n("981f").default,u="/api-teacher",o=function(t){return i({url:"/api-student/code/sendSms",method:"post",data:r.a.stringify(t)})},s=function(t){return i({url:"/api-auth/smsLogin",method:"post",data:r.a.stringify(t)})},c=function(t){return i({url:"/api-student/courseGroup/getGroupDetail",method:"get",params:t})},l=function(t){return i({url:"/api-student/courseGroup/buyCourseGroup",method:"post",data:r.a.stringify(t)})},d=function(t){return i({url:u+"/courseGroup/createCourseGroup",method:"post",data:t})},f=function(t){return i({url:u+"/sysTenantAccount/get",method:"get",params:t})},h=function(t){return i({url:u+"/sysTenantAccount/queryTenantAccountDetail",method:"get",params:t})},p=function(t){return i({url:u+"/teacherCourseSchedule/teacherCourseMinutes",method:"get",params:t})},m=function(t){return i({url:u+"/tenantEntryActivities/queryPage",method:"get",params:t})},v=function(t){return i({url:u+"/tenantPaymentOrder/createOrder",method:"post",data:r.a.stringify(t)})},g=function(t){return i({url:u+"/tenantPaymentOrder/queryByOrderNo",method:"get",params:t})},b=function(t){return i({url:"/api-cms/helpCenterCatalog/list",method:"get",params:t})},y=function(t){return i({url:"/api-cms/helpCenterContent/list",method:"get",params:t})},_=function(t){return i({url:"/api-auth/queryUserInfo",method:"get",params:t})},C=function(t){return i({url:u+"/courseReview/getStuAndTeaReview",method:"get",params:t})},k=function(t){return i({url:u+"/courseReview/batchAdd",method:"post",data:t})}},ff5c:function(t,e,n){}}]);