2 lines
6.2 KiB
JavaScript
2 lines
6.2 KiB
JavaScript
import{d as a,r as e,o as t,h as A,i as s,w as u,j as l,E as o,G as n,F as r,m as i,J as c,K as d,au as g,av as p,aZ as m,t as f,M as x,p as B,q as G,Y as Q,$ as y,L as h}from"./index-849cf30e.js";import{_ as v}from"./u-icon.e3aa4770.js";import{u as b,M as T}from"./useMescroll.852ec5b5.js";import"./_plugin-vue_export-helper.1b428a4d.js";const M=a({__name:"account",setup(a){const{mescrollInit:M,downCallback:P,getMescroll:U}=b(p,g),w=e([]),O=e(!1),k=e("bank"),F=e(null),S=e("get");t((a=>{a.type&&(k.value=a.type),a.mode&&(S.value=a.mode)}));const Y=a=>{O.value=!1;let e={page:a.num,limit:a.size,account_type:k.value};m(e).then((e=>{const t=e.data.data;1==a.num&&(w.value=[]),w.value=w.value.concat(t),a.endSuccess(t.length),O.value=!0})).catch((()=>{O.value=!0,a.endErr()}))};return(a,e)=>{const t=f,g=h,p=x,m=B(G("u-icon"),v);return A(),s(t,{class:"w-screen h-screen bg-page"},{default:u((()=>[l(T,{ref_key:"mescrollRef",ref:F,onInit:i(M),onDown:i(P),onUp:Y},{default:u((()=>[l(t,{class:"h-[20rpx]"}),(A(!0),o(r,null,n(w.value,((a,e)=>(A(),s(t,{class:"p-[30rpx] bg-white mx-[32rpx] my-[20rpx] rounded flex",key:e,onClick:e=>{return t=a,void("get"==S.value?y({url:"/app/pages/member/account_edit",param:{id:t.account_id,type:k.value,mode:S.value}}):y({url:"/app/pages/member/apply_cash_out",param:{account_id:t.account_id,type:k.value}}));var t}},{default:u((()=>[l(t,{class:"w-[100rpx] h-[100rpx] flex items-center justify-center mr-[10rpx]"},{default:u((()=>["bank"==a.account_type?(A(),s(g,{key:0,src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAACnVJREFUeF7tWXtQVNcZ/91FQQZZdhcXfKCCqFXQuKBV0YSHqWJ9AbU+qkZQG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zoXOeNKXBXRlQGCd4wgs6Ri3Kmk5TkWO9uW97mOIAQ/bAbp+N9kGndHo6xSegqDkf4G2jUsG/STLODsg7S8EQIAZEP4MrWGLmPd7LIS+AIIGQJEkZqLOYwseSudfYL8KCav/R+QYs6h51BiMMAxGsKwRKjsdyHyTTv/5+6bgGOX1s7iYyXrjWD8AvXHXenLNfgb0JJq9cS4/A3rjrvXkmv0M6Ek0e+Ncfgb0xl3ryTX7GdCTaPbGufo8A/4PpckqfWjPHTQAAAAASUVORK5CYII=",mode:"widthFix",class:"w-[80rpx]"})):(A(),s(p,{key:1,class:"iconfont iconzhifubaoxuanzhong text-[#188dfb] text-[80rpx]"}))])),_:2},1024),l(t,null,{default:u((()=>[l(t,null,{default:u((()=>[c(d("bank"==a.account_type?a.bank_name:i(Q)("alipayAccountNo")),1)])),_:2},1024),"bank"==a.account_type?(A(),s(t,{key:0,class:"text-sm text-gray-subtitle mt-[10rpx]"},{default:u((()=>[c(d(i(Q)("endNumber"))+" "+d(a.account_no.substring(a.account_no.length-4))+d(i(Q)("bankCard")),1)])),_:2},1024)):(A(),s(t,{key:1,class:"text-sm text-gray-subtitle mt-[10rpx]"},{default:u((()=>[c(d(a.account_no),1)])),_:2},1024))])),_:2},1024)])),_:2},1032,["onClick"])))),128)),l(t,{class:"p-[30rpx] bg-white mx-[32rpx] my-[20rpx] rounded flex",onClick:e[0]||(e[0]=a=>i(y)({url:"/app/pages/member/account_edit",param:{type:k.value,mode:S.value}}))},{default:u((()=>[l(m,{name:"plus",color:"#333",size:"16"}),l(p,{class:"text-sm ml-[10rpx] flex-1"},{default:u((()=>[c(d("bank"==k.value?i(Q)("addBankCard"):i(Q)("addAlipayAccount")),1)])),_:1}),l(m,{name:"arrow-right",color:"#333",size:"14"})])),_:1})])),_:1},8,["onInit","onDown"])])),_:1})}}});export{M as default};
|