import{c as e,s as a,y as t,z as s,e as o,f as l,w as r,l as i,j as n,A as c,t as u,Q as d,u as p,v as g,B as _,_ as f,i as m,E as b,G as h,m as w,S as v}from"./index-68dd960a.js";import{_ as y,a as k}from"./uni-list.35e48c37.js";import{_ as S}from"./phone-international-input.471da4c0.js";import{p as x,_ as j}from"./s-layout.454a15cd.js";import{S as $}from"./score.602d4fe2.js";/* empty css                                                                */import{_ as C}from"./_plugin-vue_export-helper.1b428a4d.js";import"./uni-load-more.49bf8042.js";/* empty css                                                                 */import{r as z}from"./richtext.2265ad66.js";import"./uni-badge.ad675ab6.js";import"./mp-html.e0240488.js";const M=C({__name:"score",setup(C){const M=e((()=>a.$store("user").userWallet));a.$platform.device.statusBarHeight,e((()=>a.$store("user").userInfo)),a.$platform.navbar;const Q=t({currentTab:0,pagination:{list:[],total:0,pageSize:10,pageNo:1},loadStatus:"",showModel:!1});function D(){Q.showModel=!1}const F=e((()=>{const e=parseFloat(x(M.value.integralDO.currentQuota)),a=parseFloat(x(M.value.integralDO.highQuota));if(e>a)return 100;{const t=e/a*100;return Math.min(t,100)}})),O=e((()=>F.value>=90?"#fe0000":F.value>=75?"#d8b800":"#0c912f")),A=e((()=>({background:`conic-gradient(${O.value} ${F.value}%, #ddd ${F.value}%)`})));function I(e){"noMore"!==Q.loadStatus&&(Q.pagination.pageNo++,async function(e){Q.loadStatus="loading";let{code:a,data:t}=await $.getScoreApi({pageNo:Q.pagination.pageNo,pageSize:Q.pagination.pageSize,isFreeze:e});if(0!==a)return;let s=f.concat(Q.pagination.list,t.list);Q.pagination.list=s,Q.pagination.total=t.total,Q.loadStatus=Q.pagination.list.length<Q.pagination.total?"more":"noMore"}(e))}return s((()=>{I()})),(e,t)=>{const s=m,f=b,$=h,C=i(w("uni-list-item"),y),F=i(w("uni-list"),k),I=v,L=i(w("su-popup"),S),N=i(w("s-layout"),j);return o(),l(N,{class:"wallet-wrap",bgStyle:{backgroundColor:"#ffffff"},title:"我的数字权益",navbar:"normal"},{default:r((()=>[n(s,{class:"score-box bg-white ss-flex-col ss-row-center ss-col-center"},{default:r((()=>[n(s,{class:"ss-m-b-10 circle value-box ss-flex ss-row-center",style:c(A.value)},{default:r((()=>[n(s,{class:"all-title"},{default:r((()=>[u("数字"),d("br"),u("权益")])),_:1})])),_:1},8,["style"]),n(s,{class:"ss-m-b-30 ss-font-40",style:c({color:O.value})},{default:r((()=>[n(f,{class:"all-title ss-m-r-8"},{default:r((()=>[u(p(g(x)(M.value.integralDO.currentQuota)),1)])),_:1})])),_:1},8,["style"]),n(s,{class:"ss-m-b-40"},{default:r((()=>[n(s,{class:"all-title ss-m-r-8"},{default:r((()=>[n($,{class:"btn ss-reset-button ui-Shadow-Main",onClick:t[0]||(t[0]=e=>g(a).$helper.toast("功能待开放"))},{default:r((()=>[u(" 兑换 ")])),_:1})])),_:1})])),_:1}),n(s,{style:{width:"100%",height:"20rpx","background-color":"#ececec"}}),n(F,{border:!1,class:"ss-p-t-10 ss-w-100"},{default:r((()=>[n(C,{clickable:"",onClick:t[1]||(t[1]=e=>g(a).$router.go("/pages/user/wallet/maxScoreLog",{isFreeze:!0})),title:"当前可获得峰值",showArrow:"",border:!1},{body:r((()=>[d("p",{style:{width:"100%"}}," 当前可获得峰值："+p(g(x)(M.value.integralDO.currentQuota))+"/"+p(g(x)(M.value.integralDO.highQuota)),1)])),_:1}),n(C,{clickable:"",onClick:t[2]||(t[2]=e=>g(a).$router.go("/pages/user/wallet/ScoreLog",{isFreeze:!0})),title:"待确权",showArrow:"",border:!1},{body:r((()=>[d("p",{style:{width:"100%"}},"待确权："+p(g(x)(M.value.integralDO.freezeQuota)),1)])),_:1}),n(C,{clickable:"",onClick:t[3]||(t[3]=e=>g(a).$router.go("/pages/user/wallet/ScoreLog",{isFreeze:!1})),title:"数字权益来源记录",showArrow:"",border:!1},{body:r((()=>[d("p",{style:{width:"100%"}},"数字权益来源记录")])),_:1}),n(C,{clickable:"",onClick:t[4]||(t[4]=e=>Q.showModel=!0),title:"数字权益计算规则",border:!1},{body:r((()=>[d("p",{style:{width:"100%"}},"数字权益计算规则")])),_:1})])),_:1})])),_:1}),n(L,{show:Q.showModel,type:"center",round:"10",isMaskClick:!1,showClose:"",onClose:D},{default:r((()=>[n(s,{class:"head-nav"},{default:r((()=>[n(s,{class:_([0==Q.navIndex?"activite":"","ss-m-l-20"]),onClick:t[5]||(t[5]=a=>e.checkIndex(0))},{default:r((()=>[u(" 数字权益计算规则 ")])),_:1},8,["class"])])),_:1}),n(I,{class:"scroll-view_H","scroll-y":"true"},{default:r((()=>[n(g(z),{title:"数字权益计算规则",type:"tab"})])),_:1})])),_:1},8,["show"])])),_:1})}}},[["__scopeId","data-v-d8adce05"]]);export{M as default};
