1 |
- import{c as t,s as e,v as a,m as s,o as l,a as o,b as n,d as i,w as r,bU as c,_ as u,e as d,f as p,N as m,x as g,y as _,F as f,u as y,t as x,z as h,i as b,K as w,g as v,j as S,L as j,l as A}from"./index-CRW3onsz.js";import{_ as P}from"./s-empty.C6jDqfil.js";import{_ as $}from"./uni-load-more.DqGEuLGm.js";import{_ as k}from"./s-layout.DKC65HXL.js";import{p as N}from"./useGoods.Dxoq0xk-.js";import{_ as T}from"./_plugin-vue_export-helper.BCo6x5W8.js";/* empty css */import"./s-menu-tools.CNNsOrh3.js";import"./s-search-block.vue_vue_type_style_index_0_scoped_f692e81a_lang.CiL8L9B_.js";import"./uni-icons.CkO1HN9g.js";import"./s-layout.vue_vue_type_style_index_0_scoped_c1143e8c_lang.HuwOimZj.js";import"./phone-international-input.vue_vue_type_style_index_0_scoped_0f0268ff_lang.Dctrwx6t.js";import"./s-search-block.9OtJrST_.js";import"./phone-international-input.vKvR7wTz.js";const M=T({__name:"consumptionLog",setup(T){t((()=>e.$store("user").userWallet)),e.$platform.device.statusBarHeight,t((()=>e.$store("user").userInfo)),e.$platform.navbar;const M=a({integralType:0,pagination:{list:[],total:0,pageSize:10,pageNo:1},loadStatus:"",showModel:!1,showQueModel:!1});async function I(){M.loadStatus="loading";let{code:t,data:e}=await c.getConsumptionLog({pageNo:M.pagination.pageNo,pageSize:M.pagination.pageSize,integralType:M.integralType});if(0!==t)return;let a=u.concat(M.pagination.list,e.list);M.pagination.list=a,M.pagination.total=e.total,M.loadStatus=M.pagination.list.length<M.pagination.total?"more":"noMore"}function z(){"noMore"!==M.loadStatus&&(M.pagination.pageNo++,I())}return s((()=>{z()})),l((t=>{M.integralType=t.integralType,I()})),(t,a)=>{const s=A,l=b,c=o(n("s-empty"),P),u=o(n("uni-load-more"),$),T=w,I=o(n("s-layout"),k);return d(),i(I,{class:"wallet-wrap",bgStyle:{backgroundColor:"#ffffff"},title:"",navbar:"normal"},{default:r((()=>[p(l,{class:"model-box ss-flex-col"},{default:r((()=>[p(T,{class:"list-box","scroll-y":"true",onTouchmove:a[2]||(a[2]=m((()=>{}),["stop"]))},{default:r((()=>[M.pagination.total>0&&M.integralType?(d(),i(l,{key:0,style:{padding:"20rpx"}},{default:r((()=>[(d(!0),g(f,null,_(M.pagination.list,((t,a)=>(d(),i(l,{class:"list-item ss-flex ss-col-center ss-row-between",key:t.id,style:{padding:"20rpx 0","border-bottom":"1px solid #c4c4c4"}},{default:r((()=>[p(l,{class:"ss-flex ss-col-center",style:{width:"100%"}},{default:r((()=>[p(l,{class:"ss-flex ss-m-t-10",style:{"flex-direction":"column","align-items":"flex-start",width:"100%"}},{default:r((()=>[p(l,{class:"name",style:{width:"100%"}},{default:r((()=>[v(S(t.consumptionStatusName)+" "+S([11].includes(t.integralStatus)?"("+t.generateUserName+")":"")+" "+S([2,3].includes(t.integralStatus)?`(原积分:${y(N)(t.integralPoints)})`:"")+" "+S([4,5].includes(t.integralStatus)?`(${t.generateUserName})`:"")+" "+S([1].includes(t.integralStatus)?`(充值积分:${y(N)(t.integralPoints)})`:"")+" "+S([15].includes(t.integralStatus)&&t.ancestorQuotaAmount>0?`(超出金额:${y(N)(t.accumulatedQuotaAmount)})`:"")+" "+S([14].includes(t.integralStatus)?`结算(${t.orderNo})`:"")+" ",1),p(s,{style:{float:"right"},class:j(["color-red",{"color-green":t.practicalIntegralPoints<0}])},{default:r((()=>[v(S(t.practicalIntegralPoints>0?"+"+y(N)(t.practicalIntegralPoints):y(N)(t.practicalIntegralPoints)),1)])),_:2},1032,["class"])])),_:2},1024),p(l,{class:"time",style:{width:"100%"}},{default:r((()=>[v(S(y(e).$helper.timeFormat(t.createTime,"yyyy-mm-dd hh:MM"))+" ",1),p(s,{style:{float:"right"}},{default:r((()=>[v(S(y(x)("wallet.balance"))+":"+S(y(N)(t.afterIntegralPoints)),1)])),_:2},1024)])),_:2},1024)])),_:2},1024)])),_:2},1024)])),_:2},1024)))),128))])),_:1})):!M.integralType&&M.pagination.total>0?(d(),i(l,{key:1,style:{padding:"20rpx"}},{default:r((()=>[(d(!0),g(f,null,_(M.pagination.list,((t,a)=>(d(),i(l,{class:"list-item ss-flex ss-col-center ss-row-between",key:t.id,style:{padding:"20rpx 0","border-bottom":"1px solid #c4c4c4"}},{default:r((()=>[p(l,{class:"ss-flex ss-col-center",style:{width:"100%"}},{default:r((()=>[p(l,{class:"ss-flex ss-m-t-10",style:{"flex-direction":"column","align-items":"flex-start",width:"100%"}},{default:r((()=>[p(l,{class:"name",style:{width:"100%"}},{default:r((()=>[v(S(t.consumptionStatusName)+" "+S([11].includes(t.integralStatus)?"("+t.generateUserName+")":"")+" "+S(t.ancestorQuotaAmount>0?`(超出金额:${y(N)(t.ancestorQuotaAmount)})`:"")+" ",1),p(s,{style:{float:"right"},class:j(["color-red",{"color-green":t.maxAvailablePointsAmount<0}])},{default:r((()=>[v(S(t.maxAvailablePointsAmount>0?"+"+y(N)(t.maxAvailablePointsAmount):y(N)(t.maxAvailablePointsAmount)),1)])),_:2},1032,["class"])])),_:2},1024),p(l,{class:"time",style:{width:"100%"}},{default:r((()=>[v(S(y(e).$helper.timeFormat(t.createTime,"yyyy-mm-dd hh:MM"))+" ",1),p(s,{style:{float:"right"}},{default:r((()=>[v(S(y(x)("wallet.balance"))+":"+S(y(N)(t.afterMaxAvailablePointsAmount)),1)])),_:2},1024)])),_:2},1024)])),_:2},1024)])),_:2},1024)])),_:2},1024)))),128))])),_:1})):(d(),i(c,{key:2,text:"暂无数据",paddingTop:"200",icon:"/static/data-empty.png"})),M.pagination.total>0?(d(),i(u,{key:3,status:M.loadStatus,"content-text":{contentdown:y(x)("common.click_to_load_more")},onClick:a[0]||(a[0]=t=>z()),onScrolltolower:a[1]||(a[1]=t=>z())},null,8,["status","content-text"])):h("",!0)])),_:1})])),_:1})])),_:1})}}},[["__scopeId","data-v-2670fb70"]]);export{M as default};
|