| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770 |
- <template>
- <div>
- <!--logo-->
- <HomePageHead></HomePageHead>
- <!--导航-->
- <HomePageNavigation></HomePageNavigation>
- <!--首页顶部滚动新闻-->
- <div class="swiper-container" v-if="imagelist && imagelist.length > 0">
- <Swiper :slides-per-view="5" :space-between="20" :loop="true" :autoplay="{
- delay: 3000,
- disableOnInteraction: false,
- pauseOnMouseEnter: true,
- stopOnLastSlide: false,
- waitForTransition: true
- }" :speed="600" :modules="modules" @slide-change="swiperHandleSlideChange" @swiper="onSwiper"
- class="custom-swiper" :navigation="true">
- <SwiperSlide v-for="(item, index) in imagelist" :key="index">
- <NuxtLink :to="`/${item.pinyin}/${item.id}.html`" :title="item.title" class="slide-link"
- :data-index="index">
- <div class="image-container">
- <!-- <img
- :src="item.imgurl || '/index/news.png'"
- :alt="item.title"
- class="slide-image"
- loading="lazy"
- /> -->
- <img src="/public/index/news.png" :alt="item.title" class="slide-image" loading="lazy" />
- <span class="image-title">{{ item.title }}</span>
- </div>
- </NuxtLink>
- </SwiperSlide>
- </Swiper>
- </div>
- <!--首页顶部新闻-->
- <div class="index—layer-1">
- <!--左侧焦点图新闻-->
- <div class="index—layer-1-left">
- <div class="nuxt-swiper" v-if="imagelist">
- <el-carousel :interval="663000" :touchable="true" arrow="never" indicator-class="custom-indicator"
- class="custom-carousel roll_in" @change="handleIndicatorChange">
- <el-carousel-item v-for="(item, index) in imagelist" :key="index">
- <NuxtLink :to="`/${item.pinyin}/${item.id}.html`" :title="item.title">
- <!-- <img :src="item.imgurl" :alt="item.title"> -->
- <img src="/public/index/news.png" :alt="item.title">
- <span>{{ item.title }}</span>
- </NuxtLink>
- </el-carousel-item>
- <template #indicator="{ index }">
- <button :class="{ 'active-indicator': currentIndex === index }">{{ index + 1 }}</button>
- </template>
- </el-carousel>
- </div>
- </div>
- <!--中央选项卡-->
- <div class="index-layer-1-middle">
- <div class="index-tabs">
- <div class="tabtlt">
- <div @mouseenter="indexTabs = 1" :class="indexTabs == 1 ? 'intabtltbg' : ''">
- <NuxtLink to="/">
- 选项1
- </NuxtLink>
- </div>
- <div @mouseenter="indexTabs = 2" :class="indexTabs == 2 ? 'intabtltbg' : ''">
- <NuxtLink to="/">
- 选项2
- </NuxtLink>
- </div>
- </div>
- <div>
- <div v-if="indexTabs == 1" class="coninfoitem">
- <div class="coninfoitem_img">
- <img src="/public/index/news.png" />
- <div class="coninfoitem_img_text">
- <h3>
- <NuxtLink to="/">浙江高院召开党组会传达学习习近平总书记重要</NuxtLink>
- </h3>
- <p>
- <NuxtLink to="/">
- 12月30日上午,浙江高院召开党组(扩大)会议,传达学习习近平总书记重要指示、省委常委会听取省法院党组工作情况和《省法院工作报告》
- </NuxtLink>
- </p>
- </div>
- </div>
- <NuxtLink to="/" class="coninfoitem_title">
- <span>浙江高院召开党组会传达学习习近平总书记重要指示、省委常委会听取省法院党组工作情况汇报的会议精神</span>
- <span>2026-01-06</span>
- </NuxtLink>
- <NuxtLink to="/" class="coninfoitem_title">
- <span>“负担减轻,干劲更足了”</span>
- <span>2026-01-06</span>
- </NuxtLink>
- <NuxtLink to="/" class="coninfoitem_title">
- <span>让好政策真正惠及群众</span>
- <span>2026-01-06</span>
- </NuxtLink>
- <NuxtLink to="/" class="coninfoitem_title">
- <span>张掖:片区协作聚合力 联动监督提效能</span>
- <span>2026-01-06</span>
- </NuxtLink>
- <NuxtLink to="/" class="coninfoitem_title">
- <span>把学习贯彻习近平生态文明思想不断引向深入</span>
- <span>2026-01-06</span>
- </NuxtLink>
- </div>
- <div v-if="indexTabs == 2" class="coninfoitem">
- </div>
- </div>
- </div>
- </div>
- <!--右侧新闻列表-->
- <div class="index-layer-1-right">
- <div class="imgtlt">
- <NuxtLink to="/" class="coninfoitem_title">
- 各地动态
- </NuxtLink>
- </div>
- <div class="con_img_list">
- <NuxtLink to="/">
- <img src="/public/index/news.png" />
- <div class="con_img_list_rgba">青山梦:一位古稀企业...</div>
- </NuxtLink>
- <NuxtLink to="/">
- <img src="/public/index/news.png" />
- <div class="con_img_list_rgba">安全入校园 应急护童行 | 济宁市惠民社会救助服务中心“135最小应急单元” 走进南张中心幼儿园(第一期)</div>
- </NuxtLink>
- <NuxtLink to="/">
- <img src="/public/index/news.png" />
- <div class="con_img_list_rgba">吉林长春经济技术开发区:检察服务窗口嵌入综治中心</div>
- </NuxtLink>
- <NuxtLink to="/">
- <img src="/public/index/news.png" />
- <div class="con_img_list_rgba">天津高院与北辰法院联合举办全市法院司法警察“活力警营·逐梦青春”越野接力活动</div>
- </NuxtLink>
- </div>
- </div>
- </div>
- <!--首页中央新闻2-->
- <div class="index—layer-2">
- <div class="index—layer-2-left">
- <div class="index—layer-2-title">
- <div :class="indexTabs2 == 1 ? 'active' : ''" @mouseenter="indexTabs2 = 1">
- <NuxtLink to="/">
- 选项1
- </NuxtLink>
- </div>
- <div :class="indexTabs2 == 2 ? 'active' : ''" @mouseenter="indexTabs2 = 2">
- <NuxtLink to="/">
- 选项2
- </NuxtLink>
- </div>
- </div>
- <div v-if="indexTabs2 == 1">
- <div class="index-tabs2-top">
- <NuxtLink to="/">
- <img src="/public/index/news.png" />
- </NuxtLink>
- <div>
- <h3>
- <NuxtLink to="/">
- 京津冀对在三地拟执业的司法鉴定人进行职业能力评估联考
- </NuxtLink>
- </h3>
- <p>
- <NuxtLink to="/">
- “2026年1月1日起,跟朋友私信发带颜色的信息就违法?”最近这条消息刷爆社交平台,不少网友慌了神:“跟伴侣私聊也不行吗?”“不小心发错给文件传输助手算不算违法?”一时间焦虑情绪蔓延。其实,这是对新修...
- </NuxtLink>
- </p>
- </div>
- </div>
- <div class="index-tabs2-bottom">
- <NuxtLink to="/">
- <span>盐池:观庭审知敬畏 守底线践清廉</span>
- <span>2026-01-06</span>
- </NuxtLink>
- <NuxtLink to="/">
- <span>吴忠:“组地”监督赋能优化营商环境</span>
- <span>2026-01-06</span>
- </NuxtLink>
- <NuxtLink to="/">
- <span>海原:整治骗取套取社保基金行为 守住民生资金安全防线</span>
- <span>2026-01-06</span>
- </NuxtLink>
- <NuxtLink to="/">
- <span>大武口:持续拧紧责任链条 深化全面从严治党</span>
- <span>2026-01-06</span>
- </NuxtLink>
- <NuxtLink to="/">
- <span>利通区:以“监督一点通”为抓手 推动基层权力在阳光下运行</span>
- <span>2026-01-06</span>
- </NuxtLink>
- </div>
- </div>
- </div>
- <div class="index—layer-2-right">
- <div class="index—layer-2-title">
- <div :class="indexTabs3 == 1 ? 'active' : ''" @mouseenter="indexTabs3 = 1">
- <NuxtLink to="/">
- 选项1
- </NuxtLink>
- </div>
- <div :class="indexTabs3 == 2 ? 'active' : ''" @mouseenter="indexTabs3 = 2">
- <NuxtLink to="/">
- 选项2
- </NuxtLink>
- </div>
- </div>
- <div v-if="indexTabs3 == 1">
- <div class="index-tabs2-top">
- <NuxtLink to="/">
- <img src="/public/index/news.png" />
- </NuxtLink>
- <div>
- <h3>
- <NuxtLink to="/">
- 京津冀对在三地拟执业的司法鉴定人进行职业能力评估联考
- </NuxtLink>
- </h3>
- <p>
- <NuxtLink to="/">
- “2026年1月1日起,跟朋友私信发带颜色的信息就违法?”最近这条消息刷爆社交平台,不少网友慌了神:“跟伴侣私聊也不行吗?”“不小心发错给文件传输助手算不算违法?”一时间焦虑情绪蔓延。其实,这是对新修...
- </NuxtLink>
- </p>
- </div>
- </div>
- <div class="index-tabs2-bottom">
- <NuxtLink to="/">
- <span>盐池:观庭审知敬畏 守底线践清廉</span>
- <span>2026-01-06</span>
- </NuxtLink>
- <NuxtLink to="/">
- <span>吴忠:“组地”监督赋能优化营商环境</span>
- <span>2026-01-06</span>
- </NuxtLink>
- <NuxtLink to="/">
- <span>海原:整治骗取套取社保基金行为 守住民生资金安全防线</span>
- <span>2026-01-06</span>
- </NuxtLink>
- <NuxtLink to="/">
- <span>大武口:持续拧紧责任链条 深化全面从严治党</span>
- <span>2026-01-06</span>
- </NuxtLink>
- <NuxtLink to="/">
- <span>利通区:以“监督一点通”为抓手 推动基层权力在阳光下运行</span>
- <span>2026-01-06</span>
- </NuxtLink>
- </div>
- </div>
- </div>
- </div>
- <!--首页中央新闻3-->
- <div class="index—layer-3">
- <div class="index—layer-3-line">
- <!--选项卡类型-->
- <div class="index—layer-3-tabs-box">
- <div class="index—layer-3-tabs-box-title">
- <div @mouseenter="indexTabs4 = 1" :class="indexTabs4 == 1 ? 'active' : ''">
- <NuxtLink to="/">
- 选项1
- </NuxtLink>
- </div>
- <div @mouseenter="indexTabs4 = 2" :class="indexTabs4 == 2 ? 'active' : ''">
- <NuxtLink to="/">
- 选项2
- </NuxtLink>
- </div>
- </div>
- <div v-if="indexTabs4 == 1" class="index—layer-3-news-body">
- <div class="index—layer-3-news-body-title">
- <div class="news-body-left">
- <NuxtLink to="/">
- <img src="/public/index/news.png" alt="">
- </NuxtLink>
- </div>
- <div class="news-body-right">
- <NuxtLink to="/">
- 政讯通·全国法制调研中心:专注法治服务,践行责任担当
- </NuxtLink>
- <p>
- <NuxtLink to="/">
- 法治建设的推进,需要专业力量的深耕与赋能。政讯通·全国法制调研中心作为法治领域的重要参与主体,始终聚焦核心使命,以多元服务助力法治进程,为社会各界提供专业、可靠的法治相关支撑,也为心怀法治热忱的普...
- </NuxtLink>
- </p>
- </div>
- </div>
- <div class="index—layer-3-news-body-main">
- <NuxtLink to="/">
- <span>公证人员“三个特别”助力群众办好心头事</span>
- <span>2026-01-06</span>
- </NuxtLink>
- <NuxtLink to="/">
- <span>聚行业智慧 凝发展共识,天河区举办律所主任交流座谈会</span>
- <span>2026-01-06</span>
- </NuxtLink>
- <NuxtLink to="/">
- <span>荔湾区司法局岭南司法所开展“迎全运 降发案”反诈宣传活动</span>
- <span>2026-01-06</span>
- </NuxtLink>
- <NuxtLink to="/">
- <span>市潭岗所:架起关爱“连心桥” 畅通血脉“生命线”</span>
- <span>2026-01-06</span>
- </NuxtLink>
- <NuxtLink to="/">
- <span>花都:漫步古村学宪法 徒步普法润民心</span>
- <span>2026-01-06</span>
- </NuxtLink>
- <NuxtLink to="/">
- <span>种下一抹绿,疗愈一颗心——荔湾区司法局组织社矫对象创新开展心理舒缓小组活动</span>
- <span>2026-01-06</span>
- </NuxtLink>
- <NuxtLink to="/">
- <span>天河法治赋能 高质量发展成色更足</span>
- <span>2026-01-06</span>
- </NuxtLink>
- </div>
- </div>
- <div v-if="indexTabs4 == 2">
- </div>
- </div>
- <!--常规类型-->
- <div class="index—layer-3-news-box">
- <div class="index—layer-3-news-box-title">
- <div>
- <NuxtLink to="/">
- 典型案例
- </NuxtLink>
- </div>
- </div>
- <div class="index—layer-3-news-body">
- <div class="index—layer-3-news-body-title">
- <div class="news-body-left">
- <NuxtLink to="/">
- <img src="/public/index/news.png" alt="">
- </NuxtLink>
- </div>
- <div class="news-body-right">
- <NuxtLink to="/">
- 政讯通·全国法制调研中心:专注法治服务,践行责任担当
- </NuxtLink>
- <p>
- <NuxtLink to="/">
- 法治建设的推进,需要专业力量的深耕与赋能。政讯通·全国法制调研中心作为法治领域的重要参与主体,始终聚焦核心使命,以多元服务助力法治进程,为社会各界提供专业、可靠的法治相关支撑,也为心怀法治热忱的普...
- </NuxtLink>
- </p>
- </div>
- </div>
- <div class="index—layer-3-news-body-main">
- <NuxtLink to="/">
- <span>公证人员“三个特别”助力群众办好心头事</span>
- <span>2026-01-06</span>
- </NuxtLink>
- <NuxtLink to="/">
- <span>聚行业智慧 凝发展共识,天河区举办律所主任交流座谈会</span>
- <span>2026-01-06</span>
- </NuxtLink>
- <NuxtLink to="/">
- <span>荔湾区司法局岭南司法所开展“迎全运 降发案”反诈宣传活动</span>
- <span>2026-01-06</span>
- </NuxtLink>
- <NuxtLink to="/">
- <span>市潭岗所:架起关爱“连心桥” 畅通血脉“生命线”</span>
- <span>2026-01-06</span>
- </NuxtLink>
- <NuxtLink to="/">
- <span>花都:漫步古村学宪法 徒步普法润民心</span>
- <span>2026-01-06</span>
- </NuxtLink>
- <NuxtLink to="/">
- <span>种下一抹绿,疗愈一颗心——荔湾区司法局组织社矫对象创新开展心理舒缓小组活动</span>
- <span>2026-01-06</span>
- </NuxtLink>
- <NuxtLink to="/">
- <span>天河法治赋能 高质量发展成色更足</span>
- <span>2026-01-06</span>
- </NuxtLink>
- </div>
- </div>
- </div>
- <div class="index—layer-3-news-box">
- <div class="index—layer-3-news-box-title">
- <div>
- <NuxtLink to="/">
- 法制文化
- </NuxtLink>
- </div>
- </div>
- <div class="index—layer-3-news-body">
- <div class="index—layer-3-news-body-title">
- <div class="news-body-left">
- <NuxtLink to="/">
- <img src="/public/index/news.png" alt="">
- </NuxtLink>
- </div>
- <div class="news-body-right">
- <NuxtLink to="/">
- 政讯通·全国法制调研中心:专注法治服务,践行责任担当
- </NuxtLink>
- <p>
- <NuxtLink to="/">
- 法治建设的推进,需要专业力量的深耕与赋能。政讯通·全国法制调研中心作为法治领域的重要参与主体,始终聚焦核心使命,以多元服务助力法治进程,为社会各界提供专业、可靠的法治相关支撑,也为心怀法治热忱的普...
- </NuxtLink>
- </p>
- </div>
- </div>
- <div class="index—layer-3-news-body-main">
- <NuxtLink to="/">
- <span>公证人员“三个特别”助力群众办好心头事</span>
- <span>2026-01-06</span>
- </NuxtLink>
- <NuxtLink to="/">
- <span>聚行业智慧 凝发展共识,天河区举办律所主任交流座谈会</span>
- <span>2026-01-06</span>
- </NuxtLink>
- <NuxtLink to="/">
- <span>荔湾区司法局岭南司法所开展“迎全运 降发案”反诈宣传活动</span>
- <span>2026-01-06</span>
- </NuxtLink>
- <NuxtLink to="/">
- <span>市潭岗所:架起关爱“连心桥” 畅通血脉“生命线”</span>
- <span>2026-01-06</span>
- </NuxtLink>
- <NuxtLink to="/">
- <span>花都:漫步古村学宪法 徒步普法润民心</span>
- <span>2026-01-06</span>
- </NuxtLink>
- <NuxtLink to="/">
- <span>种下一抹绿,疗愈一颗心——荔湾区司法局组织社矫对象创新开展心理舒缓小组活动</span>
- <span>2026-01-06</span>
- </NuxtLink>
- <NuxtLink to="/">
- <span>天河法治赋能 高质量发展成色更足</span>
- <span>2026-01-06</span>
- </NuxtLink>
- </div>
- </div>
- </div>
- </div>
- <div class="index—layer-3-line">
- <div class="index—layer-3-news-box">
- <div class="index—layer-3-news-box-title">
- <div>
- <NuxtLink to="/">
- 法制文化
- </NuxtLink>
- </div>
- </div>
- <div class="index—layer-3-news-body">
- <div class="index—layer-3-news-body-title">
- <div class="news-body-left">
- <NuxtLink to="/">
- <img src="/public/index/news.png" alt="">
- </NuxtLink>
- </div>
- <div class="news-body-right">
- <NuxtLink to="/">
- 政讯通·全国法制调研中心:专注法治服务,践行责任担当
- </NuxtLink>
- <p>
- <NuxtLink to="/">
- 法治建设的推进,需要专业力量的深耕与赋能。政讯通·全国法制调研中心作为法治领域的重要参与主体,始终聚焦核心使命,以多元服务助力法治进程,为社会各界提供专业、可靠的法治相关支撑,也为心怀法治热忱的普...
- </NuxtLink>
- </p>
- </div>
- </div>
- <div class="index—layer-3-news-body-main">
- <NuxtLink to="/">
- <span>公证人员“三个特别”助力群众办好心头事</span>
- <span>2026-01-06</span>
- </NuxtLink>
- <NuxtLink to="/">
- <span>聚行业智慧 凝发展共识,天河区举办律所主任交流座谈会</span>
- <span>2026-01-06</span>
- </NuxtLink>
- <NuxtLink to="/">
- <span>荔湾区司法局岭南司法所开展“迎全运 降发案”反诈宣传活动</span>
- <span>2026-01-06</span>
- </NuxtLink>
- <NuxtLink to="/">
- <span>市潭岗所:架起关爱“连心桥” 畅通血脉“生命线”</span>
- <span>2026-01-06</span>
- </NuxtLink>
- <NuxtLink to="/">
- <span>花都:漫步古村学宪法 徒步普法润民心</span>
- <span>2026-01-06</span>
- </NuxtLink>
- <NuxtLink to="/">
- <span>种下一抹绿,疗愈一颗心——荔湾区司法局组织社矫对象创新开展心理舒缓小组活动</span>
- <span>2026-01-06</span>
- </NuxtLink>
- <NuxtLink to="/">
- <span>天河法治赋能 高质量发展成色更足</span>
- <span>2026-01-06</span>
- </NuxtLink>
- </div>
- </div>
- </div>
- <div class="index—layer-3-news-box">
- <div class="index—layer-3-news-box-title">
- <div>
- <NuxtLink to="/">
- 法制文化
- </NuxtLink>
- </div>
- </div>
- <div class="index—layer-3-news-body">
- <div class="index—layer-3-news-body-title">
- <div class="news-body-left">
- <NuxtLink to="/">
- <img src="/public/index/news.png" alt="">
- </NuxtLink>
- </div>
- <div class="news-body-right">
- <NuxtLink to="/">
- 政讯通·全国法制调研中心:专注法治服务,践行责任担当
- </NuxtLink>
- <p>
- <NuxtLink to="/">
- 法治建设的推进,需要专业力量的深耕与赋能。政讯通·全国法制调研中心作为法治领域的重要参与主体,始终聚焦核心使命,以多元服务助力法治进程,为社会各界提供专业、可靠的法治相关支撑,也为心怀法治热忱的普...
- </NuxtLink>
- </p>
- </div>
- </div>
- <div class="index—layer-3-news-body-main">
- <NuxtLink to="/">
- <span>公证人员“三个特别”助力群众办好心头事</span>
- <span>2026-01-06</span>
- </NuxtLink>
- <NuxtLink to="/">
- <span>聚行业智慧 凝发展共识,天河区举办律所主任交流座谈会</span>
- <span>2026-01-06</span>
- </NuxtLink>
- <NuxtLink to="/">
- <span>荔湾区司法局岭南司法所开展“迎全运 降发案”反诈宣传活动</span>
- <span>2026-01-06</span>
- </NuxtLink>
- <NuxtLink to="/">
- <span>市潭岗所:架起关爱“连心桥” 畅通血脉“生命线”</span>
- <span>2026-01-06</span>
- </NuxtLink>
- <NuxtLink to="/">
- <span>花都:漫步古村学宪法 徒步普法润民心</span>
- <span>2026-01-06</span>
- </NuxtLink>
- <NuxtLink to="/">
- <span>种下一抹绿,疗愈一颗心——荔湾区司法局组织社矫对象创新开展心理舒缓小组活动</span>
- <span>2026-01-06</span>
- </NuxtLink>
- <NuxtLink to="/">
- <span>天河法治赋能 高质量发展成色更足</span>
- <span>2026-01-06</span>
- </NuxtLink>
- </div>
- </div>
- </div>
- <div class="index—layer-3-news-box">
- <div class="index—layer-3-news-box-title">
- <div>
- <NuxtLink to="/">
- 法制文化
- </NuxtLink>
- </div>
- </div>
- <div class="index—layer-3-news-body">
- <div class="index—layer-3-news-body-title">
- <div class="news-body-left">
- <NuxtLink to="/">
- <img src="/public/index/news.png" alt="">
- </NuxtLink>
- </div>
- <div class="news-body-right">
- <NuxtLink to="/">
- 政讯通·全国法制调研中心:专注法治服务,践行责任担当
- </NuxtLink>
- <p>
- <NuxtLink to="/">
- 法治建设的推进,需要专业力量的深耕与赋能。政讯通·全国法制调研中心作为法治领域的重要参与主体,始终聚焦核心使命,以多元服务助力法治进程,为社会各界提供专业、可靠的法治相关支撑,也为心怀法治热忱的普...
- </NuxtLink>
- </p>
- </div>
- </div>
- <div class="index—layer-3-news-body-main">
- <NuxtLink to="/">
- <span>公证人员“三个特别”助力群众办好心头事</span>
- <span>2026-01-06</span>
- </NuxtLink>
- <NuxtLink to="/">
- <span>聚行业智慧 凝发展共识,天河区举办律所主任交流座谈会</span>
- <span>2026-01-06</span>
- </NuxtLink>
- <NuxtLink to="/">
- <span>荔湾区司法局岭南司法所开展“迎全运 降发案”反诈宣传活动</span>
- <span>2026-01-06</span>
- </NuxtLink>
- <NuxtLink to="/">
- <span>市潭岗所:架起关爱“连心桥” 畅通血脉“生命线”</span>
- <span>2026-01-06</span>
- </NuxtLink>
- <NuxtLink to="/">
- <span>花都:漫步古村学宪法 徒步普法润民心</span>
- <span>2026-01-06</span>
- </NuxtLink>
- <NuxtLink to="/">
- <span>种下一抹绿,疗愈一颗心——荔湾区司法局组织社矫对象创新开展心理舒缓小组活动</span>
- <span>2026-01-06</span>
- </NuxtLink>
- <NuxtLink to="/">
- <span>天河法治赋能 高质量发展成色更足</span>
- <span>2026-01-06</span>
- </NuxtLink>
- </div>
- </div>
- </div>
- </div>
- </div>
- <!--网友留言-->
- <div class="index-layer-4">
- <div class="index-layer-4-title">
- <NuxtLink to="/">
- 网友留言
- </NuxtLink>
- <NuxtLink to="/">
- 在线留言
- </NuxtLink>
- </div>
- <div class="index-layer-4-body">
- <ul class="post_nr liuyan">
- <li>
- <span class="name">熊先生:<b>网站名称问题</b> 2025-12-29 16:18:48</span>
- <p class="nr">内容:看你们的介绍,政讯通•全国法制调研中心,网站名称不让用全国,你们怎么可以用啊?</p>
- <p class="hfnr">
- <span style="color:#f00;">回复:</span>
- 工信部不审批带全国的网站。我们所有带全国字样的名称前都加了“政讯通”,意思是北京政讯通法律咨询有限公司在全国范围内开展的法制调研工作。网站显示没有全国字样,在文字资料或者口头表述时会有加全国,使用名称都是政讯通·全国法制资讯发布中心、政讯通•全国法制调研中心、政讯通•全国法制舆情监测中心和政讯通•全国法制发展促进中心。
- </p>
- </li>
- <li>
- <span class="name">zhang:<b>我从网上搜搜到你们这个网站,我看了下网站没看明白你们主要是做什么的?能简单介绍下吗?</b> 2025-12-26
- 17:43:46</span>
- <p class="nr">内容:我从网上搜搜到你们这个网站,我看了下网站没看明白你们主要是做什么的?能简单介绍下吗?</p>
- <p class="hfnr">
- <span style="color:#f00;">回复:</span>
- 不知道您看到的是我们的哪个网站,我们法制调研项目有200多个网站。主要业务分四大部分:
- 资讯与信息化业务:面向全国党政机关、企事业单位及相关经济组织发展法制信息化会员为主的网络资讯信息服务,提供200个网站资讯发布平台。同步为法制领域提供信息交流与沟通的平台,可以实现一对一、一对多和多对多的沟通交流。
- 法制与调研业务:依法开展法制领域的课题调研、法制宣传、法律援助、法律咨询和公益活动等服务。
- 舆情服务业务:面向全国法制党政机关、企事业单位等法人单位或组织依法提供网络舆情方面的监测、处理、公关等服务。
- 行业与发展业务:综合管理与辅助各地市级中心的运营、面向社会提供法制领域的活动策划与企业发展定制服务。
- </p>
- </li>
- </ul>
- </div>
- </div>
- <!--底部-->
- <HomeFoot></HomeFoot>
- </div>
- </template>
- <script setup>
- //页面是否已经加载完毕
- const pageLoading = ref(false)
- //1.加载页面必备组件 start---------------------------------------->
- import { ref, onMounted } from 'vue';
- import { ElRadio, ElRadioGroup, ElCheckbox, ElCheckboxGroup, ElMessage, ElInput } from 'element-plus';
- import { useSeoMeta } from '#imports';
- //格式化跳转路径 - 标题
- //首页分类栏目标题,不需要考虑外链
- const getLinkPath = (item) => {
- if (item.children_count == 0) {
- //return `/newsList/${item.cid}?page=1`;
- return `/${item.aLIas_pinyin}/list-1.html`;
- } else {
- //return `/primaryNavigation/${item.cid}`;
- return `/${item.aLIas_pinyin}/index.html`;
- }
- }
- //首页跳转到详情,这里需要考虑外链
- const getLinkPathDetail = (item) => {
- if (item.islink == 1) {
- return `${item.linkurl}`;
- } else {
- return `/${item.pinyin}/${item.id}.html`;
- }
- }
- //1.加载页面必备组件 end---------------------------------------->
- //2.交互方法 start---------------------------------------->
- //2.1 新闻图片切换
- const hoverStatus = ref(1)
- const qhPic = function (num) {
- hoverStatus.value = num;
- }
- //2.交互方法 end---------------------------------------->
- //3.投票 start---------------------------------------->
- //3.1 投票选择的值
- const radio1 = ref(''); //单选
- const check1 = ref([]); //多选
- const isDisabled = ref(false);//是否禁用提交按钮
- const isRadio = ref(true);//是否渲染单选
- const userSurId = ref('');//投票属于哪一篇文章
- const userChoice = ref('');//用于判断用户选择了其他选项以后,输入的值
- const userIsChoice = ref('');//用于判断其他选项目前是什么值
- const showUserChoice = ref(false);//是否显示其他输入框
- const websiteSurveyData = ref([]);//投票结果
- //3.2获得投票列表
- let voteList = ref([]);
- //3.2当用户选择了选项,判断是否展示其他输入框
- const handleRadioChange = (value) => {
- if (value == userIsChoice.value) {
- showUserChoice.value = true;
- } else {
- showUserChoice.value = false;
- }
- }
- const handleCheckboxChange = (value) => {
- if (value.includes(userIsChoice.value)) {
- showUserChoice.value = true;
- } else {
- showUserChoice.value = false;
- }
- }
- //3.2发起投票
- async function addWebsiteSurvey() {
- //判断当前是单选还是多选
- console.log(isRadio.value)
- if (isRadio.value) {
- console.log("用户单选!")
- if (radio1.value != '') {
- //先判断一下是否使用了其他选项
- if (showUserChoice.value) {
- if (userChoice.value != '') {
- //文章id
- // console.log(userSurId.value)
- // 用户输入的值
- // console.log(userChoice.value)
- //如果使用了其他,其他的选项需要增加进去
- const ChoiceData = await requestDataPromise('/web/addWebsiteSurveyOption', {
- method: 'GET',
- query: {
- 'sur_id': userSurId.value,//投票的新闻id
- 'choice_name': userChoice.value,//投票的选项id
- }
- });
- if (ChoiceData.code == 200) {
- //提交完其他选项以后,再正式发起投票
- const mkData = await requestDataPromise('/web/addWebsiteSurveyVote', {
- method: 'GET',
- query: {
- 'sur_id': userSurId.value,
- 'choice_id': ChoiceData.data
- }
- });
- if (mkData.code == 200) {
- ElMessage.success('投票成功!')
- //把投票结果显示到页面上 禁用投票按钮
- isDisabled.value = true;
- websiteSurveyData.value = mkData.data;
- //遍历一下,把用户选中的那个设置status为1
- let data = mkData.data;
- //遍历一下,把用户选中的那个设置status为1
- for (let item of data.data) {
- for (let i of data.choice) {
- if (item.id == i) {
- console.log(item.id)
- item.status = 1;
- }
- }
- }
- websiteSurveyData.value = data;
- } else {
- ElMessage.error(mkData.message)
- }
- } else {
- ElMessage.error('其他投票失败!')
- }
- } else {
- ElMessage.error('请输入选项内容!')
- }
- } else {
- //如果没选择其他,直接提交选择的内容
- const mkData = await requestDataPromise('/web/addWebsiteSurveyVote', {
- method: 'GET',
- query: {
- 'sur_id': userSurId.value,
- 'choice_id': radio1.value
- }
- });
- if (mkData.code == 200) {
- ElMessage.success('投票成功!')
- //把投票结果显示到页面上 禁用投票按钮
- isDisabled.value = true;
- let data = mkData.data;
- //遍历一下,把用户选中的那个设置status为1
- for (let item of data.data) {
- for (let i of data.choice) {
- if (item.id == i) {
- item.status = 1;
- }
- }
- }
- websiteSurveyData.value = data;
- } else {
- ElMessage.error('投票失败!')
- }
- }
- } else {
- ElMessage.error('请选择一个选项')
- }
- } else {
- console.log("多选!")
- //多选
- if (check1.value != []) {
- //先判断一下是否使用了其他选项
- if (showUserChoice.value) {
- if (userChoice.value != '') {
- //判断用户是否只选择了一个其他
- if (check1.value.length == 1) {
- const ChoiceData = await requestDataPromise('/web/addWebsiteSurveyOption', {
- method: 'GET',
- query: {
- 'sur_id': userSurId.value,//投票的新闻id
- 'choice_name': userChoice.value,//用户输入的其他选项文字
- }
- });
- if (ChoiceData.code == 200) {
- //提交完其他选项以后,再正式发起投票
- const mkData = await requestDataPromise('/web/addWebsiteSurveyVote', {
- method: 'GET',
- query: {
- 'sur_id': userSurId.value,
- 'choice_id': ChoiceData.data
- }
- });
- if (mkData.code == 200) {
- ElMessage.success('投票成功!')
- //把投票结果显示到页面上 禁用投票按钮
- isDisabled.value = true;
- websiteSurveyData.value = mkData.data;
- //遍历一下,把用户选中的那个设置status为1
- let data = mkData.data;
- //遍历一下,把用户选中的那个设置status为1
- for (let item of data.data) {
- for (let i of data.choice) {
- if (item.id == i) {
- console.log(item.id)
- item.status = 1;
- }
- }
- }
- websiteSurveyData.value = data;
- } else {
- ElMessage.error(mkData.message)
- }
- } else {
- ElMessage.error('其他投票失败!')
- }
- } else {
- //用户选择了除了其他以外,还包括别的选项
- const ChoiceData = await requestDataPromise('/web/addWebsiteSurveyOption', {
- method: 'GET',
- query: {
- 'sur_id': userSurId.value,//投票的新闻id
- 'choice_name': userChoice.value,//用户输入的其他选项文字
- }
- });
- if (ChoiceData.code == 200) {
- let data = check1.value;
- //找到多选的数组,把其他默认值给替换掉
- for (let i = 0; i < data.length; i++) {
- if (data[i] == userIsChoice.value) {
- data[i] = ChoiceData.data;
- }
- }
- let jsonArray = JSON.stringify(data);
- //提交完其他选项以后,再正式发起投票
- const mkData = await requestDataPromise('/web/addWebsiteSurveyVote', {
- method: 'GET',
- query: {
- 'sur_id': userSurId.value,
- 'choice_id': jsonArray
- }
- });
- if (mkData.code == 200) {
- ElMessage.success('投票成功!')
- //把投票结果显示到页面上 禁用投票按钮
- isDisabled.value = true;
- websiteSurveyData.value = mkData.data;
- //遍历一下,把用户选中的那个设置status为1
- let data = mkData.data;
- //遍历一下,把用户选中的那个设置status为1
- for (let item of data.data) {
- for (let i of data.choice) {
- if (item.id == i) {
- //console.log(item.id)
- item.status = 1;
- }
- }
- }
- websiteSurveyData.value = data;
- } else {
- ElMessage.error(mkData.message)
- }
- } else {
- ElMessage.error('其他投票失败!')
- }
- }
- } else {
- ElMessage.error('请输入选项内容!')
- }
- } else {
- let jsonArray = JSON.stringify(check1.value);
- //如果没选择其他,直接提交选择的内容
- const mkData = await requestHome('/web/addWebsiteSurveyVote', {
- method: 'GET',
- query: {
- 'sur_id': userSurId.value,
- 'choice_id': jsonArray
- }
- });
- if (mkData.code == 200) {
- ElMessage.success('投票成功!')
- //把投票结果显示到页面上 禁用投票按钮
- isDisabled.value = true;
- websiteSurveyData.value = mkData.data;
- //遍历一下,把用户选中的那个设置status为1
- let data = mkData.data;
- //遍历一下,把用户选中的那个设置status为1
- for (let item of data.data) {
- for (let i of data.choice) {
- if (item.id == i) {
- console.log(item.id)
- item.status = 1;
- }
- }
- }
- websiteSurveyData.value = data;
- } else {
- ElMessage.error('投票失败!')
- }
- }
- } else {
- ElMessage.error('请选择一个选项')
- }
- }
- }
- //3.投票 end---------------------------------------->
- //4.广告 start---------------------------------------->
- //获得所有广告
- let adImg1 = ref({})
- let adImg2 = ref({})
- let adImg3 = ref({})
- let adImg4 = ref({})
- onMounted(async () => {
- //从客户端获取行政职能部门 加快打开速度//从客户端获取行政职能部门 加快打开速度
- const { $webUrl, $CwebUrl } = useNuxtApp();
- //从客户端启动投票
- //获得投票列表
- let voteUrl = `${$webUrl}/web/getWebsiteSurvey`
- const responseVote = await fetch(voteUrl, {
- headers: {
- 'Content-Type': 'application/json',
- 'Userurl': $CwebUrl,
- 'Origin': $CwebUrl
- }
- });
- const voteData = await responseVote.json();
- if (voteData.code == 200) {
- voteList.value = voteData.data;
- //判断显示单选还是多选
- //survey_type 0是单选 1是多选
- if (voteData.data[0].survey_type == 0) {
- isRadio.value = true;
- } else {
- isRadio.value = false;
- }
- for (let item of voteData.data) {
- //如果含有其他
- if (item.is_other == 1) {
- userIsChoice.value = item.id;
- }
- }
- //用户投票属于哪一篇文章
- userSurId.value = voteData.data[0].sur_id;
- } else {
- // console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
- // console.log("错误位置:首页投票")
- // console.log("后端错误反馈:",voteData.message)
- // console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
- }
- //从客户端启动广告
- //广告1
- let url = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=snzxw_index_0001`
- const responseAd1 = await fetch(url, {
- headers: {
- 'Content-Type': 'application/json',
- 'Userurl': $CwebUrl,
- 'Origin': $CwebUrl
- }
- });
- const resultAd1 = await responseAd1.json();
- adImg1.value = resultAd1.data[0];
- //广告2
- let url2 = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=snzxw_index_0002`
- const responseAd2 = await fetch(url2, {
- headers: {
- 'Content-Type': 'application/json',
- 'Userurl': $CwebUrl,
- 'Origin': $CwebUrl
- }
- });
- const resultAd2 = await responseAd2.json();
- adImg2.value = resultAd2.data[0];
- //广告3
- let url3 = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=snzxw_index_0003`
- const responseAd3 = await fetch(url3, {
- headers: {
- 'Content-Type': 'application/json',
- 'Userurl': $CwebUrl,
- 'Origin': $CwebUrl
- }
- });
- const resultAd3 = await responseAd3.json();
- adImg3.value = resultAd3.data[0];
- //广告4
- let url4 = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=snzxw_index_0004`
- const responseAd4 = await fetch(url4, {
- headers: {
- 'Content-Type': 'application/json',
- 'Userurl': $CwebUrl,
- 'Origin': $CwebUrl
- }
- });
- const resultAd4 = await responseAd4.json();
- adImg4.value = resultAd4.data[0];
- })
- //4.交互方法 end---------------------------------------->
- //5.页面基本信息 start---------------------------------------->
- //5.1 导航信息
- const pageData = ref([
- // { cid: "", title: "", data: [] ,children_count:""},
- ]);
- //5.2 模块数据
- //注意前置变量 在nuxt3的ssr模式中,并不存在变量提升。
- //模块1
- const boxData1 = ref([])
- const boxData1data2 = ref([])
- //模块2
- const boxData2 = ref([]);
- //模块3 - 该数据已经在模块中请求
- //const boxData3 = ref([]);
- //模块4
- const boxData4 = ref([]);
- //模块5
- const boxData5 = ref([]);
- const boxData5data2 = ref([]);
- //模块6
- const boxData6 = ref([]);
- //模块7
- const boxData7 = ref([]);
- //模块8
- const boxData8 = ref([]);
- const boxData88 = ref([]);
- //模块9 模块10 切换
- const tabsData1 = ref(1)
- //模块9
- const boxData9 = ref([]);
- const boxData9data2 = ref([]);
- //模块10
- const boxData10 = ref([]);
- const boxData10data2 = ref([]);
- //模块11
- const boxData11 = ref([]);
- const boxData11data2 = ref([]);
- //模块12 模块13 切换
- const tabsData2 = ref(1)
- //模块12
- const boxData12 = ref([]);
- //模块13 - 该模块只有一个入口
- const boxData13 = ref([]);
- //模块14 模块15 切换
- const tabsData3 = ref(1)
- //模块14 - 该模块含有子导航
- const boxData14 = ref([]);
- const boxData14data2 = ref([]);
- const boxData14menu = ref([]);
- const boxData14childpinyin = ref([]);
- const boxData14mainData = ref([]);
- //模块15
- const boxData15 = ref([]);
- const boxData15data2 = ref([]);
- const boxData15menu = ref([]);
- const boxData15childpinyin = ref([]);
- const boxData15mainData = ref([]);
- //模块16 模块17 切换
- const tabsData4 = ref(1)
- //模块16 - 该模块含有子导航
- const boxData16 = ref([]);
- const boxData16data2 = ref([]);
- const boxData16menu = ref([]);
- const boxData16childpinyin = ref([]);
- const boxData16mainData = ref([]);
- //模块17 - 政策法规 本来这个是模块3 原来是单独放到一个模块中的,现在提出来了
- const boxData17 = ref({})
- //3.2获得导航数据
- try {
- const navigateData = await requestDataPromise('/web/getWebsiteModelCategory', {
- method: 'GET',
- query: {
- 'placeid': 1,
- 'pid': 0,
- 'num': 30
- },
- });
- if (navigateData.code == 200) {
- // 遍历可用的导航池放到页面中
- for (let index in navigateData.data) {
- let data = {
- title: navigateData.data[index].name,
- cid: navigateData.data[index].category_id,
- children_count: navigateData.data[index].children_count,
- alias: navigateData.data[index].alias,
- aLIas_pinyin: navigateData.data[index].aLIas_pinyin
- };
- //主体渲染 第一层
- //新农村11
- if (navigateData.data[index].category_id == 11) { pageData.value[0] = data }
- //农民工317
- if (navigateData.data[index].category_id == 317) { pageData.value[1] = data }
- //第二层
- //政策法规1
- if (navigateData.data[index].category_id == 2) { pageData.value[2] = data }
- //三农之窗2
- if (navigateData.data[index].category_id == 1) { pageData.value[3] = data }
- //第三层
- //区域经济5
- if (navigateData.data[index].category_id == 5) { pageData.value[4] = data }
- //三农投资6
- if (navigateData.data[index].category_id == 12) { pageData.value[5] = data }
- //农贸信息13
- if (navigateData.data[index].category_id == 13) { pageData.value[6] = data }
- //书刊信息24三农调查28
- if (navigateData.data[index].category_id == 28) { pageData.value[7] = data }
- //第四层
- //三农科教14
- if (navigateData.data[index].category_id == 14) { pageData.value[8] = data }
- //文化生活15
- if (navigateData.data[index].category_id == 15) { pageData.value[9] = data }
- //三农服务27
- if (navigateData.data[index].category_id == 27) { pageData.value[10] = data }
- //第五层
- //三农探索16
- if (navigateData.data[index].category_id == 16) { pageData.value[11] = data }
- //三农人物18
- if (navigateData.data[index].category_id == 18) { pageData.value[12] = data }
- //第六层
- //农资购销21
- if (navigateData.data[index].category_id == 21) { pageData.value[13] = data }
- //农产购销153
- if (navigateData.data[index].category_id == 153) { pageData.value[14] = data }
- //第七层
- //打假维权26
- if (navigateData.data[index].category_id == 26) { pageData.value[15] = data }
- }
- } else {
- console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
- console.log("错误位置:首页导航池")
- console.log("后端错误反馈:", navigateData.message)
- console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
- }
- } catch (error) {
- console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
- console.log("错误位置:首页导航渲染阶段")
- console.log("错误:导航池渲染执行接口出错!请检查首页的14的模块的具体执行方法!")
- console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
- }
- let getJson = [
- { "parent": "11,2,8", "child": "" },//模块1新农村
- { "parent": "317,0,8", "child": "" },//模块2农民工
- { "parent": "1,0,5", "child": "" },//模块4三农之窗
- { "parent": "5,1,1", "child": "" },//模块5区域经济
- { "parent": "12,0,3", "child": "" },//模块6三农投资
- { "parent": "13,0,4", "child": "" },//模块7农贸信息
- { "parent": "28,2,7", "child": "" },//模块8书刊信息=三农调查
- { "parent": "14,2,8", "child": "" },//模块9三农科教
- { "parent": "15,2,8", "child": "" },//模块10文化生活
- { "parent": "27,2,4", "child": "" },//模块11三农服务27
- { "parent": "16,0,14", "child": "" },//模块12三农探索16
- { "parent": "18,0,14", "child": "" },//模块13三农人物18
- { "parent": "21,2,8", "child": "188,0,5" },//模块14农资购销
- { "parent": "153,2,8", "child": "258,0,5" },//模块15农产购销
- { "parent": "26,4,8", "child": "191,0,5" },//模块16打假维权
- { "parent": "2,4,8", "child": "" },//模块3政策法规
- ]
- let jsonString = JSON.stringify(getJson);
- async function getPageAllData() {
- const mkdata = await requestDataPromise('/web/getWebsiteAllArticle', {
- method: 'GET',
- query: {
- 'id': jsonString
- },
- });
- console.log("makdata:", mkdata);
- if (mkdata.code == 200) {
- //模块1新农村
- boxData1.value = mkdata.data[0].imgnum;
- boxData1data2.value = mkdata.data[0].textnum;
- //模块2农名工
- boxData2.value = mkdata.data[1].textnum;
- //模块4三农之窗
- boxData4.value = mkdata.data[2].textnum;
- //模块5区域经济
- boxData5.value = mkdata.data[3].imgnum;
- boxData5data2.value = mkdata.data[3].textnum;
- //模块6三农投资
- boxData6.value = mkdata.data[4].textnum;
- //模块7农贸信息
- boxData7.value = mkdata.data[5].textnum;
- //模块8书刊信息
- boxData8.value = mkdata.data[6].imgnum;
- boxData88.value = mkdata.data[6].textnum;
- //模块9三农科教
- boxData9.value = mkdata.data[7].imgnum;
- boxData9data2.value = mkdata.data[7].textnum;
- //模块10文化生活
- boxData10.value = mkdata.data[8].imgnum;
- boxData10data2.value = mkdata.data[8].textnum;
- //模块11三农服务
- boxData11.value = mkdata.data[9].imgnum;
- boxData11data2.value = mkdata.data[9].textnum;
- //模块12三农探索
- boxData12.value = mkdata.data[10].textnum;
- //模块13三农人物
- boxData13.value = mkdata.data[11].textnum;
- //模块14农资购销 该栏目含有子导航
- boxData14.value = mkdata.data[12].imgnum;
- boxData14data2.value = mkdata.data[12].textnum;
- boxData14menu.value = mkdata.data[12].child.all_childcat;
- boxData14childpinyin.value = mkdata.data[12].child.pinyin;
- boxData14mainData.value = mkdata.data[12].child.textnum;
- //模块14农产购销
- boxData15.value = mkdata.data[13].imgnum;
- boxData15data2.value = mkdata.data[13].textnum;
- boxData15menu.value = mkdata.data[13].child.all_childcat;
- boxData15childpinyin.value = mkdata.data[13].child.pinyin;
- boxData15mainData.value = mkdata.data[13].child.textnum;
- //模块15打假维权
- boxData16.value = mkdata.data[14].imgnum;
- boxData16data2.value = mkdata.data[14].textnum;
- boxData16menu.value = mkdata.data[14].child.all_childcat;
- boxData16childpinyin.value = mkdata.data[14].child.pinyin;
- boxData16mainData.value = mkdata.data[14].child.textnum;
- //模块17政策法规
- boxData17.value = mkdata.data[15];
- } else {
- ElMessage.error(mkdata.message)
- }
- }
- getPageAllData();
- //5.页面基本信息 end---------------------------------------->
- //6.设置seo数据 start---------------------------------------->
- //获取seo数据
- const setData = await requestDataPromise('/web/getWebsiteFootInfo', {
- method: 'GET',
- query: {},
- });
- if (setData.code == 200) {
- let seoTitle = setData.data.website_head.title;
- let seoDescription = setData.data.website_head.description;
- let seoKeywords = setData.data.website_head.keywords;
- let seoSuffix = setData.data.website_head.suffix;
- let seoName = setData.data.website_head.website_name;
- useSeoMeta({
- title: seoTitle + "_" + seoSuffix,
- meta: [
- { name: 'description', content: seoDescription + "_" + seoName + "_" + seoSuffix, tagPriority: 10 },
- { name: 'keywords', content: seoKeywords + "_" + seoName + "_" + seoSuffix, tagPriority: 10 },
- { name: 'viewport', content: "width=device-width,initial-scale=1,user-scalable=no" }
- ]
- });
- } else {
- // console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
- // console.log("错误位置:设置首页SEO数据")
- // console.log("后端错误反馈:",setData.message)
- // console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
- }
- //6.设置seo数据 start---------------------------------------->
- //7.官网新增 start---------------------------------------->
- //swiper焦点图start---------------------------------------->
- const imagelist = ref("")
- async function getModelData1() {
- const mkdata = await requestDataPromise('/web/getWebsiteArticlett', {
- method: 'GET',
- query: {
- 'imgnum': 10,
- 'textnum': 0,
- 'level': 2,
- 'placeid': 0,
- 'id': ''
- },
- });
- if (mkdata.code == 200) {
- imagelist.value = mkdata.data.img;
- } else {
- // console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
- // console.log("错误位置:获取首页轮播图")
- // console.log("后端错误反馈:",mkdata.message)
- // console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
- }
- }
- getModelData1()
- //使用swiper
- import { computed } from 'vue'
- // Swiper12.x的导入方式
- import { Swiper, SwiperSlide } from 'swiper/vue'
- import { Autoplay, Navigation } from 'swiper/modules' // 增加 Navigation
- // 导入 Swiper 样式
- import 'swiper/css'
- import 'swiper/css/navigation' // 增加导航样式
- const props = defineProps({
- imagelist: {
- type: Array,
- default: () => []
- }
- })
- const emit = defineEmits(['slide-change'])
- const swiperCurrentIndex = ref(0)
- const swiperInstance = ref(null)
- // 使用哪些模块
- const modules = [Autoplay, Navigation] // 添加 Navigation
- // 响应式断点设置(可选)
- const breakpoints = computed(() => ({
- // 当屏幕宽度 >= 320px
- 320: {
- slidesPerView: 1,
- spaceBetween: 10
- },
- // 当屏幕宽度 >= 768px
- 768: {
- slidesPerView: 3,
- spaceBetween: 15
- },
- // 当屏幕宽度 >= 1024px
- 1024: {
- slidesPerView: 5,
- spaceBetween: 20
- },
- // 当屏幕宽度 >= 1440px
- 1440: {
- slidesPerView: 6,
- spaceBetween: 25
- }
- }))
- const swiperHandleSlideChange = (swiper) => {
- swiperCurrentIndex.value = swiper.activeIndex
- emit('swiperSlideChange', swiper.activeIndex)
- }
- const goToSlide = (index) => {
- console.log(index)
- if (swiperInstance.value) {
- swiperInstance.value.slideTo(index, 500) // 500ms 动画时间
- }
- }
- const onSwiper = (swiper) => {
- swiperInstance.value = swiper
- console.log('Swiper实例已初始化:', swiper)
- }
- // 如果需要手动控制自动播放
- const pauseAutoplay = () => {
- if (swiperInstance.value && swiperInstance.value.autoplay) {
- swiperInstance.value.autoplay.pause()
- }
- }
- const startAutoplay = () => {
- if (swiperInstance.value && swiperInstance.value.autoplay) {
- swiperInstance.value.autoplay.resume()
- }
- }
- //swiper焦点图 end---------------------------------------->
- //轮播图 start---------------------------------------->
- import { ElCarousel, ElCarouselItem } from 'element-plus'
- let currentIndex = ref(0)
- let handleIndicatorChange = (val) => {
- currentIndex.value = val
- }
- //轮播图 end---------------------------------------->
- //选项卡 start---------------------------------------->
- //1.首页顶部新闻-中央选项卡
- const indexTabs = ref(1)
- //2.首页中央新闻2-左侧选项卡
- const indexTabs2 = ref(1)
- //3.首页中央新闻2-右侧选项卡
- const indexTabs3 = ref(1)
- //3.首页中央新闻3-左侧选项卡
- const indexTabs4 = ref(1)
- //选项卡 end---------------------------------------->
- //7.官网新增 end---------------------------------------->
- </script>
- <style lang="less" scoped>
- @media screen and (min-width: 1401px) {
- //swiper轮播图 start---------------------------------------->
- .swiper-container {
- width: 100%;
- padding: 20PX 0;
- position: relative;
- max-width: 1400PX;
- margin: 0 auto;
- }
- .custom-swiper {
- width: 100%;
- height: 100%;
- padding: 10PX 5PX; //给两侧留出空间
- }
- .custom-swiper :deep(.swiper-wrapper) {
- align-items: stretch; //使所有幻灯片高度一致
- }
- .custom-swiper :deep(.swiper-slide) {
- height: auto;
- transition: transform 0.3s ease;
- }
- //悬停效果
- .custom-swiper :deep(.swiper-slide:hover) {
- transform: translateY(-5PX);
- z-index: 10;
- }
- .slide-link {
- display: block;
- text-decoration: none;
- color: inherit;
- height: 100%;
- width: 100%;
- }
- .image-container {
- position: relative;
- width: 100%;
- height: 118PX; //根据需求调整
- overflow: hidden;
- box-shadow: 0 4PX 12PX rgba(0, 0, 0, 0.1);
- transition: all 0.3s ease;
- background: #f5f5f5; //加载时的背景色
- }
- .image-container:hover {
- box-shadow: 0 8PX 24PX rgba(0, 0, 0, 0.15);
- }
- .slide-image {
- // width: 100%;
- // height: 100%;
- width: 264PX;
- height: 118PX;
- object-fit: cover;
- transition: transform 0.5s ease;
- }
- .image-container:hover .slide-image {
- transform: scale(1.05);
- }
- .image-title {
- position: absolute;
- bottom: 0;
- left: 0;
- right: 0;
- color: white;
- padding: 12PX 15PX;
- font-size: 14PX;
- line-height: 1.4;
- text-align: center;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- background: rgba(0, 0, 0, .6)
- }
- .custom-indicators {
- display: flex;
- justify-content: center;
- gap: 8PX;
- margin-top: 25PX;
- padding: 15PX 10PX;
- flex-wrap: wrap;
- background: rgba(255, 255, 255, 0.9);
- border-radius: 50PX;
- max-width: 90%;
- margin-left: auto;
- margin-right: auto;
- }
- .indicator-btn {
- width: 36PX;
- height: 36PX;
- border-radius: 50%;
- border: 2PX solid #e0e0e0;
- background: white;
- color: #333;
- cursor: pointer;
- transition: all 0.3s ease;
- font-size: 14PX;
- font-weight: 500;
- display: flex;
- align-items: center;
- justify-content: center;
- outline: none;
- }
- .indicator-btn:hover {
- background: #f0f9ff;
- border-color: #409eff;
- transform: scale(1.1);
- }
- .indicator-btn.active-indicator {
- background: #409eff;
- color: white;
- border-color: #409eff;
- box-shadow: 0 4PX 12PX rgba(64, 158, 255, 0.3);
- }
- //swiper加载动画
- .image-container:empty::before {
- content: '';
- position: absolute;
- top: 0;
- left: 0;
- width: 100%;
- height: 100%;
- background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
- background-size: 200% 100%;
- animation: loading 1.5s infinite;
- border-radius: 12PX;
- }
- @keyframes loading {
- 0% {
- background-position: 200% 0;
- }
- 100% {
- background-position: -200% 0;
- }
- }
- //swiper箭头颜色
- .custom-swiper :deep(.swiper-button-prev),
- .custom-swiper :deep(.swiper-button-next) {
- color: white !important; //箭头颜色改为白色
- }
- .custom-swiper :deep(.swiper-button-prev):after,
- .custom-swiper :deep(.swiper-button-next):after {
- color: white !important; //确保箭头图标也是白色
- }
- //swiper轮播图 end---------------------------------------->
- //轮播图 start---------------------------------------->
- .nuxt-swiper {
- width: 100%;
- height: 300PX;
- position: relative;
- img {
- width: 100%;
- height: 300PX;
- }
- span {
- display: inline-block;
- width: 100%;
- height: 40PX;
- line-height: 40PX;
- padding-left: 20PX;
- box-sizing: border-box;
- position: absolute;
- bottom: 0;
- left: 0;
- font-family: Source Han Sans, Source Han Sans;
- font-size: 16PX;
- color: #FFFFFF;
- //background: linear-gradient(to bottom, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
- background: rgba(0, 0, 0, .6);
- }
- }
- .el-carousel {
- // 左右箭头按钮
- .el-carousel__arrow--right :deep(.class-name),
- .el-carousel__arrow--left :deep(.class-name) {
- width: 68PX;
- height: 68PX;
- }
- //左右箭头图片
- /deep/.el-icon svg {
- height: 1em;
- width: 1em;
- background-color: transparent;
- }
- /deep/.el-carousel__arrow {
- border-radius: 0;
- background-color: transparent;
- }
- /deep/.el-carousel__arrow i {
- font-size: 68PX !important;
- }
- /deep/ .el-carousel__indicators {
- // 指示器
- left: unset;
- transform: unset;
- right: 41%;
- }
- /deep/ .el-carousel__button {
- // 指示器按钮
- width: 15PX;
- height: 15PX;
- border-radius: 50%;
- border: none;
- opacity: 1;
- background-color: #FFFFFF;
- bottom: 30PX;
- }
- /deep/ .is-active .el-carousel__button {
- // 指示器激活按钮
- background: #158d91;
- }
- /deep/.custom-indicators {
- position: absolute;
- bottom: 10PX;
- left: 50%;
- transform: translateX(-50%);
- }
- /deep/ .el-carousel__indicators {
- right: 3%;
- bottom: 10%;
- }
- /deep/ .el-carousel__arrow {
- top: 50%;
- }
- }
- //轮播图 end---------------------------------------->
- //第一层 start---------------------------------------->
- .index—layer-1 {
- width: 1400PX;
- height: auto;
- overflow: hidden;
- margin: 20PX auto;
- display: flex;
- align-items: flex-start;
- justify-content: space-between;
- .index—layer-1-left {
- width: 31%;
- border: 1PX solid #ccc;
- }
- .index-layer-1-middle {
- width: 31%;
- border: 1PX solid #ccc;
- box-sizing: border-box;
- padding: 0 10PX;
- padding-bottom: 5PX;
- .tabtlt {
- width: 100%;
- height: auto;
- outline: hidden;
- border-bottom: 1PX solid #f0f0f0;
- margin: 7PX 0 18PX;
- overflow: hidden;
- display: flex;
- align-self: center;
- justify-content: space-between;
- a {
- color: #337ab7;
- text-decoration: none;
- }
- div {
- width: 50%;
- text-align: center;
- width: 100%;
- height: 50PX;
- line-height: 50PX;
- font-size: 20PX;
- color: #000;
- background: #f3f3f3;
- text-align: center;
- cursor: pointer;
- }
- div.intabtltbg {
- background: url(public/index/current.gif) no-repeat center bottom !important;
- }
- }
- .coninfoitem {
- width: 100%;
- overflow: hidden;
- margin: 0PX auto;
- >div {
- &.coninfoitem_img {
- height: 86PX;
- overflow: hidden;
- margin-bottom: 5PX;
- display: flex;
- align-items: flex-start;
- justify-content: space-between;
- }
- h3 {
- line-height: 0;
- a {
- font-size: 13PX;
- color: #333;
- font-weight: bold;
- width: 100%;
- height: 26PX;
- line-height: 26PX;
- overflow: hidden;
- }
- }
- img {
- width: 120PX;
- height: 86PX;
- float: left;
- margin-right: 11PX;
- }
- p {
- line-height: 0;
- a {
- color: #333;
- font-size: 13PX;
- line-height: 20PX;
- }
- }
- }
- .coninfoitem_title {
- width: 100%;
- height: 28PX;
- line-height: 28PX;
- overflow: hidden;
- position: relative;
- list-style-position: inside;
- color: #000;
- display: block;
- font-size: 13PX;
- display: flex;
- align-items: center;
- justify-content: space-between;
- span:nth-child(1) {
- width: 70%;
- height: 28PX;
- text-align: left;
- overflow: hidden;
- display: block;
- font-size: 14PX;
- }
- span:nth-child(2) {
- width: 30%;
- height: 28PX;
- text-align: right;
- display: block;
- font-size: 12PX;
- }
- }
- }
- }
- .index-layer-1-right {
- width: 31%;
- border: 1PX solid #ccc;
- box-sizing: border-box;
- padding: 0 10PX;
- padding-bottom: 16PX;
- .imgtlt {
- width: 100%;
- height: 43PX;
- border-bottom: 1PX solid #e7e7e7;
- a {
- display: block;
- width: 92PX;
- height: 42PX;
- line-height: 42PX;
- text-align: center;
- font-size: 20PX;
- color: #333;
- border-bottom: 2PX solid #158d91;
- }
- }
- .con_img_list {
- display: flex;
- flex-wrap: wrap;
- a {
- width: 48%;
- float: left;
- overflow: hidden;
- height: 100PX;
- margin: 20PX auto 0;
- display: block;
- position: relative;
- img {
- display: block;
- width: 100%;
- height: 100%;
- }
- .con_img_list_rgba {
- position: absolute;
- width: 100%;
- height: 22PX;
- line-height: 21PX;
- box-sizing: border-box;
- padding: 0PX 10PX;
- text-align: center;
- bottom: 0PX;
- left: 0PX;
- color: #fff;
- font-size: 16PX;
- z-index: 11;
- background: rgba(0, 0, 0, .6);
- display: block;
- word-break: keep-all;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- }
- }
- }
- }
- }
- //第一层 end---------------------------------------->
- //第二层 start---------------------------------------->
- .index—layer-2 {
- width: 1400PX;
- height: auto;
- overflow: hidden;
- margin: 20PX auto;
- display: flex;
- align-items: flex-start;
- justify-content: space-between;
- .index—layer-2-left,
- .index—layer-2-right {
- width: 49%;
- border: 1PX solid #ddd;
- height: auto;
- overflow: hidden;
- .index—layer-2-title {
- display: flex;
- align-items: center;
- justify-content: flex-start;
- background: #fff;
- >div {
- &.active {
- background: #158d91;
- color: #fff;
- a {
- color: #fff;
- }
- }
- width: 118PX;
- height: 44PX;
- line-height: 44PX;
- background: #fff;
- text-align: center;
- color: #808080;
- font-size: 16PX;
- font-weight: bold;
- border-bottom: 2PX solid #158d91;
- a {
- font-size: 20PX;
- color: #808080;
- }
- }
- }
- .index-tabs2-top {
- background: #f8f8f8;
- padding: 20PX 20PX;
- box-sizing: border-box;
- display: flex;
- border-bottom: 1PX dashed #ddd;
- >a {
- margin-right: 11PX;
- img {
- display: block;
- width: 120PX;
- height: 86PX;
- }
- }
- h3 {
- width: 100%;
- height: 26PX;
- line-height: 26PX;
- overflow: hidden;
- a {
- font-size: 13PX;
- color: #333;
- font-weight: bold;
- }
- }
- p {
- width: 100%;
- height: 60PX;
- line-height: 20PX;
- overflow: hidden;
- a {
- color: #333;
- font-size: 13PX;
- }
- }
- }
- .index-tabs2-bottom {
- padding: 20PX;
- margin: 0;
- a {
- display: block;
- width: 100%;
- overflow: hidden;
- position: relative;
- list-style-position: inside;
- color: #333;
- line-height: 28PX;
- display: flex;
- align-items: center;
- justify-content: space-between;
- span:nth-child(1) {
- width: 70%;
- height: 28PX;
- text-align: left;
- overflow: hidden;
- display: block;
- font-size: 14PX;
- }
- span:nth-child(2) {
- width: 30%;
- height: 28PX;
- text-align: right;
- display: block;
- font-size: 12PX;
- }
- }
- }
- }
- }
- //第二层 end---------------------------------------->
- //第三层 start---------------------------------------->
- .index—layer-3 {
- .index—layer-3-line {
- width: 1400PX;
- display: flex;
- align-items: center;
- justify-content: space-between;
- margin: 0 auto;
- box-sizing: border-box;
- //选项卡类型
- .index—layer-3-tabs-box {
- width: 31%;
- height: auto;
- border: 1PX solid #ddd;
- border-top: 2PX solid #158d91;
- margin: 1%;
- padding: 0 10PX;
- box-sizing: border-box;
- .index—layer-3-tabs-box-title {
- display: flex;
- align-items: center;
- width: 100%;
- border-bottom: 1PX solid #f0f0f0;
- >div {
- &.active {
- background: url(../public/index/current2.png) no-repeat center bottom;
- }
- width: 87PX;
- height: 54PX;
- line-height: 55PX;
- overflow: hidden;
- float: left;
- margin-right: 10PX;
- text-align: center;
- font-size: 20PX;
- color: #333;
- font-weight: bold;
- a {
- color: #333;
- }
- }
- }
- .index—layer-3-news-body-main {
- margin-bottom: 20PX;
- a {
- width: 100%;
- height: 26PX;
- line-height: 26PX;
- list-style-position: inside;
- font-size: 13PX;
- color: #333;
- display: flex;
- align-items: center;
- justify-content: space-between;
- span:nth-child(1) {
- width: 70%;
- height: 28PX;
- text-align: left;
- overflow: hidden;
- display: block;
- font-size: 14PX;
- }
- span:nth-child(2) {
- width: 30%;
- height: 28PX;
- text-align: right;
- display: block;
- font-size: 12PX;
- }
- }
- }
- }
- //常规类型
- .index—layer-3-news-box {
- width: 31%;
- height: auto;
- border: 1PX solid #ddd;
- border-top: 2PX solid #158d91;
- margin: 1%;
- padding: 0 10PX;
- box-sizing: border-box;
- .index—layer-3-news-box-title {
- display: flex;
- align-items: center;
- width: 100%;
- border-bottom: 1PX solid #f0f0f0;
- >div {
- &.active {
- background: url(../public/index/current2.png) no-repeat center bottom;
- }
- width: 87PX;
- height: 54PX;
- line-height: 55PX;
- overflow: hidden;
- float: left;
- margin-right: 10PX;
- text-align: center;
- font-size: 20PX;
- color: #333;
- font-weight: bold;
- a {
- color: #333;
- }
- }
- }
- .index—layer-3-news-body-main {
- margin-bottom: 20PX;
- a {
- width: 100%;
- height: 26PX;
- line-height: 26PX;
- list-style-position: inside;
- font-size: 13PX;
- color: #333;
- display: flex;
- align-items: center;
- justify-items: center;
- span:nth-child(1) {
- width: 70%;
- height: 28PX;
- text-align: left;
- overflow: hidden;
- display: block;
- font-size: 14PX;
- }
- span:nth-child(2) {
- width: 30%;
- height: 28PX;
- text-align: right;
- display: block;
- font-size: 12PX;
- }
- }
- }
- }
- }
- .index—layer-3-news-body-title {
- display: flex;
- align-items: center;
- justify-content: flex-start;
- margin: 20PX 0 14PX;
- padding-bottom: 20PX;
- border-bottom: 1PX dashed #e1e1e1;
- >div {
- &.news-body-left {
- margin-right: 11PX;
- img {
- display: block;
- width: 120PX;
- height: 86PX;
- }
- }
- &.news-body-right {
- >a {
- display: block;
- width: 100%;
- height: 40PX;
- line-height: 40PX;
- font-size: 16PX;
- font-weight: bold;
- overflow: hidden;
- color: #000;
- text-decoration: none;
- }
- p {
- width: 100%;
- height: 46PX;
- line-height: 23PX;
- overflow: hidden;
- font-size: 14PX;
- color: #333;
- a {
- color: #333;
- }
- }
- }
- }
- }
- }
- //第三层 end---------------------------------------->
- //第四层 start---------------------------------------->
- .index-layer-4 {
- width: 1400PX;
- border: 1PX solid #ccc;
- border-radius: 20PX;
- padding: 10PX 20PX;
- box-sizing: border-box;
- margin: 20PX auto;
- .index-layer-4-title {
- display: flex;
- align-items: center;
- justify-content: space-between;
- width: 100%;
- height: 40PX;
- line-height: 40PX;
- border-bottom: 1PX solid #ccc;
- a {
- &:first-child {
- font-size: 22PX;
- color: #1476bd;
- }
- &:last-child {
- font-size: 16PX;
- color: #f00;
- border: none;
- float: right;
- }
- display: block;
- }
- }
- .index-layer-4-body {
- .post_nr {
- width: 100%;
- height: auto;
- margin: 20PX auto;
- border: 1PX solid #ccc;
- border-radius: 10PX;
- padding: 20PX !important;
- box-sizing: border-box;
- .name {
- display: block;
- width: 100%;
- height: auto;
- line-height: 40PX;
- font-size: 16PX;
- color: #333;
- }
- b {
- font-size: 17PX;
- margin: 0 10PX;
- }
- li {
- border-bottom: 1PX solid #ccc;
- padding-bottom: 15PX;
- margin-bottom: 10PX;
- box-sizing: border-box;
- p {
- margin: 0;
- height: auto;
- line-height: 25PX;
- font-size: 15PX;
- color: #000;
- &.hfnr {
- font-weight: bold;
- span {
- color: #f00;
- }
- }
- }
- }
- }
- }
- }
- //第四层 end---------------------------------------->
- }
- @media screen and (min-width: 801px) and (max-width: 1400px) {
- //swiper轮播图 start---------------------------------------->
- .swiper-container {
- width: 100%;
- padding: 20PX 0;
- position: relative;
- margin: 0 auto;
- box-sizing: border-box;
- }
- .custom-swiper {
- width: 100%;
- height: 100%;
- padding: 10px 5px; //给两侧留出空间
- box-sizing: border-box;
- }
- .custom-swiper :deep(.swiper-wrapper) {
- align-items: stretch; //使所有幻灯片高度一致
- }
- .custom-swiper :deep(.swiper-slide) {
- height: auto;
- transition: transform 0.3s ease;
- }
- //悬停效果
- .custom-swiper :deep(.swiper-slide:hover) {
- transform: translateY(-5px);
- z-index: 10;
- }
- .slide-link {
- display: block;
- text-decoration: none;
- color: inherit;
- height: 100%;
- width: 100%;
- }
- .image-container {
- position: relative;
- width: 100%;
- height: 120PX; //根据需求调整
- overflow: hidden;
- box-shadow: 0 4PX 12PX rgba(0, 0, 0, 0.1);
- transition: all 0.3s ease;
- background: #f5f5f5; //加载时的背景色
- }
- .image-container:hover {
- box-shadow: 0 8PX 24PX rgba(0, 0, 0, 0.15);
- }
- .slide-image {
- // width: 100%;
- // height: 100%;
- width: 264PX;
- height: 118PX;
- object-fit: cover;
- transition: transform 0.5s ease;
- }
- .image-container:hover .slide-image {
- transform: scale(1.05);
- }
- .image-title {
- position: absolute;
- bottom: 0;
- left: 0;
- right: 0;
- color: white;
- padding: 12PX 15PX;
- font-size: 14PX;
- line-height: 1.4;
- text-align: center;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- background: rgba(0, 0, 0, .6)
- }
- .custom-indicators {
- display: flex;
- justify-content: center;
- gap: 8PX;
- margin-top: 25PX;
- padding: 15PX 10PX;
- flex-wrap: wrap;
- background: rgba(255, 255, 255, 0.9);
- border-radius: 50PX;
- max-width: 90%;
- margin-left: auto;
- margin-right: auto;
- }
- .indicator-btn {
- width: 36PX;
- height: 36PX;
- border-radius: 50%;
- border: 2PX solid #e0e0e0;
- background: white;
- color: #333;
- cursor: pointer;
- transition: all 0.3s ease;
- font-size: 14PX;
- font-weight: 500;
- display: flex;
- align-items: center;
- justify-content: center;
- outline: none;
- }
- .indicator-btn:hover {
- background: #f0f9ff;
- border-color: #409eff;
- transform: scale(1.1);
- }
- .indicator-btn.active-indicator {
- background: #409eff;
- color: white;
- border-color: #409eff;
- box-shadow: 0 4PX 12PX rgba(64, 158, 255, 0.3);
- }
- //swiper加载动画
- .image-container:empty::before {
- content: '';
- position: absolute;
- top: 0;
- left: 0;
- width: 100%;
- height: 100%;
- background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
- background-size: 200% 100%;
- animation: loading 1.5s infinite;
- border-radius: 12PX;
- }
- @keyframes loading {
- 0% {
- background-position: 200% 0;
- }
- 100% {
- background-position: -200% 0;
- }
- }
- //swiper箭头颜色
- .custom-swiper :deep(.swiper-button-prev),
- .custom-swiper :deep(.swiper-button-next) {
- color: white !important; //箭头颜色改为白色
- }
- .custom-swiper :deep(.swiper-button-prev):after,
- .custom-swiper :deep(.swiper-button-next):after {
- color: white !important; //确保箭头图标也是白色
- }
- //swiper轮播图 end---------------------------------------->
- //轮播图 start---------------------------------------->
- .nuxt-swiper {
- width: 100%;
- height: 300PX;
- position: relative;
- img {
- width: 100%;
- height: 100%;
- }
- span {
- display: inline-block;
- width: 100%;
- height: 40PX;
- line-height: 40PX;
- padding: 0 10PX;
- box-sizing: border-box;
- position: absolute;
- bottom: 0;
- left: 0;
- font-family: Source Han Sans, Source Han Sans;
- font-size: 16PX;
- color: #FFFFFF;
- //background: linear-gradient(to bottom, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
- background: rgba(0, 0, 0, .6);
- }
- }
- .el-carousel {
- // 左右箭头按钮
- .el-carousel__arrow--right :deep(.class-name),
- .el-carousel__arrow--left :deep(.class-name) {
- width: 68PX;
- height: 68PX;
- }
- //左右箭头图片
- /deep/.el-icon svg {
- height: 1em;
- width: 1em;
- background-color: transparent;
- }
- /deep/.el-carousel__arrow {
- border-radius: 0;
- background-color: transparent;
- }
- /deep/.el-carousel__arrow i {
- font-size: 68PX !important;
- }
- /deep/ .el-carousel__indicators {
- // 指示器
- left: unset;
- transform: unset;
- right: 41%;
- }
- /deep/ .el-carousel__button {
- // 指示器按钮
- width: 15PX;
- height: 15PX;
- border-radius: 50%;
- border: none;
- opacity: 1;
- background-color: #FFFFFF;
- bottom: 30PX;
- }
- /deep/ .is-active .el-carousel__button {
- // 指示器激活按钮
- background: #158d91;
- }
- /deep/.custom-indicators {
- position: absolute;
- bottom: 10PX;
- left: 50%;
- transform: translateX(-50%);
- }
- /deep/ .el-carousel__indicators {
- right: 3%;
- bottom: 10%;
- }
- /deep/ .el-carousel__arrow {
- top: 50%;
- }
- }
- //轮播图 end---------------------------------------->
- //第一层 start---------------------------------------->
- .index—layer-1 {
- width: 100%;
- height: auto;
- padding: 0px 10px;
- box-sizing: border-box;
- overflow: hidden;
- margin: 20PX auto;
- display: flex;
- align-items: flex-start;
- justify-content: space-between;
- .index—layer-1-left {
- width: 31%;
- border: 1PX solid #ccc;
- }
- .index-layer-1-middle {
- width: 31%;
- border: 1PX solid #ccc;
- box-sizing: border-box;
- padding: 0 10PX;
- padding-bottom: 5PX;
- .tabtlt {
- width: 100%;
- height: auto;
- outline: hidden;
- border-bottom: 1PX solid #f0f0f0;
- margin: 7PX 0 18PX;
- overflow: hidden;
- display: flex;
- align-self: center;
- justify-content: space-between;
- a {
- color: #337ab7;
- text-decoration: none;
- }
- div {
- width: 50%;
- text-align: center;
- width: 100%;
- height: 50PX;
- line-height: 50PX;
- font-size: 20PX;
- color: #000;
- background: #f3f3f3;
- text-align: center;
- cursor: pointer;
- }
- div.intabtltbg {
- background: url(public/index/current.gif) no-repeat center bottom !important;
- }
- }
- .coninfoitem {
- width: 100%;
- overflow: hidden;
- margin: 0PX auto;
- >div {
- &.coninfoitem_img {
- height: 86PX;
- overflow: hidden;
- margin-bottom: 5PX;
- display: flex;
- align-items: flex-start;
- }
- h3 {
- line-height: 26PX;
- a {
- font-size: 13PX;
- color: #333;
- font-weight: bold;
- width: 100%;
- height: 26PX;
- line-height: 26PX;
- overflow: hidden;
- display: block;
- }
- }
- img {
- width: 120PX;
- height: 86PX;
- float: left;
- margin-right: 11PX;
- }
- p {
- line-height: 0;
- a {
- line-height: 20PX;
- color: #333;
- font-size: 13PX;
- text-indent: 2em;
- display: block;
- }
- }
- }
- .coninfoitem_title {
- width: 100%;
- height: 28PX;
- line-height: 28PX;
- overflow: hidden;
- position: relative;
- list-style-position: inside;
- color: #000;
- display: flex;
- align-items: center;
- justify-content: space-between;
- span:nth-child(1) {
- width: 70%;
- height: 28PX;
- text-align: left;
- overflow: hidden;
- display: block;
- font-size: 14PX;
- }
- span:nth-child(2) {
- width: 30%;
- height: 28PX;
- text-align: right;
- display: block;
- font-size: 12PX;
- color: #666;
- }
- }
- }
- }
- .index-layer-1-right {
- width: 31%;
- border: 1PX solid #ccc;
- box-sizing: border-box;
- padding: 0 10PX;
- padding-bottom: 16PX;
- .imgtlt {
- width: 100%;
- height: 43PX;
- border-bottom: 1PX solid #e7e7e7;
- a {
- display: block;
- width: 92PX;
- height: 42PX;
- line-height: 42PX;
- text-align: center;
- font-size: 20PX;
- color: #333;
- border-bottom: 2PX solid #158d91;
- }
- }
- .con_img_list {
- display: flex;
- flex-wrap: wrap;
- a {
- width: 48%;
- float: left;
- overflow: hidden;
- height: 100PX;
- margin: 20PX auto 0;
- display: block;
- position: relative;
- img {
- display: block;
- width: 100%;
- height: 100%;
- }
- .con_img_list_rgba {
- position: absolute;
- width: 100%;
- height: 22PX;
- line-height: 21PX;
- box-sizing: border-box;
- padding: 0PX 10PX;
- text-align: center;
- bottom: 0PX;
- left: 0PX;
- color: #fff;
- font-size: 16PX;
- z-index: 11;
- background: rgba(0, 0, 0, .6);
- display: block;
- word-break: keep-all;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- }
- }
- }
- }
- }
- //第一层 end---------------------------------------->
- //第二层 start---------------------------------------->
- .index—layer-2 {
- width: 100%;
- height: auto;
- overflow: hidden;
- margin: 20PX auto;
- display: flex;
- align-items: flex-start;
- justify-content: space-between;
- .index—layer-2-left,
- .index—layer-2-right {
- width: 49%;
- border: 1PX solid #ddd;
- height: auto;
- overflow: hidden;
- .index—layer-2-title {
- display: flex;
- align-items: center;
- justify-content: flex-start;
- background: #fff;
- >div {
- &.active {
- background: #158d91;
- color: #fff;
- a {
- color: #fff;
- }
- }
- width: 118PX;
- height: 44PX;
- line-height: 44PX;
- background: #fff;
- text-align: center;
- color: #808080;
- font-size: 16PX;
- font-weight: bold;
- border-bottom: 2PX solid #158d91;
- a {
- font-size: 20PX;
- color: #808080;
- }
- }
- }
- .index-tabs2-top {
- background: #f8f8f8;
- padding: 20PX 20PX;
- box-sizing: border-box;
- display: flex;
- border-bottom: 1PX dashed #ddd;
- >a {
- margin-right: 11PX;
- img {
- display: block;
- width: 120PX;
- height: 86PX;
- }
- }
- h3 {
- width: 100%;
- height: 26PX;
- line-height: 26PX;
- overflow: hidden;
- a {
- font-size: 13PX;
- color: #333;
- font-weight: bold;
- }
- }
- p {
- width: 100%;
- height: 60PX;
- line-height: 20PX;
- overflow: hidden;
- display: -webkit-box !important;
- -webkit-box-orient: vertical;
- -webkit-line-clamp: 3;
- a {
- color: #333;
- font-size: 13PX;
- }
- }
- }
- .index-tabs2-bottom {
- padding: 20PX;
- margin: 0;
- a {
- display: block;
- width: 100%;
- height: 28PX;
- line-height: 28PX;
- color: #333;
- font-size: 13PX;
- display: flex;
- align-items: center;
- justify-content: space-between;
- span:nth-child(1) {
- width: 70%;
- height: 28PX;
- text-align: left;
- overflow: hidden;
- display: block;
- font-size: 14PX;
- }
- span:nth-child(2) {
- width: 30%;
- height: 28PX;
- text-align: right;
- display: block;
- font-size: 12PX;
- }
- }
- }
- }
- }
- //第二层 end---------------------------------------->
- //第三层 start---------------------------------------->
- .index—layer-3 {
- .index—layer-3-line {
- width: 100%;
- display: flex;
- align-items: center;
- justify-content: space-between;
- margin: 0 auto;
- box-sizing: border-box;
- //选项卡类型
- .index—layer-3-tabs-box {
- width: 31%;
- height: auto;
- border: 1PX solid #ddd;
- border-top: 2PX solid #158d91;
- margin: 1%;
- padding: 0 10PX;
- box-sizing: border-box;
- .index—layer-3-tabs-box-title {
- display: flex;
- align-items: center;
- width: 100%;
- border-bottom: 1PX solid #f0f0f0;
- >div {
- &.active {
- background: url(../public/index/current2.png) no-repeat center bottom;
- }
- width: 87PX;
- height: 54PX;
- line-height: 55PX;
- overflow: hidden;
- float: left;
- margin-right: 10PX;
- text-align: center;
- font-size: 20PX;
- color: #333;
- font-weight: bold;
- a {
- color: #333;
- }
- }
- }
- .index—layer-3-news-body-main {
- margin-bottom: 20PX;
- a {
- width: 100%;
- height: 26PX;
- line-height: 26PX;
- list-style-position: inside;
- font-size: 13PX;
- color: #333;
- display: block;
- word-break: keep-all;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- width: 66%;
- }
- }
- }
- //常规类型
- .index—layer-3-news-box {
- width: 31%;
- height: auto;
- border: 1PX solid #ddd;
- border-top: 2PX solid #158d91;
- margin: 1%;
- padding: 0 10PX;
- box-sizing: border-box;
- .index—layer-3-news-box-title {
- display: flex;
- align-items: center;
- width: 100%;
- border-bottom: 1PX solid #f0f0f0;
- >div {
- &.active {
- background: url(../public/index/current2.png) no-repeat center bottom;
- }
- width: 87PX;
- height: 54PX;
- line-height: 55PX;
- overflow: hidden;
- float: left;
- margin-right: 10PX;
- text-align: center;
- font-size: 20PX;
- color: #333;
- font-weight: bold;
- a {
- color: #333;
- }
- }
- }
- .index—layer-3-news-body-main {
- margin-bottom: 20PX;
- a {
- width: 100%;
- height: 26PX;
- line-height: 26PX;
- list-style-position: inside;
- font-size: 13PX;
- color: #333;
- display: flex;
- align-items: center;
- justify-content: space-between;
- span:nth-child(1) {
- width: 70%;
- height: 28PX;
- text-align: left;
- overflow: hidden;
- display: block;
- font-size: 14PX;
- }
- span:nth-child(2) {
- width: 30%;
- height: 28PX;
- text-align: right;
- display: block;
- font-size: 12PX;
- }
- }
- }
- }
- }
- .index—layer-3-news-body-title {
- display: flex;
- align-items: center;
- justify-content: flex-start;
- margin: 20PX 0 14PX;
- padding-bottom: 20PX;
- border-bottom: 1PX dashed #e1e1e1;
- >div {
- &.news-body-left {
- margin-right: 11PX;
- img {
- display: block;
- width: 120PX;
- height: 86PX;
- }
- }
- &.news-body-right {
- >a {
- display: block;
- width: 100%;
- height: 40PX;
- line-height: 40PX;
- font-size: 16PX;
- font-weight: bold;
- overflow: hidden;
- color: #000;
- text-decoration: none;
- }
- p {
- width: 100%;
- height: 46PX;
- line-height: 23PX;
- overflow: hidden;
- font-size: 14PX;
- color: #333;
- a {
- color: #333;
- }
- }
- }
- }
- }
- }
- //第三层 end---------------------------------------->
- //第四层 start---------------------------------------->
- .index-layer-4 {
- width: 100%;
- border: 1PX solid #ccc;
- border-radius: 20PX;
- padding: 10PX 20PX;
- box-sizing: border-box;
- margin: 20PX auto;
- .index-layer-4-title {
- display: flex;
- align-items: center;
- justify-content: space-between;
- width: 100%;
- height: 40PX;
- line-height: 40PX;
- border-bottom: 1PX solid #ccc;
- a {
- &:first-child {
- font-size: 22PX;
- color: #1476bd;
- }
- &:last-child {
- font-size: 16PX;
- color: #f00;
- border: none;
- float: right;
- }
- display: block;
- }
- }
- .index-layer-4-body {
- .post_nr {
- width: 100%;
- height: auto;
- margin: 20PX auto;
- border: 1PX solid #ccc;
- border-radius: 10PX;
- padding: 20PX !important;
- box-sizing: border-box;
- .name {
- display: block;
- width: 100%;
- height: auto;
- line-height: 40PX;
- font-size: 16PX;
- color: #333;
- }
- b {
- font-size: 17PX;
- margin: 0 10PX;
- }
- li {
- border-bottom: 1PX solid #ccc;
- padding-bottom: 15PX;
- margin-bottom: 10PX;
- box-sizing: border-box;
- p {
- margin: 0;
- height: auto;
- line-height: 25PX;
- font-size: 15PX;
- color: #000;
- &.hfnr {
- font-weight: bold;
- span {
- color: #f00;
- }
- }
- }
- }
- }
- }
- }
- //第四层 end---------------------------------------->
- .index—layer-2 {
- padding: 0px 10px;
- box-sizing: border-box;
- }
- .index-layer-4 {
- margin: 0px auto;
- width: 98%;
- }
- }
- @media screen and (max-width: 800px) {
- //swiper轮播图 start---------------------------------------->
- .swiper-container {
- width: 100%;
- padding: 20px 0;
- position: relative;
- max-width: 1400px;
- margin: 0 auto;
- display: none;
- }
- .custom-swiper {
- width: 100%;
- height: 100%;
- padding: 10px 5px; //给两侧留出空间
- }
- .custom-swiper :deep(.swiper-wrapper) {
- align-items: stretch; //使所有幻灯片高度一致
- }
- .custom-swiper :deep(.swiper-slide) {
- height: auto;
- transition: transform 0.3s ease;
- }
- //悬停效果
- .custom-swiper :deep(.swiper-slide:hover) {
- transform: translateY(-5px);
- z-index: 10;
- }
- .slide-link {
- display: block;
- text-decoration: none;
- color: inherit;
- height: 100%;
- width: 100%;
- }
- .image-container {
- position: relative;
- width: 100%;
- height: 118px; //根据需求调整
- overflow: hidden;
- box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
- transition: all 0.3s ease;
- background: #f5f5f5; //加载时的背景色
- }
- .image-container:hover {
- box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
- }
- .slide-image {
- // width: 100%;
- // height: 100%;
- width: 264px;
- height: 118px;
- object-fit: cover;
- transition: transform 0.5s ease;
- }
- .image-container:hover .slide-image {
- transform: scale(1.05);
- }
- .image-title {
- position: absolute;
- bottom: 0;
- left: 0;
- right: 0;
- color: white;
- padding: 12px 15px;
- font-size: 14px;
- line-height: 1.4;
- text-align: center;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- background: rgba(0, 0, 0, .6)
- }
- .custom-indicators {
- display: flex;
- justify-content: center;
- gap: 8px;
- margin-top: 25px;
- padding: 15px 10px;
- flex-wrap: wrap;
- background: rgba(255, 255, 255, 0.9);
- border-radius: 50px;
- max-width: 90%;
- margin-left: auto;
- margin-right: auto;
- }
- .indicator-btn {
- width: 36px;
- height: 36px;
- border-radius: 50%;
- border: 2px solid #e0e0e0;
- background: white;
- color: #333;
- cursor: pointer;
- transition: all 0.3s ease;
- font-size: 14px;
- font-weight: 500;
- display: flex;
- align-items: center;
- justify-content: center;
- outline: none;
- }
- .indicator-btn:hover {
- background: #f0f9ff;
- border-color: #409eff;
- transform: scale(1.1);
- }
- .indicator-btn.active-indicator {
- background: #409eff;
- color: white;
- border-color: #409eff;
- box-shadow: 0 4px 12px rgba(64, 158, 255, 0.3);
- }
- //swiper加载动画
- .image-container:empty::before {
- content: '';
- position: absolute;
- top: 0;
- left: 0;
- width: 100%;
- height: 100%;
- background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
- background-size: 200% 100%;
- animation: loading 1.5s infinite;
- border-radius: 12px;
- }
- @keyframes loading {
- 0% {
- background-position: 200% 0;
- }
- 100% {
- background-position: -200% 0;
- }
- }
- //swiper箭头颜色
- .custom-swiper :deep(.swiper-button-prev),
- .custom-swiper :deep(.swiper-button-next) {
- color: white !important; //箭头颜色改为白色
- }
- .custom-swiper :deep(.swiper-button-prev):after,
- .custom-swiper :deep(.swiper-button-next):after {
- color: white !important; //确保箭头图标也是白色
- }
- //swiper轮播图 end---------------------------------------->
- //轮播图 start---------------------------------------->
- .nuxt-swiper {
- width: 100%;
- height: 330px;
- position: relative;
- img {
- width: 100%;
- height: 100%;
- }
- span {
- display: inline-block;
- width: 100%;
- height: 55px;
- line-height: 55px;
- padding-left: 20px;
- box-sizing: border-box;
- position: absolute;
- bottom: 0;
- left: 0;
- font-family: Source Han Sans, Source Han Sans;
- font-size: 20px;
- color: #FFFFFF;
- //background: linear-gradient(to bottom, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
- background: rgba(0, 0, 0, .6);
- }
- }
- .el-carousel {
- // 左右箭头按钮
- .el-carousel__arrow--right :deep(.class-name),
- .el-carousel__arrow--left :deep(.class-name) {
- width: 68px;
- height: 68px;
- }
- //左右箭头图片
- /deep/.el-icon svg {
- height: 1em;
- width: 1em;
- background-color: transparent;
- }
- /deep/.el-carousel__arrow {
- border-radius: 0;
- background-color: transparent;
- }
- /deep/.el-carousel__arrow i {
- font-size: 68px !important;
- }
- /deep/ .el-carousel__indicators {
- // 指示器
- left: unset;
- transform: unset;
- right: 41%;
- }
- /deep/ .el-carousel__button {
- // 指示器按钮
- width: 15px;
- height: 15px;
- border-radius: 50%;
- border: none;
- opacity: 1;
- background-color: #FFFFFF;
- bottom: 30px;
- }
- /deep/ .is-active .el-carousel__button {
- // 指示器激活按钮
- background: #158d91;
- }
- /deep/.custom-indicators {
- position: absolute;
- bottom: 10px;
- left: 50%;
- transform: translateX(-50%);
- }
- /deep/ .el-carousel__indicators {
- right: 3%;
- bottom: 14%;
- }
- /deep/ .el-carousel__arrow {
- top: 50%;
- }
- /deep/ .el-carousel__container {
- height: 330px;
- }
- }
- //轮播图 end---------------------------------------->
- //第一层 start---------------------------------------->
- .index—layer-1 {
- width: 100%;
- height: auto;
- overflow: hidden;
- margin: 20px auto;
- display: flex;
- align-items: flex-start;
- justify-content: space-between;
- flex-wrap: wrap;
- box-sizing: border-box;
- padding: 0 10px;
- .index—layer-1-left {
- width: 100%;
- margin: 10px 0;
- border: 1px solid #ccc;
- }
- .index-layer-1-middle {
- width: 100%;
- border: 1px solid #ccc;
- box-sizing: border-box;
- padding: 0 10px;
- padding-bottom: 5px;
- margin: 10px 0;
- .tabtlt {
- width: 100%;
- height: auto;
- outline: hidden;
- border-bottom: 1px solid #f0f0f0;
- margin: 7px 0 18px;
- overflow: hidden;
- display: flex;
- align-self: center;
- justify-content: space-between;
- a {
- color: #337ab7;
- text-decoration: none;
- }
- div {
- width: 50%;
- text-align: center;
- width: 100%;
- height: 50px;
- line-height: 50px;
- font-size: 28px;
- color: #000;
- background: #f3f3f3;
- text-align: center;
- cursor: pointer;
- }
- div.intabtltbg {
- background: url(public/index/current.gif) no-repeat center bottom !important;
- }
- }
- .coninfoitem {
- width: 100%;
- overflow: hidden;
- margin: 0px auto;
- >div {
- &.coninfoitem_img {
- height: 220px;
- overflow: hidden;
- margin-bottom: 5px;
- display: flex;
- align-items: flex-start;
- justify-content: space-between;
- }
- h3 {
- width: 100%;
- height: 40px;
- line-height: 40px;
- line-height: 0;
- overflow: hidden;
- a {
- font-size: 30px;
- color: #333;
- font-weight: bold;
- width: 100%;
- height: 44px;
- line-height: 44px;
- overflow: hidden;
- display: block;
- }
- }
- img {
- width: 440px;
- height: 220px;
- float: left;
- margin-right: 11px;
- }
- p {
- a {
- color: #333;
- font-size: 26px;
- height: 90px;
- line-height: 30px;
- margin-top: 11px;
- display: block;
- text-indent: 2em;
- overflow: hidden;
- display: -webkit-box !important;
- -webkit-box-orient: vertical;
- -webkit-line-clamp: 3;
- }
- }
- }
- .coninfoitem_title {
- width: 100%;
- height: 70px;
- line-height: 70px;
- color: #333;
- display: block;
- font-weight: normal;
- display: flex;
- align-items: center;
- justify-content: space-between;
- span:nth-child(1) {
- width: 70%;
- height: 50px;
- text-align: left;
- overflow: hidden;
- display: block;
- font-size: 28px;
- }
- span:nth-child(2) {
- width: 30%;
- height: 50px;
- text-align: right;
- display: block;
- font-size: 24px;
- color: #666;
- }
- }
- }
- }
- .index-layer-1-right {
- width: 100%;
- border: 1px solid #ccc;
- box-sizing: border-box;
- padding-bottom: 16px;
- padding: 10px;
- .imgtlt {
- width: 100%;
- height: 43px;
- border-bottom: 1px solid #e7e7e7;
- a {
- display: block;
- width: auto;
- float: left;
- height: 42px;
- line-height: 42px;
- text-align: center;
- font-size: 26px;
- color: #333;
- border-bottom: 2px solid #158d91;
- }
- }
- .con_img_list {
- display: flex;
- flex-wrap: wrap;
- a {
- width: 48%;
- float: left;
- overflow: hidden;
- height: 200px;
- margin: 20px auto 0;
- display: block;
- position: relative;
- img {
- display: block;
- width: 100%;
- height: 100%;
- }
- .con_img_list_rgba {
- position: absolute;
- width: 100%;
- height: 33px;
- line-height: 33px;
- box-sizing: border-box;
- padding: 0 10px;
- text-align: center;
- bottom: 0px;
- left: 0px;
- color: #fff;
- font-size: 20px;
- z-index: 11;
- background: rgba(0, 0, 0, .6);
- display: block;
- word-break: keep-all;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- }
- }
- }
- }
- }
- //第一层 end---------------------------------------->
- //第二层 start---------------------------------------->
- .index—layer-2 {
- width: 100%;
- height: auto;
- overflow: hidden;
- margin: 20px auto;
- display: flex;
- align-items: flex-start;
- justify-content: space-between;
- flex-wrap: wrap;
- padding: 0 10px;
- box-sizing: border-box;
- .index—layer-2-left,
- .index—layer-2-right {
- width: 100%;
- border: 1px solid #ddd;
- height: auto;
- overflow: hidden;
- margin: 10px 0;
- .index—layer-2-title {
- display: flex;
- align-items: center;
- justify-content: flex-start;
- background: #fff;
- >div {
- &.active {
- background: #158d91;
- color: #fff;
- a {
- color: #fff;
- }
- }
- width:auto;
- float:left;
- height: 55px;
- line-height: 55px;
- background: #fff;
- text-align: center;
- color: #808080;
- font-size: 26px;
- padding:0px 18px;
- font-weight: bold;
- border-bottom: 2px solid #158d91;
- a {
- font-size: 20px;
- color: #808080;
- }
- }
- }
- .index-tabs2-top {
- background: #f8f8f8;
- padding: 20px 20px;
- box-sizing: border-box;
- display: flex;
- border-bottom: 1px dashed #ddd;
- >a {
- margin-right: 11px;
- img {
- display: block;
- width: 330px;
- height: 220px;
- }
- }
- h3 {
- width: 100%;
- height: 40px;
- line-height: 40px;
- line-height: 0;
- overflow: hidden;
- a {
- font-size: 30px;
- color: #333;
- font-weight: bold;
- width: 100%;
- height: 44px;
- line-height: 44px;
- overflow: hidden;
- display: block;
- }
- }
- p {
- a {
- color: #333;
- font-size: 26px;
- height: 90px;
- line-height: 30px;
- margin-top: 11px;
- display: block;
- text-indent: 2em;
- overflow: hidden;
- display: -webkit-box !important;
- -webkit-box-orient: vertical;
- -webkit-line-clamp: 3;
- }
- }
- }
- .index-tabs2-bottom {
- padding: 20px;
- margin: 0;
- box-sizing: border-box;
- a {
- display: block;
- width: 100%;
- height: 50px;
- line-height: 50px;
- overflow: hidden;
- position: relative;
- list-style-position: inside;
- color: #333;
- font-size: 32px;
- display: flex;
- align-items: center;
- justify-content: space-between;
- span:nth-child(1) {
- width: 70%;
- height: 50px;
- text-align: left;
- overflow: hidden;
- display: block;
- font-size: 28px;
- }
- span:nth-child(2) {
- width: 30%;
- height: 50px;
- text-align: right;
- display: block;
- font-size: 24px;
- color: #666;
- }
- }
- }
- }
- }
- //第二层 end---------------------------------------->
- //第三层 start---------------------------------------->
- .index—layer-3 {
- .index—layer-3-line {
- width: 100%;
- display: flex;
- align-items: center;
- justify-content: space-between;
- margin: 0 auto;
- box-sizing: border-box;
- flex-wrap: wrap;
- padding: 0 10px;
- //选项卡类型
- .index—layer-3-tabs-box {
- width: 100%;
- height: auto;
- border: 1px solid #ddd;
- border-top: 2px solid #158d91;
- margin: 1%;
- padding: 0 10px;
- box-sizing: border-box;
- margin: 10px 0;
- .index—layer-3-tabs-box-title {
- display: flex;
- align-items: center;
- width: 100%;
- border-bottom: 1px solid #f0f0f0;
- >div {
- &.active {
- background: url(../public/index/current2.png) no-repeat center bottom;
- }
- width: 87px;
- height: 54px;
- line-height: 55px;
- overflow: hidden;
- float: left;
- margin-right: 10px;
- text-align: center;
- font-size: 20px;
- color: #333;
- font-weight: bold;
- a {
- color: #333;
- }
- }
- }
- .index—layer-3-news-body-main {
- margin-bottom: 20px;
- a {
- width: 100%;
- height: 70px;
- line-height: 70px;
- font-size: 26px;
- color: #333;
- display: flex;
- align-items: center;
- justify-content: space-between;
- span:nth-child(1) {
- width: 70%;
- height: 50px;
- text-align: left;
- overflow: hidden;
- display: block;
- font-size: 28px;
- }
- span:nth-child(2) {
- width: 30%;
- height: 50px;
- text-align: right;
- display: block;
- font-size: 24px;
- color: #666;
- }
- }
- }
- }
- //常规类型
- .index—layer-3-news-box {
- width: 100%;
- height: auto;
- border: 1px solid #ddd;
- border-top: 2px solid #158d91;
- margin: 1%;
- padding: 0 10px;
- box-sizing: border-box;
- margin: 10px 0;
- .index—layer-3-news-box-title {
- display: flex;
- align-items: center;
- width: 100%;
- border-bottom: 1px solid #f0f0f0;
- >div {
- &.active {
- background: url(../public/index/current2.png) no-repeat center bottom;
- }
- width:auto;
- float:left;
- height: 54px;
- line-height: 55px;
- overflow: hidden;
- float: left;
- margin-right: 10px;
- text-align: center;
- font-size: 20px;
- color: #333;
- font-weight: bold;
- a {
- color: #333;
- }
- }
- }
- .index—layer-3-news-body-main {
- margin-bottom: 20px;
- a {
- width: 100%;
- height: 70px;
- line-height: 70px;
- font-size: 26px;
- color: #333;
- display: flex;
- align-items: center;
- justify-content: space-between;
- span:nth-child(1) {
- width: 70%;
- height: 50px;
- text-align: left;
- overflow: hidden;
- display: block;
- font-size: 28px;
- }
- span:nth-child(2) {
- width: 30%;
- height: 50px;
- text-align: right;
- display: block;
- font-size: 24px;
- color: #666;
- }
- }
- }
- }
- }
- .index—layer-3-news-body-title {
- overflow: hidden;
- align-items: center;
- justify-content: flex-start;
- margin: 20px 0 14px;
- padding-bottom: 20px;
- border-bottom: 1px dashed #e1e1e1;
- >div {
- &.news-body-left {
- float: left;
- margin-right: 11px;
- img {
- display: block;
- width: 330px;
- height: 220px;
- }
- }
- &.news-body-right {
- width: 350px;
- float: right;
- >a {
- height: 40px;
- line-height: 40px;
- line-height: 0;
- overflow: hidden;
- font-size: 30px;
- color: #333;
- font-weight: bold;
- width: 100%;
- height: 44px;
- line-height: 44px;
- overflow: hidden;
- display: block;
- }
- p {
- a {
- color: #333;
- font-size: 26px;
- height: 90px;
- line-height: 30px;
- margin-top: 11px;
- display: block;
- text-indent: 2em;
- overflow: hidden;
- display: -webkit-box !important;
- -webkit-box-orient: vertical;
- -webkit-line-clamp: 3;
- }
- }
- }
- }
- }
- }
- //第三层 end---------------------------------------->
- //第四层 start---------------------------------------->
- .index-layer-4 {
- width: 100%;
- border: 1px solid #ccc;
- border-radius: 20px;
- padding: 10px 20px;
- box-sizing: border-box;
- display: none;
- .index-layer-4-title {
- display: flex;
- align-items: center;
- justify-content: space-between;
- width: 100%;
- height: 40px;
- line-height: 40px;
- border-bottom: 1px solid #ccc;
- a {
- &:first-child {
- font-size: 22px;
- color: #1476bd;
- }
- &:last-child {
- font-size: 16px;
- color: #f00;
- border: none;
- float: right;
- }
- display: block;
- }
- }
- .index-layer-4-body {
- .post_nr {
- width: 100%;
- height: auto;
- margin: 20px auto;
- border: 1px solid #ccc;
- border-radius: 10px;
- padding: 20px !important;
- box-sizing: border-box;
- .name {
- display: block;
- width: 100%;
- height: auto;
- line-height: 40px;
- font-size: 16px;
- color: #333;
- }
- b {
- font-size: 17px;
- margin: 0 10px;
- }
- li {
- border-bottom: 1px solid #ccc;
- padding-bottom: 15px;
- margin-bottom: 10px;
- box-sizing: border-box;
- p {
- margin: 0;
- height: auto;
- line-height: 25px;
- font-size: 15px;
- color: #000;
- &.hfnr {
- font-weight: bold;
- span {
- color: #f00;
- }
- }
- }
- }
- }
- }
- }
- //第四层 end---------------------------------------->
- }
- </style>
|