1 |
- import{c as e,s,z as t,f as a,g as l,w as o,m as r,k as u,B as i,u as c,v as n,x as d,U as p,E as _,j as f,I as g,J as m,n as b,D as h}from"./index-ba48620e.js";import{_ as w,a as v}from"./uni-list.8a8104ea.js";import{_ as y}from"./phone-international-input.dd3ca29e.js";import{_ as k}from"./s-layout.04b95866.js";import{p as x}from"./useGoods.edb8879f.js";/* empty css */import{_ as j}from"./_plugin-vue_export-helper.1b428a4d.js";import"./uni-load-more.966faf1b.js";/* empty css */import C from"./pages-public-richtext.00605c24.js";import"./uni-badge.539e0aa6.js";import"./mp-html.c71b528b.js";const D=j({__name:"score",setup(j){const D=e((()=>s.$store("user").userWallet));s.$platform.device.statusBarHeight,e((()=>s.$store("user").userInfo)),s.$platform.navbar;const O=t({currentTab:0,pagination:{list:[],total:0,pageSize:10,pageNo:1},loadStatus:"",showModel:!1});function Q(){O.showModel=!1}const $=e((()=>{const e=parseFloat(x(D.value.integralDO.accumulatedQuota+D.value.integralDO.ancestorQuota))/parseFloat(x(D.value.integralDO.highQuotaTotal))*100;return Math.min(e,100)})),S=e((()=>$.value>=90?"#fe0000":$.value>=75?"#d8b800":"#0c912f")),I=e((()=>({background:S.value})));return(e,t)=>{const j=f,$=g,M=m,z=r(b("uni-list-item"),w),F=r(b("uni-list"),v),L=h,A=r(b("su-popup"),y),T=r(b("s-layout"),k);return a(),l(T,{class:"wallet-wrap",bgStyle:{backgroundColor:"#ffffff"},title:"我的积分",navbar:"normal"},{default:o((()=>[u(j,{class:"score-box bg-white ss-flex-col ss-row-center ss-col-center"},{default:o((()=>[u(j,{class:"ss-m-b-10 circle value-box ss-flex ss-row-center",style:i(I.value)},{default:o((()=>[u(j,null,{default:o((()=>[c("积分")])),_:1})])),_:1},8,["style"]),u(j,{class:"ss-m-b-30 ss-font-40",style:i({color:S.value})},{default:o((()=>[u($,{class:"all-title ss-m-r-8"},{default:o((()=>[c(n(d(x)(D.value.integralDO.currentQuota)),1)])),_:1})])),_:1},8,["style"]),u(j,{class:"ss-m-b-40"},{default:o((()=>[u(j,{class:"all-title ss-m-r-8"},{default:o((()=>[u(M,{class:"btn ss-reset-button",onClick:t[0]||(t[0]=e=>d(s).$router.go("/pages/goods/list",{categoryId:98}))},{default:o((()=>[c(" 兑换 ")])),_:1})])),_:1})])),_:1}),u(j,{style:{width:"100%",height:"20rpx","background-color":"#ececec"}}),u(F,{border:!1,class:"ss-p-t-10 ss-w-100"},{default:o((()=>[u(z,{clickable:"",onClick:t[1]||(t[1]=e=>d(s).$router.go("/pages/user/wallet/maxScoreLog")),title:"当前可获得峰值",showArrow:"",border:!1},{body:o((()=>[p("p",{style:{width:"100%"}}," 当前可获得峰值:"+n(d(x)(D.value.integralDO.accumulatedQuota+D.value.integralDO.ancestorQuota))+"/"+n(d(x)(D.value.integralDO.highQuotaTotal)),1)])),_:1}),u(z,{clickable:"",onClick:t[2]||(t[2]=e=>d(s).$router.go("/pages/user/wallet/ScoreLog",{isFreeze:!0})),title:"待确权",showArrow:"",border:!1},{body:o((()=>[p("p",{style:{width:"100%"}},"待确权:"+n(d(x)(D.value.integralDO.freezeQuota)),1)])),_:1}),u(z,{clickable:"",onClick:t[3]||(t[3]=e=>d(s).$router.go("/pages/user/wallet/ScoreLog",{isFreeze:!1})),title:"积分来源记录",showArrow:"",border:!1},{body:o((()=>[p("p",{style:{width:"100%"}},"积分来源记录")])),_:1}),u(z,{clickable:"",onClick:t[4]||(t[4]=e=>O.showModel=!0),title:"积分计算规则",border:!1},{body:o((()=>[p("p",{style:{width:"100%"}},"积分计算规则")])),_:1})])),_:1})])),_:1}),u(A,{show:O.showModel,type:"center",round:"10",isMaskClick:!1,showClose:"",onClose:Q},{default:o((()=>[u(j,{class:"head-nav"},{default:o((()=>[u(j,{class:_([0==O.navIndex?"activite":"","ss-m-l-20"]),onClick:t[5]||(t[5]=s=>e.checkIndex(0))},{default:o((()=>[c(" 积分计算规则 ")])),_:1},8,["class"])])),_:1}),u(L,{class:"scroll-view_H","scroll-y":"true"},{default:o((()=>[u(d(C),{title:"积分计算规则",type:"tab"})])),_:1})])),_:1},8,["show"])])),_:1})}}},[["__scopeId","data-v-327751b7"]]);export{D as default};
|