ExchangeRecord.08918ed0.js 3.8 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["ExchangeRecord"],{"4d07":function(t,a,e){"use strict";e.r(a);var s=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"periodExchange"},[t.headerStatus?e("m-header"):t._e(),t.dataShow?e("van-list",{key:"data",attrs:{finished:t.finished,"finished-text":"- 没有更多数据了 -"},on:{load:t.getAccountDetail},model:{value:t.loading,callback:function(a){t.loading=a},expression:"loading"}},[e("van-cell-group",t._l(t.dataList,(function(a,s){return e("van-cell",{key:s,attrs:{center:!0}},[e("template",{slot:"title"},[e("p",{staticClass:"exchangeText"},[t._v("兑换"+t._s(a.transMinutes))])]),e("template",{slot:"label"},[e("p",{staticClass:"info"},[t._v(t._s(a.createTime))])]),e("template",{slot:"default"},[e("p",{staticClass:"exchangeText enum"},[t._v("+"+t._s(a.transMinutes))]),e("p",{staticClass:"info"},[t._v("剩余"+t._s(a.totalAvailableMinutes))])])],2)})),1)],1):e("m-empty",{key:"data",staticClass:"empty",attrs:{msg:"暂无兑换记录"}})],1)},n=[],i=e("6e6e"),c=e("d678"),o=e("ff51"),l=e("b562"),r={name:"courseApply",components:{MHeader:i["a"],MEmpty:c["a"]},data:function(){return{headerStatus:!0,loading:!1,finished:!1,params:{search:null,transType:"RECHARGE",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:{getAccountDetail:function(){var t=this,a=this.params;Object(l["k"])(a).then((function(e){var s=e.data;if(t.loading=!1,200==s.code){a.page=s.data.pageNo;var n=s.data.rows?s.data.rows:[];n.forEach((function(t){t.totalAvailableMinutes=Object(o["c"])(t.totalAvailableMinutes),t.transMinutes=Object(o["c"])(t.transMinutes)})),t.dataList=t.dataList.concat(n),a.page>=s.data.totalPage&&(t.finished=!0),t.params.page++}else t.finished=!0;t.dataList.length<=0&&(t.dataShow=!1)}))}}},u=r,d=(e("7edd"),e("2877")),f=Object(d["a"])(u,s,n,!1,null,"13f961d2",null);a["default"]=f.exports},"6e6e":function(t,a,e){"use strict";var s=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"mheader"},[e("header",{staticClass:"m-nav-header",class:[t.isFixed?"fixed":""]},[e("div",{directives:[{name:"show",rawName:"v-show",value:t.isBack,expression:"isBack"}],staticClass:"m-nav-bar__left",on:{click:t.goBack}},[e("van-icon",{staticClass:"arrow-left",attrs:{name:"arrow-left"}})],1),e("div",{staticClass:"m-nav-bar__title"},[t._t("default",(function(){return[t._v(t._s(t.name?t.name:t.$route.meta.descrition))]}))],2),e("div",{staticClass:"m-nav-bar__right"},[t._t("right")],2)])])},n=[],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)}}},c=i,o=(e("70bb"),e("2877")),l=Object(o["a"])(c,s,n,!1,null,"10a70108",null);a["a"]=l.exports},"70bb":function(t,a,e){"use strict";e("c905")},"7edd":function(t,a,e){"use strict";e("8b08")},"852e":function(t,a,e){},"8b08":function(t,a,e){},bad8:function(t,a,e){"use strict";e("852e")},c905:function(t,a,e){},d678:function(t,a,e){"use strict";var s=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"mempty",class:t.full?"full":null},[e("div",{class:[t.icon?t.icon:"icon_nodata","icon"]}),e("div",{staticClass:"msg"},[t._v(t._s(t.msg?t.msg:"暂无内容"))])])},n=[],i={name:"mempty",props:{icon:String,msg:String,full:Boolean}},c=i,o=(e("bad8"),e("2877")),l=Object(o["a"])(c,s,n,!1,null,"31cc2a9d",null);a["a"]=l.exports}}]);