PageSourceSearch

https://static.mtown88new.com/memberStatic/mtown/member-202693085856/_nuxt/3LDQtG-m.js

js mtown88new.com collected 2026-10-10 00:02:13 UTC 12,260 bytes, 1 lines download raw bytes

1import{_ as ge}from"./BU39HjjK.js";import{E as be,a as De}from"./QSOktryP.js";import{a as ve,E as ke}from"./BqK22eZm.js";import{E as xe}from"./CXEteFFC.js";import{u as ee,d as te,a as $,R as _e,e as M,q as I,ab as K,x as J,T as G,s as Ie,af as we,D as Ce,z as Te,v as Z,f as V,o as h,m as Se,i as w,g as d,w as p,k as W,h as t,l as Ye,F as Q,r as X,N as Me,K as Ve,t as Ae,a7 as Be,ag as ze}from"./Y4ICXCuc.js";import{_ as Pe}from"./bX4OmDCk.js";import{_ as Ee}from"./DEiCTG4i.js";import{_ as He}from"./B7MJbZBe.js";import{_ as Ne}from"./BYTJh-IJ.js";import"./yhRu0ssi.js";import"./CUrE0vbu.js";import"./BRWwJqKy.js";import{d as m,c as Fe,a as Le}from"./JffoND0l.js";import{u as Oe,t as Ke}from"./BQ977c7p.js";import{u as We}from"./Ds-VHX1L.js";import{u as Re}from"./Dl35WV05.js";import{_ as Ue}from"./lH8SSuXv.js";import{u as je}from"./dJZm3NNg.js";import"./aMyN3jB5.js";import"./NVAjB_Yf.js";import"./Ca1OSTWz.js";import"./anKvzuH2.js";import"./BH9nULxh.js";import"./BE20p1dL.js";import"./DbDwZyaJ.js";import"./vMIVouA4.js";import"./B_Rx9Gzo.js";import"./CluQIlQP.js";import"./DP0-JWAl.js";import"./l0sNRNKZ.js";import"./BPzcK7w0.js";import"./BnzbW7_Q.js";import"./BDO9QEQJ.js";import"./DVzYJwT5.js";import"./CGgbl_zB.js";import"./DbdTMwVV.js";import"./_z8bWJjN.js";import"./CgkIKYBN.js";import"./D2-BrpQ8.js";import"./DK5zXFld.js";import"./CailpaEi.js";import"./DkH_gNP6.js";const qe=()=>{const{t:e}=ee(),f=[{key:e("history.transactionDate"),dataIndex:"transactionDate",dateFormat:!0},{key:e("history.amount"),dataIndex:"amount"},{key:e("history.status"),dataIndex:"status",slot:"status"}],A=[{key:e("history.ticketId"),dataIndex:"ticketId"},{key:e("history.paymentType"),dataIndex:"paymentType"},{key:e("history.typeDate"),dataIndex:"typeDate"},{key:e("history.amount"),dataIndex:"amount"},{key:e("history.transactionStatus"),dataIndex:"transactionStatus",slot:"status"},{key:e("history.transactionDate"),dataIndex:"transactionDate",dateFormat:!0},{key:e("history.remark"),dataIndex:"remark"}],C=[{key:e("history.gameProvider"),dataIndex:"gameProvider"},{key:e("history.betCount"),dataIndex:"betCount"},{key:e("history.betAmount"),dataIndex:"betAmount",type:"number"},{key:e("history.winLossAmount"),dataIndex:"winlossAmount",type:"number"}],P=[{key:e("history.transactionDate"),dataIndex:"transactionDate",dateFormat:!0},{key:e("history.promotion"),dataIndex:"promotionName"},{key:e("history.transferAmount"),dataIndex:"transferAmount",type:"number"},{key:e("history.promoBonusAmount"),dataIndex:"promoAmount",type:"number"},{key:e("history.status"),dataIndex:"status",slot:"status"}],a=[{key:e("history.transactionDate"),dataIndex:"transactionDate",dateFormat:!0},{key:e("history.to"),dataIndex:"transactionTo"},{key:e("history.amount"),dataIndex:"amount",type:"number"},{key:e("history.status"),dataIndex:"status",slot:"status"}],T=[{key:e("history.applyTime"),dataIndex:"applyTime"},{key:e("history.approvalTime"),dataIndex:"approvalTime"},{key:e("menu.affiliate"),dataIndex:"sourceLogin"},{key:e("history.amount"),dataIndex:"targetAmount"},{key:e("history.status"),dataIndex:"status",slot:"status"}],E=[{key:e("history.transactionDate"),dataIndex:"transactionDate",dateFormat:!0},{key:e("history.amount"),dataIndex:"amount"},{key:e("history.status"),dataIndex:"status",slot:"status"},{key:e("history.type"),dataIndex:"type"}];return{depositColumns:f,withdrawalColumns:A,bettingSummaryColumns:C,promotionApplyColumns:P,transferColumns:a,affiliateTransferColumns:T,adjustmentColumns:E}},$e={class:"flex"},Je={key:0,class:"history-table"},b="YYYY-MM-DD HH:mm:ss",Ge=te({__name:"index",props:{pageClass:{default:"default"},theme:{default:"default"},showBorder:{type:Boolean,default:!1},components:{default:null},showDrawer:{type:Boolean,default:!1},showEmpty:{type:Boolean,default:!1}},setup(e){const f=$(),A=We(),C=Re(),P=_e(),{t:a}=ee(),{depositColumns:T,bettingSummaryColumns:E,promotionApplyColumns:ae,transferColumns:oe}=qe(),H=M(()=>f.isMobile),se=e,N=I(!1),B=I({}),z=I(T),k=I({}),ne=I([{label:a("history.today"),value:"today"},{label:a("history.in3Days"),value:"in3Days"},{label:a("history.inAWeek"),value:"inAWeek"},{label:a("history.inAMonth"),value:"inAMonth"}
1]),re=M(()=>!!H.value),le=M(()=>H.value?"#000000":"#155FE9"),x=[{key:"deposit",columns:T,api:"/player/transaction/queryPlayerDepositHistory",apiType:K,statusIndex:5,statusKey:"status",label:a("history.deposit"),value:"Deposit"},{key:"withdrawal",columns:T,api:"/player/transaction/getMemberWithdrawHistory",apiType:K,statusIndex:0,statusKey:"transactionStatus",label:a("history.withdrawal"),value:"Withdrawal"},{key:"transfer",columns:oe,api:"/player/transaction/getTransferList",apiType:J,statusIndex:1,statusKey:"status",label:a("history.transfer"),value:"historyTransfer"},{key:"bettingSummary",columns:E,api:"/player/transaction/getBettingSummaryPage",apiType:J,statusIndex:-1,statusKey:"status",label:a("history.bettingSummary"),value:"bettingSummary"},{key:"promotionApply",columns:ae,api:"/player/transaction/queryPlayerPromotionHistory",apiType:K,statusIndex:2,statusKey:"status",label:a("history.promotionApply"),value:"promotionApply"}],ie=[{label:a("history.bonus"),value:0},{label:a("bonus.rebate"),value:1},{label:a("history.normal"),value:2},{label:a("history.deposit"),value:3},{label:a("history.withdrawal"),value:4},{label:a("history.cancelledBonus"),value:5},{label:a("history.depositCashback"),value:6},{label:a("history.registerCashback"),value:7},{label:a("history.firstDepositCashback"),value:8},{label:a("history.cashback"),value:9}],r=G({pageIndex:1,pageSize:10,total:0,records:[]}),n=G({transactionType:"Deposit",transactionDate:"today",startDate:m().format(b),endDate:m().format(b),pageIndex:1,pageSize:100});M(()=>f.isMobile?"46px":"35px");const S=I(!0),F=async()=>{var o;r.pageIndex=1,z.value=(o=x.find(s=>s.value===n.transactionType))==null?void 0:o.columns,L()},R=Fe(n),ue=o=>{let s=[];switch(o){case"today":s=[m().startOf("day").format(b),m().endOf("day").format(b)];break;case"in3Days":s=[m().subtract(3,"day").format(b),m().format(b)];break;case"inAWeek":s=[m().subtract(7,"day").format(b),m().format(b)];break;case"inAMonth":s=[m().startOf("month").format(b),m().format(b)];break}s!=null&&s.length&&(n.startDate=s[0],n.endDate=s[1])},me=o=>{r.pageSize=o,r.pageIndex=1,L()},de=o=>{r.pageIndex=o,L()},pe=Ie(),ce=M(()=>pe.currentRegionLang.languageId),L=async()=>{var y;if(await Z(),!f.userInfo.merchantId||!f.userInfo.loginId){console.log("缺少必要参数:",f.userInfo),S.value=!1;return}const o=JSON.parse(JSON.stringify(n.startDate)),s=JSON.parse(JSON.stringify(n.endDate)),i=U(m(o).format("YYYY-MM-DD")+" 00:00:00"),D=U(m(s).format("YYYY-MM-DD")+" 23:59:59");let u={pageSize:r.pageSize,pageIndex:r.pageIndex,orderBy:"",desc:!0,startDate:i,endDate:D};n.transactionType!=="bettingSummary"&&n.transactionType!=="adjustment"&&(u={...u,loginId:f.userInfo.loginId}),(n.transactionType==="Deposit"||n.transactionType==="promotionApply")&&(u={...u,merchantId:(y=f.userInfo)==null?void 0:y.merchantId}),n.transactionType==="Withdrawal"&&(u.startTime=u.startDate,u.endTime=u.endDate,delete u.startDate,delete u.endDate);try{S.value=!0;const Y=x.find(c=>c.value===n.transactionType),g=await Y.apiType(Y.api,u);n.transactionType=="adjustment"?r.records=g.records&&g.records.length?g.records.map(c=>{var v;return{...c,type:((v=ie.find(_=>_.value==c.type))==null?void 0:v.label)||"-"}}):[]:n.transactionType==="promotionApply"?r.records=g.records&&g.records.length>0?g.records.map(c=>{var _;const v=(_=c.multilingualCommonList)==null?void 0:_.find(O=>O.merchantLanguageId===ce.value);return{...c,promotionName:(v==null?void 0:v.title)??c.promotionName}}):[]:r.records=g.records||[],r.total=g.total,k.value=x.find(c=>c.value===n.transactionType)}finally{S.value=!1}},ye=o=>{var s,i;se.showDrawer?H.value?A.open("tableViewDetail",{type:(s=k.value)==null?void 0:s.key,dataset:o}):C.open("tableViewDetail",{type:(i=k.value)==null?void 0:i.key,dataset:o}):(B.value=o,N.value=!0,console.log(B.value))},he=()=>{F()},U=(o,s)=>{var y;if(!o)return"";const i=$(),D=(y=i==null?void 0:i.userInfo)==null?void 0:y.timeZone;return D?(m.extend(Oe),m.extend(Ke),m.tz(o,D).utc().format("YYYY-MM-DD HH:mm:ss")):o},j=we({render(){return ze("img",{style:{maxWidth:"17px",width:"17px",height:"17px",marginLeft:"3px"}})}}),q=Le(n);return Ce(()=>P.query,(o,s)=>{const i=x.find(D=>D.value==o.type);i&&i.value?(n.transactionType=i.value,z.value=i.columns):(n.transactionType="Deposit",z.value=x[0].columns)},{immediate:!0}),Te(async()=>{await Z(),F()}),(o,s)=>{const i=ge,D=De,u=be,y=ke,Y=xe,g=Me,c=ve,v=Pe,_=Ee,O=He,fe=Ne;return h(),V("div",{class:Se(`history-${o.pageClass}`)},[(h(),w(Be(o.components),{themeStyle:o.theme},{title:p(()=>[o.showDrawer?(h(),w(i,{key:0,theme:o.theme,pageTitle:t(a)("history.history"),type:"text",isShowIcon:t(re),color:t(le),textDecoration:"underline",noPaddingTop:""},null,8,["theme","pageTitle","isShowIcon","color"])):(h(),w(i,{key:1,theme:o.theme,pageTitle:t(a)("history.history"),type:"text"},null,8,["theme","pageTitle"]))]),form:p(()=>[d(c,{model:t(n),"label-position":"top",class:"history-form",size:"large"},{default:p(()=>[d(y,{label:t(a)("history.transactionType"),"label-width":"50"},{default:p(()=>[d(u,{modelValue:t(n).transactionType,"onUpdate:modelValue":s[0]||(s[0]=l=>t(n).transactionType=l),size:"large"},{default:p(()=>[(h(),V(Q,null,X(x,l=>d(D,{label:l.label,value:l.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1},8,["label"]),d(y,{label:t(a)("history.transactionDate"),"label-width":"50"},{default:p(()=>[d(u,{modelValue:t(n).transactionDate,"onUpdate:modelValue":s[1]||(s[1]=l=>t(n).transactionDate=l),size:"large",onChange:ue,placeholder:t(a)("common.select")},{default:p(()=>[(h(!0),V(Q,null,X(ne.value,l=>(h(),w(D,{label:l.label,value:l.value},null,8,["label","value"]))),256))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"]),Ye("div",$e,[d(y,{label:t(a)("history.from"),"label-width":"50",class:"form-inline-item"},{default:p(()=>[d(Y,{modelValue:t(n).startDate,"onUpdate:modelValue":s[2]||(s[2]=l=>t(n).startDate=l),style:{width:"100%"},placeholder:t(a)("history.pickDate"),format:"YYYY-MM-DD","value-format":"YYYY-MM-DD HH:mm:ss",editable:!1,"prefix-icon":j.value,clearable:!1,"disabled-date":l=>
1t(q)(l,!0),onChange:t(R),"default-time":new Date(0,0,0,0,0,0)},null,8,["modelValue","placeholder","prefix-icon","disabled-date","onChange","default-time"])]),_:1},8,["label"]),d(y,{label:t(a)("history.to"),"label-width":"50",class:"form-inline-item"},{default:p(()=>[d(Y,{modelValue:t(n).endDate,"onUpdate:modelValue":s[3]||(s[3]=l=>t(n).endDate=l),type:"date",style:{width:"100%"},placeholder:t(a)("history.pickDate"),"value-format":"YYYY-MM-DD HH:mm:ss",format:"YYYY-MM-DD",editable:!1,"prefix-icon":j.value,clearable:!1,onChange:t(R),"disabled-date":l=>t(q)(l,!1),"default-time":new Date(0,0,0,0,0,0)},null,8,["modelValue","placeholder","prefix-icon","onChange","disabled-date","default-time"])]),_:1},8,["label"])]),d(y,null,{default:p(()=>[d(g,{type:"primary",class:"submit-button",onClick:F,loading:S.value},{default:p(()=>[Ve(Ae(t(a)("common.search")),1)]),_:1},8,["loading"])]),_:1})]),_:1},8,["model"]),!o.showEmpty||t(r).records&&t(r).records.length?W("",!0):(h(),w(v,{key:0}))]),table:p(()=>[!o.showEmpty||t(r).records&&t(r).records.length?(h(),V("div",Je,[d(O,{columns:z.value,data:t(r).records,loading:S.value,total:t(r).total,pageParams:{currentPage:t(r).pageIndex,pageSize:t(r).pageSize},showAction:!0,onSizeChange:me,onCurrentChange:de,onView:ye,readMore:!0,onReadMore:he,pageClass:o.pageClass,showBorder:o.showBorder},{status:p(({row:l})=>[t(r).records&&t(r).records.length?(h(),w(_,{key:0,status:l[k.value.statusKey],index:k.value.statusIndex},null,8,["status","index"])):W("",!0)]),_:1},8,["columns","data","loading","total","pageParams","pageClass","showBorder"])])):W("",!0)]),_:1},8,["themeStyle"])),d(fe,{dialogVisible:N.value,type:k.value.key,dataset:B.value,"onUpdate:visible":s[4]||(s[4]=l=>{N.value=!1,B.value={}})},null,8,["dialogVisible","type","dataset"])],2)}}}),Ft=te({__name:"history",setup(e){return je("account-history"),(f,A)=>{const C=Ge;return h(),V("div",null,[d(C,{components:Ue,theme:"mtown",pageClass:"mtown",showBorder:!0})])}}});export{Ft as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.