import{_ as e,w as a,f as t,ac as l,h as s}from"./index-4c745ab9.js";import{l as i,q as n,o as d,a as o,g as r,f as u,u as v,h as c,w as m,e as g,F as f,ar as p,i as _,t as h}from"./vendor-edc0678f.js";/* empty css              */import{g as y}from"./index-22f349d5.js";const x={class:"columnFlex"},w={class:"recordList"},I={class:"everyItem"},b={class:"itemRight fw-num"},R={style:{"font-size":"12px"}},j={class:"everyItem"},k={class:"itemRight fw-num"},z={class:"everyItem"},F={class:"itemRight fw-num"},N={class:"everyItem"},C={class:"itemRight fw-num"},L={class:"everyItem"},S={class:"itemRight fw-num"},q=e({__name:"order",setup(e){const q=i([]),A=i(1),B=i(8),H=i(!1),M=i(!1),T=i(!1),U=i(0),D=async()=>{try{const e=await E();q.value=[...q.value,...e],0===q.value.length?H.value=!0:H.value=!1,q.value.length===U.value&&(T.value=!0),A.value++}catch(e){}finally{M.value=!1}},E=async()=>{let e={};e="pageNum=".concat(A.value,"&pageSize=").concat(B.value,"&orderByColumn=createTime&isAsc=desc");const a=await y(e);if(200===a.code)return U.value=a.total,a.rows;T.value=!0};return n(()=>{D()}),(e,i)=>{const n=a,y=p,A=s;return d(),o(f,null,[r("div",x,[u(n,{currentName:v(t)("pledge_order_record"),border_bottom:!0},null,8,["currentName"])]),r("div",w,[q.value.length>0&&!H.value?(d(),c(y,{key:0,loading:M.value,"onUpdate:loading":i[0]||(i[0]=e=>M.value=e),finished:T.value,"finished-text":v(t)("no_more_data"),"loading-text":v(t)("loading"),onLoad:D},{default:m(()=>[(d(!0),o(f,null,_(q.value,(e,a)=>(d(),o("div",{class:"item",key:a},[r("div",I,[r("div",null,h(v(t)("order_number")),1),r("div",b,[u(l,{data:e.orderId,contentFix:"start",fontSize:"12px"},{copyMsg:m(()=>[r("span",R,h(e.orderId),1)]),_:2},1032,["data"])])]),r("div",j,[r("div",null,h(v(t)("recharge_coin")),1),r("div",k,h(e.ownCoin),1)]),r("div",z,[r("div",null,h(v(t)("metastaking_bb_count")),1),r("div",F,h(e.number),1)]),r("div",N,[r("div",null,h(v(t)("selling_price")),1),r("div",C,h(e.price),1)]),r("div",L,[r("div",null,h(v(t)("total_price")),1),r("div",S,h(e.amount),1)])]))),128))]),_:1},8,["loading","finished","finished-text","loading-text"])):g("",!0),0===q.value.length&&H.value?(d(),c(A,{key:1})):g("",!0)])],64)}}},[["__scopeId","data-v-8993f9c0"]]);export{q as default};
