1 |
- import{c as t,s as a,v as s,m as o,o as e,a as n,b as l,d as i,w as r,bP as p,_ as u,e as c,f as d,L as m,x as _,y as f,F as g,u as y,t as x,z as b,i as h,I as w,g as v,j,J as S,l as k}from"./index-DUAp9XEj.js";import{_ as N}from"./s-empty.BQPqUoar.js";import{_ as P}from"./uni-load-more.7LU3tP0I.js";import{_ as C}from"./s-layout.a1_kfpIW.js";import{p as M}from"./useGoods.Cwnq-veC.js";import{_ as z}from"./_plugin-vue_export-helper.BCo6x5W8.js";/* empty css */import"./s-menu-tools.Bn3wdRty.js";import"./s-layout.vue_vue_type_style_index_0_scoped_d5f7c468_lang.CKkHKX6k.js";import"./phone-international-input.vue_vue_type_style_index_0_scoped_a793e264_lang.Bv2EixP5.js";import"./s-tabbar.fodLOlFD.js";import"./phone-international-input.D4fi9eUK.js";const $=z({__name:"consumptionLog",setup(z){t((()=>a.$store("user").userWallet)),a.$platform.device.statusBarHeight,t((()=>a.$store("user").userInfo)),a.$platform.navbar;const $=s({currentTab:0,pagination:{list:[],total:0,pageSize:10,pageNo:1},loadStatus:"",showModel:!1,showQueModel:!1});async function I(){$.loadStatus="loading";let{code:t,data:a}=await p.getConsumptionLog({pageNo:$.pagination.pageNo,pageSize:$.pagination.pageSize});if(0!==t)return;let s=u.concat($.pagination.list,a.list);$.pagination.list=s,$.pagination.total=a.total,$.loadStatus=$.pagination.list.length<$.pagination.total?"more":"noMore"}function T(t){"noMore"!==$.loadStatus&&($.pagination.pageNo++,I())}return o((()=>{T()})),e((()=>{I()})),(t,s)=>{const o=k,e=h,p=n(l("s-empty"),N),u=n(l("uni-load-more"),P),z=w,I=n(l("s-layout"),C);return c(),i(I,{class:"wallet-wrap",bgStyle:{backgroundColor:"#ffffff"},title:"",navbar:"normal"},{default:r((()=>[d(e,{class:"model-box ss-flex-col"},{default:r((()=>[d(z,{class:"list-box","scroll-y":"true",onTouchmove:s[2]||(s[2]=m((()=>{}),["stop"]))},{default:r((()=>[$.pagination.total>0?(c(),i(e,{key:0,style:{padding:"20rpx"}},{default:r((()=>[(c(!0),_(g,null,f($.pagination.list,((t,s)=>(c(),i(e,{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((()=>[d(e,{class:"ss-flex ss-col-center",style:{width:"100%"}},{default:r((()=>[d(e,{class:"ss-flex ss-m-t-10",style:{"flex-direction":"column","align-items":"flex-start",width:"100%"}},{default:r((()=>[d(e,{class:"name",style:{width:"100%"}},{default:r((()=>[v(j(t.consumptionStatusName)+j([3,4].includes(t.consumptionStatus)?"("+t.generateUserName+")":"")+" "+j(1===t.consumptionStatus?"("+y(x)("wallet.balance")+":"+y(M)(t.practicalConsumptionPoints)+")":"")+" ",1),d(o,{style:{float:"right"},class:S(["color-red",{"color-green":t.consumptionPoints<0}])},{default:r((()=>[v(j(t.consumptionPoints>0?"+"+y(M)(t.consumptionPoints):y(M)(t.consumptionPoints)),1)])),_:2},1032,["class"])])),_:2},1024),d(e,{class:"time",style:{width:"100%"}},{default:r((()=>[v(j(y(a).$helper.timeFormat(t.createTime,"yyyy-mm-dd hh:MM"))+" ",1),d(o,{style:{float:"right"}},{default:r((()=>[v(j(y(x)("wallet.balance"))+":"+j(y(M)(t.afterConsumptionPoints)),1)])),_:2},1024)])),_:2},1024)])),_:2},1024)])),_:2},1024)])),_:2},1024)))),128))])),_:1})):(c(),i(p,{key:1,text:"暂无数据",paddingTop:"200",icon:"/static/data-empty.png"})),$.pagination.total>0?(c(),i(u,{key:2,status:$.loadStatus,"content-text":{contentdown:y(x)("common.click_to_load_more")},onClick:s[0]||(s[0]=t=>T()),onScrolltolower:s[1]||(s[1]=t=>T())},null,8,["status","content-text"])):b("",!0)])),_:1})])),_:1})])),_:1})}}},[["__scopeId","data-v-69b288b9"]]);export{$ as default};
|