1 |
- import{c as e,s,y as t,e as a,f as l,w as o,l as r,j as i,A as u,t as c,u as n,v as d,Q as p,B as _,i as f,E as g,G as b,m,S as h}from"./index-b48a414d.js";import{_ as w,a as v}from"./uni-list.756201c6.js";import{_ as y}from"./phone-international-input.feef99c7.js";import{p as k,_ as x}from"./s-layout.d6dcdc81.js";/* empty css */import{_ as j}from"./_plugin-vue_export-helper.1b428a4d.js";import"./uni-load-more.647920f4.js";/* empty css */import{r as C}from"./richtext.e0e8677d.js";import"./uni-badge.78cdef34.js";import"./mp-html.da111812.js";const S=j({__name:"score",setup(j){const S=e((()=>s.$store("user").userWallet));s.$platform.device.statusBarHeight,e((()=>s.$store("user").userInfo)),s.$platform.navbar;const $=t({currentTab:0,pagination:{list:[],total:0,pageSize:10,pageNo:1},loadStatus:"",showModel:!1});function Q(){$.showModel=!1}const D=e((()=>{const e=parseFloat(k(S.value.integralDO.currentQuota)),s=parseFloat(k(S.value.integralDO.highQuota));if(e>s)return 100;{const t=e/s*100;return Math.min(t,100)}})),M=e((()=>D.value>=90?"#fe0000":D.value>=75?"#d8b800":"#0c912f")),O=e((()=>({background:M.value})));return(e,t)=>{const j=f,D=g,I=b,z=r(m("uni-list-item"),w),A=r(m("uni-list"),v),F=h,L=r(m("su-popup"),y),B=r(m("s-layout"),x);return a(),l(B,{class:"wallet-wrap",bgStyle:{backgroundColor:"#ffffff"},title:"我的积分",navbar:"normal"},{default:o((()=>[i(j,{class:"score-box bg-white ss-flex-col ss-row-center ss-col-center"},{default:o((()=>[i(j,{class:"ss-m-b-10 circle value-box ss-flex ss-row-center",style:u(O.value)},{default:o((()=>[i(j,null,{default:o((()=>[c("积分")])),_:1})])),_:1},8,["style"]),i(j,{class:"ss-m-b-30 ss-font-40",style:u({color:M.value})},{default:o((()=>[i(D,{class:"all-title ss-m-r-8"},{default:o((()=>[c(n(d(k)(S.value.integralDO.currentQuota)),1)])),_:1})])),_:1},8,["style"]),i(j,{class:"ss-m-b-40"},{default:o((()=>[i(j,{class:"all-title ss-m-r-8"},{default:o((()=>[i(I,{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}),i(j,{style:{width:"100%",height:"20rpx","background-color":"#ececec"}}),i(A,{border:!1,class:"ss-p-t-10 ss-w-100"},{default:o((()=>[i(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(k)(S.value.integralDO.currentQuota))+"/"+n(d(k)(S.value.integralDO.highQuota)),1)])),_:1}),i(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(k)(S.value.integralDO.freezeQuota)),1)])),_:1}),i(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}),i(z,{clickable:"",onClick:t[4]||(t[4]=e=>$.showModel=!0),title:"积分计算规则",border:!1},{body:o((()=>[p("p",{style:{width:"100%"}},"积分计算规则")])),_:1})])),_:1})])),_:1}),i(L,{show:$.showModel,type:"center",round:"10",isMaskClick:!1,showClose:"",onClose:Q},{default:o((()=>[i(j,{class:"head-nav"},{default:o((()=>[i(j,{class:_([0==$.navIndex?"activite":"","ss-m-l-20"]),onClick:t[5]||(t[5]=s=>e.checkIndex(0))},{default:o((()=>[c(" 积分计算规则 ")])),_:1},8,["class"])])),_:1}),i(F,{class:"scroll-view_H","scroll-y":"true"},{default:o((()=>[i(d(C),{title:"积分计算规则",type:"tab"})])),_:1})])),_:1},8,["show"])])),_:1})}}},[["__scopeId","data-v-106019bc"]]);export{S as default};
|