12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790 |
- import { defineComponent, ref, resolveComponent, mergeProps, unref, withCtx, createVNode, toDisplayString, createTextVNode, openBlock, createBlock, Fragment, renderList, useSSRContext, getCurrentInstance, createSSRApp } from "vue";
- import { ssrRenderAttrs, ssrRenderAttr, ssrRenderList, ssrRenderClass, ssrInterpolate, ssrRenderStyle, ssrRenderComponent, renderToString } from "vue/server-renderer";
- import { useStore, createStore } from "vuex";
- import { useRoute, createRouter, createMemoryHistory } from "vue-router";
- import ElementPlus, { ElMessage } from "element-plus";
- import axios from "axios";
- import lazyPlugin from "vue3-lazy";
- const _imports_0$2 = "/assets/logo-white-Cthg1NVg.png";
- const _sfc_main$4 = /* @__PURE__ */ defineComponent({
- __name: "header",
- __ssrInlineRender: true,
- setup(__props) {
- const store2 = useStore();
- const route = useRoute();
- const currentPagePath = ref(route.path);
- const mobilelistboolean = ref(false);
- if (route.path.indexOf("_")) {
- currentPagePath.value = route.path.split("_")[0];
- }
- const pathTemplateQuery = ref();
- if (route.query && route.query.dup) {
- pathTemplateQuery.value = route.query.dup;
- }
- function handleOpen() {
- }
- function handleClose() {
- }
- if (typeof window !== "undefined" && typeof window.globalThis.addEventListener === "function") {
- globalThis.addEventListener("scroll", function() {
- var scrollTop = document.documentElement.scrollTop || document.body.scrollTop;
- var element = document.getElementById("scroll-up");
- var stickyHeader = document.getElementsByClassName("sticky-header")[0];
- if (scrollTop > 770) {
- element.style.opacity = 1;
- } else {
- element.style.opacity = 0;
- }
- if (scrollTop > 110) {
- stickyHeader.classList.add("sticky");
- } else {
- stickyHeader.classList.remove("sticky");
- }
- });
- }
- return (_ctx, _push, _parent, _attrs) => {
- const _component_el_row = resolveComponent("el-row");
- const _component_el_col = resolveComponent("el-col");
- const _component_el_menu = resolveComponent("el-menu");
- const _component_el_sub_menu = resolveComponent("el-sub-menu");
- const _component_location = resolveComponent("location");
- const _component_el_menu_item_group = resolveComponent("el-menu-item-group");
- const _component_el_menu_item = resolveComponent("el-menu-item");
- const _component_icon_menu = resolveComponent("icon-menu");
- _push(`<header${ssrRenderAttrs(mergeProps({ class: "header-absolute sticky-header" }, _attrs))}><div class="custom-container-one"><div class="mainmenu-area d-flex align-items-center justify-content-center"><div class="logo"><a href="/index"><img${ssrRenderAttr("src", _imports_0$2)} alt="uskylogo"></a></div><div class="d-flex align-items-center"><nav class="main-menu"><div class="menu-items">`);
- if (unref(store2).state.menuList.length > 0) {
- _push(`<ul><!--[-->`);
- ssrRenderList(unref(store2).state.menuList, (item) => {
- _push(`<li class="${ssrRenderClass(item.sname ? `${currentPagePath.value}?dup=${item.sname}` == `${item.path}?dup=${item.sname}` && pathTemplateQuery.value ? "active" : " " : currentPagePath.value == item.path && !pathTemplateQuery.value ? "active" : " ")}"><a${ssrRenderAttr(
- "href",
- item.sname ? `${item.path}?dup=${item.sname}` : item.path
- )}>${ssrInterpolate(item.categoryName)}</a><ul class="submenu">`);
- if (item.children) {
- _push(`<!--[-->`);
- ssrRenderList(item.children, (children) => {
- _push(`<li><a${ssrRenderAttr("href", item.sname ? `${item.path}?dup=${item.sname}&categoryid=${children.id}&isUrlId=1` : `${item.path}?categoryid=${children.id}&isUrlId=1`)}><span style="${ssrRenderStyle({ "font-weight": "bold", "margin-right": "10px" })}">·</span> ${ssrInterpolate(children.categoryName)}</a></li>`);
- });
- _push(`<!--]-->`);
- } else {
- _push(`<!---->`);
- }
- _push(`</ul></li>`);
- });
- _push(`<!--]--></ul>`);
- } else {
- _push(`<!---->`);
- }
- _push(`</div></nav>`);
- if (unref(store2).state.menuList.length > 0) {
- _push(`<div class="apply-expre">申请体验</div>`);
- } else {
- _push(`<!---->`);
- }
- _push(`</div></div><div class="mobile-menu mean-container mobileIcon"><div class="mean-bar"><a href="#nav" class="meanmenu-reveal" style="${ssrRenderStyle({ "right": "0px", "left": "auto", "text-align": "center", "text-indent": "0px", "font-size": "18px" })}"><span></span><span></span><span></span></a></div></div>`);
- if (mobilelistboolean.value) {
- _push(ssrRenderComponent(_component_el_row, {
- class: ["tac mobileMenuBox", [mobilelistboolean.value ? "active" : ""]]
- }, {
- default: withCtx((_, _push2, _parent2, _scopeId) => {
- if (_push2) {
- _push2(ssrRenderComponent(_component_el_col, { span: 24 }, {
- default: withCtx((_2, _push3, _parent3, _scopeId2) => {
- if (_push3) {
- _push3(ssrRenderComponent(_component_el_menu, {
- "active-text-color": "#ffd04b",
- "background-color": "#0c1923",
- class: "el-menu-vertical-demo",
- "default-active": "2",
- "text-color": "#fff",
- onOpen: handleOpen,
- onClose: handleClose
- }, {
- default: withCtx((_3, _push4, _parent4, _scopeId3) => {
- if (_push4) {
- _push4(`<!--[-->`);
- ssrRenderList(unref(store2).state.menuList, (item) => {
- _push4(`<!--[-->`);
- if (item.children.length > 0) {
- _push4(ssrRenderComponent(_component_el_sub_menu, {
- index: item.id
- }, {
- title: withCtx((_4, _push5, _parent5, _scopeId4) => {
- if (_push5) {
- _push5(ssrRenderComponent(_component_location, null, null, _parent5, _scopeId4));
- _push5(`<span${_scopeId4}><a${ssrRenderAttr("href", item.sname ? `${item.path}?dup=${item.sname}&categoryid=${item.id}&isUrlId=1` : `${item.path}?categoryid=${item.id}&isUrlId=1`)}${_scopeId4}>${ssrInterpolate(item.categoryName)}</a></span>`);
- } else {
- return [
- createVNode(_component_location),
- createVNode("span", null, [
- createVNode("a", {
- href: item.sname ? `${item.path}?dup=${item.sname}&categoryid=${item.id}&isUrlId=1` : `${item.path}?categoryid=${item.id}&isUrlId=1`
- }, toDisplayString(item.categoryName), 9, ["href"])
- ])
- ];
- }
- }),
- default: withCtx((_4, _push5, _parent5, _scopeId4) => {
- if (_push5) {
- _push5(`<!--[-->`);
- ssrRenderList(item.children, (aa) => {
- _push5(ssrRenderComponent(_component_el_menu_item_group, {
- title: "",
- key: aa.id
- }, {
- default: withCtx((_5, _push6, _parent6, _scopeId5) => {
- if (_push6) {
- _push6(ssrRenderComponent(_component_el_menu_item, {
- index: item.id + "-" + aa.id
- }, {
- default: withCtx((_6, _push7, _parent7, _scopeId6) => {
- if (_push7) {
- _push7(`<a${ssrRenderAttr("href", item.sname ? `${item.path}?dup=${item.sname}&categoryid=${aa.id}&isUrlId=1` : `${item.path}?categoryid=${aa.id}&isUrlId=1`)}${_scopeId6}><span style="${ssrRenderStyle({ "font-weight": "bold", "margin-right": "10px" })}"${_scopeId6}>·</span>${ssrInterpolate(aa.categoryName)}</a>`);
- } else {
- return [
- createVNode("a", {
- href: item.sname ? `${item.path}?dup=${item.sname}&categoryid=${aa.id}&isUrlId=1` : `${item.path}?categoryid=${aa.id}&isUrlId=1`
- }, [
- createVNode("span", { style: { "font-weight": "bold", "margin-right": "10px" } }, "·"),
- createTextVNode(toDisplayString(aa.categoryName), 1)
- ], 8, ["href"])
- ];
- }
- }),
- _: 2
- }, _parent6, _scopeId5));
- } else {
- return [
- createVNode(_component_el_menu_item, {
- index: item.id + "-" + aa.id
- }, {
- default: withCtx(() => [
- createVNode("a", {
- href: item.sname ? `${item.path}?dup=${item.sname}&categoryid=${aa.id}&isUrlId=1` : `${item.path}?categoryid=${aa.id}&isUrlId=1`
- }, [
- createVNode("span", { style: { "font-weight": "bold", "margin-right": "10px" } }, "·"),
- createTextVNode(toDisplayString(aa.categoryName), 1)
- ], 8, ["href"])
- ]),
- _: 2
- }, 1032, ["index"])
- ];
- }
- }),
- _: 2
- }, _parent5, _scopeId4));
- });
- _push5(`<!--]-->`);
- } else {
- return [
- (openBlock(true), createBlock(Fragment, null, renderList(item.children, (aa) => {
- return openBlock(), createBlock(_component_el_menu_item_group, {
- title: "",
- key: aa.id
- }, {
- default: withCtx(() => [
- createVNode(_component_el_menu_item, {
- index: item.id + "-" + aa.id
- }, {
- default: withCtx(() => [
- createVNode("a", {
- href: item.sname ? `${item.path}?dup=${item.sname}&categoryid=${aa.id}&isUrlId=1` : `${item.path}?categoryid=${aa.id}&isUrlId=1`
- }, [
- createVNode("span", { style: { "font-weight": "bold", "margin-right": "10px" } }, "·"),
- createTextVNode(toDisplayString(aa.categoryName), 1)
- ], 8, ["href"])
- ]),
- _: 2
- }, 1032, ["index"])
- ]),
- _: 2
- }, 1024);
- }), 128))
- ];
- }
- }),
- _: 2
- }, _parent4, _scopeId3));
- } else {
- _push4(ssrRenderComponent(_component_el_menu_item, {
- index: item.index
- }, {
- default: withCtx((_4, _push5, _parent5, _scopeId4) => {
- if (_push5) {
- _push5(ssrRenderComponent(_component_icon_menu, null, null, _parent5, _scopeId4));
- _push5(`<span${_scopeId4}><a style="${ssrRenderStyle({ "color": "#fff" })}"${ssrRenderAttr("href", item.sname ? `${item.path}?dup=${item.sname}&categoryid=${item.id}&isUrlId=1` : `${item.path}?categoryid=${item.id}&isUrlId=1`)}${_scopeId4}>${ssrInterpolate(item.categoryName)}</a></span>`);
- } else {
- return [
- createVNode(_component_icon_menu),
- createVNode("span", null, [
- createVNode("a", {
- style: { "color": "#fff" },
- href: item.sname ? `${item.path}?dup=${item.sname}&categoryid=${item.id}&isUrlId=1` : `${item.path}?categoryid=${item.id}&isUrlId=1`
- }, toDisplayString(item.categoryName), 9, ["href"])
- ])
- ];
- }
- }),
- _: 2
- }, _parent4, _scopeId3));
- }
- _push4(`<!--]-->`);
- });
- _push4(`<!--]-->`);
- } else {
- return [
- (openBlock(true), createBlock(Fragment, null, renderList(unref(store2).state.menuList, (item) => {
- return openBlock(), createBlock(Fragment, {
- key: item.id
- }, [
- item.children.length > 0 ? (openBlock(), createBlock(_component_el_sub_menu, {
- key: 0,
- index: item.id
- }, {
- title: withCtx(() => [
- createVNode(_component_location),
- createVNode("span", null, [
- createVNode("a", {
- href: item.sname ? `${item.path}?dup=${item.sname}&categoryid=${item.id}&isUrlId=1` : `${item.path}?categoryid=${item.id}&isUrlId=1`
- }, toDisplayString(item.categoryName), 9, ["href"])
- ])
- ]),
- default: withCtx(() => [
- (openBlock(true), createBlock(Fragment, null, renderList(item.children, (aa) => {
- return openBlock(), createBlock(_component_el_menu_item_group, {
- title: "",
- key: aa.id
- }, {
- default: withCtx(() => [
- createVNode(_component_el_menu_item, {
- index: item.id + "-" + aa.id
- }, {
- default: withCtx(() => [
- createVNode("a", {
- href: item.sname ? `${item.path}?dup=${item.sname}&categoryid=${aa.id}&isUrlId=1` : `${item.path}?categoryid=${aa.id}&isUrlId=1`
- }, [
- createVNode("span", { style: { "font-weight": "bold", "margin-right": "10px" } }, "·"),
- createTextVNode(toDisplayString(aa.categoryName), 1)
- ], 8, ["href"])
- ]),
- _: 2
- }, 1032, ["index"])
- ]),
- _: 2
- }, 1024);
- }), 128))
- ]),
- _: 2
- }, 1032, ["index"])) : (openBlock(), createBlock(_component_el_menu_item, {
- key: 1,
- index: item.index
- }, {
- default: withCtx(() => [
- createVNode(_component_icon_menu),
- createVNode("span", null, [
- createVNode("a", {
- style: { "color": "#fff" },
- href: item.sname ? `${item.path}?dup=${item.sname}&categoryid=${item.id}&isUrlId=1` : `${item.path}?categoryid=${item.id}&isUrlId=1`
- }, toDisplayString(item.categoryName), 9, ["href"])
- ])
- ]),
- _: 2
- }, 1032, ["index"]))
- ], 64);
- }), 128))
- ];
- }
- }),
- _: 1
- }, _parent3, _scopeId2));
- } else {
- return [
- createVNode(_component_el_menu, {
- "active-text-color": "#ffd04b",
- "background-color": "#0c1923",
- class: "el-menu-vertical-demo",
- "default-active": "2",
- "text-color": "#fff",
- onOpen: handleOpen,
- onClose: handleClose
- }, {
- default: withCtx(() => [
- (openBlock(true), createBlock(Fragment, null, renderList(unref(store2).state.menuList, (item) => {
- return openBlock(), createBlock(Fragment, {
- key: item.id
- }, [
- item.children.length > 0 ? (openBlock(), createBlock(_component_el_sub_menu, {
- key: 0,
- index: item.id
- }, {
- title: withCtx(() => [
- createVNode(_component_location),
- createVNode("span", null, [
- createVNode("a", {
- href: item.sname ? `${item.path}?dup=${item.sname}&categoryid=${item.id}&isUrlId=1` : `${item.path}?categoryid=${item.id}&isUrlId=1`
- }, toDisplayString(item.categoryName), 9, ["href"])
- ])
- ]),
- default: withCtx(() => [
- (openBlock(true), createBlock(Fragment, null, renderList(item.children, (aa) => {
- return openBlock(), createBlock(_component_el_menu_item_group, {
- title: "",
- key: aa.id
- }, {
- default: withCtx(() => [
- createVNode(_component_el_menu_item, {
- index: item.id + "-" + aa.id
- }, {
- default: withCtx(() => [
- createVNode("a", {
- href: item.sname ? `${item.path}?dup=${item.sname}&categoryid=${aa.id}&isUrlId=1` : `${item.path}?categoryid=${aa.id}&isUrlId=1`
- }, [
- createVNode("span", { style: { "font-weight": "bold", "margin-right": "10px" } }, "·"),
- createTextVNode(toDisplayString(aa.categoryName), 1)
- ], 8, ["href"])
- ]),
- _: 2
- }, 1032, ["index"])
- ]),
- _: 2
- }, 1024);
- }), 128))
- ]),
- _: 2
- }, 1032, ["index"])) : (openBlock(), createBlock(_component_el_menu_item, {
- key: 1,
- index: item.index
- }, {
- default: withCtx(() => [
- createVNode(_component_icon_menu),
- createVNode("span", null, [
- createVNode("a", {
- style: { "color": "#fff" },
- href: item.sname ? `${item.path}?dup=${item.sname}&categoryid=${item.id}&isUrlId=1` : `${item.path}?categoryid=${item.id}&isUrlId=1`
- }, toDisplayString(item.categoryName), 9, ["href"])
- ])
- ]),
- _: 2
- }, 1032, ["index"]))
- ], 64);
- }), 128))
- ]),
- _: 1
- })
- ];
- }
- }),
- _: 1
- }, _parent2, _scopeId));
- } else {
- return [
- createVNode(_component_el_col, { span: 24 }, {
- default: withCtx(() => [
- createVNode(_component_el_menu, {
- "active-text-color": "#ffd04b",
- "background-color": "#0c1923",
- class: "el-menu-vertical-demo",
- "default-active": "2",
- "text-color": "#fff",
- onOpen: handleOpen,
- onClose: handleClose
- }, {
- default: withCtx(() => [
- (openBlock(true), createBlock(Fragment, null, renderList(unref(store2).state.menuList, (item) => {
- return openBlock(), createBlock(Fragment, {
- key: item.id
- }, [
- item.children.length > 0 ? (openBlock(), createBlock(_component_el_sub_menu, {
- key: 0,
- index: item.id
- }, {
- title: withCtx(() => [
- createVNode(_component_location),
- createVNode("span", null, [
- createVNode("a", {
- href: item.sname ? `${item.path}?dup=${item.sname}&categoryid=${item.id}&isUrlId=1` : `${item.path}?categoryid=${item.id}&isUrlId=1`
- }, toDisplayString(item.categoryName), 9, ["href"])
- ])
- ]),
- default: withCtx(() => [
- (openBlock(true), createBlock(Fragment, null, renderList(item.children, (aa) => {
- return openBlock(), createBlock(_component_el_menu_item_group, {
- title: "",
- key: aa.id
- }, {
- default: withCtx(() => [
- createVNode(_component_el_menu_item, {
- index: item.id + "-" + aa.id
- }, {
- default: withCtx(() => [
- createVNode("a", {
- href: item.sname ? `${item.path}?dup=${item.sname}&categoryid=${aa.id}&isUrlId=1` : `${item.path}?categoryid=${aa.id}&isUrlId=1`
- }, [
- createVNode("span", { style: { "font-weight": "bold", "margin-right": "10px" } }, "·"),
- createTextVNode(toDisplayString(aa.categoryName), 1)
- ], 8, ["href"])
- ]),
- _: 2
- }, 1032, ["index"])
- ]),
- _: 2
- }, 1024);
- }), 128))
- ]),
- _: 2
- }, 1032, ["index"])) : (openBlock(), createBlock(_component_el_menu_item, {
- key: 1,
- index: item.index
- }, {
- default: withCtx(() => [
- createVNode(_component_icon_menu),
- createVNode("span", null, [
- createVNode("a", {
- style: { "color": "#fff" },
- href: item.sname ? `${item.path}?dup=${item.sname}&categoryid=${item.id}&isUrlId=1` : `${item.path}?categoryid=${item.id}&isUrlId=1`
- }, toDisplayString(item.categoryName), 9, ["href"])
- ])
- ]),
- _: 2
- }, 1032, ["index"]))
- ], 64);
- }), 128))
- ]),
- _: 1
- })
- ]),
- _: 1
- })
- ];
- }
- }),
- _: 1
- }, _parent));
- } else {
- _push(`<!---->`);
- }
- _push(`</div></header>`);
- };
- }
- });
- const _sfc_setup$4 = _sfc_main$4.setup;
- _sfc_main$4.setup = (props, ctx) => {
- const ssrContext = useSSRContext();
- (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("src/components/layout/header.vue");
- return _sfc_setup$4 ? _sfc_setup$4(props, ctx) : void 0;
- };
- const _imports_0$1 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAAZCAYAAADE6YVjAAAACXBIWXMAAAsTAAALEw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M2GvHChRqf2F/g5VnBesen6/e5eMOm2gpYaw1462rA/Eqf6Z1J/vD3NXJJk/dqNfaNZ97c9sefObd64smXl55aaw93C00QxRIhIJaga+AFEk0TWIZGFEs0ITB1QRBJIqmwDZ0wkjiWxvHbCjNfOTn13cdOjl8D+PcAASxOot7wFxsAAAAASUVORK5CYII=";
- const _sfc_main$3 = /* @__PURE__ */ defineComponent({
- __name: "footer",
- __ssrInlineRender: true,
- setup(__props) {
- const store2 = useStore();
- const status = ref(false);
- setTimeout(() => {
- status.value = true;
- }, 200);
- return (_ctx, _push, _parent, _attrs) => {
- if (status.value) {
- _push(`<footer${ssrRenderAttrs(_attrs)} data-v-14b49d7e><div class="footer-widget-area" style="${ssrRenderStyle({ "position": "relative", "clear": "both" })}" data-v-14b49d7e><div class="container" data-v-14b49d7e><div class="row footerOne" data-v-14b49d7e><div class="col-lg-2 col-md-6 col-sm-6 footerWidth" data-v-14b49d7e><div class="copyrigt-or-code d-flex flex-column align-items-center" data-v-14b49d7e><img width="130 " height="130 " src="https://aiot.usky.cn/uskyq/assets/img/qr_code.png" data-v-14b49d7e><span style="${ssrRenderStyle({ "text-align": "left", "color": "#fff", "margin-top": "10px" })}" data-v-14b49d7e>微信公众号</span></div></div><!--[-->`);
- ssrRenderList(unref(store2).state.menuList, (item) => {
- _push(`<div class="footerNone" style="${ssrRenderStyle({ "width": 0.8 / unref(store2).state.menuList.length * 100 + "%" })}" data-v-14b49d7e><div class="widget nav-widget d-flex justify-content-center" data-v-14b49d7e><div data-v-14b49d7e><h5 class="widget-title" data-v-14b49d7e>`);
- if (item.sname) {
- _push(`<a${ssrRenderAttr("href", `${item.path}?dup=${item.sname}`)} data-v-14b49d7e>${ssrInterpolate(item.categoryName)}</a>`);
- } else {
- _push(`<a${ssrRenderAttr("href", item.path)} data-v-14b49d7e>${ssrInterpolate(item.categoryName)}</a>`);
- }
- _push(`</h5><ul data-v-14b49d7e>`);
- if (item.children) {
- _push(`<!--[-->`);
- ssrRenderList(item.children, (children) => {
- _push(`<li style="${ssrRenderStyle({ "text-align": "left" })}" data-v-14b49d7e><a${ssrRenderAttr("href", item.sname ? `${item.path}?dup=${item.sname}&categoryid=${children.id}&isUrlId=1` : `${item.path}?categoryid=${children.id}&isUrlId=1`)} data-v-14b49d7e>${ssrInterpolate(children.categoryName)}</a></li>`);
- });
- _push(`<!--]-->`);
- } else {
- _push(`<!---->`);
- }
- _push(`</ul></div></div></div>`);
- });
- _push(`<!--]--></div></div></div><div class="copy-right-area" data-v-14b49d7e><div class="container" data-v-14b49d7e><div class="row copyrigt-text" data-v-14b49d7e><div class="col-lg-12" data-v-14b49d7e><p data-v-14b49d7e>Copyright © 2001- 2024 Usky. All Rights Reserved. 永天股份 版权所有</p><p data-v-14b49d7e>增值电信业务经营许可证(IDC、ISP)编号B2-20080010</p><p style="${ssrRenderStyle({ "margin-top": "10px" })}" data-v-14b49d7e><a target="_blank" href="https://wap.scjgj.sh.gov.cn/businessCheck/verifKey.do?showType=extShow&serial=9031000020180517151815000002552816-SAIC_SHOW_310000-C5DE2EFE9AD14E94923F7AC487AA7077105&signData=MEYCIQDqmcH8RWjPwf4id/UFCbng+HLdnF21HDjoUikAjkdiKQIhAOrQRYz74d3T5P03DL6OW10HBRktOYPenEbcmn1gCweV" data-v-14b49d7e><img${ssrRenderAttr("src", _imports_0$1)} alt="1" width="20" data-v-14b49d7e> 沪公网安备 31010802001185号 </a></p></div></div></div></div></footer>`);
- } else {
- _push(`<!---->`);
- }
- };
- }
- });
- const _export_sfc = (sfc, props) => {
- const target = sfc.__vccOpts || sfc;
- for (const [key, val] of props) {
- target[key] = val;
- }
- return target;
- };
- const _sfc_setup$3 = _sfc_main$3.setup;
- _sfc_main$3.setup = (props, ctx) => {
- const ssrContext = useSSRContext();
- (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("src/components/layout/footer.vue");
- return _sfc_setup$3 ? _sfc_setup$3(props, ctx) : void 0;
- };
- const footerCommon = /* @__PURE__ */ _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oBF6aihNSj/CPW5UskQX+sNpBeD4aIzrauCxoBk//Knuv7QxSQHrsqUv8S9ttIZVgEagSYPcmuR+hQfDJK8I2qEc9Y4ibDg7k41VnQZ5ovI39+msZuishkTc56Dv1U6x49Cccoesj8CpI6CRCt7iszT+MQLlNlU6RLzQ4rA3UVXZK+ZjBMLOuvsYQT7+xkjRrCxOCddm+RyGCTMZCzU5df6davITHPP2qunPYUSUd88Ju4vJNGlxHEwS9T+fRbnipeVLrwAAAABJRU5ErkJggg==";
- const _imports_2 = "/assets/qr_codeF1-D9vSfJeP.png";
- const _imports_3 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAA8dJREFUWEfVmVtolFcQx3+z7kYpSSkiYiDal9CaekEbA5IUd/WhLUipSK2o9VKTmmrQF6kvDe1K+6KlBStV02RXqBVFivaiYF5qIiYWNV7wkgZ80QSUFqwkUuJustOedTfXzX6X7K76vX7/+c//XGbOnDmCmy+onjdmUOZVFiOUAjOBIqBAoR+lW4T7wJ8obX3CmXN3uUhQYk7diROD8gZ92edhC8paEQqd2KpyD+FQNMa+1iq5Y9fWlsDy/TrVm8dOESoFfHbJU+EUoiKEIr183rpZ/rLishS4KKRrBL4VYbIVmZP/Cg9U2Xa2Ug6nsxtTYGmd+vK9fCfCR04cO8WKUN8doaatWqKpbFMKLK3TFwp8HAfecurQJb6xJ8rytmr5d6T9KIFm5gp8/JZDcUlNRuQ7I2dylEB/SL/P9rKONcuq1DdXyqah/4cJNAHhEX50uUwZMYspHwwNnAGBJpX4JtL+f8RmNFqdqjbRHX1MSTIFDQgMhPUAUJ2O8MyHTt2NjV98MC1XXdNG+dgg4gIr6nSG18dtqyScK4EmmfdFKW6plrtxgf6w7hLYYTU/uRJodKjyVXOl7BCC6vFPp8vO2ZqfZzUE+/8fRdJjzdnd3EmRLApruQda7FOnRxa9CF3dmWGLQYUEwvop8GUmKN+dCdsWwp7z8GtHJhiplUBITyAsGy/de7NgSxmIxPcP+y7AT7fGyar8LP6w3hR4bTxUq+dA1YJESkgQKVB/CY5cd8+sSrtZ4n+Al9zSrJ8HG+aPbX3wCvxw1S07D41AU+Z43VBUlcKaudaWh69Bw2VrXApEvxHYC0x0am7224rZ9q2O3YD9F+3jE8i4wL+BKXZNTWY3kbqsxK7FIO5EO+z9A8z+tPk9dBQkRtz2Clj6ik36FLCTHfBNqz2RT4LEQZpZNQfeLB70OskL0/Ktxd5/BL19g7jG23DUXnT/Ypa4FvjC2s1oxOuF8PXb1pbbT8Ple9a4FIjacR112RYYP+qcFAsjR5hNgQPFgnHqD+luET5xughZFpgotxwUrLmawXjBOoHilvWJgtU4tlPy50ogMLzkN46fqUuTl5LWdU/6Ns/PtTO5fE/14g4NzRtlWC/o+Wt9mJmMN4/yOIay1GnqcYUXTvVEeN9W8yjpIBBUL9PZixC/QGftUw7QydamoAw5rQe9WTYwA2Fdaa4YmW6JmBaHxKhpqpKj6QZvKTCZgvImsVM1Qy1gCEce81lGWsBDR/fMNtFHLUHiGWJCjCViniGEV5PPEAlsD9CF0qFKW7+H390+Q/wHWj122PL+dwcAAAAASUVORK5CYII=";
- const _sfc_main$2 = /* @__PURE__ */ defineComponent({
- __name: "feedFix",
- __ssrInlineRender: true,
- setup(__props) {
- if (typeof window !== "undefined" && typeof window.globalThis.addEventListener === "function") {
- globalThis.addEventListener("scroll", function() {
- var scrollTop = document.documentElement.scrollTop || document.body.scrollTop;
- var element = document.getElementById("scroll-up");
- if (scrollTop > 770) {
- element.style.opacity = 1;
- } else {
- element.style.opacity = 0;
- }
- });
- }
- return (_ctx, _push, _parent, _attrs) => {
- _push(`<div${ssrRenderAttrs(mergeProps({ class: "feedBackBox" }, _attrs))}><div class="contactOne"><img${ssrRenderAttr("src", _imports_0)} alt=""><ul class="contactInner"><li style="${ssrRenderStyle({ "font-size": "25px", "margin-bottom": "5px" })}">合作共赢</li><li><span>智 慧 消 防:</span><span>李先生 18621761642</span></li><li><span>人脸识别系统:</span><span>李先生 18621761642</span></li><li><span>弱 电 智 能 化:</span><span>李先生 13918571231</span></li><li><span>质量 监督投诉:</span><span>孙先生 17721169552</span></li><li style="${ssrRenderStyle({ "margin-top": "10px" })}">其他智慧城市相关应用合作: 021-65376655</li></ul></div><div class="contactQr"><img${ssrRenderAttr("src", _imports_1)} alt=""><div class=""><img${ssrRenderAttr("src", _imports_2)} alt=""></div></div><div id="scroll-up" style="${ssrRenderStyle({ "opacity": "0" })}"><img${ssrRenderAttr("src", _imports_3)} alt=""></div></div>`);
- };
- }
- });
- const _sfc_setup$2 = _sfc_main$2.setup;
- _sfc_main$2.setup = (props, ctx) => {
- const ssrContext = useSSRContext();
- (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("src/components/layout/feedFix.vue");
- return _sfc_setup$2 ? _sfc_setup$2(props, ctx) : void 0;
- };
- function tansParams(params) {
- let result = "";
- for (const propName of Object.keys(params)) {
- const value = params[propName];
- var part = encodeURIComponent(propName) + "=";
- if (value !== null && value !== "" && typeof value !== "undefined") {
- if (typeof value === "object") {
- for (const key of Object.keys(value)) {
- if (value[key] !== null && value[key] !== "" && typeof value[key] !== "undefined") {
- let params2 = propName + "[" + key + "]";
- var subPart = encodeURIComponent(params2) + "=";
- result += subPart + encodeURIComponent(value[key]) + "&";
- }
- }
- } else {
- result += part + encodeURIComponent(value) + "&";
- }
- }
- }
- return result;
- }
- const service = axios.create({
- // axios中请求配置有baseURL选项,表示请求URL公共部分
- baseURL: "http://gateWay.usky.cn/",
- // 超时
- timeout: 3e5
- });
- service.interceptors.request.use((config) => {
- const isRepeatSubmit = (config.headers || {}).repeatSubmit === false;
- if (config.method === "get" && config.data) {
- let url = config.url + "?" + tansParams(config.data);
- url = url.slice(0, -1);
- config.params = {};
- config.url = url;
- }
- if (!isRepeatSubmit && (config.method === "post" || config.method === "put")) {
- ({
- url: config.url,
- data: typeof config.data === "object" ? JSON.stringify(config.data) : config.data,
- time: (/* @__PURE__ */ new Date()).getTime()
- });
- }
- config.headers["Content-Type"] = "application/json;charset=utf-8";
- return config;
- }, (error) => {
- Promise.reject(error);
- });
- service.interceptors.response.use(
- (res) => {
- const code = res.data.status;
- if (res.request.responseType === "blob" || res.request.responseType === "arraybuffer") {
- return res.data;
- }
- if (code == "SUCCESS" || res.data.msg == "操作成功") {
- return res.headers["content-type"].indexOf("application/vnd.ms-excel") != -1 ? res : res.data;
- } else if (res.data.code == 200) {
- return res.data;
- } else
- ;
- },
- (error) => {
- let message = error.response.data.msg;
- if (message == "Network Error") {
- message = "后端接口连接异常";
- } else if (message.includes("timeout")) {
- message = "系统接口请求超时";
- } else if (message.includes("Request failed with status code")) {
- message = "系统接口" + message.substr(message.length - 3) + "异常";
- }
- return Promise.reject(error);
- }
- );
- function getMenu() {
- return service({
- url: `prod-api/service-website/siteCategory/siteCategoryList`,
- method: "get"
- });
- }
- function getPageContent(params) {
- return service({
- url: `prod-api/service-website/siteArticle/siteArticleList`,
- method: "get",
- data: params
- });
- }
- function siteReview(data) {
- return service({
- url: `prod-api/service-website/siteReview`,
- method: "post",
- data
- });
- }
- const _sfc_main$1 = /* @__PURE__ */ defineComponent({
- __name: "dialogPersonal",
- __ssrInlineRender: true,
- setup(__props) {
- const { proxy } = getCurrentInstance();
- const store2 = useStore();
- const platName = ref("智慧安防");
- let consultationType = ref([]);
- store2.state.menuList.map((item) => {
- if (item.path == "/cases") {
- platName.value = item.children[0].categoryName;
- return consultationType.value = item.children;
- }
- });
- let ruleform = ref({
- platName: platName.value,
- consultName: "",
- consultPhone: "",
- mail: "",
- company: "",
- consultContent: ""
- });
- let rules = ref({
- platName: [{
- required: true,
- message: "请选择类型",
- trigger: "change"
- }],
- consultName: [{
- required: true,
- message: "请输入姓名",
- trigger: "blur"
- }],
- consultPhone: [{
- required: true,
- message: "请输入正确的电话号码",
- pattern: /^1[3|4|5|6|7|8|9][0-9]\d{8}$/,
- trigger: "change"
- }],
- mail: [{
- required: false,
- type: "email",
- message: "请输入正确的邮箱地址",
- trigger: "blur"
- }]
- });
- function ruleformNull() {
- ruleform.value = {
- platName: platName.value,
- consultName: "",
- consultPhone: "",
- mail: "",
- company: "",
- consultContent: ""
- };
- platName.value = consultationType.value[0];
- }
- function handle(type, e) {
- if (type == "close") {
- store2.commit("setDialogPersonalStatus", false);
- ruleformNull();
- }
- if (type == "submit") {
- platName.value = consultationType.value[0];
- proxy.$refs["form"].validate((valid) => {
- if (valid) {
- siteReview(ruleform.value).then((res) => {
- if ((res == null ? void 0 : res.status) == "SUCCESS") {
- ElMessage({
- message: "提交成功",
- type: "success"
- });
- handle("close");
- ruleformNull();
- } else {
- ElMessage.error(res.msg);
- }
- });
- }
- });
- }
- }
- return (_ctx, _push, _parent, _attrs) => {
- const _component_el_dialog = resolveComponent("el-dialog");
- const _component_el_form = resolveComponent("el-form");
- const _component_el_form_item = resolveComponent("el-form-item");
- const _component_el_radio_group = resolveComponent("el-radio-group");
- const _component_el_radio_button = resolveComponent("el-radio-button");
- const _component_el_row = resolveComponent("el-row");
- const _component_el_col = resolveComponent("el-col");
- const _component_el_input = resolveComponent("el-input");
- const _component_el_button = resolveComponent("el-button");
- _push(ssrRenderComponent(_component_el_dialog, mergeProps({
- title: "项目咨询",
- onClose: ($event) => handle("close"),
- modelValue: unref(store2).state.dialogPersonalStatus,
- "onUpdate:modelValue": ($event) => unref(store2).state.dialogPersonalStatus = $event,
- width: "700px",
- center: "",
- class: "feedBackDialog",
- "lock-scroll": false
- }, _attrs), {
- default: withCtx((_, _push2, _parent2, _scopeId) => {
- if (_push2) {
- _push2(ssrRenderComponent(_component_el_form, {
- model: unref(ruleform),
- rules: unref(rules),
- ref: "form",
- "label-width": "80px",
- class: "demo-ruleform"
- }, {
- default: withCtx((_2, _push3, _parent3, _scopeId2) => {
- if (_push3) {
- _push3(ssrRenderComponent(_component_el_form_item, {
- label: "",
- prop: "ruleform.platName",
- style: {},
- class: "dialogTypeLabel"
- }, {
- default: withCtx((_3, _push4, _parent4, _scopeId3) => {
- if (_push4) {
- _push4(ssrRenderComponent(_component_el_radio_group, {
- modelValue: platName.value,
- "onUpdate:modelValue": ($event) => platName.value = $event
- }, {
- default: withCtx((_4, _push5, _parent5, _scopeId4) => {
- if (_push5) {
- _push5(`<!--[-->`);
- ssrRenderList(unref(consultationType), (item, index2) => {
- _push5(ssrRenderComponent(_component_el_radio_button, {
- label: item.categoryName,
- value: item.categoryName,
- key: index2
- }, null, _parent5, _scopeId4));
- });
- _push5(`<!--]-->`);
- } else {
- return [
- (openBlock(true), createBlock(Fragment, null, renderList(unref(consultationType), (item, index2) => {
- return openBlock(), createBlock(_component_el_radio_button, {
- label: item.categoryName,
- value: item.categoryName,
- key: index2
- }, null, 8, ["label", "value"]);
- }), 128))
- ];
- }
- }),
- _: 1
- }, _parent4, _scopeId3));
- } else {
- return [
- createVNode(_component_el_radio_group, {
- modelValue: platName.value,
- "onUpdate:modelValue": ($event) => platName.value = $event
- }, {
- default: withCtx(() => [
- (openBlock(true), createBlock(Fragment, null, renderList(unref(consultationType), (item, index2) => {
- return openBlock(), createBlock(_component_el_radio_button, {
- label: item.categoryName,
- value: item.categoryName,
- key: index2
- }, null, 8, ["label", "value"]);
- }), 128))
- ]),
- _: 1
- }, 8, ["modelValue", "onUpdate:modelValue"])
- ];
- }
- }),
- _: 1
- }, _parent3, _scopeId2));
- _push3(ssrRenderComponent(_component_el_row, { gutter: 20 }, {
- default: withCtx((_3, _push4, _parent4, _scopeId3) => {
- if (_push4) {
- _push4(ssrRenderComponent(_component_el_col, { span: 12 }, {
- default: withCtx((_4, _push5, _parent5, _scopeId4) => {
- if (_push5) {
- _push5(ssrRenderComponent(_component_el_form_item, {
- label: "姓名",
- prop: "consultName"
- }, {
- default: withCtx((_5, _push6, _parent6, _scopeId5) => {
- if (_push6) {
- _push6(ssrRenderComponent(_component_el_input, {
- modelValue: unref(ruleform).consultName,
- "onUpdate:modelValue": ($event) => unref(ruleform).consultName = $event
- }, null, _parent6, _scopeId5));
- } else {
- return [
- createVNode(_component_el_input, {
- modelValue: unref(ruleform).consultName,
- "onUpdate:modelValue": ($event) => unref(ruleform).consultName = $event
- }, null, 8, ["modelValue", "onUpdate:modelValue"])
- ];
- }
- }),
- _: 1
- }, _parent5, _scopeId4));
- } else {
- return [
- createVNode(_component_el_form_item, {
- label: "姓名",
- prop: "consultName"
- }, {
- default: withCtx(() => [
- createVNode(_component_el_input, {
- modelValue: unref(ruleform).consultName,
- "onUpdate:modelValue": ($event) => unref(ruleform).consultName = $event
- }, null, 8, ["modelValue", "onUpdate:modelValue"])
- ]),
- _: 1
- })
- ];
- }
- }),
- _: 1
- }, _parent4, _scopeId3));
- _push4(ssrRenderComponent(_component_el_col, { span: 12 }, {
- default: withCtx((_4, _push5, _parent5, _scopeId4) => {
- if (_push5) {
- _push5(ssrRenderComponent(_component_el_form_item, {
- label: "联系电话",
- prop: "consultPhone"
- }, {
- default: withCtx((_5, _push6, _parent6, _scopeId5) => {
- if (_push6) {
- _push6(ssrRenderComponent(_component_el_input, {
- modelValue: unref(ruleform).consultPhone,
- "onUpdate:modelValue": ($event) => unref(ruleform).consultPhone = $event
- }, null, _parent6, _scopeId5));
- } else {
- return [
- createVNode(_component_el_input, {
- modelValue: unref(ruleform).consultPhone,
- "onUpdate:modelValue": ($event) => unref(ruleform).consultPhone = $event
- }, null, 8, ["modelValue", "onUpdate:modelValue"])
- ];
- }
- }),
- _: 1
- }, _parent5, _scopeId4));
- } else {
- return [
- createVNode(_component_el_form_item, {
- label: "联系电话",
- prop: "consultPhone"
- }, {
- default: withCtx(() => [
- createVNode(_component_el_input, {
- modelValue: unref(ruleform).consultPhone,
- "onUpdate:modelValue": ($event) => unref(ruleform).consultPhone = $event
- }, null, 8, ["modelValue", "onUpdate:modelValue"])
- ]),
- _: 1
- })
- ];
- }
- }),
- _: 1
- }, _parent4, _scopeId3));
- _push4(ssrRenderComponent(_component_el_col, { span: 12 }, {
- default: withCtx((_4, _push5, _parent5, _scopeId4) => {
- if (_push5) {
- _push5(ssrRenderComponent(_component_el_form_item, {
- label: "邮箱",
- prop: "mail"
- }, {
- default: withCtx((_5, _push6, _parent6, _scopeId5) => {
- if (_push6) {
- _push6(ssrRenderComponent(_component_el_input, {
- modelValue: unref(ruleform).mail,
- "onUpdate:modelValue": ($event) => unref(ruleform).mail = $event
- }, null, _parent6, _scopeId5));
- } else {
- return [
- createVNode(_component_el_input, {
- modelValue: unref(ruleform).mail,
- "onUpdate:modelValue": ($event) => unref(ruleform).mail = $event
- }, null, 8, ["modelValue", "onUpdate:modelValue"])
- ];
- }
- }),
- _: 1
- }, _parent5, _scopeId4));
- } else {
- return [
- createVNode(_component_el_form_item, {
- label: "邮箱",
- prop: "mail"
- }, {
- default: withCtx(() => [
- createVNode(_component_el_input, {
- modelValue: unref(ruleform).mail,
- "onUpdate:modelValue": ($event) => unref(ruleform).mail = $event
- }, null, 8, ["modelValue", "onUpdate:modelValue"])
- ]),
- _: 1
- })
- ];
- }
- }),
- _: 1
- }, _parent4, _scopeId3));
- _push4(ssrRenderComponent(_component_el_col, { span: 12 }, {
- default: withCtx((_4, _push5, _parent5, _scopeId4) => {
- if (_push5) {
- _push5(ssrRenderComponent(_component_el_form_item, {
- label: "公司",
- prop: "company"
- }, {
- default: withCtx((_5, _push6, _parent6, _scopeId5) => {
- if (_push6) {
- _push6(ssrRenderComponent(_component_el_input, {
- modelValue: unref(ruleform).company,
- "onUpdate:modelValue": ($event) => unref(ruleform).company = $event
- }, null, _parent6, _scopeId5));
- } else {
- return [
- createVNode(_component_el_input, {
- modelValue: unref(ruleform).company,
- "onUpdate:modelValue": ($event) => unref(ruleform).company = $event
- }, null, 8, ["modelValue", "onUpdate:modelValue"])
- ];
- }
- }),
- _: 1
- }, _parent5, _scopeId4));
- } else {
- return [
- createVNode(_component_el_form_item, {
- label: "公司",
- prop: "company"
- }, {
- default: withCtx(() => [
- createVNode(_component_el_input, {
- modelValue: unref(ruleform).company,
- "onUpdate:modelValue": ($event) => unref(ruleform).company = $event
- }, null, 8, ["modelValue", "onUpdate:modelValue"])
- ]),
- _: 1
- })
- ];
- }
- }),
- _: 1
- }, _parent4, _scopeId3));
- } else {
- return [
- createVNode(_component_el_col, { span: 12 }, {
- default: withCtx(() => [
- createVNode(_component_el_form_item, {
- label: "姓名",
- prop: "consultName"
- }, {
- default: withCtx(() => [
- createVNode(_component_el_input, {
- modelValue: unref(ruleform).consultName,
- "onUpdate:modelValue": ($event) => unref(ruleform).consultName = $event
- }, null, 8, ["modelValue", "onUpdate:modelValue"])
- ]),
- _: 1
- })
- ]),
- _: 1
- }),
- createVNode(_component_el_col, { span: 12 }, {
- default: withCtx(() => [
- createVNode(_component_el_form_item, {
- label: "联系电话",
- prop: "consultPhone"
- }, {
- default: withCtx(() => [
- createVNode(_component_el_input, {
- modelValue: unref(ruleform).consultPhone,
- "onUpdate:modelValue": ($event) => unref(ruleform).consultPhone = $event
- }, null, 8, ["modelValue", "onUpdate:modelValue"])
- ]),
- _: 1
- })
- ]),
- _: 1
- }),
- createVNode(_component_el_col, { span: 12 }, {
- default: withCtx(() => [
- createVNode(_component_el_form_item, {
- label: "邮箱",
- prop: "mail"
- }, {
- default: withCtx(() => [
- createVNode(_component_el_input, {
- modelValue: unref(ruleform).mail,
- "onUpdate:modelValue": ($event) => unref(ruleform).mail = $event
- }, null, 8, ["modelValue", "onUpdate:modelValue"])
- ]),
- _: 1
- })
- ]),
- _: 1
- }),
- createVNode(_component_el_col, { span: 12 }, {
- default: withCtx(() => [
- createVNode(_component_el_form_item, {
- label: "公司",
- prop: "company"
- }, {
- default: withCtx(() => [
- createVNode(_component_el_input, {
- modelValue: unref(ruleform).company,
- "onUpdate:modelValue": ($event) => unref(ruleform).company = $event
- }, null, 8, ["modelValue", "onUpdate:modelValue"])
- ]),
- _: 1
- })
- ]),
- _: 1
- })
- ];
- }
- }),
- _: 1
- }, _parent3, _scopeId2));
- _push3(ssrRenderComponent(_component_el_form_item, {
- label: "需求描述",
- prop: "consultContent"
- }, {
- default: withCtx((_3, _push4, _parent4, _scopeId3) => {
- if (_push4) {
- _push4(ssrRenderComponent(_component_el_input, {
- type: "textarea",
- modelValue: unref(ruleform).consultContent,
- "onUpdate:modelValue": ($event) => unref(ruleform).consultContent = $event
- }, null, _parent4, _scopeId3));
- } else {
- return [
- createVNode(_component_el_input, {
- type: "textarea",
- modelValue: unref(ruleform).consultContent,
- "onUpdate:modelValue": ($event) => unref(ruleform).consultContent = $event
- }, null, 8, ["modelValue", "onUpdate:modelValue"])
- ];
- }
- }),
- _: 1
- }, _parent3, _scopeId2));
- } else {
- return [
- createVNode(_component_el_form_item, {
- label: "",
- prop: "ruleform.platName",
- style: {},
- class: "dialogTypeLabel"
- }, {
- default: withCtx(() => [
- createVNode(_component_el_radio_group, {
- modelValue: platName.value,
- "onUpdate:modelValue": ($event) => platName.value = $event
- }, {
- default: withCtx(() => [
- (openBlock(true), createBlock(Fragment, null, renderList(unref(consultationType), (item, index2) => {
- return openBlock(), createBlock(_component_el_radio_button, {
- label: item.categoryName,
- value: item.categoryName,
- key: index2
- }, null, 8, ["label", "value"]);
- }), 128))
- ]),
- _: 1
- }, 8, ["modelValue", "onUpdate:modelValue"])
- ]),
- _: 1
- }),
- createVNode(_component_el_row, { gutter: 20 }, {
- default: withCtx(() => [
- createVNode(_component_el_col, { span: 12 }, {
- default: withCtx(() => [
- createVNode(_component_el_form_item, {
- label: "姓名",
- prop: "consultName"
- }, {
- default: withCtx(() => [
- createVNode(_component_el_input, {
- modelValue: unref(ruleform).consultName,
- "onUpdate:modelValue": ($event) => unref(ruleform).consultName = $event
- }, null, 8, ["modelValue", "onUpdate:modelValue"])
- ]),
- _: 1
- })
- ]),
- _: 1
- }),
- createVNode(_component_el_col, { span: 12 }, {
- default: withCtx(() => [
- createVNode(_component_el_form_item, {
- label: "联系电话",
- prop: "consultPhone"
- }, {
- default: withCtx(() => [
- createVNode(_component_el_input, {
- modelValue: unref(ruleform).consultPhone,
- "onUpdate:modelValue": ($event) => unref(ruleform).consultPhone = $event
- }, null, 8, ["modelValue", "onUpdate:modelValue"])
- ]),
- _: 1
- })
- ]),
- _: 1
- }),
- createVNode(_component_el_col, { span: 12 }, {
- default: withCtx(() => [
- createVNode(_component_el_form_item, {
- label: "邮箱",
- prop: "mail"
- }, {
- default: withCtx(() => [
- createVNode(_component_el_input, {
- modelValue: unref(ruleform).mail,
- "onUpdate:modelValue": ($event) => unref(ruleform).mail = $event
- }, null, 8, ["modelValue", "onUpdate:modelValue"])
- ]),
- _: 1
- })
- ]),
- _: 1
- }),
- createVNode(_component_el_col, { span: 12 }, {
- default: withCtx(() => [
- createVNode(_component_el_form_item, {
- label: "公司",
- prop: "company"
- }, {
- default: withCtx(() => [
- createVNode(_component_el_input, {
- modelValue: unref(ruleform).company,
- "onUpdate:modelValue": ($event) => unref(ruleform).company = $event
- }, null, 8, ["modelValue", "onUpdate:modelValue"])
- ]),
- _: 1
- })
- ]),
- _: 1
- })
- ]),
- _: 1
- }),
- createVNode(_component_el_form_item, {
- label: "需求描述",
- prop: "consultContent"
- }, {
- default: withCtx(() => [
- createVNode(_component_el_input, {
- type: "textarea",
- modelValue: unref(ruleform).consultContent,
- "onUpdate:modelValue": ($event) => unref(ruleform).consultContent = $event
- }, null, 8, ["modelValue", "onUpdate:modelValue"])
- ]),
- _: 1
- })
- ];
- }
- }),
- _: 1
- }, _parent2, _scopeId));
- _push2(`<span slot="footer" class="dialog-footer" style="${ssrRenderStyle({ "width": "100%", "text-align": "center" })}"${_scopeId}>`);
- _push2(ssrRenderComponent(_component_el_button, {
- onClick: ($event) => handle("close")
- }, {
- default: withCtx((_2, _push3, _parent3, _scopeId2) => {
- if (_push3) {
- _push3(`取 消`);
- } else {
- return [
- createTextVNode("取 消")
- ];
- }
- }),
- _: 1
- }, _parent2, _scopeId));
- _push2(ssrRenderComponent(_component_el_button, {
- type: "primary",
- onClick: ($event) => handle("submit")
- }, {
- default: withCtx((_2, _push3, _parent3, _scopeId2) => {
- if (_push3) {
- _push3(`提 交`);
- } else {
- return [
- createTextVNode("提 交")
- ];
- }
- }),
- _: 1
- }, _parent2, _scopeId));
- _push2(`</span>`);
- } else {
- return [
- createVNode(_component_el_form, {
- model: unref(ruleform),
- rules: unref(rules),
- ref: "form",
- "label-width": "80px",
- class: "demo-ruleform"
- }, {
- default: withCtx(() => [
- createVNode(_component_el_form_item, {
- label: "",
- prop: "ruleform.platName",
- style: {},
- class: "dialogTypeLabel"
- }, {
- default: withCtx(() => [
- createVNode(_component_el_radio_group, {
- modelValue: platName.value,
- "onUpdate:modelValue": ($event) => platName.value = $event
- }, {
- default: withCtx(() => [
- (openBlock(true), createBlock(Fragment, null, renderList(unref(consultationType), (item, index2) => {
- return openBlock(), createBlock(_component_el_radio_button, {
- label: item.categoryName,
- value: item.categoryName,
- key: index2
- }, null, 8, ["label", "value"]);
- }), 128))
- ]),
- _: 1
- }, 8, ["modelValue", "onUpdate:modelValue"])
- ]),
- _: 1
- }),
- createVNode(_component_el_row, { gutter: 20 }, {
- default: withCtx(() => [
- createVNode(_component_el_col, { span: 12 }, {
- default: withCtx(() => [
- createVNode(_component_el_form_item, {
- label: "姓名",
- prop: "consultName"
- }, {
- default: withCtx(() => [
- createVNode(_component_el_input, {
- modelValue: unref(ruleform).consultName,
- "onUpdate:modelValue": ($event) => unref(ruleform).consultName = $event
- }, null, 8, ["modelValue", "onUpdate:modelValue"])
- ]),
- _: 1
- })
- ]),
- _: 1
- }),
- createVNode(_component_el_col, { span: 12 }, {
- default: withCtx(() => [
- createVNode(_component_el_form_item, {
- label: "联系电话",
- prop: "consultPhone"
- }, {
- default: withCtx(() => [
- createVNode(_component_el_input, {
- modelValue: unref(ruleform).consultPhone,
- "onUpdate:modelValue": ($event) => unref(ruleform).consultPhone = $event
- }, null, 8, ["modelValue", "onUpdate:modelValue"])
- ]),
- _: 1
- })
- ]),
- _: 1
- }),
- createVNode(_component_el_col, { span: 12 }, {
- default: withCtx(() => [
- createVNode(_component_el_form_item, {
- label: "邮箱",
- prop: "mail"
- }, {
- default: withCtx(() => [
- createVNode(_component_el_input, {
- modelValue: unref(ruleform).mail,
- "onUpdate:modelValue": ($event) => unref(ruleform).mail = $event
- }, null, 8, ["modelValue", "onUpdate:modelValue"])
- ]),
- _: 1
- })
- ]),
- _: 1
- }),
- createVNode(_component_el_col, { span: 12 }, {
- default: withCtx(() => [
- createVNode(_component_el_form_item, {
- label: "公司",
- prop: "company"
- }, {
- default: withCtx(() => [
- createVNode(_component_el_input, {
- modelValue: unref(ruleform).company,
- "onUpdate:modelValue": ($event) => unref(ruleform).company = $event
- }, null, 8, ["modelValue", "onUpdate:modelValue"])
- ]),
- _: 1
- })
- ]),
- _: 1
- })
- ]),
- _: 1
- }),
- createVNode(_component_el_form_item, {
- label: "需求描述",
- prop: "consultContent"
- }, {
- default: withCtx(() => [
- createVNode(_component_el_input, {
- type: "textarea",
- modelValue: unref(ruleform).consultContent,
- "onUpdate:modelValue": ($event) => unref(ruleform).consultContent = $event
- }, null, 8, ["modelValue", "onUpdate:modelValue"])
- ]),
- _: 1
- })
- ]),
- _: 1
- }, 8, ["model", "rules"]),
- createVNode("span", {
- slot: "footer",
- class: "dialog-footer",
- style: { "width": "100%", "text-align": "center" }
- }, [
- createVNode(_component_el_button, {
- onClick: ($event) => handle("close")
- }, {
- default: withCtx(() => [
- createTextVNode("取 消")
- ]),
- _: 1
- }, 8, ["onClick"]),
- createVNode(_component_el_button, {
- type: "primary",
- onClick: ($event) => handle("submit")
- }, {
- default: withCtx(() => [
- createTextVNode("提 交")
- ]),
- _: 1
- }, 8, ["onClick"])
- ])
- ];
- }
- }),
- _: 1
- }, _parent));
- };
- }
- });
- const _sfc_setup$1 = _sfc_main$1.setup;
- _sfc_main$1.setup = (props, ctx) => {
- const ssrContext = useSSRContext();
- (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("src/components/layout/dialogPersonal.vue");
- return _sfc_setup$1 ? _sfc_setup$1(props, ctx) : void 0;
- };
- const _sfc_main = /* @__PURE__ */ defineComponent({
- __name: "App",
- __ssrInlineRender: true,
- setup(__props) {
- const store2 = useStore();
- function setDialogPersonalStatus() {
- store2.commit("setDialogPersonalStatus", false);
- }
- return (_ctx, _push, _parent, _attrs) => {
- const _component_router_view = resolveComponent("router-view");
- _push(`<!--[-->`);
- _push(ssrRenderComponent(_sfc_main$4, null, null, _parent));
- _push(ssrRenderComponent(_component_router_view, null, null, _parent));
- _push(ssrRenderComponent(_sfc_main$2, null, null, _parent));
- _push(ssrRenderComponent(footerCommon, null, null, _parent));
- _push(ssrRenderComponent(_sfc_main$1, {
- data: unref(store2).state.dialogPersonalStatus,
- onSetDialogPersonalStatus: setDialogPersonalStatus
- }, null, _parent));
- _push(`<!--]-->`);
- };
- }
- });
- const _sfc_setup = _sfc_main.setup;
- _sfc_main.setup = (props, ctx) => {
- const ssrContext = useSSRContext();
- (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("src/App.vue");
- return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
- };
- const store = createStore({
- state: {
- menuList: [],
- //菜单列表
- pageContent: [],
- //页面主体内容(不包含banner)
- recomMendation: [],
- //推荐内容
- currentPagePath: "",
- //当前页名称
- acitveId: 0,
- //客户案例类型切换活动id
- sub: 0,
- //当前页下标
- columnTypes: [],
- //页面下属类型
- scrollUp: {
- //返回顶部
- opacity: 0,
- visibility: "hidden",
- scrollTo: 0
- },
- route: {},
- //跳转数据
- //分页数据
- pagination: {
- total: 0,
- size: 10,
- count: 1
- },
- meta: {
- title: void 0,
- keywords: void 0,
- description: void 0
- },
- dialogPersonalStatus: false
- //弹框状态
- },
- mutations: {
- //菜单列表
- setMenuList(state, data) {
- state.menuList = data;
- return state.menuList;
- },
- //页面主体内容
- setPageData(state, data) {
- state.pageContent = data.records;
- state.pagination.total = data.total;
- return state.pageContent, state.pagination;
- },
- //
- setCurrentPagePathOrSub(state, data) {
- state.currentPagePath = data.index;
- state.sub = data.sub;
- return state.index, state.sub;
- },
- //子页面活动状态
- setAcitveId(state, data) {
- state.acitveId = data;
- return state.acitveId;
- },
- //推荐内容
- setRecomMendation(state, data) {
- state.recomMendation = data;
- return state.recomMendation;
- },
- //设置弹框状态
- setDialogPersonalStatus(state, data) {
- state.dialogPersonalStatus = data;
- return state.dialogPersonalStatus;
- },
- //设置页面下属类型
- setColumnTypes(state, data) {
- state.columnTypes = data;
- return state.columnTypes;
- },
- //设置跳转路由参数
- setRoute(state, data) {
- state.route = data;
- return state.route;
- },
- //设置meta
- setMeta(state, data) {
- state.meta = data;
- return state.meta;
- }
- },
- actions: {
- getMenuList({ commit }, params) {
- return new Promise((resolve) => {
- getMenu().then((res) => {
- let data = [];
- for (let i = 0; i < res.data.length; i++) {
- data.push(res.data[i]);
- if (data[i].categoryStyle == 1) {
- data[i].path = "/index";
- if (data[i].children.length > 0) {
- for (let ii = 0; ii < data[i].children.length; ii++) {
- data[i].children[ii].path = "/index?categoryid=" + data[i].children[ii].id;
- }
- }
- }
- if (data[i].categoryStyle == 2) {
- data[i].path = "/cases";
- if (data[i].children.length > 0) {
- for (let ii = 0; ii < data[i].children.length; ii++) {
- data[i].children[ii].path = "/cases?categoryid=" + data[i].children[ii].id;
- }
- }
- }
- if (data[i].categoryStyle == 3) {
- data[i].path = "/services";
- if (data[i].children.length > 0) {
- for (let ii = 0; ii < data[i].children.length; ii++) {
- data[i].children[ii].path = "/services?categoryid=" + data[i].children[ii].id;
- }
- }
- }
- if (data[i].categoryStyle == 4) {
- data[i].path = "/news";
- if (data[i].children.length > 0) {
- for (let ii = 0; ii < data[i].children.length; ii++) {
- data[i].children[ii].path = "/news?categoryid=" + data[i].children[ii].id;
- }
- }
- }
- if (data[i].categoryStyle == 5) {
- data[i].path = "/about";
- if (data[i].children.length > 0) {
- for (let ii = 0; ii < data[i].children.length; ii++) {
- data[i].children[ii].path = "/about?categoryid=" + data[i].children[ii].id;
- }
- }
- }
- }
- const menuList = res.data;
- for (let i = 0; i < menuList.length; i++) {
- if (menuList[i].path == params.path && !params.query.categoryid) {
- if (!params.query.dup && !menuList[i].sname) {
- commit("setMeta", { title: menuList[i].categoryName, keywords: menuList[i].metakeywords, description: menuList[i].metadescription });
- } else if (params.query.dup && menuList[i].sname) {
- commit("setMeta", { title: menuList[i].categoryName, keywords: menuList[i].metakeywords, description: menuList[i].metadescription });
- }
- } else if (menuList[i].children.length > 0) {
- for (let ii = 0; ii < menuList[i].children.length; ii++) {
- if (!params.query.dup) {
- if (`${menuList[i].children[ii].path}` == `${params.path}?categoryid=${params.query.categoryid}`) {
- commit("setMeta", { title: menuList[i].children[ii].categoryName, keywords: menuList[i].children[ii].metakeywords, description: menuList[i].children[ii].metadescription });
- }
- }
- if (!params.query.dup) {
- let path = menuList[i].children[ii].path.split("?");
- if (`${path[0]}?dup=${menuList[i].children[ii].sname}` == `${params.path}?dup=${params.query.dup}`) {
- commit("setMeta", { title: menuList[i].children[ii].categoryName, keywords: menuList[i].children[ii].metakeywords, description: menuList[i].children[ii].metadescription });
- }
- }
- }
- }
- }
- commit("setMenuList", res.data);
- resolve(true);
- });
- });
- },
- /**
- * 获取页面数据
- * @param data.params 传参
- * @param data.index 页面
- * @param data.sub 页面下标
- * @returns
- */
- getPageData({ commit }, data) {
- return new Promise((resolve) => {
- var _a, _b;
- if (data.index || data.sub) {
- commit("setCurrentPagePathOrSub", { index: data.index, sub: data.sub });
- }
- if (((_a = data.params) == null ? void 0 : _a.categoryid) && (data.index == "/cases" || data.index == "/services") || data.index == "/news" || data.index == "/news_Read" && data.params.acitve || data.index == "/services_Read" && data.params.acitve) {
- commit("setAcitveId", data.params.categoryid);
- }
- getPageContent(data.params).then((res) => {
- commit("setPageData", res.data);
- resolve(true);
- });
- if ((_b = data.params) == null ? void 0 : _b.details) {
- let params = JSON.parse(JSON.stringify(data.params));
- delete params.articleid;
- params.pageSize = 100;
- delete params.id;
- delete params.details;
- getPageContent(params).then((res) => {
- commit("setRecomMendation", res.data.records);
- resolve(true);
- });
- }
- });
- }
- }
- });
- const index = () => import("./assets/index-DfZLVsT6.js");
- const cases = () => import("./assets/index-Cd8diddm.js");
- const cases_Read = () => import("./assets/read-CxBebMCP.js");
- const services = () => import("./assets/index-FlmO7MWO.js");
- const services_Read = () => import("./assets/read-DPwASZZ4.js");
- const news = () => import("./assets/index-W3bawb76.js");
- const news_Read = () => import("./assets/read-BmtMNrlK.js");
- const about = () => import("./assets/index-Ct9SopTg.js");
- const routes = [
- {
- path: "/index",
- name: "首页",
- component: index,
- meta: {
- title: "首页",
- keepAlive: false
- }
- },
- {
- path: "/cases",
- name: "客户案例",
- component: cases,
- meta: {
- title: "客户案例",
- keepAlive: false
- }
- },
- {
- path: "/cases_Read",
- name: "案例详情页",
- component: cases_Read,
- meta: {
- title: "案例详情页",
- keepAlive: false
- }
- },
- {
- path: "/services",
- name: "产品服务",
- component: services,
- meta: {
- title: "产品服务",
- keepAlive: false
- }
- },
- {
- path: "/services_Read",
- name: "产品详情页",
- component: services_Read,
- meta: {
- title: "产品详情页",
- keepAlive: false
- }
- },
- {
- path: "/news",
- name: "新闻动态",
- component: news,
- meta: {
- title: "新闻动态",
- keepAlive: false
- }
- },
- {
- path: "/news_Read",
- name: "新闻详情",
- component: news_Read,
- meta: {
- title: "新闻详情",
- keepAlive: false
- }
- },
- {
- path: "/about",
- name: "关于永天",
- component: about,
- meta: {
- title: "关于永天",
- keepAlive: false
- }
- }
- ];
- function createSSRRouter() {
- return createRouter({
- history: createMemoryHistory(),
- routes
- });
- }
- const router = createSSRRouter();
- function createApp() {
- const app = createSSRApp(_sfc_main);
- app.use(router);
- app.use(store);
- app.use(ElementPlus);
- app.use(lazyPlugin, {
- loading: "loading.gif",
- error: "error.png"
- });
- return { app, router, store };
- }
- async function render(url, manifest) {
- const { app, router: router2, store: store2 } = createApp();
- await router2.push(url);
- await router2.isReady();
- const matchedComponents = router2.currentRoute.value.matched.flatMap((record) => Object.values(record.components));
- await Promise.all(matchedComponents.map((Component) => {
- if (Component.asyncData) {
- return Component.asyncData({
- store: store2,
- route: router2.currentRoute
- });
- }
- }));
- const context = {};
- const appHtml = await renderToString(app, context);
- const state = store2.state;
- {
- const preloadLinks = renderLinks(context.modules, manifest);
- return { appHtml, state, preloadLinks };
- }
- }
- function renderLinks(modules, manifest) {
- let links = "";
- modules.forEach((id) => {
- if (id) {
- const files = manifest[id];
- if (files) {
- files.forEach((file) => {
- links += renderPreloadLink(file);
- });
- }
- }
- });
- return links;
- }
- function renderPreloadLink(file) {
- if (file.endsWith(".js")) {
- return `<link rel="modulepreload" crossorigin href="${file}">`;
- } else if (file.endsWith(".css")) {
- return `<link rel="stylesheet" href="${file}">`;
- } else if (file.endsWith(".woff")) {
- return `<link rel="preload" href="${file}" as="font" type="font/woff" crossorigin>`;
- } else if (file.endsWith(".woff2")) {
- return `<link rel="preload" href="${file}" as="font" type="font/woff2" crossorigin>`;
- } else if (file.endsWith(".gif")) {
- return `<link rel="preload" href="${file}" as="image" type="image/gif">`;
- } else if (file.endsWith(".jpg")) {
- return `<link rel="preload" href="${file}" as="image" type="image/jpg">`;
- } else if (file.endsWith(".png")) {
- return `<link rel="preload" href="${file}" as="image" type="image/png">`;
- } else {
- return "";
- }
- }
- export {
- _export_sfc as _,
- render
- };
|