2 lines
2.0 KiB
JavaScript
2 lines
2.0 KiB
JavaScript
import{d as e,r as a,h as s,i as t,w as l,j as n,E as o,G as r,m as c,F as u,l as m,au as p,av as i,aB as _,t as d,J as f,K as y,Y as v,H as h,$ as g}from"./index-849cf30e.js";import{u as k,M as w}from"./useMescroll.852ec5b5.js";import{M as j}from"./mescroll-empty.4fe1b9fd.js";import{_ as T}from"./_plugin-vue_export-helper.1b428a4d.js";const b=T(e({__name:"cash_out",setup(e){const{mescrollInit:T,downCallback:b,getMescroll:x}=k(i,p);let I=a([]),M=a(null),B=a(!1),C=uni.getStorageSync("cashOutAccountType");const S=e=>{switch(e){case 1:return v("toBeReviewed");case 2:return v("toBeTransfer");case 3:return v("transfer");case-2:return v("cancelApply")}},z=e=>{let s=a({});B.value=!1,s.value.page=e.num,s.value.page_size=e.size,s.value.account_type=C,_(s.value).then((a=>{let s=a.data.data;e.endSuccess(s.length),1==e.num&&(I.value=[]),I.value=I.value.concat(s),B.value=!0})).catch((()=>{B.value=!0,e.endErr()}))};return(e,a)=>{const p=d;return s(),t(p,{class:"member-record-list"},{default:l((()=>[n(w,{ref_key:"mescrollRef",ref:M,onInit:c(T),onDown:c(b),onUp:z},{default:l((()=>[(s(!0),o(u,null,r(c(I),((e,a)=>(s(),t(p,{key:e.id,class:"member-record-item",onClick:a=>{g({url:"/app/pages/member/cash_out_detail",param:{id:e.id}})}},{default:l((()=>[n(p,{class:"name"},{default:l((()=>[f(y(e.transfer_type_name),1)])),_:2},1024),n(p,{class:"desc"},{default:l((()=>[f(y(c(v)("applyTime"))+": "+y(e.create_time),1)])),_:2},1024),n(p,{class:"desc"},{default:l((()=>[f(y(-1!=e.status?S(e.status):e.refuse_reason),1)])),_:2},1024),n(p,{class:h(["money",e.apply_money>0?"text-active":""])},{default:l((()=>[f(y(e.apply_money>0?"+"+e.apply_money:e.apply_money),1)])),_:2},1032,["class"]),n(p,{class:"state"},{default:l((()=>[f(y(e.status_name),1)])),_:2},1024)])),_:2},1032,["onClick"])))),128)),!c(I).length&&c(B)?(s(),t(j,{key:0,option:{tip:"commission"==c(C)?c(v)("commissemptyTip"):c(v)("emptyTip")}},null,8,["option"])):m("v-if",!0)])),_:1},8,["onInit","onDown"])])),_:1})}}}),[["__scopeId","data-v-83442e73"]]);export{b as default};
|