import{U as e,r as a,R as t,G as s,b as l,q as i,u as r,h as m,t as d,I as u,aY as o,aF as v,o as n,F as c,e as p,y,f as b,s as g,be as D,b3 as f,b4 as h}from"./vendor-jA_NIjzi.js";import{u as N,a7 as j,aI as _,l as I}from"./common-utils-8H8K2JPG.js";import{R as x}from"./RechargeOrderDetailsHeader-FkjKtkgF.js";import{e as T}from"./nodata-mGcunvNI.js";import{_ as G,aH as S}from"./common-store-e_1WBubm.js";/* empty css              */import"./vendor-crypto-Vtl7-GZS.js";/* empty css              */import"./OrderPageBackButton-ppk9G4nM.js";import"./SvgIcon-unOD6nfS.js";import"./vendor-mqtt-lYGapirz.js";const q={class:"rebateDetails"},R={class:"rebateDetails-summary"},w={class:"rebateDetails-summary-item"},H={class:"rebateDetails-summary-item-title"},O={class:"rebateDetails-summary-item-value"},k={class:"rebateDetails-summary-item"},z={class:"rebateDetails-summary-item-title"},A={class:"rebateDetails-summary-item-value"},B={class:"rebateDetails-summary-item"},C={class:"rebateDetails-summary-item-title"},F={class:"rebateDetails-summary-item-value"},U={class:"rebateDetails-summary-item"},V={class:"rebateDetails-summary-item-title"},M={class:"rebateDetails-summary-item-value"},E={class:"rebateDetails-notice"},J={class:"rebateDetails-nav"},L={class:"rebateDetails-nav-item"},P={class:"rebateDetails-nav-item"},Q={class:"rebateDetails-nav-item"},Y={class:"rebateDetails-nav-item"},K={class:"cell-title"},W={class:"cell-title"},X={class:"textD"},Z={key:0,style:{"padding-top":"8rem"}},$=G({__name:"index",setup(G){const{t:$}=e(),{theme:ee}=N(),ae=a({pageNo:1,pageSize:50}),te=t(),se=a(!1),le=a(!1),ie=a(!1),re=s((()=>te.query&&JSON.parse(te.query.item))),me=a([]),de=a({0:$("等待领取"),1:$("领取中"),2:$("已过期"),3:$("已领取"),4:$("已领取"),5:$("已领取"),6:$("管理员取消"),7:$("领取失败")}),ue=async()=>{var e;const a=await S({pageNo:ae.value.pageNo,pageSize:ae.value.pageSize,platformId:re.value.platformId,queryTimeStart:"",queryTimeEnd:"",thirdGameCode:re.value.thirdGameCode,thirdGameTypeId:re.value.thirdGameTypeId,transactionNo:re.value.transactionNo,userId:re.value.userId,sortFieldName:"createTime"});if(!a.success)return ie.value=!0,a.message&&g(a.message);ae.value.pageNo++,a.data&&(me.value=me.value.concat([...a.data.records])),le.value=!1,ie.value=!a.data||me.value.length>=(null==(e=a.data)?void 0:e.totalCount),1!==a.code&&g(a.message)},oe=async()=>{ae.value.pageNo=1,se.value=!0,me.value=[],await ue(),setTimeout((()=>{se.value=!1}),1e3)},ve=async()=>{ie.value||await ue()};return(e,a)=>{const t=o,s=D,g=f,N=h,G=v;return n(),l("div",q,[i(x,{title:r($)("返水详情")},null,8,["title"]),m("div",R,[m("div",w,[m("div",H,d(r($)("总有效投注")),1),m("div",O,d(r(j)(re.value.validBetAmount)),1)]),m("div",k,[m("div",z,d(r($)("返水比例"))+"(%)",1),m("div",A,d(r(j)(re.value.rebateRate)),1)]),m("div",B,[m("div",C,d(r($)("返水礼金")),1),m("div",F,d(r(j)(re.value.rebateAmount)),1)]),m("div",U,[m("div",V,d(r($)("领取状态")),1),m("div",M,d(de.value[re.value.userReceiveStatus]),1)])]),i(t,{style:{"border-color":"#f2f2f2",padding:"0 12px"}},{default:u((()=>[m("span",E,d(r($)("本笔返水注单明细")),1)])),_:1}),m("div",J,[m("div",L,d(r($)("投注时间")),1),m("div",P,d(r($)("游戏场馆")),1),m("div",Q,d(r($)("游戏名称")),1),m("div",Y,d(r($)("有效流水")),1)]),i(G,{modelValue:se.value,"onUpdate:modelValue":a[1]||(a[1]=e=>se.value=e),onRefresh:oe,class:"rebateDetails-list"},{default:u((()=>[i(N,{loading:le.value,"onUpdate:loading":a[0]||(a[0]=e=>le.value=e),finished:ie.value,"finished-text":"",onLoad:ve},{default:u((()=>[(n(!0),l(c,null,p(me.value,(e=>(n(),y(s,{key:e.id,style:{padding:"16px 12px"}},{title:u((()=>[m("div",K,[m("div",null,d(r(_)(e.createTime,"MM/DD HH:mm")),1),m("div",null,d(e.thirdGameTypeName),1)])])),default:u((()=>[m("div",W,[m("div",null,d(e.subGameName),1),m("div",X,d(r(j)(e.orderAmount)),1)])])),_:2},1024)))),128)),se.value||le.value||0!==me.value.length?b("",!0):(n(),l("div",Z,[i(g,{image:["light","violet"].includes(r(ee))?r(I)("mine/fundDetails/nodata-".concat(r(ee),".png")):r(T),description:r($)("数据跑丢了请稍后再试")},null,8,["image","description"])]))])),_:1},8,["loading","finished"])])),_:1},8,["modelValue"])])}}},[["__scopeId","data-v-f6fc3e4a"],["__file","index.vue"]]);export{$ as default};
