"use strict";var e=require("../common/vendor.js"),r=require("../api/common.js"),c=require("../api/integral.js"),m=require("../uni_modules/mescroll-uni/components/mescroll-uni/mescroll-mixins.js");require("../common/request.js");const d={mixins:[m.MescrollMixin],data(){return{typeOptions:[],mescroll:null,downOption:{auto:!1},upOption:{onScroll:!1,use:!0,page:{num:0,size:10},noMoreSize:10,textNoMore:"\u5DF2\u7ECF\u5230\u5E95\u4E86",empty:{icon:"https://cos.his.cdwjyyh.com/fs/20240423/cf4a86b913a04341bb44e34bb4d37aa2.png",tip:"\u6682\u65E0\u6570\u636E"}},dataList:[]}},onLoad(){this.getDictByKey("sys_integral_log_type")},methods:{getDictByKey(o){var t={key:o};r.getDictByKey(t).then(s=>{s.code==200&&(this.typeOptions=s.data)},s=>{})},mescrollInit(o){this.mescroll=o},downCallback(o){o.resetUpScroll()},upCallback(o){var t=this,s={pageNum:o.num,pageSize:o.size};c.getUserIntegralLogsList(s).then(n=>{e.index.hideLoading(),n.code==200?(o.num==1?t.dataList=n.data.list:t.dataList=t.dataList.concat(n.data.list),t.mescroll.endBySize(n.data.list.length,n.data.total)):(e.index.showToast({icon:"none",title:"\u8BF7\u6C42\u5931\u8D25"}),t.dataList=null,t.mescroll.endErr())})}}};Array||e.resolveComponent("mescroll-body")();const p=()=>"../uni_modules/mescroll-uni/components/mescroll-body/mescroll-body.js";Math||p();function u(o,t,s,n,l,i){return{a:e.f(l.dataList,(a,y,g)=>({a:e.t(o.$getDictLabelName(l.typeOptions,a.logType)),b:e.t(a.createTime),c:e.t(a.integral),d:e.n(a.integral>0?"money green":"money red"),e:e.t(a.balance)})),b:e.sr("mescrollRef","442c4b24-0"),c:e.o(i.mescrollInit),d:e.o(i.downCallback),e:e.o(i.upCallback),f:e.p({up:l.upOption,down:l.downOption})}}var _=e._export_sfc(d,[["render",u],["__scopeId","data-v-442c4b24"],["__file","E:/Project/2023/\u95EE\u8BCA\u5E73\u53F0/his_user_miniapp/pages_user/integralLogsList.vue"]]);wx.createPage(_);
