pages-user-wallet-scoreToMoney.44904fe1.js 3.0 KB

1
  1. import{a0 as a,s as t,c as e,y as s,o,az as l,z as r,e as i,f as n,w as d,l as u,j as p,t as c,v as m,i as f,Z as b,G as g,m as x}from"./index-b48a414d.js";import{_}from"./s-layout.d6dcdc81.js";import{_ as h}from"./_plugin-vue_export-helper.1b428a4d.js";import"./phone-international-input.feef99c7.js";const y=t=>{void 0===t.addStatus&&delete t.addStatus;const e=Object.keys(t).map((a=>encodeURIComponent(a)+"="+t[a])).join("&");return a({url:`/member/point/record/page?${e}`,method:"GET"})},v=h({__name:"scoreToMoney",setup(a){t.$platform.device.statusBarHeight,e((()=>t.$store("user").userInfo)),t.$platform.navbar;const h=s({currentTab:0,pagination:{list:0,total:0,pageSize:6,pageNo:1},loadStatus:"",date:[],today:"",showModel:!1,showQueModel:!1}),v=[{name:"全部",value:"all"},{name:"收入",value:"true"},{name:"支出",value:"false"}];async function w(){h.loadStatus="loading";let{code:a,data:t}=await y({pageNo:h.pagination.pageNo,pageSize:h.pagination.pageSize,addStatus:h.currentTab>0?v[h.currentTab].value:void 0,"createTime[0]":h.date[0]+" 00:00:00","createTime[1]":h.date[1]+" 23:59:59"});0===a&&(h.pagination.list=t.list,h.pagination.total=t.total,h.loadStatus=h.pagination.list.length<h.pagination.total?"more":"noMore")}return e((()=>h.date[0]===h.date[1]?h.date[0]:h.date.join("~"))),o((()=>{h.today=l().format("YYYY-MM-DD"),h.date=[h.today,h.today],w()})),r((()=>{"noMore"!==h.loadStatus&&(h.pagination.pageNo++,w())})),(a,e)=>{const s=f,o=b,l=g,r=u(x("s-layout"),_);return i(),n(r,{class:"wallet-wrap",bgStyle:{backgroundColor:"#ffffff"},title:"积分兑换",navbar:"normal"},{default:d((()=>[p(s,{class:"score-box bg-white ss-flex-col ss-row-center"},{default:d((()=>[p(s,null,{default:d((()=>[p(s,{class:"all-title ss-m-r-8",style:{border:"4rpx solid var(--ui-BG-Main)",width:"100%","box-sizing":"border-box",height:"120rpx","text-indent":"20rpx","border-radius":"20rpx","line-height":"120rpx"}},{default:d((()=>[c("到数字人民币钱包:钱包地址/未绑定----\x3e")])),_:1})])),_:1}),p(s,{class:"ss-m-y-80"},{default:d((()=>[p(s,{class:"all-title ss-m-r-8 ss-m-b-10"},{default:d((()=>[c("提现金额")])),_:1}),p(s,{class:"all-title ss-m-r-8 ss-m-y-30"},{default:d((()=>[p(o,{class:"uni-input",style:{border:"4rpx solid var(--ui-BG-Main)",width:"100%","box-sizing":"border-box",height:"100rpx","text-indent":"20rpx","border-radius":"20rpx"},type:"number",placeholder:"请输入金额"})])),_:1}),p(s,{class:"all-title ss-m-r-8 ss-m-b-10 text-center"},{default:d((()=>[c("您当前可兑换金额:¥0")])),_:1})])),_:1}),p(s,{class:"ss-m-b-40 ss-flex ss-row-center"},{default:d((()=>[p(s,{class:"all-title ss-m-r-80",onClick:e[0]||(e[0]=a=>m(t).$router.back("/pages/user/wallet/score"))},{default:d((()=>[p(l,{class:"btn ss-reset-button ui-Shadow-Main"},{default:d((()=>[c(" 取消 ")])),_:1})])),_:1}),p(s,{class:"all-title ss-m-r-8"},{default:d((()=>[p(l,{class:"btn ss-reset-button ui-Shadow-Main"},{default:d((()=>[c(" 确定 ")])),_:1})])),_:1})])),_:1})])),_:1})])),_:1})}}},[["__scopeId","data-v-5c6a1314"]]);export{v as default};