Account.b7ef525a.js 5.3 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("van-cell-group",{staticStyle:{"margin-bottom":".15rem"}},[n("van-cell",{attrs:{title:"剩余时间"}},[n("i",{staticClass:"icon icon_times",attrs:{slot:"icon"},slot:"icon"}),n("div",{staticClass:"available",attrs:{slot:"default"},slot:"default"},[t._v("\n "+t._s(t._f("calcMinute")(t.availableMinutes))+"\n ")])])],1),n("van-cell-group",[n("van-cell",{attrs:{title:"课时兑换","is-link":"",to:"periodExchange"}},[n("i",{staticClass:"icon icon_change",attrs:{slot:"icon"},slot:"icon"})]),n("van-cell",{attrs:{title:"兑换记录","is-link":"",to:"exchangeRecord"}},[n("i",{staticClass:"icon icon_record",attrs:{slot:"icon"},slot:"icon"})]),n("van-cell",{attrs:{title:"课时使用记录","is-link":"",to:"periodRecord"}},[n("i",{staticClass:"icon icon_use",attrs:{slot:"icon"},slot:"icon"})])],1)],1)},r=[],i=n("6e6e"),o=n("ff51"),u=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(o["a"])().android||Object(o["a"])().iPhone)&&(this.headerStatus=!1),this.__init()},methods:{__init:function(){var t=this;this.$toast.loading({duration:0,message:"加载中...",forbidClick:!0,loadingType:"spinner"}),Object(u["o"])().then(function(e){var n=e.data;if(t.$toast.clear(),200==n.code){var a=n.data;a&&(t.availableMinutes=a.availableMinutes?a.availableMinutes:0)}else t.$toast(n.msg)})}}},c=s,l=(n("3c48"),n("2877")),d=Object(l["a"])(c,a,r,!1,null,"10370124",null);e["default"]=d.exports},3354:function(t,e,n){},"3c48":function(t,e,n){"use strict";var a=n("9759"),r=n.n(a);r.a},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)}}},o=i,u=(n("5115"),n("2877")),s=Object(u["a"])(o,a,r,!1,null,"61d0e2e4",null);e["a"]=s.exports},9759:function(t,e,n){},b562:function(t,e,n){"use strict";n.d(e,"m",function(){return u}),n.d(e,"n",function(){return s}),n.d(e,"e",function(){return l}),n.d(e,"b",function(){return d}),n.d(e,"c",function(){return f}),n.d(e,"o",function(){return h}),n.d(e,"j",function(){return m}),n.d(e,"g",function(){return b}),n.d(e,"h",function(){return _}),n.d(e,"p",function(){return p}),n.d(e,"q",function(){return v}),n.d(e,"l",function(){return C}),n.d(e,"d",function(){return g}),n.d(e,"i",function(){return y}),n.d(e,"f",function(){return k}),n.d(e,"a",function(){return w}),n.d(e,"k",function(){return c});var a=n("4328"),r=n.n(a),i=n("981f").default,o="/api-teacher",u=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-auth/user/noAuth/queryUserByPhone",method:"get",params:t})},l=function(t){return i({url:"/api-student/courseGroup/getGroupDetail",method:"get",params:t})},d=function(t){return i({url:"/api-student/courseGroup/buyCourseGroup",method:"post",data:r.a.stringify(t)})},f=function(t){return i({url:o+"/courseGroup/createCourseGroup",method:"post",data:t})},h=function(t){return i({url:o+"/sysTenantAccount/get",method:"get",params:t})},m=function(t){return i({url:o+"/sysTenantAccount/queryTenantAccountDetail",method:"get",params:t})},p=function(t){return i({url:o+"/teacherCourseSchedule/teacherCourseMinutes",method:"get",params:t})},v=function(t){return i({url:o+"/tenantEntryActivities/queryPage",method:"get",params:t})},g=function(t){return i({url:o+"/tenantPaymentOrder/createOrder",method:"post",data:r.a.stringify(t)})},y=function(t){return i({url:o+"/tenantPaymentOrder/queryByOrderNo",method:"get",params:t})},b=function(t){return i({url:"/api-cms/helpCenterCatalog/list",method:"get",params:t})},_=function(t){return i({url:"/api-cms/helpCenterContent/list",method:"get",params:t})},C=function(t){return i({url:"/api-auth/queryUserInfo",method:"get",params:t})},k=function(t){return i({url:o+"/courseReview/getStuAndTeaReview",method:"get",params:t})},w=function(t){return i({url:o+"/courseReview/batchAdd",method:"post",data:t})}}}]);