test_lgq/niucloud/public/wap/assets/app-pages-member-point.8cc7f2b6.js
2024-01-24 17:36:08 +08:00

2 lines
1.5 KiB
JavaScript

import{d as e,r as a,h as t,i as s,w as l,j as r,E as o,G as n,m as u,F as c,l as p,au as d,av as i,aY as m,t as f,H as _,J as v,K as x}from"./index-849cf30e.js";import{u as g,M as b}from"./useMescroll.852ec5b5.js";import{M as h}from"./mescroll-empty.4fe1b9fd.js";import"./_plugin-vue_export-helper.1b428a4d.js";const y=e({__name:"point",setup(e){const{mescrollInit:y,downCallback:j,getMescroll:w}=g(i,d);let k=a([]),M=a(null),I=a(!1);const z=e=>{let t=a({});I.value=!1,t.value.page=e.num,t.value.page_size=e.size,m(t.value).then((a=>{let t=a.data.data;e.endSuccess(t.length),1==e.num&&(k.value=[]),k.value=k.value.concat(t),I.value=!0})).catch((()=>{I.value=!0,e.endErr()}))};return(e,a)=>{const d=f;return t(),s(d,{class:"bg-gray-100 min-h-[100vh]"},{default:l((()=>[r(b,{ref_key:"mescrollRef",ref:M,onInit:u(y),onDown:u(j),onUp:z},{default:l((()=>[(t(!0),o(c,null,n(u(k),((e,a)=>(t(),s(d,{key:e.id,class:_(["bg-white relative p-[10px]",{"border-solid border-t-0 border-l-0 border-r-0 border-b-[1px] border-gray-200":u(k).length-1!=a}])},{default:l((()=>[r(d,{class:"text-[14px]"},{default:l((()=>[v(x(e.from_type_name),1)])),_:2},1024),r(d,{class:"text-[12px] text-gray-400 mt-[10px]"},{default:l((()=>[v(x(e.create_time),1)])),_:2},1024),r(d,{class:"text-[14px] absolute top-[50%] transform -translate-y-[50%] right-[10px]"},{default:l((()=>[v(x(e.account_data),1)])),_:2},1024)])),_:2},1032,["class"])))),128)),!u(k).length&&u(I)?(t(),s(h,{key:0})):p("v-if",!0)])),_:1},8,["onInit","onDown"])])),_:1})}}});export{y as default};