PageSourceSearch

https://www.mechrevo.com/en/_nuxt/CiOhyzQD.js

js mechrevo.com collected 2026-10-02 11:06:46 UTC 8,097 bytes, 1 lines download raw bytes

1import{u as F}from"./7wDI_HF0.js";import{_ as U}from"./CKGOmlzf.js";import{x as u,A as z,i as M,o as a,c as l,b as _,a as s,F as A,D as j,t as v,k as p,f as n,K as I,d as L,s as q,M as H,h as x,u as O,g as S,l as W,H as P}from"./CBVuVATE.js";import{c as h}from"./C13c8upd.js";import{P as E}from"./BfXh6QPZ.js";import{_ as N}from"./DlAUqK2U.js";import{I as B}from"./G0oUD35G.js";import{_ as K}from"./x695gxN7.js";import{d as R}from"./B9S9UwYg.js";import"./CbBh4sUL.js";import"./DDkvXkMO.js";import"./CX9Zmyoh.js";import"./CJhe6uIL.js";import"./B9yxvNgP.js";import"./BvDKD9B8.js";import"./D1ihiQni.js";import"./Deuc0E8-.js";import"./MhBZj6m4.js";import"./DqBSGWtJ.js";import"./BOzQKgBA.js";import"./C-s4FLFn.js";const T={class:"pc-product-downloads-page"},G={class:"container"},J={class:"download-section"},Q={class:"driver-list"},X={class:"card-content"},Y={class:"driver-name"},Z={class:"driver-info"},tt={key:0,class:"info-item"},et={key:1,class:"info-item"},st={key:2,class:"info-item"},ot=["onClick"],it={key:0,class:"empty-state"},at={__name:"DownloadsPage",props:{productId:{type:String,required:!0},initialDrivers:{type:Array,default:()=>[]},initialWallpapers:{type:Array,default:()=>[]},displayProduct:{type:Object,default:null}},setup(m){const i=m,r=u(i.initialDrivers),c=u(i.initialWallpapers),w=u(!1),d=u(""),f=u(9),b=u(0),k=async()=>{try{const e=await h.getDriverList({limit:12,q:{driver_display_product_id_is:i.productId}});r.value=e.objects||[]}catch(e){console.error("加载驱动列表失败:",e)}},D=async(e=1)=>{try{const t=await h.getContentList({limit:f.value,offset:(e-1)*f.value,q:{category_uid_is:"download_wallpaper"}});c.value=t.objects||[],b.value=t.total_count||0}catch(t){console.error("加载壁纸列表失败:",t)}},y=e=>{let t="";e.source_url?t=e.source_url:e.attachment?.origin_url&&(t=e.attachment.origin_url),t?window.open(t,"_blank"):q.error("下载链接不可用")},g=e=>{w.value=e},$=e=>e?new Date(e).toLocaleDateString("zh-CN",{year:"numeric",month:"2-digit",day:"2-digit"}):"";return z(()=>[i.initialDrivers,i.initialWallpapers],([e,t])=>{r.value=e||[],c.value=t||[]},{immediate:!1}),M(()=>{r.value.length===0&&k(),D(1)}),(e,t)=>{const V=U;return a(),l("div",T,[_(E,{"product-id":m.productId,"buy-link":m.displayProduct?.buy_link||"","product-name":m.displayProduct?.name||"",transparent:!0,"enable-sticky":!0},null,8,["product-id","buy-link","product-name"]),s("div",G,[t[7]||(t[7]=s("h1",{class:"page-title"},"Downloads",-1)),s("div",J,[t[3]||(t[3]=s("h2",{class:"section-title"},"Drivers",-1)),s("div",Q,[(a(!0),l(A,null,j(r.value,o=>(a(),l("div",{key:o.id,class:"driver-card"},[s("div",X,[s("h3",Y,v(o.title),1),s("div",Z,[o.sub_title?(a(),l("span",tt," Version: "+v(o.sub_title),1)):p("",!0),o.brief?(a(),l("span",et," Operating System: "+v(o.brief),1)):p("",!0),o.published_at?(a(),l("span",st," Update Date: "+v($(o.published_at)),1)):p("",!0)])]),s("button",{type:"link",class:"download-btn",onClick:C=>y(o)},[_(n(I),{icon:"mdi:download"}),t[1]||(t[1]=L(" Click to Download ",-1))],8,ot)]))),128))]),r.value.length===0?(a(),l("div",it,[...t[2]||(t[2]=[s("p",null,"No downloads",-1)])])):p("",!0)]),p("",!0)]),_(n(B),{style:{display:"none"},preview:{visible:w.value,onVisibleChange:g},src:d.value},null,8,["preview","src"]),_(V)])}}},rt=N(at,[["__scopeId","data-v-b91e6788"]]),lt={class:"mobile-product-downloads-page"},nt={class:"container"},dt={class:"download-section"},ct={class:"driver-list"},ut={class:"card-content"},pt={class:"driver-name"},_t={class:"driver-info"},vt={key:0,class:"info-item"},wt={key:1,class:"info-item"},mt={key:2,class:"info-item"},yt=["onClick"],ft={key:0,class:"empty-state"},gt={class:"download-section"},ht={class:"wallpaper-list"},bt={class:"card-image"},kt=["src","alt","onClick"],Dt={class:"card-footer"},$t={class:"wallpaper-title"},Ct={class:"card-actions"},Pt=["onClick"],It=["onClick"],Lt={key:0,class:"empty-state"},Vt={__name:"DownloadsPage",props:{productId:{type:String,required:!0},initialDrivers:{type:Array,default:()=>[]},initialWallpapers:{type:Array,default:()=>[]}},setup(m){const i=m,r=u(i.initialDrivers),c=u(i.initialWallpapers),w=u(!1),d=u(""),f=async()=>{try{const e=await h.getContentList({limit:12,q:{category_uid_is:"download_driver",product_id_is:i.productId}});r.value=e.objects||[]}catch(e){console.error("加载驱动列表失败:",e)}},b=async()=>{try{const e=await h.getContentList({limit:12,q:{category_uid_is:"download_wallpaper",product_id_is:i.productId}});c.value=e.objects||[]}catch(e){console.error("加载壁纸列表失败:",e)}},k=e=>{let t="";e.source_url?t=e.source_url:e.attachment?.origin_url&&(t=e.attachment.origin_url),t?window.open(t,"_blank"):q.error("下载链接不可用")},D=e=>{w.value=e},y=e=>{d.value=e.main_image?.origin_url||e.main_image?.origin_url||"",w.value=!0},g=e=>{const t=e.main_image?.origin_url||e.attachment?.origin_url;t?window.open(t,"_blank"):q.error("下载链接不可用")},$=e=>e?new Date(e).toLocaleDateString("zh-CN",{year:"numeric",month:"2-digit",day:"2-digit"}):"";return z(()=>[i.initialDrivers,i.initialWallpapers],([e,t])=>{r.value=e||[],c.value=t||[]},{immediate:!1}),M(()=>{r.value.length===0&&f(),c.value.length===0&&b()}),(e,t)=>{const V=K;return a(),l("div",lt,[s("div",nt,[t[7]||(t[7]=s("h1",{class:"page-title"},"下载",-1)),s("div",dt,[t[2]||(t[2]=s("h2",{class:"section-title"},"驱动",-1)),s("div",ct,[(a(!0),l(A,null,j(r.value,o=>(a(),l("div",{key:o.id,class:"driver-card"},[s("div",ut,[s("h3",pt,v(o.title),1),s("div",_t,[o.sub_title?(a(),l("span",vt," 版本: "+v(o.sub_title),1)):p("",!0),o.brief?(a(),l("span",wt," 操作系统: "+v(o.brief),1)):p("",!0),o.published_at?(a(),l("span",mt," 更新日期: "+v($(o.published_at)),1)):p("",!0)])]),s("button",{type:"link",class:"download-btn",onClick:C=>k(o)},[_(n(I),{icon:"mdi:download"}),t[0]||(t[0]=L(" 点击下载 ",-1))],8,yt)]))),128))]),r.value.length===0?(a(),l("div",ft,[...t[1]||(t[1]=[s("p",null,"暂无驱动下载",-1)])])):p("",!0)]),s("div",gt,[t[6]||(t[6]=s("h2",{class:"section-title"},"壁纸",-1)),s("div",ht,[(a(!0),l(A,null,j(c.value,o=>(a(),l("div",{key:o.id,class:"wallpaper-card"},[s("div",bt,[s("img",{src:o.main_image?.origin_url||"https://glbfs.mechrevo.com/website/static/images/placeholder.png",alt:o.title,onClick:C=>y(o)},null,8,kt)]),s("div",Dt,[s("h3",$t,v(o.title),1),s("div",Ct,[s("button",{class:"action-btn preview-btn",onClick:C=>y(o)},[_(n(I),{icon:"mdi:eye-outline"}
1),t[3]||(t[3]=L(" 预览 ",-1))],8,Pt),s("button",{class:"action-btn download-btn",onClick:C=>g(o)},[_(n(I),{icon:"mdi:download"}),t[4]||(t[4]=L(" 下载 ",-1))],8,It)])])]))),128))]),c.value.length===0?(a(),l("div",Lt,[...t[5]||(t[5]=[s("p",null,"暂无壁纸下载",-1)])])):p("",!0)])]),_(n(B),{style:{display:"none"},preview:{visible:w.value,onVisibleChange:D},src:d.value},null,8,["preview","src"]),_(V)])}}},xt=N(Vt,[["__scopeId","data-v-31f3317d"]]),Wt={class:"product-downloads-page"},At={__name:"downloads",async setup(m){let i,r;const{isMobile:c}=F(),w=H(),d=P(()=>w.params.id),{data:f}=([i,r]=x(()=>W(`display-product-downloads-${d.value}`,()=>R.getDisplayProductDetail(d.value),{server:!0,lazy:!1})),i=await i,r(),i),b=P(()=>f.value?.object||null),{data:k}=([i,r]=x(()=>W(`product-drivers-${d.value}`,()=>h.getDriverList({limit:12,q:{driver_display_product_id_is:d.value}}),{server:!0,lazy:!1})),i=await i,r(),i),{data:D}=([i,r]=x(()=>W(`product-wallpapers-${d.value}`,()=>h.getContentList({limit:12,q:{category_uid_is:"download_wallpaper",product_id_is:d.value}}),{server:!0,lazy:!1})),i=await i,r(),i),y=P(()=>k.value?.objects||[]),g=P(()=>D.value?.objects||[]);return O({title:"驱动下载 - 机械革命"}),($,e)=>(a(),l("div",Wt,[n(c)?(a(),S(xt,{key:1,"product-id":n(d),"initial-drivers":n(y),"initial-wallpapers":n(g)},null,8,["product-id","initial-drivers","initial-wallpapers"])):(a(),S(rt,{key:0,"product-id":n(d),"initial-drivers":n(y),"initial-wallpapers":n(g),"display-product":n(b)},null,8,["product-id","initial-drivers","initial-wallpapers","display-product"]))]))}},te=N(At,[["__scopeId","data-v-e0d362c5"]]);export{te 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.