1 |
- import{c as t,s,v as a,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-BCKJ-0Ge.js";import{_ as P}from"./s-empty.QkB-HsQm.js";import{_ as C}from"./uni-load-more.DXChArLi.js";import{_ as M}from"./s-layout.BlKiWP6r.js";import{p as N}from"./useGoods.RKHlFkKU.js";import{_ as z}from"./_plugin-vue_export-helper.BCo6x5W8.js";/* empty css */import"./s-menu-tools.IK4uQ0vW.js";import"./s-search-block.vue_vue_type_style_index_0_scoped_f692e81a_lang.PvnEoxKH.js";import"./uni-icons.B3KpsLhk.js";import"./s-layout.vue_vue_type_style_index_0_scoped_d5f7c468_lang.DAm7RC0r.js";import"./phone-international-input.vue_vue_type_style_index_0_scoped_a793e264_lang.gzj6S5Lq.js";import"./s-search-block.Cv0lfwt6.js";import"./phone-international-input.DlQn1niu.js";const $=z({__name:"consumptionLog",setup(z){t((()=>s.$store("user").userWallet)),s.$platform.device.statusBarHeight,t((()=>s.$store("user").userInfo)),s.$platform.navbar;const $=a({currentTab:0,pagination:{list:[],total:0,pageSize:10,pageNo:1},loadStatus:"",showModel:!1,showQueModel:!1});async function T(){$.loadStatus="loading";let{code:t,data:s}=await p.getConsumptionLog({pageNo:$.pagination.pageNo,pageSize:$.pagination.pageSize});if(0!==t)return;let a=u.concat($.pagination.list,s.list);$.pagination.list=a,$.pagination.total=s.total,$.loadStatus=$.pagination.list.length<$.pagination.total?"more":"noMore"}function I(t){"noMore"!==$.loadStatus&&($.pagination.pageNo++,T())}return o((()=>{I()})),e((()=>{T()})),(t,a)=>{const o=k,e=h,p=n(l("s-empty"),P),u=n(l("uni-load-more"),C),z=w,T=n(l("s-layout"),M);return c(),i(T,{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:a[2]||(a[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,a)=>(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(N)(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(N)(t.consumptionPoints):y(N)(t.consumptionPoints)),1)])),_:2},1032,["class"])])),_:2},1024),d(e,{class:"time",style:{width:"100%"}},{default:r((()=>[v(j(y(s).$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(N)(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:a[0]||(a[0]=t=>I()),onScrolltolower:a[1]||(a[1]=t=>I())},null,8,["status","content-text"])):b("",!0)])),_:1})])),_:1})])),_:1})}}},[["__scopeId","data-v-69b288b9"]]);export{$ as default};
|