PageSourceSearch

https://www.bydglobal.com/component/bydglobal-cn/mediaCenter/newsBanner/newsBanner_Dbsg5OrN.js

js bydglobal.com collected 2026-10-02 14:40:36 UTC 9,017 bytes, 1 lines download raw bytes

1var x=(u,e,r)=>new Promise((s,p)=>{var _=l=>{try{a(r.next(l))}catch(t){p(t)}},m=l=>{try{a(r.throw(l))}catch(t){p(t)}},a=l=>l.done?s(l.value):Promise.resolve(l.value).then(_,m);a((r=r.apply(u,e)).next())});import{$tools as L,jumpToLink as B,mediaType as y,apiInstance as P,mountComponents as V}from"/static_material/bydglobal/cn/esm_template/utils_De9QfXcP.js";import"/static_material/bydglobal/cn/esm_template/lazysizes_CxLarxp2.js";import{Swiper as J,Autoplay as j,Pagination as H}from"/static_material/bydglobal/cn/esm_template/swiper_CFJQtQoc.js";import{openBlock as i,createElementBlock as c,createBaseVNode as n,defineComponent as C,watch as A,nextTick as b,onUnmounted as U,Fragment as T,renderList as $,createVNode as f,unref as h,toDisplayString as d,withKeys as F,normalizeClass as D,ref as g,onMounted as z,withCtx as I,createCommentVNode as M,normalizeStyle as R,createBlock as Z,resolveDynamicComponent as E,createTextVNode as q,computed as O}from"/static_material/bydglobal/cn/esm_template/@vue_BXkpmK5V.js";import{_export_sfc as k,Image as K,IconArrowRight as G,Button as S}from"/static_material/bydglobal/cn/esm_template/components_B4IQTuUB.js";import"/static_material/bydglobal/cn/esm_template/gsap_fdEUff1C.js";import"/static_material/bydglobal/cn/esm_template/element-plus_ChQOpndQ.js";import"/static_material/bydglobal/cn/esm_template/axios_BxvNGUsD.js";import"/static_material/bydglobal/cn/esm_template/crypto-js_C2Umpbti.js";import"/static_material/bydglobal/cn/esm_template/qrcode_1f3ewH1Y.js";const Q={},W={viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"16.000000",height:"16.000000",fill:"none"};function X(u,e){return i(),c("svg",W,[...e[0]||(e[0]=[n("rect",{id:"箭头右下",width:"16.000000",height:"16.000000",x:"0.000000",y:"0.000000",transform:"matrix(0,-1,1,0,0,16)"},null,-1),n("path",{id:"path",d:"M5.65685 0L5.65689 5.65685L0 5.65685",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1",transform:"matrix(0.707107,-0.707107,0.707107,0.707107,6,8)"},null,-1),n("path",{id:"path",d:"M2 8L13.9999 8",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1"},null,-1)])])}const Y=k(Q,[["render",X]]),ee={class:"news-news-banner-pc-container"},te={class:"news-center-layout-wrapper responsive_layout"},ne={class:"news-list-content swiper-wrapper"},oe=["onClick"],se={class:"image-text"},ae={class:"image-text-subTitle"},ie={class:"image-text-title"},re={class:"custom-pagination"},le=["onKeyup","onFocus","onMouseenter","onClick"],ce={class:"date-info-content flex-align-center"},de={class:"date"},ue={class:"news-title"},pe={class:"news-link"},me={class:"arrow-icon"},we=C({__name:"pc",props:{dataForm:{},newsList:{}},setup(u){const e=u,r=g(),s=g(),p=g(0),_=t=>L.formatDateTime(t,e.dataForm.dateFormat),m=t=>{s.value&&s.value.slideTo(t)},a=t=>{t.url&&B(t.url,{target:e.dataForm.jumpOption.target})},l=()=>{r.value&&(s.value=new J(r.value,{loop:!1,allowTouchMove:!1,modules:[j,H],autoplay:e.dataForm.autoPlay?{delay:e.dataForm.delay,disableOnInteraction:!1}:!1,speed:500,on:{init:()=>{b(()=>{const t=s.value;t&&(p.value=t.realIndex)})},slideChange:()=>{b(()=>{const t=s.value;t&&(p.value=t.realIndex)})}}}))};return A(()=>e.newsList,t=>x(null,null,function*(){t.length>0&&(yield b(),l())}),{immediate:!0}),U(()=>{s.value&&(s.value.destroy(!0,!0),s.value=void 0)}),(t,N)=>(i(),c("div",ee,[n("div",te,[n("div",{ref_key:"swiperContainer",ref:r,class:"news-center-wrapper-content swiper-container"},[n("div",ne,[(i(!0),c(T,null,$(e.newsList,o=>(i(),c("div",{key:o.id,class:"news-item-wrapper swiper-slide flex-center"},[n("div",{class:"media-container",onClick:v=>a(o)},[f(h(K),{class:"media-image","img-pc":o.imageUrl,"img-mob":o.imageUrlMob||void 0,alt:o.title},null,8,["img-pc","img-mob","alt"]),n("div",se,[n("div",ae,d(h(L).formatDateTime(o.date,e.dataForm.dateFormat)),1),n("div",ie,d(o.title),1)])],8,oe)]))),128))])],512),n("div",re,[(i(!0),c(T,null,$(e.newsList,(o,v)=>(i(),c("div",{key:o.id,class:D(["pagination-item",{"is-active":v===p.value}]),role:"heading","aria-level":"3",tabindex:"0",onKeyup:[F(w=>a(o),["enter"]),F(w=>a(o),["space"])],onFocus:w=>m(v),onMouseenter:w=>m(v),onClick:w=>a(o)},[n("div",ce,[n("span",de,d(_(o.date)),1)]),n("h3",ue,d(o.title),1),n("div",pe,[n("span",null,d(u.dataForm.jumpOption.linkText),1),n("div",me,[f(Y)])])],42,le))),128))])])]))}}),_e=k(we,[["__scopeId","data-v-703cd0eb"]]),ve={},he={viewBox:"0 0 7.60889 7.60271",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"7.608887",height:"7.602707",fill:"none",customFrame:"#000000"};function fe(u,e){return i(),c("svg",he,[...e[0]||(e[0]=[n("path",{id:"Union",d:"M7.35682 0.25L7.35682 0.250473L7.35888 0.250473L7.35888 7.07409L6.46954 7.07409L6.46954 1.83948L0.957901 7.2523L0.356934 6.66211L5.99678 1.12339L0.408616 1.12339L0.408616 0.25L7.35682 0.25Z",fill:"rgb(0,0,0)","fill-opacity":"0.949999988","fill-rule":"evenodd"},null,-1),n("path",{id:"Union",d:"M7.35682 0.25L7.35682 0.250473L7.35888 0.250473L7.35888 7.07409L6.46954 7.07409L6.46954 1.83948L0.957901 7.2523L0.356934 6.66211L5.99678 1.12339L0.408616 1.12339L0.408616 0.25L7.35682 0.25Z","fill-rule":"evenodd",stroke:"rgb(0,0,0)","stroke-width":"0.500000"},null,-1)])])}const ge=k(ve,[["render",fe]]),be={class:"news-news-banner-mob-container"},ye={class:"news-center-layout-wrapper flex-align-center"},ke={class:"news-list-content swiper-wrapper"},xe=["onFocus","onKeyup","onClick"],Fe={class:"media-container"},Le={class:"custom-pagination"},Te=["onClick"],$e={class:"date-info-content flex-align-center"},Ce={class:"date"},Ie={class:"news-title"},Me={class:"news-link"},Oe={class:"arrow-icon"},Se=C({__name:"mob",props:{dataForm:{},newsList:{}},setup(u){const e=u,r=g(),s=g(),p=g(0),_=t=>L.formatDateTime(t,e.dataForm.dateFormat),m=t=>{s.value&&s.value.slideToLoop(t)},a=t=>{t.url&&B(t.url,{target:e.dataForm.jumpOption.target})},l=()=>{r.value&&(s.value=new J(r.value,{loop:!1,centeredSlides:!0,slidesPerView:1,spaceBetween:15,allowTouchMove:!0,modules:[j],autoplay:e.dataForm.autoPlay?{delay:e.dataForm.delay,disableOnInteraction:!1}:!1,speed:500,grabCursor:!0,on:{init:()=>{b(()=>{const t=s.value;t&&(p.value=t.realIndex)})},slideChange:()=>{b(()=>{const t=s.value;t&&(p.value=t.realIndex)})}}}))};return A(()=>e.newsList,t=>x(null,null,function*(){t.length>0&&(yield b(),l())}),{immediate:!0}),U(()=>{s.value&&(s.value.destroy(!0,!0),s.value=void 0)}),(t,N)=>(i(),c("div",be,[n("div",ye,[n("div",{ref_key:"swiperContainer",ref:r,class:"news-center-wrapper-content swiper-container"},[n("div",ke,[(i(!0),c(T,null,$(e.newsList,(o,v)=>(i(),c("div",{key:o.id,class:"news-item-wrapper swiper-slide",role:"button",tabindex:"0",onFocus:w=>m(v),onKeyup:[F(w=>a(o),["enter"]),F(w=>a(o),["space"])],onClick:w=>a(o)}
1,[n("div",Fe,[f(h(K),{"img-pc":o.imageUrl,"img-mob":o.imageUrlMob||void 0,alt:o.title},null,8,["img-pc","img-mob","alt"])]),n("div",Le,[n("div",{class:"pagination-item flex-col pagination-item-border",onClick:w=>m(v)},[n("div",$e,[n("span",Ce,d(_(o.date)),1)]),n("h3",Ie,d(o.title),1),n("div",Me,[n("span",null,d(u.dataForm.jumpOption.linkText),1),n("div",Oe,[f(ge)])])],8,Te)])],40,xe))),128))])],512)])]))}}),Be=k(Se,[["__scopeId","data-v-2e1cc7bd"]]),Je={class:"news-banner-title"},je={class:"news-banner-subTitle"},Ae={key:0},Ue={key:1,class:"news-banner-btn-wrapper"},De={key:0,class:"bottom-btn-block"},Ke=C({__name:"layout",props:{dataForm:{}},setup(u){const e=u,r=O(()=>y.value==="mob"?Be:_e),s=g([]),p=()=>x(null,null,function*(){var l;const m=e.dataForm.newsList.filter(t=>t),[,a]=yield P.cmsApi.listByIds({ids:m});s.value=(l=a==null?void 0:a.data)!=null?l:[]}),_=O(()=>y.value==="pc"?{justifyContent:e.dataForm.pcHeaderTitleAlign||"space-between"}:y.value==="mob"?{alignItems:e.dataForm.mobHeaderTitleAlign||"center"}:{});return z(()=>{p()}),(m,a)=>(i(),c("div",{class:D(["news-banner",{"news-banner__top-row":e.dataForm.isTopRow}])},[n("div",{class:"news-banner-header",style:R(_.value)},[n("div",Je,d(e.dataForm.title),1),n("div",je,[e.dataForm.subTitleType==="text"?(i(),c("div",Ae,d(e.dataForm.subTitle),1)):e.dataForm.subTitleType==="btn"&&h(y)==="pc"?(i(),c("div",Ue,[f(h(S),{type:"simple",href:e.dataForm.subTitleJumpOption.link,target:e.dataForm.subTitleJumpOption.target,class:"news-banner-btn"},{default:I(()=>[n("span",null,d(e.dataForm.subTitleJumpOption.linkText),1),f(G,{style:{cursor:"pointer"}})]),_:1},8,["href","target"])])):M("",!0)])],4),(i(),Z(E(r.value),{"data-form":e.dataForm,"news-list":s.value},null,8,["data-form","news-list"])),e.dataForm.subTitleType==="btn"&&h(y)==="mob"?(i(),c("div",De,[f(h(S),{type:"transparent-black",href:e.dataForm.subTitleJumpOption.link,target:e.dataForm.subTitleJumpOption.target},{default:I(()=>[q(d(e.dataForm.subTitleJumpOption.linkText),1)]),_:1},8,["href","target"])])):M("",!0)],2))}}),Ne=k(Ke,[["__scopeId","data-v-d8e954a1"]]);V(".news-news-banner-mount-root-container",Ne);

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.