"use strict";const e=require("../../../common/vendor.js"),t=require("../../../sheep/index.js"),r=require("../../../sheep/hooks/useGoods.js");require("../../../sheep/request/index.js");const o=require("../../../sheep/api/distri/score.js");if(require("../../../sheep/url/index.js"),require("../../../sheep/store/index.js"),require("../../../sheep/store/app.js"),require("../../../sheep/api/promotion/diy.js"),require("../../../sheep/platform/index.js"),require("../../../sheep/platform/provider/wechat/index.js"),require("../../../sheep/platform/provider/wechat/miniProgram.js"),require("../../../sheep/api/member/auth.js"),require("../../../sheep/api/member/social.js"),require("../../../sheep/api/member/user.js"),require("../../../sheep/platform/provider/apple/index.js"),require("../../../sheep/platform/share.js"),require("../../../sheep/router/index.js"),require("../../../sheep/hooks/useModal.js"),require("../../../sheep/helper/index.js"),require("../../../sheep/helper/test.js"),require("../../../sheep/helper/digit.js"),require("../../../sheep/api/member/signin.js"),require("../../../sheep/helper/throttle.js"),require("../../../sheep/platform/pay.js"),require("../../../sheep/api/pay/order.js"),require("../../../sheep/store/user.js"),require("../../../sheep/store/cart.js"),require("../../../sheep/api/trade/cart.js"),require("../../../sheep/api/pay/wallet.js"),require("../../../sheep/api/trade/order.js"),require("../../../sheep/api/promotion/coupon.js"),require("../../../sheep/store/sys.js"),require("../../../sheep/store/modal.js"),require("../../../sheep/config/index.js"),require("../../../sheep/config/zIndex.js"),require("../../../sheep/util/index.js"),!Array){(e.resolveComponent("s-empty")+e.resolveComponent("uni-load-more")+e.resolveComponent("s-layout"))()}Math||((()=>"../../../sheep/components/s-empty/s-empty.js")+(()=>"../../../uni_modules/uni-load-more/components/uni-load-more/uni-load-more.js")+(()=>"../../../sheep/components/s-layout/s-layout.js"))();const s={__name:"maxScoreLog",props:{isFreeze:{type:Boolean}},setup(s){e.computed((()=>t.sheep.$store("user").userWallet)),t.sheep.$platform.device.statusBarHeight,e.computed((()=>t.sheep.$store("user").userInfo)),t.sheep.$platform.navbar;const i=s,a=e.reactive({currentTab:0,pagination:{list:[],total:0,pageSize:10,pageNo:1},loadStatus:"",showModel:!1,showQueModel:!1}),p=e=>{let t=e.profitStatusName+" (";return e.username&&(t+=e.username+" "),7!==e.profitStatus&&(t+=e.orderNo+" "),23===e.profitStatus||24===e.profitStatus?t+="待确权":t+="确权",t+=")",t},n=e=>{let t="";return(e.freezeHighQuota>0||e.maxAvailablePointsAmount>0)&&(t="+"),23===e.profitStatus||24===e.profitStatus?t+=r.points2point(e.freezeHighQuota):t+=r.points2point(e.maxAvailablePointsAmount),t},u=e=>{let t="";return 23===e.profitStatus||24===e.profitStatus?(t+="待确权余额:",t+=r.points2point(e.afterFreezeHighQuota)):(t+="余额:",t+=r.points2point(e.afterMaxAvailablePointsAmount)),t};async function l(t){a.loadStatus="loading";let{code:r,data:s}=await o.ScoreApi.getMaxScoreList({pageNo:a.pagination.pageNo,pageSize:a.pagination.pageSize});if(0!==r)return;let i=e._.concat(a.pagination.list,s.list);a.pagination.list=i,a.pagination.total=s.total,a.loadStatus=a.pagination.list.length<a.pagination.total?"more":"noMore"}function h(e){"noMore"!==a.loadStatus&&(a.pagination.pageNo++,l())}return e.onLoad((()=>{l(i.isFreeze)})),e.onReachBottom((()=>{h()})),(r,o)=>e.e({a:a.pagination.total>0},a.pagination.total>0?{b:e.f(a.pagination.list,((o,s,i)=>({a:e.t(p(o)),b:e.t(n(o)),c:o.maxAvailablePointsAmount<0||r.freezeHighQuota<0?1:"",d:e.t(e.unref(t.sheep).$helper.timeFormat(o.createTime,"yyyy-mm-dd hh:MM")),e:e.t(u(o)),f:o.id})))}:{c:e.p({text:"暂无数据",paddingTop:"200",icon:"/static/data-empty.png"})},{d:a.pagination.total>0},a.pagination.total>0?{e:e.o((e=>h())),f:e.o((e=>h())),g:e.p({status:a.loadStatus,"content-text":{contentdown:"点击加载更多"}})}:{},{h:e.o((()=>{})),i:e.p({bgStyle:{backgroundColor:"#ffffff"},title:"",navbar:"normal"})})}},i=e._export_sfc(s,[["__scopeId","data-v-4ffe03f2"]]);wx.createPage(i);
