"use strict";const e=require("../../../common/vendor.js"),r=require("../../../sheep/index.js"),t=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:"ScoreLog",props:{isFreeze:{type:String,default:""}},setup(s){e.computed((()=>r.sheep.$store("user").userWallet)),r.sheep.$platform.device.statusBarHeight,e.computed((()=>r.sheep.$store("user").userInfo)),r.sheep.$platform.navbar;const i=s,a=e.reactive({currentTab:0,pagination:{list:[],total:0,pageSize:10,pageNo:1},loadStatus:"",showModel:!1,showQueModel:!1});async function p(r){a.loadStatus="loading";let{code:t,data:s}=await o.ScoreApi.getScoreApi({pageNo:a.pagination.pageNo,pageSize:a.pagination.pageSize,isFreeze:r});if(0!==t)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 n(e){"noMore"!==a.loadStatus&&(a.pagination.pageNo++,p(i.isFreeze))}return e.onLoad((()=>{p(i.isFreeze)})),e.onReachBottom((()=>{n()})),(o,i)=>e.e({a:a.pagination.total>0},a.pagination.total>0?{b:e.f(a.pagination.list,((o,i,a)=>e.e({a:e.t(o.profitStatusName||"空"),b:e.t(o.username?"("+o.username+")":""),c:e.t([3,4,7].includes(o.profitStatus)&&"true"==s.isFreeze?"-转确权":"")},"true"==s.isFreeze?{d:e.t(o.freezeAmount>0?"+"+e.unref(t.points2point)(o.freezeAmount):e.unref(t.points2point)(o.freezeAmount)),e:o.freezeAmount<0?1:""}:{f:e.t(o.amount>0?"+"+e.unref(t.points2point)(o.amount):e.unref(t.points2point)(o.amount)),g:o.amount<0?1:""},{h:e.t(e.unref(r.sheep).$helper.timeFormat(o.createTime,"yyyy-mm-dd hh:MM"))},"true"==s.isFreeze?{i:e.t(e.unref(t.points2point)(o.afterFreezeAmount))}:{j:e.t(e.unref(t.points2point)(o.afterAmount))},{k:o.id}))),c:"true"==s.isFreeze,d:"true"==s.isFreeze}:{e:e.p({text:"暂无数据",paddingTop:"200",icon:"/static/data-empty.png"})},{f:a.pagination.total>0},a.pagination.total>0?{g:e.o((e=>n())),h:e.o((e=>n())),i:e.p({status:a.loadStatus,"content-text":{contentdown:"点击加载更多"}})}:{},{j:e.o((()=>{})),k:e.p({bgStyle:{backgroundColor:"#ffffff"},title:"",navbar:"normal"})})}},i=e._export_sfc(s,[["__scopeId","data-v-e6929113"]]);wx.createPage(i);
