1 |
- import{c as s,s as e,z as l,o as t,aA as a,f as o,g as r,w as u,m as c,k as i,B as n,u as d,v as f,x as p,U as _,E as m,j as g,I as b,J as w,n as h,D as y}from"./index-a116b7fa.js";import{_ as v,a as x}from"./uni-list.78aaa36c.js";import{_ as k}from"./phone-international-input.b9f6c8e6.js";import{_ as C}from"./s-layout.4ae51839.js";import{p as j}from"./useGoods.6b315a78.js";/* empty css */import{_ as $}from"./_plugin-vue_export-helper.1b428a4d.js";import"./uni-load-more.2682655d.js";/* empty css */import D from"./pages-public-richtext.b4bc67a7.js";import"./uni-badge.9d757a16.js";import"./mp-html.02bc03c7.js";const O=$({__name:"score",setup($){const O=s((()=>e.$store("user").userWallet));e.$platform.device.statusBarHeight,s((()=>e.$store("user").userInfo)),e.$platform.navbar;const M=l({currentTab:0,pagination:{list:[],total:0,pageSize:10,pageNo:1},loadStatus:"",showModel:!1});function Q(){M.showModel=!1}const S=s((()=>{const s=parseFloat(j(O.value.integralDO.accumulatedQuota+O.value.integralDO.ancestorQuota))/parseFloat(j(O.value.integralDO.highQuotaTotal))*100;return Math.min(s,100)})),T=s((()=>S.value>=90?"#fe0000":S.value>=75?"#d8b800":"#0c912f")),A=s((()=>({background:T.value})));return t((s=>{a("createWithDrawComplete",e.$store("user").getWallet),a("consumptionTransfersComplete",e.$store("user").getWallet)})),(s,l)=>{const t=g,a=b,$=w,S=c(h("uni-list-item"),v),I=c(h("uni-list"),x),L=y,W=c(h("su-popup"),k),z=c(h("s-layout"),C);return o(),r(z,{class:"wallet-wrap",bgStyle:{backgroundColor:"#ffffff"},title:"钱包",navbar:"normal"},{default:u((()=>[i(t,{class:"score-box bg-white ss-flex-col ss-row-center ss-col-center"},{default:u((()=>[i(t,{class:"ss-flex ss-m-y-30 w-100"},{default:u((()=>[i(t,{class:"ss-flex",style:{"flex-direction":"column",flex:"1","border-right":"1px solid #f6f6f6"}},{default:u((()=>[i(t,{class:"ss-m-b-10 circle value-box ss-flex ss-row-center",style:n(A.value)},{default:u((()=>[i(t,null,{default:u((()=>[d("佣金")])),_:1})])),_:1},8,["style"]),i(t,{class:"ss-m-b-30 ss-font-40",style:n({color:T.value})},{default:u((()=>[i(a,{class:"all-title ss-m-r-8"},{default:u((()=>[d(f(p(j)(O.value.integralDO.currentQuota)),1)])),_:1})])),_:1},8,["style"]),i(t,{class:"ss-flex"},{default:u((()=>[i(t,{class:"all-title ss-m-r-8"},{default:u((()=>[i($,{class:"btn ss-reset-button",onClick:l[0]||(l[0]=s=>p(e).$router.go("/pages/user/wallet/withdraw"))},{default:u((()=>[d(" 提现 ")])),_:1})])),_:1}),i(t,{class:"all-title ss-m-r-8"},{default:u((()=>[i($,{class:"btn ss-reset-button",onClick:l[1]||(l[1]=s=>p(e).$router.go("/pages/user/wallet/scoreToConsumption"))},{default:u((()=>[d(" 转消费分 ")])),_:1})])),_:1})])),_:1})])),_:1}),i(t,{class:"ss-flex",style:{"flex-direction":"column",flex:"1"}},{default:u((()=>[i(t,{class:"ss-m-b-10 circle value-box ss-flex ss-row-center",style:{background:"#0c912f"}},{default:u((()=>[i(t,null,{default:u((()=>[d("消费分")])),_:1})])),_:1}),i(t,{class:"ss-m-b-30 ss-font-40",style:{color:"#0c912f"}},{default:u((()=>[i(a,{class:"all-title ss-m-r-8"},{default:u((()=>[d(f(p(j)(O.value.integralDO.consumptionPoints)),1)])),_:1})])),_:1}),i(t,{class:"ss-flex"},{default:u((()=>[i(t,{class:"all-title ss-m-x-8"},{default:u((()=>[i($,{class:"btn ss-reset-button",onClick:l[2]||(l[2]=s=>p(e).$router.go("/pages/user/wallet/topupConsumptionPoints"))},{default:u((()=>[d(" 充值 ")])),_:1})])),_:1}),i(t,{class:"all-title ss-m-x-8"},{default:u((()=>[i($,{class:"btn ss-reset-button",onClick:l[3]||(l[3]=s=>p(e).$router.go("/pages/user/wallet/consumptionTransfers"))},{default:u((()=>[d(" 消费分转让 ")])),_:1})])),_:1})])),_:1})])),_:1})])),_:1}),i(t,{style:{width:"100%",height:"20rpx","background-color":"#ececec"}}),i(I,{border:!1,class:"ss-p-t-10 ss-w-100"},{default:u((()=>[i(S,{clickable:"",onClick:l[4]||(l[4]=s=>p(e).$router.go("/pages/user/wallet/maxScoreLog")),title:"当前可获得峰值",showArrow:"",border:!1},{body:u((()=>[_("p",{style:{width:"100%"}}," 当前可获得峰值:"+f(p(j)(O.value.integralDO.accumulatedQuota+O.value.integralDO.ancestorQuota))+"/"+f(p(j)(O.value.integralDO.highQuotaTotal)),1)])),_:1}),i(S,{clickable:"",onClick:l[5]||(l[5]=s=>p(e).$router.go("/pages/user/wallet/ScoreLog",{isFreeze:!1})),title:"佣金记录",showArrow:"",border:!1},{body:u((()=>[_("p",{style:{width:"100%"}},"佣金记录")])),_:1}),i(S,{clickable:"",onClick:l[6]||(l[6]=s=>p(e).$router.go("/pages/user/wallet/consumptionLog")),title:"消费分记录",showArrow:"",border:!1},{body:u((()=>[_("p",{style:{width:"100%"}},"消费分记录")])),_:1}),i(S,{clickable:"",onClick:l[7]||(l[7]=s=>p(e).$router.go("/pages/user/wallet/withdrawalLog")),title:"提现记录",showArrow:"",border:!1},{body:u((()=>[_("p",{style:{width:"100%"}},"提现 (预计24小时左右到账)")])),_:1}),i(S,{clickable:"",onClick:l[8]||(l[8]=s=>M.showModel=!0),title:"佣金计算规则",border:!1},{body:u((()=>[_("p",{style:{width:"100%"}},"佣金计算规则")])),_:1})])),_:1})])),_:1}),i(W,{show:M.showModel,type:"center",round:"10",isMaskClick:!1,showClose:"",onClose:Q},{default:u((()=>[i(t,{class:"head-nav"},{default:u((()=>[i(t,{class:m([0==M.navIndex?"activite":"","ss-m-l-20"]),onClick:l[9]||(l[9]=e=>s.checkIndex(0))},{default:u((()=>[d(" 佣金计算规则 ")])),_:1},8,["class"])])),_:1}),i(L,{class:"scroll-view_H","scroll-y":"true"},{default:u((()=>[i(p(D),{title:"佣金计算规则",type:"tab"})])),_:1})])),_:1},8,["show"])])),_:1})}}},[["__scopeId","data-v-d227f9db"]]);export{O as default};
|