1 line
6.9 KiB
JavaScript
1 line
6.9 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-33cb570e"],{"3bbe":function(e,t,a){var n=a("861d");e.exports=function(e){if(!n(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},7156:function(e,t,a){var n=a("861d"),r=a("d2bb");e.exports=function(e,t,a){var o,i;return r&&"function"==typeof(o=t.constructor)&&o!==a&&n(i=o.prototype)&&i!==a.prototype&&r(e,i),e}},a269:function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"ba_f pad_20"},[a("el-tabs",{staticStyle:{"margin-bottom":"20px"},on:{"tab-click":e.handleClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"奖励金明细",name:"1"}}),a("el-tab-pane",{attrs:{label:"积分奖励明细",name:"2"}})],1),a("div",{staticClass:"shuju_title mar_b20"},[a("div",{staticClass:"shuju_title_text"},["1"==e.activeName?a("span",[e._v("奖励金明细")]):e._e(),"2"==e.activeName?a("span",[e._v("积分明细")]):e._e()])]),a("div",{staticClass:"pad_20 flex-bet"},[a("el-form",{staticClass:"demo-form-inline searchform",attrs:{inline:!0,model:e.formInline}},[a("el-form-item",{attrs:{label:"昵称/手机号"}},[a("el-input",{attrs:{size:"medium",placeholder:"昵称/手机号"},on:{input:e.selach},model:{value:e.formInline.keyword,callback:function(t){e.$set(e.formInline,"keyword",t)},expression:"formInline.keyword"}})],1),a("el-form-item",{attrs:{label:"时间范围"}},[a("el-date-picker",{attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:e.selach},model:{value:e.formInline.region,callback:function(t){e.$set(e.formInline,"region",t)},expression:"formInline.region"}})],1),a("el-form-item",[a("el-button",{attrs:{type:"primary",size:"medium"},on:{click:e.selach}},[e._v("搜索")])],1)],1),a("div",{staticClass:"flex"})],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],staticStyle:{width:"100%"},attrs:{data:e.list,"element-loading-text":e.elementLoadingText,stripe:""}},[a("el-table-column",{attrs:{prop:"outTradeNo",label:"用户信息"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"flex flex-y-top"},[a("div",{},[a("img",{staticClass:"goodlogo bor_rad50",attrs:{src:t.row.portrait}})]),a("div",{staticClass:"mar_l10"},[a("div",{staticClass:"flex"},[a("div",[a("div",[e._v(e._s(t.row.userName))]),a("div",[a("el-tag",{staticClass:"mar_l5",attrs:{size:"mini",type:"info"}},[e._v("(ID:"+e._s(t.row.userId)+") ")])],1)])])])])]}}])}),"1"==e.activeName?a("el-table-column",{attrs:{prop:"money",label:"奖金"}}):e._e(),"2"==e.activeName?a("el-table-column",{attrs:{prop:"integral",label:"积分"}}):e._e(),a("el-table-column",{attrs:{prop:"note",label:"备注"}}),a("el-table-column",{attrs:{prop:"createdAt",label:"创建时间"}})],1),a("el-pagination",{attrs:{background:"",layout:"prev, pager, next",total:e.page.total,"page-size":e.page.pagesize,"current-page":e.page.currentPage},on:{"update:currentPage":function(t){return e.$set(e.page,"currentPage",t)},"update:current-page":function(t){return e.$set(e.page,"currentPage",t)},"current-change":e.handleCurrentChange}})],1)},r=[],o=(a("96cf"),a("1da1")),i=a("7cb7"),s=a("ed08"),l={created:function(){this.fetchData()},data:function(){return{elementLoadingText:"123",page:{total:0,pagesize:10,currentPage:1},list:[],listLoading:!1,activeName:"1",form:{shopValue:"1",timeType:"1",time:[new Date,new Date],Mtime:""},formInline:{keyword:"",region:[]}}},methods:{selach:function(){this.fetchData()},handleCurrentChange:function(e){this.page.currentPage=e,this.fetchData()},handleClick:function(){this.fetchData()},fetchData:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var a,n,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.listLoading=!0,t.next=3,Object(i["e"])({page:e.page.currentPage,type:e.activeName,keyword:e.formInline.keyword,startTime:e.formInline.region?Object(s["a"])(e.formInline.region[0]):"",endTime:e.formInline.region?Object(s["a"])(e.formInline.region[1]):""});case 3:a=t.sent,n=a.data,r=a.count,e.list=n,e.page.total=r,e.listLoading=!1;case 9:case"end":return t.stop()}}),t)})))()}}},c=l,u=a("2877"),g=Object(u["a"])(c,n,r,!1,null,null,null);t["default"]=g.exports},a9e3:function(e,t,a){"use strict";var n=a("83ab"),r=a("da84"),o=a("94ca"),i=a("6eeb"),s=a("5135"),l=a("c6b6"),c=a("7156"),u=a("c04e"),g=a("d039"),p=a("7c73"),f=a("241c").f,d=a("06cf").f,m=a("9bf2").f,b=a("58a8").trim,h="Number",v=r[h],_=v.prototype,I=l(p(_))==h,N=function(e){var t,a,n,r,o,i,s,l,c=u(e,!1);if("string"==typeof c&&c.length>2)if(c=b(c),t=c.charCodeAt(0),43===t||45===t){if(a=c.charCodeAt(2),88===a||120===a)return NaN}else if(48===t){switch(c.charCodeAt(1)){case 66:case 98:n=2,r=49;break;case 79:case 111:n=8,r=55;break;default:return+c}for(o=c.slice(2),i=o.length,s=0;s<i;s++)if(l=o.charCodeAt(s),l<48||l>r)return NaN;return parseInt(o,n)}return+c};if(o(h,!v(" 0o1")||!v("0b1")||v("+0x1"))){for(var y,w=function(e){var t=arguments.length<1?0:e,a=this;return a instanceof w&&(I?g((function(){_.valueOf.call(a)})):l(a)!=h)?c(new v(N(t)),a,w):N(t)},k=n?f(v):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),x=0;k.length>x;x++)s(v,y=k[x])&&!s(w,y)&&m(w,y,d(v,y));w.prototype=_,_.constructor=w,i(r,h,w)}},bf19:function(e,t,a){"use strict";var n=a("23e7");n({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return URL.prototype.toString.call(this)}})},d2bb:function(e,t,a){var n=a("825a"),r=a("3bbe");e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,a={};try{e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,e.call(a,[]),t=a instanceof Array}catch(o){}return function(a,o){return n(a),r(o),t?e.call(a,o):a.__proto__=o,a}}():void 0)},ed08:function(e,t,a){"use strict";a.d(t,"a",(function(){return n})),a.d(t,"b",(function(){return r})),a.d(t,"c",(function(){return o}));a("a9e3"),a("ac1f"),a("5319"),a("bf19");function n(e){var t=new Date(e).toJSON(),a=new Date(+new Date(t)+288e5).toISOString().replace(/T/g," ").replace(/\.[\d]{3}Z/,"");return a}function r(e){var t=new Date(e),a=t.getFullYear(),n=t.getMonth()+1<10?"0"+(t.getMonth()+1):t.getMonth()+1,r=t.getDate()<10?"0"+t.getDate():t.getDate(),o=t.getHours()<10?"0"+t.getHours():t.getHours(),i=t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes(),s=t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds();return a+"-"+n+"-"+r+" "+o+":"+i+":"+s}function o(e){var t=new Date(1e3*Number(e)),a=t.getFullYear()+"-",n=(t.getMonth()+1<10?"0"+(t.getMonth()+1):t.getMonth()+1)+"-",r=(t.getDate()<10?"0"+t.getDate():t.getDate())+" ",o=(t.getHours()<10?"0"+t.getHours():t.getHours())+":",i=(t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes())+":",s=t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds(),l=a+n+r+o+i+s;return l}}}]); |