1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["ExchangeRecord"],{"18e0":function(t,a,e){"use strict";var s=e("c44d"),n=e.n(s);n.a},"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)})}}},d=r,u=(e("18e0"),e("2877")),f=Object(u["a"])(d,s,n,!1,null,"1fdd19bc",null);a["default"]=f.exports},"51c7":function(t,a,e){},"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",[t._v(t._s(t.name?t.name:this.$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("d133"),e("2877")),l=Object(o["a"])(c,s,n,!1,null,"0e835508",null);a["a"]=l.exports},bb2c:function(t,a,e){},c063:function(t,a,e){"use strict";var s=e("51c7"),n=e.n(s);n.a},c44d:function(t,a,e){},d133:function(t,a,e){"use strict";var s=e("bb2c"),n=e.n(s);n.a},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("c063"),e("2877")),l=Object(o["a"])(c,s,n,!1,null,"45d1a48f",null);a["a"]=l.exports}}]);
|