| 12 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-209be3bc"],{a8ab:function(t,e,n){"use strict";var a=n("f4f7"),i=n.n(a);i.a},c683: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:"box"},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.yes,expression:"yes"}],staticClass:"null-page"}),n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"my-point"},[n("div",{staticClass:"member-point"},[n("div",{staticClass:"title"},[t._v("我的积分")]),n("div",{staticClass:"num"},[t._v(t._s(t.memberPoint.point?Math.ceil(t.memberPoint.point):0))])]),n("div",{staticClass:"detail"},[n("el-table",{attrs:{data:t.pointList,border:""}},[n("el-table-column",{attrs:{prop:"type_name",label:"来源",width:"150"}}),n("el-table-column",{attrs:{prop:"pointNum",label:"积分",width:"150"}}),n("el-table-column",{attrs:{prop:"remark",label:"详细说明"}}),n("el-table-column",{attrs:{prop:"time",label:"时间",width:"180"}})],1)],1),n("div",{staticClass:"pager"},[n("el-pagination",{attrs:{background:"","pager-count":5,total:t.total,"prev-text":"上一页","next-text":"下一页","current-page":t.pointInfo.page,"page-size":t.pointInfo.page_size,"hide-on-single-page":""},on:{"update:currentPage":function(e){return t.$set(t.pointInfo,"page",e)},"update:current-page":function(e){return t.$set(t.pointInfo,"page",e)},"update:pageSize":function(e){return t.$set(t.pointInfo,"page_size",e)},"update:page-size":function(e){return t.$set(t.pointInfo,"page_size",e)},"size-change":t.handlePageSizeChange,"current-change":t.handleCurrentPageChange}})],1)])])},i=[],o=(n("4160"),n("159b"),n("751a"));function s(t){return Object(o["a"])({url:"/api/memberaccount/info",data:t,forceLogin:!0})}function c(t){return Object(o["a"])({url:"/api/memberaccount/page",data:t,forceLogin:!0})}var r={name:"my_point",components:{},data:function(){return{pointInfo:{page:1,page_size:10,account_type:"point"},pointList:[],memberPoint:{point:0},total:0,loading:!0,yes:!0}},created:function(){this.getPointInfo(),this.getpointList()},mounted:function(){var t=this;setTimeout((function(){t.yes=!1}),300)},methods:{getPointInfo:function(){var t=this;s({account_type:this.pointInfo.account_type}).then((function(e){0==e.code&&e.data&&(t.memberPoint=e.data),t.loading=!1})).catch((function(e){t.loading=!1,t.$message.error(e.message)}))},getpointList:function(){var t=this;c(this.pointInfo).then((function(e){0==e.code&&e.data&&(t.pointList=e.data.list,t.total=e.data.count,t.pointList.forEach((function(e){e.time=t.$util.timeStampTurnTime(e.create_time),e.pointNum=e.account_data>0?"+"+parseInt(e.account_data):parseInt(e.account_data)})))})).catch((function(e){t.$message.error(e.message)}))},handlePageSizeChange:function(t){this.pointInfo.page_size=t,this.getpointList()},handleCurrentPageChange:function(t){this.pointInfo.page=t,this.getpointList()}}},p=r,u=(n("a8ab"),n("2877")),l=Object(u["a"])(p,a,i,!1,null,"4f1b4f73",null);e["default"]=l.exports},f4f7:function(t,e,n){}}]);
- //# sourceMappingURL=chunk-209be3bc.f33023df.js.map
|