daShangDao_scanBook/temp_kongfz_chunk_index1.txt

2 lines
3.5 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import{t as E,am as P,r as m,x as a,G as u,A as i,O as v,ad as p,I as V,g as S,v as s,F as N,ao as T,ap as M,a3 as B}from"./chunk-vendor.BEvyqpzI.js";import{u as D,A as O,q as w,f as q,a as F,b as G}from"./product-BETIuZ_J.js";import{d as L}from"./chunk-elementPlus.BwuzvisO.js";import{i as U}from"./chunk-preload-helper.C2F1rpzq.js";/* empty css */import"./chunk-object.BU-HPFRj.js";import"./chunk-SearchTypeEnum.DVsuZ0pI.js";const J=_=>(T("data-v-3694c412"),_=_(),M(),_),W={key:0,class:"more-view-container"},z={class:"result-title"},H={class:"result-list"},K=["onClick"],Q={key:0,class:"item-num"},X=J(()=>i("p",{class:"result-title-sket"},null,-1)),Y={class:"result-list"},Z=E({name:"MoreView",__name:"index",setup(_){const{query:g}=P(),j=m(!1),I=m(""),A=m([]),[b]=O(g,{});b().then(e=>{if(e.status===1){const c=e.data.labels.reduce((t,l,r)=>{const o=Math.floor(r/12);return t[o]||(t[o]=[]),t[o].push(l),t},[]).reduce((t,l,r)=>{const o=Math.floor(r/3);return t[o]||(t[o]=[]),t[o].push(l),t},[]);A.value=c,I.value=e.data.tplName,document.title=e.data.tplName,j.value=!0}}).catch(e=>{$(e)});const f=m(!0),h=D();function $(e){var n,d,c,t,l,r,o;if(e.type==="data")switch(((n=e.data)==null?void 0:n.errType)||""){case"102":h.setRequestRejectInfo({requestRejectAction:(c=(d=e.data)==null?void 0:d.data)==null?void 0:c.requestRejectAction,requestRejectCause:(l=(t=e.data)==null?void 0:t.data)==null?void 0:l.requestRejectCause,requestVerifyUrl:((o=(r=e.data)==null?void 0:r.data)==null?void 0:o.requestVerifyWebUrl)||""}),f.value=!1;break;default:h.setRequestRejectInfo({requestRejectAction:"DATA_ERROR",requestRejectCause:e.message}),f.value=!1;break}else if(e.type==="status"){switch(e.typeDetail){case"netError":h.setRequestRejectInfo({requestRejectAction:"NET_ERROR",requestRejectCause:"网络好像迷路了,请注意检查您的网络连接~"});break;case"serverError":h.setRequestRejectInfo({requestRejectAction:"SERVER_ERROR",requestRejectCause:"服务器开小差了,我们正在抓紧恢复中~"});break}f.value=!1}else e.type!=="cancel"&&L({message:e.message,grouping:!0,type:"error",offset:130})}const R=S(),k=(R==null?void 0:R.appContext.config.globalProperties.$sites)||{},y=e=>G(e.name,g.actionPath||"",e.name),x=e=>{const n=B(e.params);switch(n.searchType){case"keyword":window.open("".concat(k.s_search,"product/").concat(w(q(n)),"&actionPath=").concat(y(e)),"_self");break;case"category":window.open("".concat(k.s_search,"product/category/").concat(w(q(n)),"&actionPath=").concat(y(e)),"_self");break;case"latest":window.open("".concat(k.s_search,"product/latest/").concat(w(q(n)),"&actionPath=").concat(y(e)),"_self");break}};return(e,n)=>f.value?(s(),a("div",W,[j.value?(s(),a(u,{key:0},[i("h6",z,v(I.value),1),i("div",H,[(s(!0),a(u,null,p(A.value,(d,c)=>(s(),a("div",{class:"result-list__row clearfix",key:c},[(s(!0),a(u,null,p(d,(t,l)=>(s(),a("ul",{class:"result-list__column",key:l},[(s(!0),a(u,null,p(t,(r,o)=>(s(),a("li",{class:"result-list__item",key:o},[i("a",{href:"javascript:;",class:"item-name",onClick:C=>x(r)},v(r.showName),9,K),r.showValue!=0?(s(),a("span",Q,""+v(r.showValue)+"",1)):N("",!0)]))),128))]))),128))]))),128))])],64)):(s(),a(u,{key:1},[X,i("div",Y,[(s(),a(u,null,p(3,d=>i("div",{class:"result-list__row clearfix",key:d},[(s(),a(u,null,p(3,c=>i("ul",{class:"result-list__column",key:c},[(s(),a(u,null,p(9,t=>i("li",{class:"result-list-sket__item",key:t})),64))])),64))])),64))])],64))])):(s(),V(F,{key:1}))}}),ce=U(Z,[["__scopeId","data-v-3694c412"]]);export{ce as default};