2 lines
1.7 KiB
JavaScript
2 lines
1.7 KiB
JavaScript
|
import{d as a,r as e,o as s,h as t,i as l,w as o,j as n,E as c,G as u,F as m,m as r,l as i,au as d,av as p,t as _,J as f,K as v,H as y,Y as g,ay as h,az as b,aA as j}from"./index-849cf30e.js";import{u as k,M as w}from"./useMescroll.852ec5b5.js";import{M as x}from"./mescroll-empty.4fe1b9fd.js";import{_ as I}from"./_plugin-vue_export-helper.1b428a4d.js";const M=I(a({__name:"detailed_account",setup(a){const{mescrollInit:I,downCallback:M,getMescroll:z}=k(p,d),D=e("");s((a=>{D.value=a.type||"balance"}));const E=e([]),T=e(!1),A=e(null),C=a=>{T.value=!1;let e={page:a.num,page_size:a.size},s=a=>{};"balance"==D.value?s=h:"money"==D.value?s=b:"commission"==D.value&&(s=j),s(e).then((e=>{let s=e.data.data;a.endSuccess(s.length),1==a.num&&(E.value=[]),E.value=E.value.concat(s),T.value=!0})).catch((()=>{T.value=!0,a.endErr()}))};return(a,e)=>{const s=_;return t(),l(s,{class:"member-record-list"},{default:o((()=>[n(w,{ref_key:"mescrollRef",ref:A,onInit:r(I),onDown:r(M),onUp:C,top:""},{default:o((()=>[(t(!0),c(m,null,u(E.value,((a,e)=>(t(),l(s,{key:a.id,class:"member-record-item"},{default:o((()=>[n(s,{class:"name"},{default:o((()=>[f(v(a.from_type_name),1)])),_:2},1024),a.memo?(t(),l(s,{key:0,class:"desc"},{default:o((()=>[f(v(a.memo),1)])),_:2},1024)):i("v-if",!0),n(s,{class:"desc"},{default:o((()=>[f(v(a.create_time),1)])),_:2},1024),n(s,{class:y(["money",a.account_data>0?"text-active":""])},{default:o((()=>[f(v(a.account_data>0?"+"+a.account_data:a.account_data),1)])),_:2},1032,["class"])])),_:2},1024)))),128)),!E.value.length&&T.value?(t(),l(x,{key:0,option:{tip:"commission"==D.value?r(g)("commissemptyTip"):r(g)("emptyTip")}},null,8,["option"])):i("v-if",!0)])),_:1},8,["onInit","onDown"])])),_:1})}}}),[["__scopeId","data-v-9a34403f"]]);export{M as default};
|