PageSourceSearch

https://erp.dianxiaobao.net/assets/chunk/46b0661d.CTdL4qEW.js

js dianxiaobao.net collected 2026-09-28 06:06:22 UTC 42,833 bytes, 1 lines download raw bytes

1import{n as e}from"./61b66786.8BhlS34s.js";import{Co as t,Do as n,Eo as r,Mo as i,Sd as a,So as o,To as s,am as c,ap as l,bo as u,jo as d,om as f,op as p,wo as m,xd as h,xo as g}from"./027ffcfc.eLkoaQ3Q.js";import{J as _,Mt as v,xt as y}from"./ce65bdc9.BVjkH_eL.js";import{C as b,M as x,w as S}from"./5d3dfec8.BiVdPxC8.js";import{a as C,c as w,f as T,l as E,p as D,s as O,u as k}from"./4525b928.UxINBsTv.js";import{Fragment as A,createBlock as j,createCommentVNode as M,createElementBlock as N,createElementVNode as P,createTextVNode as F,createVNode as I,normalizeStyle as L,openBlock as R,renderList as z,resolveComponent as B,resolveDirective as V,toDisplayString as H,vShow as U,withCtx as W,withDirectives as G,withModifiers as K}from"https://js-c.etc4.com/dxb/js/vue.CQKD6T8K.js";function ee(e,t,n,r,i,a){let o=B(`DxbShopSelect`),s=B(`DxbLabelItem`),c=B(`Option`),l=B(`Select`),u=B(`Cascader`),d=B(`Button`),f=B(`Input`),p=B(`DxbSearchWraper`),m=B(`Icon`),h=B(`DxbAdd2StoreOfStore`),g=B(`DxbBtnBar`),_=B(`Progress`),v=B(`Tag`),y=B(`Table`),b=B(`DxbPage`),x=B(`WordTrendModal`),S=B(`WordProductModal`),C=B(`KeywordGroupModal`),w=V(`loading`);return R(),N(`div`,null,[I(p,null,{default:W(()=>[I(s,null,{default:W(()=>[I(o,{modelValue:e.search.store,"onUpdate:modelValue":t[0]||=t=>e.search.store=t},null,8,[`modelValue`])]),_:1}),I(s,{label:`查看方式`,suffix:``},{default:W(()=>[I(l,{modelValue:i.searchType,"onUpdate:modelValue":t[1]||=e=>i.searchType=e},{default:W(()=>[I(c,{value:`1`},{default:W(()=>[...t[9]||=[F(` 按类目搜索 `,-1)]]),_:1}),I(c,{value:`2`},{default:W(()=>[...t[10]||=[F(` 按关键词搜索 `,-1)]]),_:1})]),_:1},8,[`modelValue`])]),_:1}),G(I(s,{label:`类目`,suffix:``},{default:W(()=>[I(u,{modelValue:e.search.category,"onUpdate:modelValue":t[2]||=t=>e.search.category=t,data:e.search.categoryList,"change-on-select":``,style:{"min-width":`150px`,width:`100%`},onOnChange:t[3]||=t=>e.$nextTick(()=>{e.getTableDataFrom1()})},null,8,[`modelValue`,`data`])]),_:1},512),[[U,i.searchType==`1`]]),G(I(s,null,{default:W(()=>[I(f,{modelValue:e.search.keyword,"onUpdate:modelValue":t[4]||=t=>e.search.keyword=t,search:``,style:{"min-width":`280px`},onOnSearch:e.getTableDataFrom1},{append:W(()=>[I(d,{icon:`ios-search`,onClick:K(e.getTableDataFrom1,[`stop`])},null,8,[`onClick`])]),_:1},8,[`modelValue`,`onOnSearch`])]),_:1},512),[[U,i.searchType==`2`]])]),_:1}),e.isImportModal?M(``,!0):(R(),j(g,{key:0,class:`sticky-bar`},{default:W(()=>[I(h,{ref:`add2store`,storeId:e.search.store,onChange:e.handleAdd2Store},{default:W(()=>[I(d,{type:`primary`},{default:W(()=>[t[11]||=P(`span`,null,`加入词库`,-1),I(m,{type:`ios-arrow-down`})]),_:1})]),_:1},8,[`storeId`,`onChange`]),I(d,{loading:e.loading.export,onClick:e.clickExport},{default:W(()=>[e.loading.export?(R(),N(`span`,J,`导出中...`)):(R(),N(`span`,q,`导出`))]),_:1},8,[`loading`,`onClick`]),I(d,{loading:e.loading.fanyi,onClick:e.handleFanyi},{default:W(()=>[e.loading.fanyi?(R(),N(`span`,X,`翻译中...`)):(R(),N(`span`,Y,`翻译`))]),_:1},8,[`loading`,`onClick`])]),_:1})),G((R(),N(`div`,null,[I(y,{ref:`table`,columns:i.table.column,data:i.table.data,size:`small`,onOnSortChange:e.tableSortChange,onOnSelectionChange:e.setTableSelect},{keyword:W(({row:e,column:t,index:n})=>[P(`div`,null,[P(`div`,Z,[F(H(e.keyword)+` `,1),G(P(`img`,Q,null,512),[[U,e.isInProdName]])])])]),search:W(({row:e,column:t,index:n})=>[I(_,{percent:e.searchLevel},null,8,[`percent`])]),competition:W(({row:e,column:t,index:n})=>[I(_,{percent:e.competitionLevel},null,8,[`percent`])]),ctr:W(({row:e,column:t,index:n})=>[P(`span`,null,H(e.ctrPercent),1)]),cvr:W(({row:e,column:t,index:n})=>[P(`span`,null,H(e.cvrPercent),1)]),isInStore:W(({row:e,column:t,index:n})=>[P(`div`,null,[I(v,{color:`${e.isInStore?`green`:`default`}`},{default:W(()=>[P(`span`,null,H(e.isInStore?`是`:`否`),1)]),_:2},1032,[`color`])])]),action:W(({row:t,column:n,index:r})=>[P(`div`,null,[P(`div`,ne,[t.clickSeeQsLoading?(R(),N(`span`,ie,`查询中...`)):(R(),N(`a`,{key:0,onClick:K(n=>e.clickSeeQs(t),[`prevent`])},`查看趋势`,8,re))]),P(`div`,ae,[t.clickSeePdLoading?(R(),N(`span`,se,`查询中...`)):(R(),N(`a`,{key:0,onClick:K(n=>e.clickSeePd(t),[`prevent`])},`查看商品`,8,oe))])])]),_:1},8,[`columns`,`data`,`onOnSortChange`,`onOnSelectionChange`]),I(b,{modelValue:i.table.page,"onUpdate:modelValue":[t[5]||=e=>i.table.page=e,t[6]||=()=>{a.getTableData()}],sticky:``},null,8,[`modelValue`])])),[[w,e.loading.page]]),I(x,{ref:`WordTrendModal`},null,512),I(S,{ref:`WordProductModal`},null,512),I(C,{modelValue:e.modal.group.show,"onUpdate:modelValue":t[7]||=t=>e.modal.group.show=t,storeId:e.search.store,onOk:t[8]||=()=>{e.$refs.add2store.reload()}},null,8,[`modelValue`,`storeId`])])}var te,q,J,Y,X,Z,Q,ne,re,ie,ae,oe,se,ce;function le(){return(le=e((()=>{d(),n(),s(),t(),g(),b(),D(),_(),l(),a(),te={name:`KeywordCar`,components:{KeywordGroupModal:r,WordTrendModal:o,WordProductModal:m,DxbAdd2StoreOfStore:u},mixins:[i],data(){return{keywordType:`car-words`,keywordTypeName:`直通车关键词`,searchType:`1`,table:{column:[{type:`selection`,width:60,align:`center`,fixed:`left`},{title:`搜索词`,key:`keyword`,slot:`keyword`,fixed:`left`,align:`left`,minWidth:200},{title:`翻译词`,key:`keywordCn`,fixed:`left`,align:`left`,minWidth:200}
1,{title:`30天搜索热度`,key:`searchLevel`,slot:`search`,align:`center`,renderHeader:y(`反映在过去30天内,关键词被海外买家搜索次数的图形化指标。进度条越长,搜索热度越大;反之,则越小。坡度指数表示统计周期内流量变化趋势。`,!0),sortable:`custom`,minWidth:120},{title:`行业竞争度`,key:`competitionLevel`,slot:`competition`,align:`center`,renderHeader:y(`指速卖通直通车客户针对某关键词参与竞价的激烈程度。数值越大,代表同行对该词的关注程度越高、竞争度越激烈。您可以结合关键词竞争度与自己的商品预算情况,侧重选取一些潜在商业价值较高、同行较关注的词作为关键词重点竞价。竞争度已做数据处理,仅用于衡量关键词的竞争激烈程度,并不代表实际购买人数。`,!0),sortable:`custom`,minWidth:120},{title:`APP市场均价`,key:`avgPrice`,align:`center`,renderHeader:y(`市场平均价指在购买该关键词的所有推广商品中,在APP端该关键词搜索结果中获得推广位曝光的商品的平均出价。`,!0),sortable:`custom`,minWidth:120},{title:`非APP市场均价`,key:`avgPricePc`,align:`center`,renderHeader:y(`市场平均价指在购买该关键词的所有推广商品中,在非APP端(如PC端)该关键词搜索结果中获得推广位曝光的商品的平均出价。`,!0),sortable:`custom`,minWidth:120},{title:`点击率`,key:`ctr`,slot:`ctr`,align:`center`,renderHeader:y(`反映在过去30天内,关键词被海外买家搜索曝光后的点击转化率。`,!0),sortable:`custom`,minWidth:120},{title:`转化率`,key:`cvr`,slot:`cvr`,align:`center`,renderHeader:y(`反映在过去30天内,关键词被海外买家搜索曝光并点击后的下单转化率。`,!0),sortable:`custom`,minWidth:120},{title:`是否在词库`,key:`isInStore`,slot:`isInStore`,align:`center`,minWidth:100},{title:`操作`,slot:`action`,width:150,fixed:`right`,align:`center`}],data:[],page:{current:1,total:0,pageSize:10,pageSizeOpts:[10,20,50,100]}}}},mounted(){},methods:{async init(){try{let e=(await C(`https://gsp.aliexpress.com/`,`_m_h5_tk`)).split(`_`)[0];this.search._m_h5_tk=e;let t=await w();this.search.categoryList=t,this.search.category=t?.length?[t[0].value]:[],this.getTableDataFrom1()}catch{this.loading.page=!1}},getTableData(){let{_m_h5_tk:e,category:t,keyword:n}=this.search;this.loading.page=!0;let r=t[t.length-1],i=t.length;T({_m_h5_tk:e,categoryId:this.searchType==`1`?r:void 0,categoryLevel:this.searchType==`1`?i:void 0,word:this.searchType==`2`?n:void 0,sortedField:this.sort.key,sortedType:(this.sort.order==`desc`?`dsc`:`asc`).toUpperCase(),pageNum:this.table.page.current,pageSize:this.table.page.pageSize}).then(async e=>{let t=e.records||[];if(t.forEach(e=>{e.keyword=e.originWord||e.normWord,e.keywordEn=e.keyword,e.keywordCn=``,e.ctrPercent=`${e.ctr}%`,e.cvrPercent=`${e.cvr}%`,e.clickSeeQsLoading=!1,e.clickSeePdLoading=!1}),t.length){let e=await x({storeId:this.search.store,keywords:JSON.stringify(t.map(e=>e.keyword))}),n=await S({storeId:this.search.store,keywords:JSON.stringify(t.map(e=>e.keyword))});for(let r of t){let t=r.keyword;r.isInProdName=e[t]?.isT||!1,r.isInStore=n[t]||!1}}this.table.data=t,this.table.page.total=e.total||0,this.loading.page=!1}).catch(e=>{this.loading.page=!1,p.error(e.message||e)})}}},q={key:0},J={key:1},Y={key:0},X={key:1},Z={class:`flex-center flex-row-margin-small`},Q={src:`https://img.alicdn.com/tfs/TB1E7ydYYr1gK0jSZFDXXb9yVXa-90-90.png`,style:{width:`25px`}},ne={class:`flex-row-center`},re=[`onClick`],ie={key:1,class:`disabled`},ae={class:`flex-row-center`},oe=[`onClick`],se={key:1,class:`disabled`},ce=h(te,[[`render`,ee]])})))()}function ue(e,t,n,r,i,a){let o=B(`DxbShopSelect`),s=B(`DxbLabelItem`),c=B(`Option`),l=B(`Select`),u=B(`Cascader`),d=B(`DxbSearchWraper`),f=B(`Icon`),p=B(`Button`),m=B(`DxbAdd2StoreOfStore`),h=B(`DropdownItem`),g=B(`DropdownMenu`),_=B(`Dropdown`),v=B(`DxbBtnBar`),y=B(`Tag`),b=B(`Table`),x=B(`DxbPage`),S=B(`WordTrendModal`),C=B(`WordProductModal`),w=B(`KeywordGroupModal`),T=V(`loading`);
1return R(),N(`div`,null,[I(d,{inline:``},{default:W(()=>[I(s,null,{default:W(()=>[I(o,{modelValue:e.search.store,"onUpdate:modelValue":[t[0]||=t=>e.search.store=t,e.changeStore]},null,8,[`modelValue`,`onUpdate:modelValue`])]),_:1}),I(s,{label:`时间范围`,suffix:``},{default:W(()=>[I(l,{modelValue:e.search.dateType,"onUpdate:modelValue":t[1]||=t=>e.search.dateType=t,onOnChange:t[2]||=t=>e.getTableDataFrom1()},{default:W(()=>[I(c,{value:`recent7`},{default:W(()=>[...t[11]||=[F(` 最近7天 `,-1)]]),_:1}),I(c,{value:`recent30`},{default:W(()=>[...t[12]||=[F(` 最近30天 `,-1)]]),_:1})]),_:1},8,[`modelValue`])]),_:1}),I(s,{label:`类目`,suffix:``},{default:W(()=>[I(u,{modelValue:e.search.category,"onUpdate:modelValue":t[3]||=t=>e.search.category=t,data:e.search.categoryList,"change-on-select":``,style:{"min-width":`150px`,width:`100%`},onOnChange:t[4]||=t=>e.$nextTick(()=>{e.getTableDataFrom1()})},null,8,[`modelValue`,`data`])]),_:1}),I(s,{label:`国家`,suffix:``},{default:W(()=>[I(l,{modelValue:e.search.country,"onUpdate:modelValue":t[5]||=t=>e.search.country=t,transfer:``,onOnChange:t[6]||=t=>e.getTableDataFrom1()},{default:W(()=>[(R(!0),N(A,null,z(e.search.countryList,(e,t)=>(R(),j(c,{key:t,value:e.value},{default:W(()=>[F(H(e.label),1)]),_:2},1032,[`value`]))),128))]),_:1},8,[`modelValue`])]),_:1})]),_:1}),n.isImportModal?M(``,!0):(R(),j(v,{key:0,class:`sticky-bar`},{default:W(()=>[I(m,{ref:`add2store`,storeId:e.search.store,onChange:e.handleAdd2Store},{default:W(()=>[I(p,{type:`primary`},{default:W(()=>[t[13]||=P(`span`,null,`加入词库`,-1),I(f,{type:`ios-arrow-down`})]),_:1})]),_:1},8,[`storeId`,`onChange`]),I(_,{transfer:``,onOnClick:e.doExport},{list:W(()=>[I(g,null,{default:W(()=>[I(h,{name:`select`},{default:W(()=>[...t[16]||=[F(` 导出选中 `,-1)]]),_:1}),I(h,{name:`all`},{default:W(()=>[...t[17]||=[F(` 导出所有 `,-1)]]),_:1})]),_:1})]),default:W(()=>[I(p,{loading:e.loading.export},{default:W(()=>[e.loading.export?(R(),N(A,{key:1},[t[15]||=P(`span`,null,`正在导出`,-1),e.loading.export&&e.loading.exportTotal?(R(),N(`span`,fe,`(第`+H(e.loading.exportCurrent)+`/共`+H(e.loading.exportTotal)+`页)`,1)):M(``,!0)],64)):(R(),N(A,{key:0},[t[14]||=P(`span`,null,`导出`,-1),I(f,{type:`ios-arrow-down`})],64))]),_:1},8,[`loading`])]),_:1},8,[`onOnClick`])]),_:1})),G((R(),N(`div`,null,[I(b,{ref:`table`,size:`small`,columns:i.table.column,data:i.table.data,onOnSortChange:e.tableSortChange,onOnSelectionChange:e.setTableSelect},{keyword:W(({row:e,column:t,index:n})=>[P(`div`,pe,[P(`p`,null,H(e.keyword),1),G(P(`img`,me,null,512),[[U,e.isInProdName]])])]),isBrandWord:W(({row:e,column:t,index:n})=>[e.isBrandWord==`Y`?(R(),N(`span`,he,H(e.isBrandWord),1)):(R(),N(`span`,ge,H(e.isBrandWord),1))]),searchCookieCnt:W(({row:t,column:n,index:r})=>[P(`div`,null,[P(`div`,_e,H(t.searchCookieCnt),1),P(`div`,ve,[I(y,{color:e.colorBg(t.searchCookieCntChainRatio),style:{"min-width":`60px`}},{default:W(()=>[P(`span`,{style:L(e.colorFont(t.searchCookieCntChainRatio))},H(e.$fTool.percent(t.searchCookieCntChainRatio)),5)]),_:2},1032,[`color`])])])]),searchCnt:W(({row:t,column:n,index:r})=>[P(`div`,null,[P(`div`,ye,H(t.searchCnt),1),P(`div`,be,[I(y,{color:e.colorBg(t.searchCntChainRatio),style:{"min-width":`60px`}},{default:W(()=>[P(`span`,{style:L(e.colorFont(t.searchCntChainRatio))},H(e.$fTool.percent(t.searchCntChainRatio)),5)]),_:2},1032,[`color`])])])]),clickRate:W(({row:t,column:n,index:r})=>[P(`div`,null,[P(`div`,xe,H(t.clickRate),1),P(`div`,Se,[I(y,{color:e.colorBg(t.clickRateChainRatio),style:{"min-width":`60px`}},{default:W(()=>[P(`span`,{style:L(e.colorFont(t.clickRateChainRatio))},H(e.$fTool.percent(t.clickRateChainRatio)),5)]),_:2},1032,[`color`])])])]),transRate:W(({row:t,column:n,index:r})=>[P(`div`,null,[P(`div`,Ce,H(t.transRate),1),P(`div`,we,[I(y,{color:e.colorBg(t.transRateChainRatio),style:{"min-width":`60px`}},{default:W(()=>[P(`span`,{style:L(e.colorFont(t.transRateChainRatio))},H(e.$fTool.percent(t.transRateChainRatio)),5)]),_:2},1032,[`color`])])])]),splyDemRate:W(({row:t,column:n,index:r})=>[P(`div`,null,[P(`div`,Te,H(t.splyDemRate),1),P(`div`,Ee,[I(y,{color:e.colorBg(t.splyDemRateChainRatio),style:{"min-width":`60px`}},{default:W(()=>[P(`span`,{style:L(e.colorFont(t.splyDemRateChainRatio))},H(e.$fTool.percent(t.splyDemRateChainRatio)),5)]),_:2},1032,[`color`])])])]),searchCntRiseIndex:W(({row:t,column:n,index:r})=>[P(`div`,null,[P(`div`,De,H(e.$fTool.percent(t.searchCntRiseIndex)),1),P(`div`,Oe,[I(y,{color:e.colorBg(t.searchCntRiseIndexChainRatio),style:{"min-width":`60px`}},{default:W(()=>[P(`span`,{style:L(e.colorFont(t.searchCntRiseIndexChainRatio))},H(e.$fTool.percent(t.searchCntRiseIndexChainRatio)),5)]),_:2},1032,[`color`])])])]),exposeProdRate:W(({row:t,column:n,index:r})=>[P(`div`,null,[P(`div`,ke,H(e.$fTool.percent(t.exposeProdRate)),1),P(`div`,Ae,[I(y,{color:e.colorBg(t.exposeProdRateChainRatio),style:{"min-width":`60px`}},{default:W(()=>[P(`span`,{style:L(e.colorFont(t.exposeProdRateChainRatio))},H(e.$fTool.percent(t.exposeProdRateChainRatio)),5)]),_:2},1032,[`color`])])])]),exposeSellerRate:W(({row:t,column:n,index:r})=>[P(`div`,null,[P(`div`,je,H(e.$fTool.percent(t.exposeSellerRate)),1),P(`div`,Me,[I(y,{color:e.colorBg(t.exposeSellerRateChainRatio),style:{"min-width":`60px`}},{default:W(()=>[P(`span`,{style:L(e.colorFont(t.exposeSellerRateChainRatio))},H(e.$fTool.percent(t.exposeSellerRateChainRatio)),5)]),_:2},1032,[`color`])])])]),isInStore:W(({row:e,column:t,index:n})=>[P(`div`,null,[I(y,{color:`${e.isInStore?`green`:`default`}`},{default:W(()=>
1[P(`span`,null,H(e.isInStore?`是`:`否`),1)]),_:2},1032,[`color`])])]),action:W(({row:t,column:n,index:r})=>[P(`div`,null,[P(`div`,Ne,[t.clickSeeQsLoading?(R(),N(`span`,Fe,`查询中...`)):(R(),N(`a`,{key:0,onClick:K(n=>e.clickSeeQs(t),[`prevent`])},`查看趋势`,8,Pe))]),P(`div`,Ie,[t.clickSeePdLoading?(R(),N(`span`,Re,`查询中...`)):(R(),N(`a`,{key:0,onClick:K(n=>e.clickSeePd(t),[`prevent`])},`查看商品`,8,Le))])])]),_:1},8,[`columns`,`data`,`onOnSortChange`,`onOnSelectionChange`]),I(x,{modelValue:i.table.page,"onUpdate:modelValue":[t[7]||=e=>i.table.page=e,t[8]||=()=>{a.getTableData()}],sticky:``},null,8,[`modelValue`])])),[[T,e.loading.page]]),I(S,{ref:`WordTrendModal`},null,512),I(C,{ref:`WordProductModal`},null,512),I(w,{modelValue:e.modal.group.show,"onUpdate:modelValue":t[9]||=t=>e.modal.group.show=t,storeId:e.search.store,onOk:t[10]||=()=>{e.$refs.add2store.reload()}},null,8,[`modelValue`,`storeId`])])}var de,fe,pe,me,he,ge,_e,ve,ye,be,xe,Se,Ce,we,Te,Ee,De,Oe,ke,Ae,je,Me,Ne,Pe,Fe,Ie,Le,Re,ze;function Be(){return(Be=e((()=>{d(),n(),s(),t(),g(),b(),f(),D(),_(),a(),de={name:`KeywordHot`,components:{KeywordGroupModal:r,DxbAdd2StoreOfStore:u,WordProductModal:m,WordTrendModal:o},mixins:[i],props:{isImportModal:{type:Boolean,default:!1}},data(){return{keywordType:`hot-words`,keywordTypeName:`热搜词`,table:{column:[{type:`selection`,width:60,align:`center`,fixed:`left`},{title:`搜索词`,key:`keyword`,align:`left`,fixed:`left`,minWidth:150},{title:`翻译词(英文)`,key:`targetKeywordEn`,align:`left`,fixed:`left`,minWidth:150},{title:`翻译词(中文)`,key:`targetKeywordCn`,align:`left`,fixed:`left`,minWidth:150},{title:`是否品牌词`,key:`isBrandWord`,slot:`isBrandWord`,align:`center`,minWidth:100},{title:`搜索人气`,key:`searchCookieCnt`,slot:`searchCookieCnt`,align:`center`,renderHeader:y(`统计时间内,所选类目下搜索人数的指数化指标。`,!0),sortable:`custom`,minWidth:100},{title:`搜索指数`,key:`searchCnt`,slot:`searchCnt`,align:`center`,renderHeader:y(`统计时间内,所选类目下搜索次数的指数化指标。`,!0),sortable:`custom`,minWidth:100},{title:`点击率`,key:`clickRate`,slot:`clickRate`,align:`center`,renderHeader:y(`商品在网站搜索结果页面曝光后被点击的人数/商品在网站搜索结果页面曝光人数。`,!0),sortable:`custom`,minWidth:100},{title:`成交转化率`,key:`transRate`,slot:`transRate`,align:`center`,renderHeader:y(`支付买家数/访客数,即来访客户转化为支付买家的比例。`,!0),sortable:`custom`,minWidth:100},{title:`竞争指数`,key:`splyDemRate`,slot:`splyDemRate`,align:`center`,renderHeader:y(`某个词的竞争激烈程度的指数化`,!0),sortable:`custom`,minWidth:100},{title:`是否在词库`,key:`isInStore`,slot:`isInStore`,align:`center`,minWidth:100},{title:`操作`,slot:`action`,width:150,fixed:`right`,align:`center`}],data:[],page:{current:1,total:0,pageSize:10,pageSizeOpts:[10,20,50,100]}}}},methods:{async init(){try{let e=(await C(`https://gsp.aliexpress.com/`,`_m_h5_tk`)).split(`_`)[0],t=O(e),n=E(e),r=await Promise.all([t,n]);this.search._m_h5_tk=e,this.search.categoryList=r[0].options,this.search.category=[Number(r[0].value)],this.search.countryList=r[1].options,this.search.country=r[1].value,this.getTableDataFrom1()}catch{this.loading.page=!1}},async getFetchData(e){let{_m_h5_tk:t,category:n,country:r,translateToEnglish:i,dateType:a}=this.search,o={_m_h5_tk:t,categoryId:n.at(-1),country:r,translateToEnglish:i,statDate:``,dateType:a,service:this.keywordType,current:e,pageSize:this.table.page.pageSize,sort:this.sort.key?{[this.sort.key]:this.sort.order}:null},s=await k({...o,translateToEnglish:!1});await v(1e3);let l=await k({...o,translateToEnglish:!0}),u=s.records||[],d=(l.records||[]).reduce((e,t)=>(e[t.keyword]=t.targetKeyword,e),{});if(u.forEach(e=>{e.targetKeywordCn=e.targetKeyword,e.targetKeywordEn=d[e.keyword]||``}),u.forEach(e=>{e.keywordEn=i?e.targetKeyword:``,e.keywordCn=i?``:e.targetKeyword,e.clickSeeQsLoading=!1,e.clickSeePdLoading=!1}),u.length){let e=await x({storeId:this.search.store,keywords:JSON.stringify(u.map(e=>e.keyword))}).catch(()=>null),t=await S({storeId:this.search.store,keywords:JSON.stringify(u.map(e=>e.keyword))}).catch(()=>null);for(let n of u){let r=n.keyword;n.isInProdName=c(e,`${r}.isT`,!1),n.isInStore=c(t,r,!1)}}return{data:u,total:s.total}},async getTableData(){try{this.loading.page=!0;let{total:e,data:t}=await this.getFetchData(this.table.page.current);this.table.data=t,this.table.page.total=e||0}finally{this.loading.page=!1}}}},fe={key:0},pe={class:`flex-center flex-row-margin-small`},me={src:`https://img.alicdn.com/tfs/TB1E7ydYYr1gK0jSZFDXXb9yVXa-90-90.png`,style:{width:`25px`}},he={key:0,style:{color:`var(--success-color)`}},ge={key:1,style:{color:`var(--error-color)`}},_e={class:`flex-row-center`},ve={class:`flex-row-center`},ye={class:`flex-row-center`},be={class:`flex-row-center`},xe={class:`flex-row-center`},Se={class:`flex-row-center`},Ce={class:`flex-row-center`},we={class:`flex-row-center`},Te={class:`flex-row-center`},Ee={class:`flex-row-center`},De={class:`flex-row-center`},Oe={class:`flex-row-center`},ke={class:`flex-row-center`},Ae={class:`flex-row-center`},je={class:`flex-row-center`},Me={class:`flex-row-center`},Ne={class:`flex-row-center`},Pe=[`onClick`],Fe={key:1,class:`disabled`},Ie={class:`flex-row-center`},Le=[`onClick`],Re={key:1,class:`disabled`},ze=h(de,[[`render`,ue]])})))()}function Ve(e,t,n,r,i,a){let o=B(`DxbShopSelect`),s=B(`DxbLabelItem`),c=B(`Option`),l=B(`Select`),u=B(`Cascader`),d=B(`DxbSearchWra
1per`),f=B(`Icon`),p=B(`Button`),m=B(`DxbAdd2StoreOfStore`),h=B(`DropdownItem`),g=B(`DropdownMenu`),_=B(`Dropdown`),v=B(`DxbBtnBar`),y=B(`Tag`),b=B(`Table`),x=B(`DxbPage`),S=B(`WordTrendModal`),C=B(`WordProductModal`),w=B(`KeywordGroupModal`),T=V(`loading`);return R(),N(`div`,null,[I(d,{inline:``},{default:W(()=>[I(s,null,{default:W(()=>[I(o,{modelValue:e.search.store,"onUpdate:modelValue":[t[0]||=t=>e.search.store=t,e.changeStore]},null,8,[`modelValue`,`onUpdate:modelValue`])]),_:1}),I(s,{label:`时间范围`,suffix:``},{default:W(()=>[I(l,{modelValue:e.search.dateType,"onUpdate:modelValue":t[1]||=t=>e.search.dateType=t,onOnChange:t[2]||=t=>e.getTableDataFrom1()},{default:W(()=>[I(c,{value:`recent7`},{default:W(()=>[...t[11]||=[F(` 最近7天 `,-1)]]),_:1}),I(c,{value:`recent30`},{default:W(()=>[...t[12]||=[F(` 最近30天 `,-1)]]),_:1})]),_:1},8,[`modelValue`])]),_:1}),I(s,{label:`类目`,suffix:``},{default:W(()=>[I(u,{modelValue:e.search.category,"onUpdate:modelValue":t[3]||=t=>e.search.category=t,data:e.search.categoryList,"change-on-select":``,style:{"min-width":`150px`,width:`100%`},onOnChange:t[4]||=t=>e.$nextTick(()=>{e.getTableDataFrom1()})},null,8,[`modelValue`,`data`])]),_:1}),I(s,{label:`国家`,suffix:``},{default:W(()=>[I(l,{modelValue:e.search.country,"onUpdate:modelValue":t[5]||=t=>e.search.country=t,transfer:``,onOnChange:t[6]||=t=>e.getTableDataFrom1()},{default:W(()=>[(R(!0),N(A,null,z(e.search.countryList,(e,t)=>(R(),j(c,{key:t,value:e.value},{default:W(()=>[F(H(e.label),1)]),_:2},1032,[`value`]))),128))]),_:1},8,[`modelValue`])]),_:1})]),_:1}),n.isImportModal?M(``,!0):(R(),j(v,{key:0,class:`sticky-bar`},{default:W(()=>[I(m,{ref:`add2store`,storeId:e.search.store,onChange:e.handleAdd2Store},{default:W(()=>[I(p,{type:`primary`},{default:W(()=>[t[13]||=P(`span`,null,`加入词库`,-1),I(f,{type:`ios-arrow-down`})]),_:1})]),_:1},8,[`storeId`,`onChange`]),I(_,{transfer:``,onOnClick:e.doExport},{list:W(()=>[I(g,null,{default:W(()=>[I(h,{name:`select`},{default:W(()=>[...t[16]||=[F(` 导出选中 `,-1)]]),_:1}),I(h,{name:`all`},{default:W(()=>[...t[17]||=[F(` 导出所有 `,-1)]]),_:1})]),_:1})]),default:W(()=>[I(p,{loading:e.loading.export},{default:W(()=>[e.loading.export?(R(),N(A,{key:1},[t[15]||=P(`span`,null,`正在导出`,-1),e.loading.export&&e.loading.exportTotal?(R(),N(`span`,Ue,`(第`+H(e.loading.exportCurrent)+`/共`+H(e.loading.exportTotal)+`页)`,1)):M(``,!0)],64)):(R(),N(A,{key:0},[t[14]||=P(`span`,null,`导出`,-1),I(f,{type:`ios-arrow-down`})],64))]),_:1},8,[`loading`])]),_:1},8,[`onOnClick`])]),_:1})),G((R(),N(`div`,null,[I(b,{ref:`table`,size:`small`,columns:i.table.column,data:i.table.data,onOnSortChange:e.tableSortChange,onOnSelectionChange:e.setTableSelect},{keyword:W(({row:e,column:t,index:n})=>[P(`div`,We,[P(`p`,null,H(e.keyword),1),G(P(`img`,Ge,null,512),[[U,e.isInProdName]])])]),isBrandWord:W(({row:e,column:t,index:n})=>[e.isBrandWord==`Y`?(R(),N(`span`,Ke,H(e.isBrandWord),1)):(R(),N(`span`,qe,H(e.isBrandWord),1))]),searchCookieCnt:W(({row:t,column:n,index:r})=>[P(`div`,null,[P(`div`,Je,H(t.searchCookieCnt),1),P(`div`,Ye,[I(y,{color:e.colorBg(t.searchCookieCntChainRatio),style:{"min-width":`60px`}},{default:W(()=>[P(`span`,{style:L(e.colorFont(t.searchCookieCntChainRatio))},H(e.$fTool.percent(t.searchCookieCntChainRatio)),5)]),_:2},1032,[`color`])])])]),searchCnt:W(({row:t,column:n,index:r})=>[P(`div`,null,[P(`div`,Xe,H(t.searchCnt),1),P(`div`,Ze,[I(y,{color:e.colorBg(t.searchCntChainRatio),style:{"min-width":`60px`}},{default:W(()=>[P(`span`,{style:L(e.colorFont(t.searchCntChainRatio))},H(e.$fTool.percent(t.searchCntChainRatio)),5)]),_:2},1032,[`color`])])])]),clickRate:W(({row:t,column:n,index:r})=>[P(`div`,null,[P(`div`,Qe,H(t.clickRate),1),P(`div`,$e,[I(y,{color:e.colorBg(t.clickRateChainRatio),style:{"min-width":`60px`}},{default:W(()=>[P(`span`,{style:L(e.colorFont(t.clickRateChainRatio))},H(e.$fTool.percent(t.clickRateChainRatio)),5)]),_:2},1032,[`color`])])])]),transRate:W(({row:t,column:n,index:r})=>[P(`div`,null,[P(`div`,et,H(t.transRate),1),P(`div`,tt,[I(y,{color:e.colorBg(t.transRateChainRatio),style:{"min-width":`60px`}},{default:W(()=>[P(`span`,{style:L(e.colorFont(t.transRateChainRatio))},H(e.$fTool.percent(t.transRateChainRatio)),5)]),_:2},1032,[`color`])])])]),splyDemRate:W(({row:t,column:n,index:r})=>[P(`div`,null,[P(`div`,nt,H(t.splyDemRate),1),P(`div`,rt,[I(y,{color:e.colorBg(t.splyDemRateChainRatio),style:{"min-width":`60px`}},{default:W(()=>[P(`span`,{style:L(e.colorFont(t.splyDemRateChainRatio))},H(e.$fTool.percent(t.splyDemRateChainRatio)),5)]),_:2},1032,[`color`])])])]),searchCntRiseIndex:W(({row:t,column:n,index:r})=>[P(`div`,null,[P(`div`,it,H(e.$fTool.percent(t.searchCntRiseIndex)),1),P(`div`,at,[I(y,{color:e.colorBg(t.searchCntRiseIndexChainRatio),style:{"min-width":`60px`}},{default:W(()=>[P(`span`,{style:L(e.colorFont(t.searchCntRiseIndexChainRatio))},H(e.$fTool.percent(t.searchCntRiseIndexChainRatio)),5)]),_:2},1032,[`color`])])])]),exposeProdRate:W(({row:t,column:n,index:r})=>[P(`div`,null,[P(`div`,ot,H(e.$fTool.percent(t.exposeProdRate)),1),P(`div`,st,[I(y,{color:e.colorBg(t.exposeProdRateChainRatio),style:{"min-width":`60px`}},{default:W(()=>[P(`span`,{style:L(e.colorFont(t.exposeProdRateChainRatio))},H(e.$fTool.percent(t.exposeProdRateChainRatio)),5)]),_:2},1032,[`color`])])])]),exposeSellerRate:W(({row:t,column:n,index:r})=>[P(`div`,null,[P(`div`,ct,H(e.$fTool.percent(t.exposeSellerRate)),1),P(`div`,lt,[I(y,{color:e.colorBg(t.exposeSellerRateChainRatio),style:{"min-width":`60px`}},{default:W(()=>[P(`span`,{style:L(e.colorFont(t.exposeSellerRateChainRatio))},H(e.$fTool.percent(t.exposeSellerRateChainRatio)),5)]),_:2},1032,[`color`])])])]),isInStore:W(({row:e,column:t,index:n})=>[P(`div`,null,[I(y,{color:`${e.isInStore?`green`:`default`}`},{default:W(()=>
1[P(`span`,null,H(e.isInStore?`是`:`否`),1)]),_:2},1032,[`color`])])]),action:W(({row:t,column:n,index:r})=>[P(`div`,null,[P(`div`,ut,[t.clickSeeQsLoading?(R(),N(`span`,ft,`查询中...`)):(R(),N(`a`,{key:0,onClick:K(n=>e.clickSeeQs(t),[`prevent`])},`查看趋势`,8,dt))]),P(`div`,pt,[t.clickSeePdLoading?(R(),N(`span`,ht,`查询中...`)):(R(),N(`a`,{key:0,onClick:K(n=>e.clickSeePd(t),[`prevent`])},`查看商品`,8,mt))])])]),_:1},8,[`columns`,`data`,`onOnSortChange`,`onOnSelectionChange`]),I(x,{modelValue:i.table.page,"onUpdate:modelValue":[t[7]||=e=>i.table.page=e,t[8]||=()=>{a.getTableData()}],sticky:``},null,8,[`modelValue`])])),[[T,e.loading.page]]),I(S,{ref:`WordTrendModal`},null,512),I(C,{ref:`WordProductModal`},null,512),I(w,{modelValue:e.modal.group.show,"onUpdate:modelValue":t[9]||=t=>e.modal.group.show=t,storeId:e.search.store,onOk:t[10]||=()=>{e.$refs.add2store.reload()}},null,8,[`modelValue`,`storeId`])])}var He,Ue,We,Ge,Ke,qe,Je,Ye,Xe,Ze,Qe,$e,et,tt,nt,rt,it,at,ot,st,ct,lt,ut,dt,ft,pt,mt,ht,gt;function _t(){return(_t=e((()=>{d(),n(),s(),t(),g(),b(),f(),D(),_(),a(),He={name:`KeywordLess`,components:{KeywordGroupModal:r,DxbAdd2StoreOfStore:u,WordProductModal:m,WordTrendModal:o},mixins:[i],props:{isImportModal:{type:Boolean,default:!1}},data(){return{keywordType:`less-words`,keywordTypeName:`零少词`,table:{column:[{type:`selection`,width:60,align:`center`,fixed:`left`},{title:`搜索词`,key:`keyword`,align:`left`,fixed:`left`,minWidth:150},{title:`翻译词(英文)`,key:`targetKeywordEn`,align:`left`,fixed:`left`,minWidth:150},{title:`翻译词(中文)`,key:`targetKeywordCn`,align:`left`,fixed:`left`,minWidth:150},{title:`是否品牌词`,key:`isBrandWord`,slot:`isBrandWord`,align:`center`,minWidth:100},{title:`搜索人气`,key:`searchCookieCnt`,slot:`searchCookieCnt`,align:`center`,renderHeader:y(`统计时间内,所选类目下搜索人数的指数化指标。`,!0),sortable:`custom`,minWidth:100},{title:`搜索指数`,key:`searchCnt`,slot:`searchCnt`,align:`center`,renderHeader:y(`统计时间内,所选类目下搜索次数的指数化指标。`,!0),sortable:`custom`,minWidth:100},{title:`商品增长幅度`,key:`exposeProdRate`,slot:`exposeProdRate`,align:`center`,renderHeader:y(`曝光商品数与前一个时间窗口相比的飙升幅度。`,!0),sortable:`custom`,minWidth:100},{title:`是否在词库`,key:`isInStore`,slot:`isInStore`,align:`center`,minWidth:100},{title:`操作`,slot:`action`,width:150,fixed:`right`,align:`center`}],data:[],page:{current:1,total:0,pageSize:10,pageSizeOpts:[10,20,50,100]}}}},methods:{async init(){try{let e=(await C(`https://gsp.aliexpress.com/`,`_m_h5_tk`)).split(`_`)[0],t=O(e),n=E(e),r=await Promise.all([t,n]);this.search._m_h5_tk=e,this.search.categoryList=r[0].options,this.search.category=[Number(r[0].value)],this.search.countryList=r[1].options,this.search.country=r[1].value,this.getTableDataFrom1()}catch{this.loading.page=!1}},async getFetchData(e){let{_m_h5_tk:t,category:n,country:r,translateToEnglish:i,dateType:a}=this.search,o={_m_h5_tk:t,categoryId:n.at(-1),country:r,translateToEnglish:i,statDate:``,dateType:a,service:this.keywordType,current:e,pageSize:this.table.page.pageSize,sort:this.sort.key?{[this.sort.key]:this.sort.order}:null},s=await k({...o,translateToEnglish:!1});await v(1e3);let l=await k({...o,translateToEnglish:!0}),u=s.records||[],d=(l.records||[]).reduce((e,t)=>(e[t.keyword]=t.targetKeyword,e),{});if(u.forEach(e=>{e.targetKeywordCn=e.targetKeyword,e.targetKeywordEn=d[e.keyword]||``}),u.forEach(e=>{e.keywordEn=i?e.targetKeyword:``,e.keywordCn=i?``:e.targetKeyword,e.clickSeeQsLoading=!1,e.clickSeePdLoading=!1}),u.length){let e=await x({storeId:this.search.store,keywords:JSON.stringify(u.map(e=>e.keyword))}).catch(()=>null),t=await S({storeId:this.search.store,keywords:JSON.stringify(u.map(e=>e.keyword))}).catch(()=>null);for(let n of u){let r=n.keyword;n.isInProdName=c(e,`${r}.isT`,!1),n.isInStore=c(t,r,!1)}}return{data:u,total:s.total}},async getTableData(){try{this.loading.page=!0;let{total:e,data:t}=await this.getFetchData(this.table.page.current);this.table.data=t,this.table.page.total=e||0}finally{this.loading.page=!1}}}},Ue={key:0},We={class:`flex-center flex-row-margin-small`},Ge={src:`https://img.alicdn.com/tfs/TB1E7ydYYr1gK0jSZFDXXb9yVXa-90-90.png`,style:{width:`25px`}},Ke={key:0,style:{color:`var(--success-color)`}},qe={key:1,style:{color:`var(--error-color)`}},Je={class:`flex-row-center`},Ye={class:`flex-row-center`},Xe={class:`flex-row-center`},Ze={class:`flex-row-center`},Qe={class:`flex-row-center`},$e={class:`flex-row-center`},et={class:`flex-row-center`},tt={class:`flex-row-center`},nt={class:`flex-row-center`},rt={class:`flex-row-center`},it={class:`flex-row-center`},at={class:`flex-row-center`},ot={class:`flex-row-center`},st={class:`flex-row-center`},ct={class:`flex-row-center`},lt={class:`flex-row-center`},ut={class:`flex-row-center`},dt=[`onClick`],ft={key:1,class:`disabled`},pt={class:`flex-row-center`},mt=[`onClick`],ht={key:1,class:`disabled`},gt=h(He,[[`render`,Ve]])})))()}function vt(e,t,n,r,i,a){let o=B(`DxbShopSelect`),s=B(`DxbLabelItem`),c=B(`Option`),l=B(`Select`),u=B(`Cascader`),d=B(`DxbSearchWra
1per`),f=B(`Icon`),p=B(`Button`),m=B(`DxbAdd2StoreOfStore`),h=B(`DropdownItem`),g=B(`DropdownMenu`),_=B(`Dropdown`),v=B(`DxbBtnBar`),y=B(`Tag`),b=B(`Table`),x=B(`DxbPage`),S=B(`WordTrendModal`),C=B(`WordProductModal`),w=B(`KeywordGroupModal`),T=V(`loading`);return R(),N(`div`,null,[I(d,{inline:``},{default:W(()=>[I(s,null,{default:W(()=>[I(o,{modelValue:e.search.store,"onUpdate:modelValue":[t[0]||=t=>e.search.store=t,e.changeStore]},null,8,[`modelValue`,`onUpdate:modelValue`])]),_:1}),I(s,{label:`时间范围`,suffix:``},{default:W(()=>[I(l,{modelValue:e.search.dateType,"onUpdate:modelValue":t[1]||=t=>e.search.dateType=t,onOnChange:t[2]||=t=>e.getTableDataFrom1()},{default:W(()=>[I(c,{value:`recent7`},{default:W(()=>[...t[11]||=[F(` 最近7天 `,-1)]]),_:1}),I(c,{value:`recent30`},{default:W(()=>[...t[12]||=[F(` 最近30天 `,-1)]]),_:1})]),_:1},8,[`modelValue`])]),_:1}),I(s,{label:`类目`,suffix:``},{default:W(()=>[I(u,{modelValue:e.search.category,"onUpdate:modelValue":t[3]||=t=>e.search.category=t,data:e.search.categoryList,"change-on-select":``,style:{"min-width":`150px`,width:`100%`},onOnChange:t[4]||=t=>e.$nextTick(()=>{e.getTableDataFrom1()})},null,8,[`modelValue`,`data`])]),_:1}),I(s,{label:`国家`,suffix:``},{default:W(()=>[I(l,{modelValue:e.search.country,"onUpdate:modelValue":t[5]||=t=>e.search.country=t,transfer:``,onOnChange:t[6]||=t=>e.getTableDataFrom1()},{default:W(()=>[(R(!0),N(A,null,z(e.search.countryList,(e,t)=>(R(),j(c,{key:t,value:e.value},{default:W(()=>[F(H(e.label),1)]),_:2},1032,[`value`]))),128))]),_:1},8,[`modelValue`])]),_:1})]),_:1}),n.isImportModal?M(``,!0):(R(),j(v,{key:0,class:`sticky-bar`},{default:W(()=>[I(m,{ref:`add2store`,storeId:e.search.store,onChange:e.handleAdd2Store},{default:W(()=>[I(p,{type:`primary`},{default:W(()=>[t[13]||=P(`span`,null,`加入词库`,-1),I(f,{type:`ios-arrow-down`})]),_:1})]),_:1},8,[`storeId`,`onChange`]),I(_,{transfer:``,onOnClick:e.doExport},{list:W(()=>[I(g,null,{default:W(()=>[I(h,{name:`select`},{default:W(()=>[...t[16]||=[F(` 导出选中 `,-1)]]),_:1}),I(h,{name:`all`},{default:W(()=>[...t[17]||=[F(` 导出所有 `,-1)]]),_:1})]),_:1})]),default:W(()=>[I(p,{loading:e.loading.export},{default:W(()=>[e.loading.export?(R(),N(A,{key:1},[t[15]||=P(`span`,null,`正在导出`,-1),e.loading.export&&e.loading.exportTotal?(R(),N(`span`,bt,`(第`+H(e.loading.exportCurrent)+`/共`+H(e.loading.exportTotal)+`页)`,1)):M(``,!0)],64)):(R(),N(A,{key:0},[t[14]||=P(`span`,null,`导出`,-1),I(f,{type:`ios-arrow-down`})],64))]),_:1},8,[`loading`])]),_:1},8,[`onOnClick`])]),_:1})),G((R(),N(`div`,null,[I(b,{ref:`table`,size:`small`,columns:i.table.column,data:i.table.data,onOnSortChange:e.tableSortChange,onOnSelectionChange:e.setTableSelect},{keyword:W(({row:e,column:t,index:n})=>[P(`div`,xt,[P(`p`,null,H(e.keyword),1),G(P(`img`,St,null,512),[[U,e.isInProdName]])])]),isBrandWord:W(({row:e,column:t,index:n})=>[e.isBrandWord==`Y`?(R(),N(`span`,Ct,H(e.isBrandWord),1)):(R(),N(`span`,wt,H(e.isBrandWord),1))]),searchCookieCnt:W(({row:t,column:n,index:r})=>[P(`div`,null,[P(`div`,Tt,H(t.searchCookieCnt),1),P(`div`,Et,[I(y,{color:e.colorBg(t.searchCookieCntChainRatio),style:{"min-width":`60px`}},{default:W(()=>[P(`span`,{style:L(e.colorFont(t.searchCookieCntChainRatio))},H(e.$fTool.percent(t.searchCookieCntChainRatio)),5)]),_:2},1032,[`color`])])])]),searchCnt:W(({row:t,column:n,index:r})=>[P(`div`,null,[P(`div`,Dt,H(t.searchCnt),1),P(`div`,Ot,[I(y,{color:e.colorBg(t.searchCntChainRatio),style:{"min-width":`60px`}},{default:W(()=>[P(`span`,{style:L(e.colorFont(t.searchCntChainRatio))},H(e.$fTool.percent(t.searchCntChainRatio)),5)]),_:2},1032,[`color`])])])]),clickRate:W(({row:t,column:n,index:r})=>[P(`div`,null,[P(`div`,kt,H(t.clickRate),1),P(`div`,At,[I(y,{color:e.colorBg(t.clickRateChainRatio),style:{"min-width":`60px`}},{default:W(()=>[P(`span`,{style:L(e.colorFont(t.clickRateChainRatio))},H(e.$fTool.percent(t.clickRateChainRatio)),5)]),_:2},1032,[`color`])])])]),transRate:W(({row:t,column:n,index:r})=>[P(`div`,null,[P(`div`,jt,H(t.transRate),1),P(`div`,Mt,[I(y,{color:e.colorBg(t.transRateChainRatio),style:{"min-width":`60px`}},{default:W(()=>[P(`span`,{style:L(e.colorFont(t.transRateChainRatio))},H(e.$fTool.percent(t.transRateChainRatio)),5)]),_:2},1032,[`color`])])])]),splyDemRate:W(({row:t,column:n,index:r})=>[P(`div`,null,[P(`div`,Nt,H(t.splyDemRate),1),P(`div`,$,[I(y,{color:e.colorBg(t.splyDemRateChainRatio),style:{"min-width":`60px`}},{default:W(()=>[P(`span`,{style:L(e.colorFont(t.splyDemRateChainRatio))},H(e.$fTool.percent(t.splyDemRateChainRatio)),5)]),_:2},1032,[`color`])])])]),searchCntRiseIndex:W(({row:t,column:n,index:r})=>[P(`div`,null,[P(`div`,Pt,H(e.$fTool.percent(t.searchCntRiseIndex)),1),P(`div`,Ft,[I(y,{color:e.colorBg(t.searchCntRiseIndexChainRatio),style:{"min-width":`60px`}},{default:W(()=>[P(`span`,{style:L(e.colorFont(t.searchCntRiseIndexChainRatio))},H(e.$fTool.percent(t.searchCntRiseIndexChainRatio)),5)]),_:2},1032,[`color`])])])]),exposeProdRate:W(({row:t,column:n,index:r})=>[P(`div`,null,[P(`div`,It,H(e.$fTool.percent(t.exposeProdRate)),1),P(`div`,Lt,[I(y,{color:e.colorBg(t.exposeProdRateChainRatio),style:{"min-width":`60px`}},{default:W(()=>[P(`span`,{style:L(e.colorFont(t.exposeProdRateChainRatio))},H(e.$fTool.percent(t.exposeProdRateChainRatio)),5)]),_:2},1032,[`color`])])])]),exposeSellerRate:W(({row:t,column:n,index:r})=>[P(`div`,null,[P(`div`,Rt,H(e.$fTool.percent(t.exposeSellerRate)),1),P(`div`,zt,[I(y,{color:e.colorBg(t.exposeSellerRateChainRatio),style:{"min-width":`60px`}},{default:W(()=>[P(`span`,{style:L(e.colorFont(t.exposeSellerRateChainRatio))},H(e.$fTool.percent(t.exposeSellerRateChainRatio)),5)]),_:2},1032,[`color`])])])]),isInStore:W(({row:e,column:t,index:n})=>[P(`div`,null,[I(y,{color:`${e.isInStore?`green`:`default`}`},{default:W(()=>
1[P(`span`,null,H(e.isInStore?`是`:`否`),1)]),_:2},1032,[`color`])])]),action:W(({row:t,column:n,index:r})=>[P(`div`,null,[P(`div`,Bt,[t.clickSeeQsLoading?(R(),N(`span`,Ht,`查询中...`)):(R(),N(`a`,{key:0,onClick:K(n=>e.clickSeeQs(t),[`prevent`])},`查看趋势`,8,Vt))]),P(`div`,Ut,[t.clickSeePdLoading?(R(),N(`span`,Gt,`查询中...`)):(R(),N(`a`,{key:0,onClick:K(n=>e.clickSeePd(t),[`prevent`])},`查看商品`,8,Wt))])])]),_:1},8,[`columns`,`data`,`onOnSortChange`,`onOnSelectionChange`]),I(x,{modelValue:i.table.page,"onUpdate:modelValue":[t[7]||=e=>i.table.page=e,t[8]||=()=>{a.getTableData()}],sticky:``},null,8,[`modelValue`])])),[[T,e.loading.page]]),I(S,{ref:`WordTrendModal`},null,512),I(C,{ref:`WordProductModal`},null,512),I(w,{modelValue:e.modal.group.show,"onUpdate:modelValue":t[9]||=t=>e.modal.group.show=t,storeId:e.search.store,onOk:t[10]||=()=>{e.$refs.add2store.reload()}},null,8,[`modelValue`,`storeId`])])}var yt,bt,xt,St,Ct,wt,Tt,Et,Dt,Ot,kt,At,jt,Mt,Nt,$,Pt,Ft,It,Lt,Rt,zt,Bt,Vt,Ht,Ut,Wt,Gt,Kt;function qt(){return(qt=e((()=>{d(),n(),s(),t(),g(),b(),f(),D(),_(),a(),yt={name:`KeywordSoar`,components:{KeywordGroupModal:r,DxbAdd2StoreOfStore:u,WordProductModal:m,WordTrendModal:o},mixins:[i],props:{isImportModal:{type:Boolean,default:!1}},data(){return{keywordType:`soar-words`,keywordTypeName:`飙升词`,table:{column:[{type:`selection`,width:60,align:`center`,fixed:`left`},{title:`搜索词`,key:`keyword`,align:`left`,fixed:`left`,minWidth:150},{title:`翻译词(英文)`,key:`targetKeywordEn`,align:`left`,fixed:`left`,minWidth:150},{title:`翻译词(中文)`,key:`targetKeywordCn`,align:`left`,fixed:`left`,minWidth:150},{title:`是否品牌词`,key:`isBrandWord`,slot:`isBrandWord`,align:`center`,minWidth:100},{title:`搜索指数`,key:`searchCnt`,slot:`searchCnt`,align:`center`,renderHeader:y(`统计时间内,所选类目下搜索次数的指数化指标。`,!0),sortable:`custom`,minWidth:100},{title:`飙升幅度`,key:`searchCntRiseIndex`,slot:`searchCntRiseIndex`,align:`center`,renderHeader:y(`搜索指数与前一个时间窗口相比的飙升幅度。`,!0),sortable:`custom`,minWidth:100},{title:`商品增长幅度`,key:`exposeProdRate`,slot:`exposeProdRate`,align:`center`,renderHeader:y(`曝光商品数与前一个时间窗口相比的飙升幅度。`,!0),sortable:`custom`,minWidth:100},{title:`卖家增长幅度`,key:`exposeSellerRate`,slot:`exposeSellerRate`,align:`center`,renderHeader:y(`曝光商家数与前一个时间窗口相比的飙升幅度。`,!0),sortable:`custom`,minWidth:100},{title:`是否在词库`,key:`isInStore`,slot:`isInStore`,align:`center`,minWidth:100},{title:`操作`,slot:`action`,width:150,fixed:`right`,align:`center`}],data:[],page:{current:1,total:0,pageSize:10,pageSizeOpts:[10,20,50,100]}}}},methods:{async init(){try{let e=(await C(`https://gsp.aliexpress.com/`,`_m_h5_tk`)).split(`_`)[0],t=O(e),n=E(e),r=await Promise.all([t,n]);this.search._m_h5_tk=e,this.search.categoryList=r[0].options,this.search.category=[Number(r[0].value)],this.search.countryList=r[1].options,this.search.country=r[1].value,this.getTableDataFrom1()}catch{this.loading.page=!1}},async getFetchData(e){let{_m_h5_tk:t,category:n,country:r,translateToEnglish:i,dateType:a}=this.search,o={_m_h5_tk:t,categoryId:n.at(-1),country:r,translateToEnglish:i,statDate:``,dateType:a,service:this.keywordType,current:e,pageSize:this.table.page.pageSize,sort:this.sort.key?{[this.sort.key]:this.sort.order}:null},s=await k({...o,translateToEnglish:!1});await v(1e3);let l=await k({...o,translateToEnglish:!0}),u=s.records||[],d=(l.records||[]).reduce((e,t)=>(e[t.keyword]=t.targetKeyword,e),{});if(u.forEach(e=>{e.targetKeywordCn=e.targetKeyword,e.targetKeywordEn=d[e.keyword]||``}),u.forEach(e=>{e.keywordEn=i?e.targetKeyword:``,e.keywordCn=i?``:e.targetKeyword,e.clickSeeQsLoading=!1,e.clickSeePdLoading=!1}),u.length){let e=await x({storeId:this.search.store,keywords:JSON.stringify(u.map(e=>e.keyword))}).catch(()=>null),t=await S({storeId:this.search.store,keywords:JSON.stringify(u.map(e=>e.keyword))}).catch(()=>null);for(let n of u){let r=n.keyword;n.isInProdName=c(e,`${r}.isT`,!1),n.isInStore=c(t,r,!1)}}return{data:u,total:s.total||0}},async getTableData(){try{this.loading.page=!0;let{total:e,data:t}=await this.getFetchData(this.table.page.current);this.table.data=t,this.table.page.total=e||0}finally{this.loading.page=!1}}}},bt={key:0},xt={class:`flex-center flex-row-margin-small`},St={src:`https://img.alicdn.com/tfs/TB1E7ydYYr1gK0jSZFDXXb9yVXa-90-90.png`,style:{width:`25px`}},Ct={key:0,style:{color:`var(--success-color)`}},wt={key:1,style:{color:`var(--error-color)`}},Tt={class:`flex-row-center`},Et={class:`flex-row-center`},Dt={class:`flex-row-center`},Ot={class:`flex-row-center`},kt={class:`flex-row-center`},At={class:`flex-row-center`},jt={class:`flex-row-center`},Mt={class:`flex-row-center`},Nt={class:`flex-row-center`},$={class:`flex-row-center`}
1,Pt={class:`flex-row-center`},Ft={class:`flex-row-center`},It={class:`flex-row-center`},Lt={class:`flex-row-center`},Rt={class:`flex-row-center`},zt={class:`flex-row-center`},Bt={class:`flex-row-center`},Vt=[`onClick`],Ht={key:1,class:`disabled`},Ut={class:`flex-row-center`},Wt=[`onClick`],Gt={key:1,class:`disabled`},Kt=h(yt,[[`render`,vt]])})))()}export{ze as a,le as c,_t as i,qt as n,Be as o,gt as r,ce as s,Kt as t};

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.