1import{_ as te}from"./xo0PcHRM.js";import{d as J,o as u,g as I,h as e,t as s,j as a,i as n,Y as v,I as se,u as ae,e as oe,f as E,bk as ce,aP as ne,a as ie,al as re,am as le,w as f,a0 as de,l as pe,a4 as me,F as L,r as F,a5 as W,c as V,ar as he,k as _e,m as U,n as S,bl as z,ab as ue,aW as ve,bi as q,as as O,at as ge}from"./7Rh2xM73.js";import{f as fe}from"./8La8816H.js";import{I as K}from"./DMDcwOlD.js";import{I as ye}from"./pr8OvRfE.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{B as we}from"./jU4jf9jF.js";import{I as be}from"./zO2MJd5d.js";import{I as Pe}from"./DiRThb2F.js";import{I as $e}from"./BrXnEedM.js";import{I as Ie}from"./DAcjU8Zr.js";import{I as Ce}from"./B_bhQrs-.js";const Te={class:"ApiBoxItemTop"},ke=["src","alt"],Se={class:"AvatarContainer"},Be=["src","alt"],ze={class:"ApiBoxItemContent"},Ae={class:"Info"},De={class:"name-row"},Me={class:"name"},Ne={class:"ip-location-row"},Ee={class:"ip-location-text"},Le={class:"stat-item"},Fe={class:"stat-item"},We={class:"SignatureArea"},Ve={class:"word"},Ue={__name:"MerchantItem",props:{info:{type:Object,required:!0}},setup(D){const i=D,B=l=>{if(!l&&l!==0)return"0";const r=parseInt(l);return r>=1e6?(r/1e6).toFixed(1).replace(".0","")+"M":r>=1e3?(r/1e3).toFixed(1).replace(".0","")+"K":r.toString()};return(l,r)=>(u(),I("div",null,[e("div",{class:"ApiBoxItem",onClick:r[0]||(r[0]=p=>("navigateTo"in l?l.navigateTo:a(se))("/mer/"+i.info.id))},[e("div",Te,[e("img",{src:i.info.dwo_backimg,class:"ApiBoxItemImg",alt:i.info.dwo_nickname+l.$t("comp.merchantItem.backAlt")},null,8,ke)]),e("div",Se,[e("img",{src:i.info.dwo_avatar,alt:i.info.dwo_nickname+l.$t("comp.merchantItem.avatarAlt"),class:"Avatar"},null,8,Be)]),e("div",ze,[e("div",Ae,[e("div",De,[e("p",Me,s(i.info.dwo_nickname),1)]),e("div",Ne,[r[1]||(r[1]=e("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2",width:"12",height:"12"},[e("path",{d:"M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7z"}),e("circle",{cx:"12",cy:"9",r:"2.5"})],-1)),e("span",Ee,s(i.info.dwo_ip_location?a(fe)(i.info.dwo_ip_location):l.$t("comp.merchantItem.unknownIp")),1),r[2]||(r[2]=e("span",{class:"divider"},"|",-1)),e("span",Le,[n(a(K),{style:{"font-size":"10px"}}),v(" "+s(B(i.info.dwo_getsize)),1)]),r[3]||(r[3]=e("span",{class:"divider"},"|",-1)),e("span",Fe,[n(a(ye),{style:{"font-size":"10px"}}),v(" "+s(B(i.info.apinum)),1)])])])]),e("div",We,[e("p",Ve,s(i.info.dwo_signature),1)])])]))}},qe=J(Ue,[["__scopeId","data-v-584208cb"]]),Oe={class:"Page"},Je={class:"hero-section page-fade-in",style:{"animation-delay":"0ms"}},Ke={class:"hero-container"},Re={class:"hero-content"},je={class:"hero-tag"},Ge={class:"hero-title"},Ye={class:"gradient-text"},He={class:"hero-desc"},Qe={class:"hero-actions"},Xe={class:"hero-stats"},Ze={class:"stat-item"},xe={class:"stat-number"},et={class:"stat-label"},tt={class:"stat-item"},st={class:"stat-number"},at={class:"stat-label"},ot={class:"stat-item"},ct={class:"stat-number"},nt={class:"stat-label"},it={class:"hero-visual"},rt={class:"dashboard-card"},lt={class:"dashboard-header"},dt={class:"dashboard-badge"},pt={class:"dashboard-footer"},mt={class:"revenue-info"},ht={class:"revenue-label"},_t={class:"revenue-items"},ut={class:"revenue-item"},vt={class:"revenue-type"},gt={class:"revenue-value"},ft={class:"revenue-item"},yt={class:"revenue-type"},wt={class:"revenue-value"},bt={class:"features-section page-fade-in",style:{"animation-delay":"120ms"}},Pt={class:"section-container"},$t={class:"section-header"},It={class:"section-title"},Ct={class:"features-compact"},Tt={class:"feature-card-compact"},kt={class:"feature-info"},St={class:"feature-title-compact"},Bt={class:"feature-desc-compact"},zt={class:"feature-card-compact"},At={class:"feature-info"},Dt={class:"feature-title-compact"},Mt={class:"feature-desc-compact"},Nt={class:"feature-card-compact"},Et={class:"feature-info"},Lt={class:"feature-title-compact"},Ft={class:"feature-desc-compact"},Wt={class:"feature-card-compact"},Vt={class:"feature-info"},Ut={class:"feature-title-compact"},qt={class:"feature-desc-compact"},Ot={class:"process-section page-fade-in",style:{"animation-delay":"200ms"}},Jt={class:"section-container"},Kt={class:"section-header"},Rt={class:"section-title"},jt={class:"process-compact"},Gt={class:"process-item-compact"},Yt={class:"process-content-compact"},Ht={class:"process-title-compact"},Qt={class:"process-desc-compact"},Xt={class:"process-divider"},Zt={class:"process-item-compact"},xt={class:"process-content-compact"},es={class:"process-title-compact"},ts={class:"process-desc-compact"},ss={class:"process-divider"},as={class:"process-item-compact"},os={class:"process-content-compact"},cs={class:"process-title-compact"},ns={class:"process-desc-compact"},is={class:"process-divider"},rs={class:"process-item-compact"},ls={class:"process-content-compact"},ds={class:"process-title-compact"},ps={class:"process-desc-compact"},ms={class:"PageBox page-fade-in",style:{"animation-delay":"280ms"}},hs={class:"PageBoxTop"},_s={class:"section-header center"},us={class:"section-title"},vs={class:"section-subtitle"},gs={class:"Seachbox"},fs={class:"ApiBox"},ys={key:0,class:"ApiBoxItem"},ws={key:1,class:"ApiBoxItem"},bs={__name:"merchant",setup(D){const{t:i,locale:B}=ae(),l=oe();E(()=>{const{currentTheme:t}=ce();if(t.value&&typeof window<"u"){const o=document.documentElement;o.style.setProperty("--theme-gradient",t.value.gradient),o.style.setProperty("--theme-primary",t.value.primary);const h=t.value.primary.match(/\w\w/g)?.map(_=>parseInt(_,16))||[59,130,246];o.style.setProperty("--theme-primary-rgb",`${h[0]}, ${h[1]}, ${h[2]}`)}});const r=ne();ie({title:i("merchantPage.seoTitle",{siteName:l.Config?.dwo_WebName||"APIå¹³å°"}),keywords:i("merchantPage.seoKeywords"),description:i("merchantPage.seoDesc",{siteName:l.Config?.dwo_WebName||"APIå¹³å°"}),icon:l.Config?.dwo_WebIco,image:l.Config?.dwo_WebLogo,url:`${r.origin}/merchant`});const p=S({merchantCount:0,todayCalls:0,allCalls:0,uptime:99.99,todayEarnings:0,todayMoney:0}),R=async()=>{try{const t=await U().post("/apis/getindexnum");if(typeof t=="string")try{t=JSON.parse(t)}catch(o){console.error(i("merchantPage.consoleParseError"),o)}t.code==200&&t.data&&(p.value.merchantCount=t.data.mertotal||0,p.value.todayCalls=t.data.todayrequesttotal||0,p.value.allCalls=t.data.allrequesttotal||0,p.value.uptime=t.data.successrate||99.99,p.value.todayEarnings=t.data.todayearnings||0,p.value.todayMoney=t.data.todaymoney||0)}catch(t){console.error(i("merchantPage.consoleFetchError"),t),p.value={merchantCount:62,todayCalls:50699,allCalls:11021186,uptime:99.98,todayEarnings:0,todayMoney:0}}},M=t=>{const o=B.value==="en";return t>=1e6?o?(t/1e6).toFixed(1)+i("common.unitM"):Math.floor(t/1e4)+i("common.unitWan"):t>=1e4?o?(t/1e3).toFixed(1)+i("common.unitK"):(t/1e4).toFixed(1)+i("common.unitWan"):t>=1e3?Math.floor(t/1e3)+i("common.unitK"):t.toString()},j=t=>
1t.toLocaleString("zh-CN"),G=()=>{window.open("https://openapi.dwo.cc/open/index","_blank")},Y=()=>{window.open("https://api.dwo.cc/news/11","_blank")},y=S([]),C=S(!0),c=S({page:1,pagesize:12,search:"",sortname:"id",sort:"desc",total:0}),w=S(!1),H=()=>{{w.value=window.innerWidth<=768;const t=w.value?6:12;c.value.pagesize=t,c.value.page=1}},N=()=>{{const t=w.value;w.value=window.innerWidth<=768;const o=w.value?6:12;(t!==w.value||c.value.pagesize!==o)&&(c.value.pagesize=o,c.value.page=1,m=[],c.value.total=0,b())}};let T=null;const Q=()=>{clearTimeout(T),T=setTimeout(()=>{c.value.page=1,m=[],b()},500)},X=()=>{c.value.search="",c.value.page=1,m=[],clearTimeout(T),b()},Z=()=>{c.value.page=1,m=[],clearTimeout(T),b()},x=t=>{c.value.page=t,b()};let m=[];const b=async()=>{C.value=!0;try{if(c.value.page===1||m.length===0||c.value.search){const k={search:c.value.search};let g=await U().get("/apis/getmeritem");if(typeof g=="string")try{g=JSON.parse(g)}catch($){console.error("JSONè§£æå¤±è´¥:",$)}if(g.code==200){if(m=g.data||[],c.value.search&&c.value.search.trim()){const $=c.value.search.toLowerCase();m=m.filter(d=>d.dwo_nickname&&d.dwo_nickname.toLowerCase().includes($)||d.dwo_signature&&d.dwo_signature.toLowerCase().includes($))}}else m=[]}const t=c.value.pagesize,o=c.value.page,h=m.length,_=(o-1)*t,A=_+t;y.value=m.slice(_,A);const P=Math.ceil(h/t);if(o>P&&P>0){c.value.page=P;const k=(P-1)*t;y.value=m.slice(k,k+t)}c.value.total=h}catch(t){console.error("è·ååå®¶å表失败:",t),y.value=[],c.value.total=0,m=[]}C.value=!1};return E(()=>{H(),R(),window.addEventListener("resize",N),re(()=>{b()})}),le(()=>{window.removeEventListener("resize",N),clearTimeout(T)}),(t,o)=>{const h=te,_=de,A=me,P=qe,k=ge,g=he,$=_e;return u(),I("div",Oe,[n(h),e("section",Je,[e("div",Ke,[e("div",Re,[e("div",je,[o[2]||(o[2]=e("span",{class:"tag-dot"},null,-1)),v(" "+s(t.$t("merchantPage.heroTag")),1)]),e("h1",Ge,[v(s(t.$t("merchantPage.heroTitle1"))+" ",1),e("span",Ye,s(t.$t("merchantPage.heroTitle2")),1)]),e("p",He,s(t.$t("merchantPage.heroDesc",{siteName:a(l).Config?.dwo_WebName||"API"})),1),e("div",Qe,[n(_,{class:"btn-primary",type:"primary",size:"large",onClick:G},{icon:f(()=>[n(a(z))]),default:f(()=>[v(s(t.$t("merchantPage.applyBtn"))+" ",1)]),_:1}),n(_,{class:"btn-secondary",size:"large",onClick:Y},{default:f(()=>[v(s(t.$t("merchantPage.docsBtn")),1)]),_:1})]),e("div",Xe,[e("div",Ze,[e("div",xe,s(a(p).merchantCount)+"+",1),e("div",et,s(t.$t("merchantPage.statMerchants")),1)]),e("div",tt,[e("div",st,s(M(a(p).todayCalls))+"+",1),e("div",at,s(t.$t("merchantPage.statTodayCalls")),1)]),e("div",ot,[e("div",ct,s(a(p).uptime)+"%",1),e("div",nt,s(t.$t("merchantPage.statUptime")),1)])])]),e("div",it,[e("div",rt,[e("div",lt,[o[4]||(o[4]=e("div",{class:"window-dots"},[e("span",{class:"dot red"}),e("span",{class:"dot yellow"}),e("span",{class:"dot green"})],-1)),e("div",dt,[o[3]||(o[3]=e("span",{class:"badge-icon"},"â",-1)),v(" "+s(t.$t("merchantPage.dashboardBadge")),1)])]),o[5]||(o[5]=pe('<div class="dashboard-chart" data-v-1ba2f59e><div class="chart-bars" data-v-1ba2f59e><div class="bar" style="height:40%;" data-v-1ba2f59e></div><div class="bar" style="height:60%;" data-v-1ba2f59e></div><div class="bar" style="height:45%;" data-v-1ba2f59e></div><div class="bar active" style="height:85%;" data-v-1ba2f59e></div><div class="bar" style="height:55%;" data-v-1ba2f59e></div><div class="bar" style="height:70%;" data-v-1ba2f59e></div></div></div>',1)),e("div",pt,[e("div",mt,[e("div",ht,s(t.$t("merchantPage.revenueLabel")),1),e("div",_t,[e("div",ut,[e("span",vt,s(t.$t("merchantPage.revenuePoints")),1),e("span",gt,s(M(a(p).todayEarnings)),1)]),e("div",ft,[e("span",yt,s(t.$t("merchantPage.revenueBalance")),1),e("span",wt,"Â¥ "+s(j(a(p).todayMoney)),1)])])])])])])])]),e("section",bt,[e("div",Pt,[e("div",$t,[e("h2",It,s(t.$t("merchantPage.featuresTitle")),1)]),e("div",Ct,[e("div",Tt,[n(a(K),{class:"feature-icon-compact"}),e("div",kt,[e("h3",St,s(t.$t("merchantPage.feature1Title")),1),e("p",Bt,s(t.$t("merchantPage.feature1Desc")),1)])]),e("div",zt,[n(a(be),{class:"feature-icon-compact"}),e("div",At,[e("h3",Dt,s(t.$t("merchantPage.feature2Title")),1),e("p",Mt,s(t.$t("merchantPage.feature2Desc")),1
1)])]),e("div",Nt,[n(a(Pe),{class:"feature-icon-compact"}),e("div",Et,[e("h3",Lt,s(t.$t("merchantPage.feature3Title")),1),e("p",Ft,s(t.$t("merchantPage.feature3Desc")),1)])]),e("div",Wt,[n(a($e),{class:"feature-icon-compact"}),e("div",Vt,[e("h3",Ut,s(t.$t("merchantPage.feature4Title")),1),e("p",qt,s(t.$t("merchantPage.feature4Desc")),1)])])])])]),e("section",Ot,[e("div",Jt,[e("div",Kt,[e("h2",Rt,s(t.$t("merchantPage.processTitle")),1)]),e("div",jt,[e("div",Gt,[n(a(ue),{class:"process-icon-compact"}),e("div",Yt,[e("h3",Ht,s(t.$t("merchantPage.process1Title")),1),e("p",Qt,s(t.$t("merchantPage.process1Desc")),1)])]),e("div",Xt,[n(a(z))]),e("div",Zt,[n(a(Ie),{class:"process-icon-compact"}),e("div",xt,[e("h3",es,s(t.$t("merchantPage.process2Title")),1),e("p",ts,s(t.$t("merchantPage.process2Desc")),1)])]),e("div",ss,[n(a(z))]),e("div",as,[n(a(ve),{class:"process-icon-compact"}),e("div",os,[e("h3",cs,s(t.$t("merchantPage.process3Title")),1),e("p",ns,s(t.$t("merchantPage.process3Desc")),1)])]),e("div",is,[n(a(z))]),e("div",rs,[n(a(Ce),{class:"process-icon-compact"}),e("div",ls,[e("h3",ds,s(t.$t("merchantPage.process4Title")),1),e("p",ps,s(t.$t("merchantPage.process4Desc")),1)])])])])]),e("div",ms,[e("div",hs,[e("div",_s,[e("h2",us,s(t.$t("merchantPage.merchantsTitle")),1),e("p",vs,s(t.$t("merchantPage.merchantsSubtitle")),1)]),e("div",gs,[n(A,{class:"searchInput",placeholder:t.$t("merchantPage.searchPlaceholder"),modelValue:a(c).search,"onUpdate:modelValue":o[0]||(o[0]=d=>a(c).search=d),type:"text","allow-clear":"",onInput:Q,onClear:X},{prefix:f(()=>[n(a(q))]),_:1},8,["placeholder","modelValue"]),n(_,{class:"searchBtn",type:"primary",shape:"round",onClick:Z},{icon:f(()=>[n(a(q))]),default:f(()=>[v(" "+s(t.$t("merchantPage.searchBtn")),1)]),_:1})])]),e("div",fs,[!a(C)&&a(y).length>0?(u(),I("div",ys,[(u(!0),I(L,null,F(a(y),(d,ee)=>(u(),V(P,{info:d,key:d.id,class:"page-card-fade",style:O({animationDelay:ee*30+"ms"})},null,8,["info","style"]))),128))])):a(C)?(u(),I("div",ws,[(u(),I(L,null,F(6,d=>e("div",{key:"mer-skel-"+d,class:"page-card-skeleton",style:O({animationDelay:(d-1)*60+"ms"})},null,4)),64))])):W("",!0),!a(C)&&a(y).length==0?(u(),V(k,{key:2})):W("",!0),n(g,{onChange:x,current:a(c).page,"onUpdate:current":o[1]||(o[1]=d=>a(c).page=d),"page-size":a(c).pagesize,total:a(c).total,size:"mini","show-total":""},null,8,["current","page-size","total"])]),o[6]||(o[6]=e("div",{class:"bottom-spacer"},null,-1))]),n($,null,{default:f(()=>[n(we)]),_:1})])}}},Js=J(bs,[["__scopeId","data-v-1ba2f59e"]]);export{Js 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.