PageSourceSearch

https://www.amznb.com/assets/Selector-CArg_2Zp.js

js amznb.com collected 2026-10-02 01:23:16 UTC 19,936 bytes, 1 lines download raw bytes

1import{u as pe,b as ve,o as ge,r as b,d as n,e as r,f as e,g as fe,h as a,w as i,j as m,Y as se,t as o,k as y,Z as he,_ as ye,$ as me,a0 as be,a1 as we,m as w,O as ke,a2 as $e,F as Ae,i as ze,q as A,a3 as xe,J as K,L as Ce,a4 as Fe,y as Se,X as q,E as I,p as h}from"./index-DGRxsnEV.js";import{_ as Be}from"./_plugin-vue_export-helper-DlAUqK2U.js";const Ie={class:"selector-page"},Ve={class:"hero-banner"},De={class:"hero-inner"},Ne={class:"hero-left"},Pe={class:"hero-icon"},Me={class:"hero-text"},Le={class:"hero-eyebrow"},Re={class:"hero-title"},Te={class:"hero-desc"},Ee={class:"hero-tags"},Oe={class:"hero-tag"},Ue={class:"hero-tag"},je={class:"hero-tag"},He={class:"hero-deco","aria-hidden":"true"},Ke={class:"deco-card deco-card-1"},qe={class:"deco-icon",style:{background:"rgba(255,180,84,0.22)"}},Je={class:"deco-info"},We={class:"deco-title"},Xe={class:"deco-sub"},Ye={class:"deco-card deco-card-2"},Ze={class:"deco-icon",style:{background:"rgba(123,211,137,0.22)"}},Ge={class:"deco-info"},Qe={class:"deco-title"},es={class:"deco-sub"},ss={class:"deco-card deco-card-3"},ts={class:"deco-icon",style:{background:"rgba(90,185,234,0.22)"}},as={class:"deco-info"},ls={class:"deco-title"},os={class:"deco-sub"},is={class:"deco-card deco-card-4"},ns={class:"deco-icon",style:{background:"rgba(217,154,200,0.22)"}},rs={class:"deco-info"},cs={class:"deco-title"},ds={class:"deco-sub"},us={key:0,class:"login-overlay"},_s={class:"login-overlay-card"},ps={class:"login-overlay-actions"},vs={class:"page-body"},gs={class:"ai-selector-area"},fs={class:"ai-prompt-section"},hs={class:"ai-prompt-header"},ys={class:"ai-prompt-input-row"},ms={key:0,class:"search-history-row"},bs={key:0,class:"ai-reason-bar"},ws={class:"reason-text"},ks={key:0,class:"reason-filters"},$s={class:"table-header"},As={class:"table-header-left"},zs={class:"table-count"},xs={class:"table-header-right"},Cs=["href"],Fs=["src","alt"],Ss={key:1,class:"no-image"},Bs={class:"brand-text"},Is=["href"],Vs=["title"],Ds={key:0,class:"price-value"},Ns={key:1,class:"cell-empty"},Ps={key:0,class:"rating-cell"},Ms={key:1,class:"muted"},Ls={key:0},Rs={key:1,class:"muted"},Ts=["title"],Es={key:0,class:"cpc-value",title:"ADS 关键词精准匹配建议出价中位数"},Os={key:1,class:"cell-empty"},Us={key:0,class:"cpc-value",title:"ADS 关键词短语匹配建议出价中位数"},js={key:1,class:"cell-empty"},Hs={key:0,class:"cpc-value",title:"ADS 关键词广泛匹配建议出价中位数"},Ks={key:1,class:"cell-empty"},qs={key:2,class:"muted"},Js={key:0,class:"fee-value"},Ws={key:1,class:"cell-empty"},Xs={key:1,class:"cell-empty"},Ys={key:0,class:"muted"},Zs={key:1,class:"cell-empty"},Gs={key:0,class:"muted"},Qs={key:1,class:"cell-empty"},et={key:0,class:"variant-badge"},st={key:1,class:"muted"},tt={key:0},at={key:1,class:"muted"},lt={key:0,class:"muted"},ot={key:1},it={key:0,class:"ai-analysis-content"},nt={class:"analysis-product-header"},rt=["src"],ct={class:"analysis-product-info"},dt={class:"analysis-product-tags"},ut={key:0},_t={key:1},pt={class:"analysis-section-item"},vt={class:"analysis-section-title"},gt={class:"analysis-text"},ft={class:"analysis-section-item"},ht={class:"analysis-section-title"},yt={key:0,class:"category-stats-grid"},mt={class:"cs-item"},bt={class:"cs-val"},wt={class:"cs-item"},kt={class:"cs-val"},$t={class:"cs-item"},At={class:"cs-val"},zt={class:"cs-item"},xt={class:"cs-val"},Ct={class:"cs-item"},Ft={class:"cs-val"},St={class:"analysis-text"},Bt={class:"analysis-section-item"},It={class:"analysis-section-title"},Vt={class:"analysis-text analysis-suggestion"},Dt={key:1,class:"analysis-loading"},Nt={__name:"Selector",setup(Pt){const{t:Mt}=pe(),V=ve(),k=h(""),z=h(!1),D=h(!1),N=h(""),P=h(""),te=h(null),x=h({total:0,products:[]}),M=h([]),C=h(1),L=h(20),J=h("opportunity_score"),W=h("desc"),S=h(!1),R=h(!1),g=h(null),T=h(null),E=l=>!l&&l!==0?"0":l.toString().replace(/\B(?=(\d{3})+(?!\d))/g,","),ae=l=>l?l<100?"text-success":l<500?"text-primary":l<2e3?"text-warning":"text-danger":"muted",le=(l,s)=>s?`${(s/1e3).toFixed(2)} kg`:l?`${(l*.45359237).toFixed(2)} kg`:"-",oe=(l,s,u)=>{if(!l||!s||!u)return"-";const f=_=>(_*2.54).toFixed(1);return`${f(l)} × ${f(s)} × ${f(u)} cm`},O=l=>l==null||isNaN(l)?"-":Number(l).toFixed(2),X=(l,s)=>{const u=s==null?void 0:s.weight_lb,f=s==null?void 0:s.length_in,_=s==null?void 0:s.width_in,v=s==null?void 0:s.height_in;if(u!=null&&f!=null&&_!=null&&v!=null){const c=[f,_,v].sort((U,j)=>U-j),d=c[2],$=c[1],p=c[0];return d<=15&&$<=12&&p<=.75&&u<=.75?"小件标准":d<=18&&$<=14&&p<=8&&u<=20?"大件标准":d<=60&&$<=30&&u<=70?"小件大件":d<=108&&$<=33&&u<=150?"中件大件":d<=108&&$<=33&&u>150?"大件大件":"特殊大件"}return l==="Standard"?"大件标准":l==="Oversize"?"大件大件":l||"-"},ie=l=>{const s=X(l==null?void 0:l.dimension_tier,l);return s==="小件标准"?"success":s==="大件标准"?"primary":s==="特殊大件"?"danger":"warning"},F=async()=>
1{if(!k.value.trim()){I.warning("请输入选品描述");return}z.value=!0,D.value=!0,C.value=1,await Y()},Y=async()=>{var l,s,u,f;try{console.log("[AI选品] 开始搜索, prompt:",k.value);const _=await q.post("/selector/ai-search",{prompt:k.value,page:C.value,page_size:L.value});console.log("[AI选品] API返回:",_);const v=_;if(x.value={total:v.total,products:v.products},N.value=v.reason,te.value=v.filters,v.irrelevant){I.warning(v.reason||"您的输入与选品无关,请重新输入选品相关的描述"),D.value=!1,z.value=!1;return}const c=v.filters||{},d=[];c.min_price&&d.push(`$${c.min_price}+`),c.max_price&&d.push(`不超过$${c.max_price}`),c.max_reviews&&d.push(`评论<${c.max_reviews}`),c.min_reviews&&d.push(`评论>${c.min_reviews}`),c.min_rating&&d.push(`评分≥${c.min_rating}`),c.max_rating&&d.push(`评分≤${c.max_rating}`),c.max_bsr&&d.push(`BSR<${c.max_bsr}`),c.is_fba!==void 0&&c.is_fba!==null&&d.push(c.is_fba?"FBA":"FBM"),c.dimension_tier&&d.push(c.dimension_tier),c.source&&d.push(c.source),c.keyword&&d.push(`"${c.keyword}"`),P.value=d.length?`(${d.join(", ")})`:"",Z()}catch(_){console.error("AI 选品失败:",_),console.error("错误详情 - status:",(l=_.response)==null?void 0:l.status,"data:",(s=_.response)==null?void 0:s.data,"message:",_.message);const v=(f=(u=_.response)==null?void 0:u.data)==null?void 0:f.detail;I.error(v||"AI 选品服务异常,请稍后重试")}finally{z.value=!1}},ne=l=>{C.value=l,Y()},re=l=>(C.value-1)*L.value+l+1,ce=l=>{k.value=l.prompt,F()},Z=async()=>{try{const l=await q.get("/selector/ai-search-history",{params:{limit:10}});M.value=l.items||[]}catch{}},de=async l=>{var s,u,f,_;if(l!=null&&l.asin){T.value=l.asin,S.value=!0,R.value=!0,g.value=null;try{console.log("[AI分析] 开始分析:",l.asin);const v=await q.get(`/selector/ai-analyze/${l.asin}`);console.log("[AI分析] 结果:",v),g.value=v}catch(v){console.error("AI 竞争度分析失败:",v),console.error("错误详情 - status:",(s=v.response)==null?void 0:s.status,"data:",(u=v.response)==null?void 0:u.data),I.error(((_=(f=v.response)==null?void 0:f.data)==null?void 0:_.detail)||"AI 分析服务异常,请稍后重试"),S.value=!1}finally{R.value=!1,T.value=null}}};return ge(()=>{Z()}),(l,s)=>{const u=b("el-icon"),f=b("el-button"),_=b("el-tag"),v=b("el-input"),c=b("el-card"),d=b("el-option"),$=b("el-select"),p=b("el-table-column"),U=b("el-table"),j=b("el-pagination"),ue=b("el-empty"),H=b("el-divider"),_e=b("el-dialog");return n(),r("div",Ie,[e("div",Ve,[s[12]||(s[12]=fe('<div class="hero-bg" data-v-e04a15e2><div class="hero-blob blob-1" data-v-e04a15e2></div><div class="hero-blob blob-2" data-v-e04a15e2></div><div class="hero-blob blob-3" data-v-e04a15e2></div><div class="hero-grid" data-v-e04a15e2></div></div>',1)),e("div",De,[e("div",Ne,[e("div",Pe,[a(u,{size:32,color:"#fff"},{default:i(()=>[a(m(se))]),_:1})]),e("div",Me,[e("div",Le,[s[8]||(s[8]=e("span",{class:"eyebrow-dot"},null,-1)),e("span",null,o(l.$t("tools.selector.heroEyebrow")),1)]),e("h1",Re,o(l.$t("tools.selector.heroTitle")),1),e("p",Te,o(l.$t("tools.selector.heroDesc")),1),e("div",Ee,[e("span",Oe,[s[9]||(s[9]=e("i",{class:"tag-dot",style:{background:"#7BD389"}},null,-1)),y(o(l.$t("tools.selector.tagRealtime")),1)]),e("span",Ue,[s[10]||(s[10]=e("i",{class:"tag-dot",style:{background:"#FFB454"}},null,-1)),y(o(l.$t("tools.selector.tagMultiFilter")),1)]),e("span",je,[s[11]||(s[11]=e("i",{class:"tag-dot",style:{background:"#5AB9EA"}},null,-1)),y(o(l.$t("tools.selector.tagBlueOcean")),1)])])])]),e("div",He,[e("div",Ke,[e("div",qe,[a(u,{size:20,color:"#FFB454"},{default:i(()=>[a(m(he))]),_:1})]),e("div",Je,[e("div",We,o(l.$t("tools.selector.decoFullCategory")),1),e("div",Xe,o(l.$t("tools.selector.decoFullCategorySub")),1)])]),e("div",Ye,[e("div",Ze,[a(u,{size:20,color:"#7BD389"},{default:i(()=>[a(m(ye))]),_:1})]),e("div",Ge,[e("div",Qe,o(l.$t("tools.selector.decoMultiFilter")),1),e("div",es,o(l.$t("tools.selector.decoMultiFilterSub")),1)])]),e("div",ss,[e("div",ts,[a(u,{size:20,color:"#5AB9EA"},{default:i(()=>[a(m(me))]),_:1})]),e("div",as,[e("div",ls,o(l.$t("tools.selector.decoRealtime")),1),e("div",os,o(l.$t("tools.selector.decoRealtimeSub")),1)])]),e("div",is,[e("div",ns,[a(u,{size:20,color:"#D99AC8"},{default:i(()=>[a(m(be))]),_:1})]),e("div",rs,[e("div",cs,o(l.$t("tools.selector.decoBlueOcean")),1
1),e("div",ds,o(l.$t("tools.selector.decoBlueOceanSub")),1)])])])])]),m(V).isLoggedIn?w("",!0):(n(),r("div",us,[e("div",_s,[a(u,{size:48,color:"var(--color-accent)"},{default:i(()=>[a(m(we))]),_:1}),e("h2",null,o(l.$t("tools.selector.loginTitle")),1),e("p",null,o(l.$t("tools.selector.loginSubtitle")),1),e("div",ps,[a(f,{type:"primary",size:"large",onClick:s[0]||(s[0]=t=>m(V).openLoginModal("login"))},{default:i(()=>[y(o(l.$t("tools.selector.loginBtn")),1)]),_:1}),a(f,{size:"large",onClick:s[1]||(s[1]=t=>m(V).openLoginModal("register"))},{default:i(()=>[y(o(l.$t("tools.selector.registerBtn")),1)]),_:1})])])])),e("div",vs,[e("div",gs,[a(c,{class:"ai-prompt-card",shadow:"never"},{default:i(()=>[e("div",fs,[e("div",hs,[s[14]||(s[14]=e("span",{class:"ai-prompt-title"},"AI 选品",-1)),a(_,{size:"small",type:"success",effect:"dark"},{default:i(()=>[...s[13]||(s[13]=[y("AI 驱动",-1)])]),_:1})]),s[17]||(s[17]=e("p",{class:"ai-prompt-desc"},"用自然语言描述你想找的产品,AI 会自动解析为筛选条件并从数据库中智能筛选。",-1)),e("div",ys,[a(v,{modelValue:k.value,"onUpdate:modelValue":s[2]||(s[2]=t=>k.value=t),placeholder:"例如:厨房类目下评论少于100、评分4分以上、价格在10-30美元的FBA产品",class:"ai-input",size:"large",clearable:"",onKeyup:ke(F,["enter"])},{prefix:i(()=>[a(u,{color:"#409eff"},{default:i(()=>[a(m($e))]),_:1})]),_:1},8,["modelValue"]),a(f,{type:"primary",size:"large",loading:z.value,onClick:F,class:"ai-search-btn"},{default:i(()=>[a(u,null,{default:i(()=>[a(m(se))]),_:1}),s[15]||(s[15]=e("span",null,"AI 搜索",-1))]),_:1},8,["loading"])]),M.value.length?(n(),r("div",ms,[s[16]||(s[16]=e("span",{class:"history-label"},"常用搜索:",-1)),(n(!0),r(Ae,null,ze(M.value,t=>(n(),A(_,{key:t.id,class:"history-tag",type:t.count>=3?"warning":"info",effect:"plain",size:"small",onClick:B=>ce(t)},{default:i(()=>[y(o(t.prompt),1)]),_:2},1032,["type","onClick"]))),128))])):w("",!0)])]),_:1}),N.value?(n(),r("div",bs,[a(u,{color:"#409eff"},{default:i(()=>[a(m(xe))]),_:1}),e("span",ws,o(N.value),1),P.value?(n(),r("span",ks,o(P.value),1)):w("",!0)])):w("",!0),D.value?(n(),A(c,{key:1,class:"table-card",shadow:"never"},{header:i(()=>[e("div",$s,[e("div",As,[s[18]||(s[18]=e("span",{class:"table-title"},"产品列表",-1)),e("span",zs,o(E(x.value.total||0))+" 条结果",1),k.value?(n(),A(_,{key:0,size:"small",type:"info",effect:"plain",class:"current-prompt-tag"},{default:i(()=>[y(' "'+o(k.value.length>30?k.value.slice(0,30)+"...":k.value)+'" ',1)]),_:1})):w("",!0)]),e("div",xs,[a($,{modelValue:J.value,"onUpdate:modelValue":s[3]||(s[3]=t=>J.value=t),size:"small",style:{width:"120px"},onChange:F},{default:i(()=>[a(d,{label:"最新",value:"discovered_at"}),a(d,{label:"价格",value:"price"}),a(d,{label:"评论数",value:"review_count"}),a(d,{label:"评分",value:"rating"}),a(d,{label:"BSR",value:"bsr"}),a(d,{label:"机会分数",value:"opportunity_score"})]),_:1},8,["modelValue"]),a($,{modelValue:W.value,"onUpdate:modelValue":s[4]||(s[4]=t=>W.value=t),size:"small",style:{width:"100px","margin-left":"8px"},onChange:F},{default:i(()=>[a(d,{label:"降序",value:"desc"}),a(d,{label:"升序",value:"asc"})]),_:1},8,["modelValue"])])])]),default:i(()=>[a(U,{data:x.value.products||[],border:"",loading:z.value,style:{width:"100%"},"highlight-current-row":"",stripe:""},{default:i(()=>[a(p,{type:"index",label:"#",width:"50",align:"center",index:re,fixed:"left"}),a(p,{label:"图片",width:"72",align:"center",fixed:"left"},{default:i(t=>[e("a",{href:`https://www.amazon.com/dp/${t.row.asin}`,target:"_blank",class:"image-link",onClick:s[5]||(s[5]=K(()=>{},["stop"]))},[t.row.image_url?(n(),r("img",{key:0,src:t.row.image_url,class:"product-image",alt:t.row.title}
1,null,8,Fs)):(n(),r("div",Ss,"N/A"))],8,Cs)]),_:1}),a(p,{prop:"brand",label:"品牌",width:"110","show-overflow-tooltip":""},{default:i(t=>[e("span",Bs,o(t.row.brand||"-"),1)]),_:1}),a(p,{prop:"asin",label:"ASIN",width:"115",align:"center",fixed:"left"},{default:i(t=>[e("a",{href:`https://www.amazon.com/dp/${t.row.asin}`,target:"_blank",class:"asin-link",onClick:s[6]||(s[6]=K(()=>{},["stop"]))},o(t.row.asin),9,Is)]),_:1}),a(p,{prop:"title",label:"标题",width:"260"},{default:i(t=>[e("div",{class:"product-title",title:t.row.title},o(t.row.title),9,Vs)]),_:1}),a(p,{prop:"price",label:"价格",width:"80",align:"center"},{default:i(t=>[t.row.price?(n(),r("span",Ds,"$"+o(t.row.price.toFixed(2)),1)):(n(),r("span",Ns,"-"))]),_:1}),a(p,{prop:"review_count",label:"评论",width:"85",align:"center"},{default:i(t=>[e("span",{class:Ce(ae(t.row.review_count))},o(E(t.row.review_count)),3)]),_:1}),a(p,{prop:"rating",label:"评分",width:"80",align:"center"},{default:i(t=>[t.row.rating?(n(),r("div",Ps,[e("span",null,o(t.row.rating.toFixed(1)),1),s[19]||(s[19]=e("span",{class:"star-icon"},"★",-1))])):(n(),r("span",Ms,"-"))]),_:1}),a(p,{prop:"bsr",label:"BSR",width:"95",align:"center"},{default:i(t=>[t.row.bsr?(n(),r("span",Ls,o(E(t.row.bsr)),1)):(n(),r("span",Rs,"-"))]),_:1}),a(p,{label:"类目路径",width:"260","show-overflow-tooltip":""},{default:i(t=>[e("span",{class:"category-tag",title:t.row.category_path||t.row.category_name},o(t.row.category_path||t.row.category_name||"-"),9,Ts)]),_:1}),a(p,{prop:"cpc_exact",label:"CPC-精准",width:"90",align:"center"},{default:i(t=>[t.row.cpc_exact?(n(),r("span",Es,"$"+o(O(t.row.cpc_exact)),1)):(n(),r("span",Os,"-"))]),_:1}),a(p,{prop:"cpc_phrase",label:"CPC-短语",width:"90",align:"center"},{default:i(t=>[t.row.cpc_phrase?(n(),r("span",Us,"$"+o(O(t.row.cpc_phrase)),1)):(n(),r("span",js,"-"))]),_:1}),a(p,{prop:"cpc_broad",label:"CPC-广泛",width:"90",align:"center"},{default:i(t=>[t.row.cpc_broad?(n(),r("span",Hs,"$"+o(O(t.row.cpc_broad)),1)):(n(),r("span",Ks,"-"))]),_:1}),a(p,{prop:"is_fba",label:"发货方式",width:"100",align:"center"},{default:i(t=>[t.row.is_fba?(n(),A(_,{key:0,size:"small",type:"success",effect:"plain"},{default:i(()=>[...s[20]||(s[20]=[y("FBA",-1)])]),_:1})):t.row.is_fba===!1?(n(),A(_,{key:1,size:"small",type:"info",effect:"plain"},{default:i(()=>[...s[21]||(s[21]=[y("FBM",-1)])]),_:1})):(n(),r("span",qs,"-"))]),_:1}),a(p,{prop:"fba_fee",label:"FBA费用",width:"85",align:"center"},{default:i(t=>[t.row.fba_fee?(n(),r("span",Js,"$"+o(t.row.fba_fee.toFixed(2)),1)):(n(),r("span",Ws,"-"))]),_:1}),a(p,{prop:"dimension_tier",label:"尺寸等级",width:"90",align:"center"},{default:i(t=>[t.row.dimension_tier?(n(),A(_,{key:0,size:"small",effect:"plain",type:ie(t.row)},{default:i(()=>[y(o(X(t.row.dimension_tier,t.row)),1)]),_:2},1032,["type"])):(n(),r("span",Xs,"-"))]),_:1}),a(p,{prop:"weight_lb",label:"重量(kg)",width:"90",align:"center","show-overflow-tooltip":""},{default:i(t=>[t.row.weight_lb||t.row.weight_g?(n(),r("span",Ys,o(le(t.row.weight_lb,t.row.weight_g)),1)):(n(),r("span",Zs,"-"))]),_:1}),a(p,{prop:"length_in",label:"尺寸(cm)",width:"210",align:"center"},{default:i(t=>[t.row.length_in?(n(),r("span",Gs,o(oe(t.row.length_in,t.row.width_in,t.row.height_in)),1)):(n(),r("span",Qs,"-"))]),_:1}),a(p,{prop:"variant_count",label:"变体",width:"65",align:"center"},{default:i(t=>[t.row.variant_count>0?(n(),r("span",et,o(t.row.variant_count),1)):(n(),r("span",st,"-"))]),_:1}),a(p,{prop:"seller_count",label:"卖家",width:"75",align:"center"},{default:i(t=>[t.row.seller_count?(n(),r("span",tt,o(t.row.seller_count),1)):(n(),r("span",at,"-"))]),_:1}),a(p,{prop:"first_available",label:"上架时间",width:"110",align:"center"},{default:i(t=>[t.row.first_available?(n(),r("span",lt,o(t.row.first_available),1)):(n(),r("span",ot,"-"))]),_:1}),a(p,{label:"AI分析",width:"85",align:"center",fixed:"right"},{default:i(t=>[a(f,{type:"primary",size:"small",loading:T.value===t.row.asin,onClick:K(B=>de(t.row),["stop"]),link:""},{default:i(()=>[a(u,null,{default:i(()=>[a(m(Fe))]),_:1}),s[22]||(s[22]=y(" 竞争分析 ",-1))]),_:1},8,["loading","onClick"])]),_:1})]),_:1},8,["data","loading"]),x.value.total>0?(n(),A(j,{key:0,class:"pagination",background:"",layout:"total, prev, pager, next, jumper",total:x.value.total,"page-size":L.value,"current-page":C.value,onCurrentChange:ne},null,8,["total","page-size","current-page"])):w("",!0)]),_:1})):z.value?w("",!0):(n(),A(ue,{key:2,description:"在输入框中用自然语言描述你想找的产品,AI 将自动为你筛选","image-size":120}))])]),a(_e,{modelValue:S.value,"onUpdate:modelValue":s[7]||(s[7]=t=>S.value=t),title:"AI 竞争度分析",width:"800px",top:"5vh","close-on-click-modal":!1},{default:i(()=>{var t,B,G,Q,ee;return[g.value?(n(),r("div",it,[e("div",nt,[(t=g.value.product)!=null&&t.image_url?(n(),r("img",{key:0,src:g.value.product.image_url,class:"analysis-product-img"},null,8,rt)):w("",!0),e("div",ct,[e("h4",null,o((B=g.value.product)==null?void 0:B.title),1),e("div",dt,[e("span",null,"ASIN: "+o(g.value.asin),1),(G=g.value.product)!=null&&G.price?(n(),r("span",ut,"$"+o(g.value.product.price.toFixed(2)),1)):w("",!0),(Q=g.value.product)!=null&&Q.rating?(n(),r("span",_t,o(g.value.product.rating.toFixed(1))+"★",1)):w("",!0),e("span",null,o(((ee=g.value.product)==null?void 0:ee.review_count)||0)+" 评论",1)])])]),a(H),e("div",pt,[e("h4",vt,[a(_,{type:"warning",size:"small",effect:"dark"},{default:i(()=>[...s[23]||(s[23]=[y("产品竞争度",-1)])]),_:1})]),e("p",gt,o(g.value.product_analysis),1)]),a(H),e("div",ft,[e("h4",ht,[a(_,{type:"primary",size:"small",effect:"dark"},{default:i(()=>[...s[24]||(s[24]=[y("类目竞争度",-1)])]),_:1})]),g.value.category_stats?(n(),r("div",yt,[e("div",mt,[e("span",bt,o(g.value.category_stats.total),1),s[25]||
1(s[25]=e("span",{class:"cs-lbl"},"产品数",-1))]),e("div",wt,[e("span",kt,"$"+o(g.value.category_stats.avg_price),1),s[26]||(s[26]=e("span",{class:"cs-lbl"},"均价",-1))]),e("div",$t,[e("span",At,o(g.value.category_stats.avg_rating),1),s[27]||(s[27]=e("span",{class:"cs-lbl"},"均分",-1))]),e("div",zt,[e("span",xt,o(g.value.category_stats.avg_reviews),1),s[28]||(s[28]=e("span",{class:"cs-lbl"},"均评论",-1))]),e("div",Ct,[e("span",Ft,o(g.value.category_stats.fba_ratio)+"%",1),s[29]||(s[29]=e("span",{class:"cs-lbl"},"FBA占比",-1))])])):w("",!0),e("p",St,o(g.value.category_analysis),1)]),a(H),e("div",Bt,[e("h4",It,[a(_,{type:"success",size:"small",effect:"dark"},{default:i(()=>[...s[30]||(s[30]=[y("综合建议",-1)])]),_:1})]),e("p",Vt,o(g.value.suggestion),1)])])):R.value?(n(),r("div",Dt,[a(u,{class:"is-loading",size:32},{default:i(()=>[a(m(Se))]),_:1}),s[31]||(s[31]=e("p",null,"AI 正在分析产品竞争度...",-1))])):w("",!0)]}),_:1},8,["modelValue"])])}}},Tt=Be(Nt,[["__scopeId","data-v-e04a15e2"]]);export{Tt 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.