entry-server.js 64 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310
  1. import { defineComponent, ref, mergeProps, unref, useSSRContext, getCurrentInstance, resolveComponent, withCtx, openBlock, createBlock, Fragment, renderList, createVNode, createTextVNode, createSSRApp } from "vue";
  2. import { ssrRenderAttrs, ssrRenderAttr, ssrRenderList, ssrRenderClass, ssrInterpolate, ssrRenderStyle, ssrRenderComponent, renderToString } from "vue/server-renderer";
  3. import { useStore, createStore } from "vuex";
  4. import { useRoute, createRouter, createMemoryHistory } from "vue-router";
  5. import ElementPlus, { ElMessage } from "element-plus";
  6. import axios from "axios";
  7. import lazyPlugin from "vue3-lazy";
  8. const _imports_0$2 = "/assets/logo-white-Cthg1NVg.png";
  9. const _sfc_main$4 = /* @__PURE__ */ defineComponent({
  10. __name: "header",
  11. __ssrInlineRender: true,
  12. setup(__props) {
  13. const store2 = useStore();
  14. const route = useRoute();
  15. const currentPagePath = ref(route.path);
  16. ref(false);
  17. if (route.path.indexOf("_")) {
  18. currentPagePath.value = route.path.split("_")[0];
  19. }
  20. const pathTemplateQuery = ref();
  21. if (route.query && route.query.dup) {
  22. pathTemplateQuery.value = route.query.dup;
  23. }
  24. return (_ctx, _push, _parent, _attrs) => {
  25. _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">`);
  26. if (unref(store2).state.menuList.length > 0) {
  27. _push(`<ul><!--[-->`);
  28. ssrRenderList(unref(store2).state.menuList, (item) => {
  29. _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(
  30. "href",
  31. item.sname ? `${item.path}?dup=${item.sname}` : item.path
  32. )}>${ssrInterpolate(item.categoryName)}</a><ul class="submenu">`);
  33. if (item.children) {
  34. _push(`<!--[-->`);
  35. ssrRenderList(item.children, (children) => {
  36. _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>`);
  37. });
  38. _push(`<!--]-->`);
  39. } else {
  40. _push(`<!---->`);
  41. }
  42. _push(`</ul></li>`);
  43. });
  44. _push(`<!--]--></ul>`);
  45. } else {
  46. _push(`<!---->`);
  47. }
  48. _push(`</div></nav>`);
  49. if (unref(store2).state.menuList.length > 0) {
  50. _push(`<div class="apply-expre">申请体验</div>`);
  51. } else {
  52. _push(`<!---->`);
  53. }
  54. _push(`</div></div></div></header>`);
  55. };
  56. }
  57. });
  58. const _sfc_setup$4 = _sfc_main$4.setup;
  59. _sfc_main$4.setup = (props, ctx) => {
  60. const ssrContext = useSSRContext();
  61. (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("src/components/layout/header.vue");
  62. return _sfc_setup$4 ? _sfc_setup$4(props, ctx) : void 0;
  63. };
  64. const _imports_0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wGtiFYbbi8ealOwojpdF2uXG9S3RgShSHrm11WGx5+EFGtbzI7XxvddrqKWXfjp2fm0l9+oEzG0blcqTM2GvHChRqf2F/g5VnBesen6/e5eMOm2gpYaw1462rA/Eqf6Z1J/vD3NXJJk/dqNfaNZ97c9sefObd64smXl55aaw93C00QxRIhIJaga+AFEk0TWIZGFEs0ITB1QRBJIqmwDZ0wkjiWxvHbCjNfOTn13cdOjl8D+PcAASxOot7wFxsAAAAASUVORK5CYII=";
  65. const _sfc_main$3 = /* @__PURE__ */ defineComponent({
  66. __name: "footer",
  67. __ssrInlineRender: true,
  68. setup(__props) {
  69. const store2 = useStore();
  70. const status = ref(false);
  71. setTimeout(() => {
  72. status.value = true;
  73. }, 200);
  74. return (_ctx, _push, _parent, _attrs) => {
  75. if (status.value) {
  76. _push(`<footer${ssrRenderAttrs(_attrs)} data-v-01c3bbbd><div class="footer-widget-area" style="${ssrRenderStyle({ "position": "relative", "clear": "both" })}" data-v-01c3bbbd><div class="container" data-v-01c3bbbd><div class="row footerOne" data-v-01c3bbbd><div class="col-lg-2 col-md-6 col-sm-6 footerWidth" data-v-01c3bbbd><div class="copyrigt-or-code d-flex flex-column align-items-center" data-v-01c3bbbd><img width="130 " height="130 " src="https://aiot.usky.cn/uskyq/assets/img/qr_code.png" data-v-01c3bbbd><span style="${ssrRenderStyle({ "text-align": "left", "color": "#fff", "margin-top": "10px" })}" data-v-01c3bbbd>微信公众号</span></div></div><!--[-->`);
  77. ssrRenderList(unref(store2).state.menuList, (item) => {
  78. _push(`<div class="footerNone" style="${ssrRenderStyle({ "width": 0.8 / unref(store2).state.menuList.length * 100 + "%" })}" data-v-01c3bbbd><div class="widget nav-widget d-flex justify-content-center" data-v-01c3bbbd><div data-v-01c3bbbd><h5 class="widget-title" data-v-01c3bbbd>`);
  79. if (item.sname) {
  80. _push(`<a${ssrRenderAttr("href", item.categoryStyle == 1 ? "/?dup=" + item.sname : "/template" + item.categoryStyle + "/?dup=" + item.sname)} data-v-01c3bbbd>${ssrInterpolate(item.categoryName)}</a>`);
  81. } else {
  82. _push(`<a${ssrRenderAttr("href", item.categoryStyle == 1 ? "/" : "/template" + item.categoryStyle + "/")} data-v-01c3bbbd>${ssrInterpolate(item.categoryName)}</a>`);
  83. }
  84. _push(`</h5><ul data-v-01c3bbbd>`);
  85. if (item.children) {
  86. _push(`<!--[-->`);
  87. ssrRenderList(item.children, (children) => {
  88. _push(`<li style="${ssrRenderStyle({ "text-align": "left" })}" data-v-01c3bbbd><a${ssrRenderAttr("href", item.sname ? `${item.path}?dup=${item.sname}&categoryid=${children.id}&isUrlId=1` : `${item.path}?categoryid=${children.id}&isUrlId=1`)} data-v-01c3bbbd>${ssrInterpolate(children.categoryName)}</a></li>`);
  89. });
  90. _push(`<!--]-->`);
  91. } else {
  92. _push(`<!---->`);
  93. }
  94. _push(`</ul></div></div></div>`);
  95. });
  96. _push(`<!--]--></div></div></div><div class="copy-right-area" data-v-01c3bbbd><div class="container" data-v-01c3bbbd><div class="row copyrigt-text" data-v-01c3bbbd><div class="col-lg-12" data-v-01c3bbbd><p data-v-01c3bbbd>Copyright © 2001- 2024 Usky. All Rights Reserved. 永天股份 版权所有</p><p data-v-01c3bbbd>增值电信业务经营许可证(IDC、ISP)编号B2-20080010</p><p style="${ssrRenderStyle({ "margin-top": "10px" })}" data-v-01c3bbbd><a target="_blank" href="https://wap.scjgj.sh.gov.cn/businessCheck/verifKey.do?showType=extShow&amp;serial=9031000020180517151815000002552816-SAIC_SHOW_310000-C5DE2EFE9AD14E94923F7AC487AA7077105&amp;signData=MEYCIQDqmcH8RWjPwf4id/UFCbng+HLdnF21HDjoUikAjkdiKQIhAOrQRYz74d3T5P03DL6OW10HBRktOYPenEbcmn1gCweV" data-v-01c3bbbd><img${ssrRenderAttr("src", _imports_0$1)} alt="1" width="20" data-v-01c3bbbd> 沪公网安备 31010802001185号 </a></p></div></div></div></div></footer>`);
  97. } else {
  98. _push(`<!---->`);
  99. }
  100. };
  101. }
  102. });
  103. const _export_sfc = (sfc, props) => {
  104. const target = sfc.__vccOpts || sfc;
  105. for (const [key, val] of props) {
  106. target[key] = val;
  107. }
  108. return target;
  109. };
  110. const _sfc_setup$3 = _sfc_main$3.setup;
  111. _sfc_main$3.setup = (props, ctx) => {
  112. const ssrContext = useSSRContext();
  113. (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("src/components/layout/footer.vue");
  114. return _sfc_setup$3 ? _sfc_setup$3(props, ctx) : void 0;
  115. };
  116. const footerCommon = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-01c3bbbd"]]);
  117. const _imports_0 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAABLlJREFUWEfVmV1MXEUUgL+5y+4ChYJWatTWRE2j1caktFprAiwxRm1NSIVqaiMNSyOR9MXYqLF9ICkvptaqNRgSd1vaxKYBVKT2wTSy2LRUK8b0B4kPYo3GFE1KKZGy7N4xs7DgsnfvXOASdR7vnDnnmzlzzpyZK5hjK2mRD3pibMBgLZL7gGUI8qQkLmAYuIKgH5Nv41mcOLVNnJ+LKTGbQYH9spDF7EZQb/jIMccBqdEgwPCCGWUUSRPDNEZeFkNO7ToCXNMsvflZfODJpjY+5lS1tZzHD/EbhK7HeKm3Tqgp2jYtYPkhWSlNWgGtrM7YzH4hqeqqFe1242yNloVli8dLdcKVC9CU6+U4h7uCYlsm9RkBy0LyjGGwXur22DzBhQDTpKe7VjxqpcoSMBCWZxCs1wbAPOGmhisKSU8kmA6ZBqjcagiqF3rl0vajWknJ4e4Z7k4BLA/JSuGjbaH2nG7BE3symho4U4CJVOIlqlOi+sfjEI1DjhcM12MbBn/B39cgEixT6gMh+SGCWh2g1wNvPwGrboVjF+HAWVDfXG2SUKRWbJ8CXNMsCwrzGNIlYQXS9hws9k/j/HQVgp+Aika3mkrmQyMU9taJawm1gbDcC+y0M6BceqQS7r4pXerSIGzvgOwstxATevZF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3qW6LqLBmMCo5j/w2DlznufUK8cGY5D1sXhDg8o164ek2BqfjkX8Ep1BCnoIAzQ1qJJ3IPUyLAugZG0bTnrgmRWfdvvBGO/Y+KRyraU/GgJnEO5Em+oEsR2PqAuuh1AhLS5J4ZxxiXC8TeEng+rpAlu6EwpsKy3bF5JCffhX9CE8UurRXP3MmwjaBm/w0Vq1lFV5rTbGiv0v+7VfHQABNI+nZeQNwn99Gq6z8r2ck+WWhBDu5dA4McExge5+uEiEOXFxlYAqpc1yEzoGoPF+oYL7fQwM0wr0UoBF6aihNSj/CPW5UskQX+sNpBeD4aIzrauCxoBk//Knuv7QxSQHrsqUv8S9ttIZVgEagSYPcmuR+hQfDJK8I2qEc9Y4ibDg7k41VnQZ5ovI39+msZuishkTc56Dv1U6x49Cccoesj8CpI6CRCt7iszT+MQLlNlU6RLzQ4rA3UVXZK+ZjBMLOuvsYQT7+xkjRrCxOCddm+RyGCTMZCzU5df6davITHPP2qunPYUSUd88Ju4vJNGlxHEwS9T+fRbnipeVLrwAAAABJRU5ErkJggg==";
  119. const _imports_2 = "/assets/qr_codeF1-D9vSfJeP.png";
  120. 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=";
  121. const _sfc_main$2 = /* @__PURE__ */ defineComponent({
  122. __name: "feedFix",
  123. __ssrInlineRender: true,
  124. setup(__props) {
  125. return (_ctx, _push, _parent, _attrs) => {
  126. _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>`);
  127. };
  128. }
  129. });
  130. const _sfc_setup$2 = _sfc_main$2.setup;
  131. _sfc_main$2.setup = (props, ctx) => {
  132. const ssrContext = useSSRContext();
  133. (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("src/components/layout/feedFix.vue");
  134. return _sfc_setup$2 ? _sfc_setup$2(props, ctx) : void 0;
  135. };
  136. function tansParams(params) {
  137. let result = "";
  138. for (const propName of Object.keys(params)) {
  139. const value = params[propName];
  140. var part = encodeURIComponent(propName) + "=";
  141. if (value !== null && value !== "" && typeof value !== "undefined") {
  142. if (typeof value === "object") {
  143. for (const key of Object.keys(value)) {
  144. if (value[key] !== null && value[key] !== "" && typeof value[key] !== "undefined") {
  145. let params2 = propName + "[" + key + "]";
  146. var subPart = encodeURIComponent(params2) + "=";
  147. result += subPart + encodeURIComponent(value[key]) + "&";
  148. }
  149. }
  150. } else {
  151. result += part + encodeURIComponent(value) + "&";
  152. }
  153. }
  154. }
  155. return result;
  156. }
  157. const service = axios.create({
  158. // axios中请求配置有baseURL选项,表示请求URL公共部分
  159. baseURL: "",
  160. // 超时
  161. timeout: 3e5
  162. });
  163. service.interceptors.request.use((config) => {
  164. const isRepeatSubmit = (config.headers || {}).repeatSubmit === false;
  165. if (config.method === "get" && config.data) {
  166. let url = config.url + "?" + tansParams(config.data);
  167. url = url.slice(0, -1);
  168. config.params = {};
  169. config.url = url;
  170. }
  171. if (!isRepeatSubmit && (config.method === "post" || config.method === "put")) {
  172. ({
  173. url: config.url,
  174. data: typeof config.data === "object" ? JSON.stringify(config.data) : config.data,
  175. time: (/* @__PURE__ */ new Date()).getTime()
  176. });
  177. }
  178. config.headers["Content-Type"] = "application/json;charset=utf-8";
  179. return config;
  180. }, (error) => {
  181. Promise.reject(error);
  182. });
  183. service.interceptors.response.use(
  184. (res) => {
  185. const code = res.data.status;
  186. if (res.request.responseType === "blob" || res.request.responseType === "arraybuffer") {
  187. return res.data;
  188. }
  189. if (code == "SUCCESS" || res.data.msg == "操作成功") {
  190. return res.headers["content-type"].indexOf("application/vnd.ms-excel") != -1 ? res : res.data;
  191. } else if (res.data.code == 200) {
  192. return res.data;
  193. } else
  194. ;
  195. },
  196. (error) => {
  197. let message = error.response.data.msg;
  198. if (message == "Network Error") {
  199. message = "后端接口连接异常";
  200. } else if (message.includes("timeout")) {
  201. message = "系统接口请求超时";
  202. } else if (message.includes("Request failed with status code")) {
  203. message = "系统接口" + message.substr(message.length - 3) + "异常";
  204. }
  205. return Promise.reject(error);
  206. }
  207. );
  208. var api = "http://172.16.120.165:13200/prod-api/";
  209. function getMenu() {
  210. return service({
  211. url: `${api}service-website/siteCategory/siteCategoryList`,
  212. method: "get"
  213. });
  214. }
  215. function getPageContent(params) {
  216. return service({
  217. url: `${api}service-website/siteArticle/siteArticleList`,
  218. method: "get",
  219. data: params
  220. });
  221. }
  222. function siteReview(data) {
  223. return service({
  224. url: `${api}service-website/siteReview`,
  225. method: "post",
  226. data
  227. });
  228. }
  229. const _sfc_main$1 = /* @__PURE__ */ defineComponent({
  230. __name: "dialogPersonal",
  231. __ssrInlineRender: true,
  232. setup(__props) {
  233. const { proxy } = getCurrentInstance();
  234. const store2 = useStore();
  235. const platName = ref("智慧安防");
  236. let consultationType = ref([]);
  237. store2.state.menuList.map((item) => {
  238. if (item.path == "/cases") {
  239. platName.value = item.children[0].categoryName;
  240. return consultationType.value = item.children;
  241. }
  242. });
  243. let ruleform = ref({
  244. platName: platName.value,
  245. consultName: "",
  246. consultPhone: "",
  247. mail: "",
  248. company: "",
  249. consultContent: ""
  250. });
  251. let rules = ref({
  252. platName: [{
  253. required: true,
  254. message: "请选择类型",
  255. trigger: "change"
  256. }],
  257. consultName: [{
  258. required: true,
  259. message: "请输入姓名",
  260. trigger: "blur"
  261. }],
  262. consultPhone: [{
  263. required: true,
  264. message: "请输入正确的电话号码",
  265. pattern: /^1[3|4|5|6|7|8|9][0-9]\d{8}$/,
  266. trigger: "change"
  267. }],
  268. mail: [{
  269. required: false,
  270. type: "email",
  271. message: "请输入正确的邮箱地址",
  272. trigger: "blur"
  273. }]
  274. });
  275. function ruleformNull() {
  276. ruleform.value = {
  277. platName: platName.value,
  278. consultName: "",
  279. consultPhone: "",
  280. mail: "",
  281. company: "",
  282. consultContent: ""
  283. };
  284. platName.value = consultationType.value[0];
  285. }
  286. function handle(type, e) {
  287. if (type == "close") {
  288. store2.commit("setDialogPersonalStatus", false);
  289. ruleformNull();
  290. }
  291. if (type == "submit") {
  292. platName.value = consultationType.value[0];
  293. proxy.$refs["form"].validate((valid) => {
  294. if (valid) {
  295. siteReview(ruleform.value).then((res) => {
  296. if ((res == null ? void 0 : res.status) == "SUCCESS") {
  297. ElMessage({
  298. message: "提交成功",
  299. type: "success"
  300. });
  301. handle("close");
  302. ruleformNull();
  303. } else {
  304. ElMessage.error(res.msg);
  305. }
  306. });
  307. }
  308. });
  309. }
  310. }
  311. return (_ctx, _push, _parent, _attrs) => {
  312. const _component_el_dialog = resolveComponent("el-dialog");
  313. const _component_el_form = resolveComponent("el-form");
  314. const _component_el_form_item = resolveComponent("el-form-item");
  315. const _component_el_radio_group = resolveComponent("el-radio-group");
  316. const _component_el_radio_button = resolveComponent("el-radio-button");
  317. const _component_el_row = resolveComponent("el-row");
  318. const _component_el_col = resolveComponent("el-col");
  319. const _component_el_input = resolveComponent("el-input");
  320. const _component_el_button = resolveComponent("el-button");
  321. _push(ssrRenderComponent(_component_el_dialog, mergeProps({
  322. title: "项目咨询",
  323. onClose: ($event) => handle("close"),
  324. modelValue: unref(store2).state.dialogPersonalStatus,
  325. "onUpdate:modelValue": ($event) => unref(store2).state.dialogPersonalStatus = $event,
  326. width: "700px",
  327. center: "",
  328. class: "feedBackDialog",
  329. "lock-scroll": false
  330. }, _attrs), {
  331. default: withCtx((_, _push2, _parent2, _scopeId) => {
  332. if (_push2) {
  333. _push2(ssrRenderComponent(_component_el_form, {
  334. model: unref(ruleform),
  335. rules: unref(rules),
  336. ref: "form",
  337. "label-width": "80px",
  338. class: "demo-ruleform"
  339. }, {
  340. default: withCtx((_2, _push3, _parent3, _scopeId2) => {
  341. if (_push3) {
  342. _push3(ssrRenderComponent(_component_el_form_item, {
  343. label: "",
  344. prop: "ruleform.platName",
  345. style: {},
  346. class: "dialogTypeLabel"
  347. }, {
  348. default: withCtx((_3, _push4, _parent4, _scopeId3) => {
  349. if (_push4) {
  350. _push4(ssrRenderComponent(_component_el_radio_group, {
  351. modelValue: platName.value,
  352. "onUpdate:modelValue": ($event) => platName.value = $event
  353. }, {
  354. default: withCtx((_4, _push5, _parent5, _scopeId4) => {
  355. if (_push5) {
  356. _push5(`<!--[-->`);
  357. ssrRenderList(unref(consultationType), (item, index2) => {
  358. _push5(ssrRenderComponent(_component_el_radio_button, {
  359. label: item.categoryName,
  360. value: item.categoryName,
  361. key: index2
  362. }, null, _parent5, _scopeId4));
  363. });
  364. _push5(`<!--]-->`);
  365. } else {
  366. return [
  367. (openBlock(true), createBlock(Fragment, null, renderList(unref(consultationType), (item, index2) => {
  368. return openBlock(), createBlock(_component_el_radio_button, {
  369. label: item.categoryName,
  370. value: item.categoryName,
  371. key: index2
  372. }, null, 8, ["label", "value"]);
  373. }), 128))
  374. ];
  375. }
  376. }),
  377. _: 1
  378. }, _parent4, _scopeId3));
  379. } else {
  380. return [
  381. createVNode(_component_el_radio_group, {
  382. modelValue: platName.value,
  383. "onUpdate:modelValue": ($event) => platName.value = $event
  384. }, {
  385. default: withCtx(() => [
  386. (openBlock(true), createBlock(Fragment, null, renderList(unref(consultationType), (item, index2) => {
  387. return openBlock(), createBlock(_component_el_radio_button, {
  388. label: item.categoryName,
  389. value: item.categoryName,
  390. key: index2
  391. }, null, 8, ["label", "value"]);
  392. }), 128))
  393. ]),
  394. _: 1
  395. }, 8, ["modelValue", "onUpdate:modelValue"])
  396. ];
  397. }
  398. }),
  399. _: 1
  400. }, _parent3, _scopeId2));
  401. _push3(ssrRenderComponent(_component_el_row, { gutter: 20 }, {
  402. default: withCtx((_3, _push4, _parent4, _scopeId3) => {
  403. if (_push4) {
  404. _push4(ssrRenderComponent(_component_el_col, { span: 12 }, {
  405. default: withCtx((_4, _push5, _parent5, _scopeId4) => {
  406. if (_push5) {
  407. _push5(ssrRenderComponent(_component_el_form_item, {
  408. label: "姓名",
  409. prop: "consultName"
  410. }, {
  411. default: withCtx((_5, _push6, _parent6, _scopeId5) => {
  412. if (_push6) {
  413. _push6(ssrRenderComponent(_component_el_input, {
  414. modelValue: unref(ruleform).consultName,
  415. "onUpdate:modelValue": ($event) => unref(ruleform).consultName = $event
  416. }, null, _parent6, _scopeId5));
  417. } else {
  418. return [
  419. createVNode(_component_el_input, {
  420. modelValue: unref(ruleform).consultName,
  421. "onUpdate:modelValue": ($event) => unref(ruleform).consultName = $event
  422. }, null, 8, ["modelValue", "onUpdate:modelValue"])
  423. ];
  424. }
  425. }),
  426. _: 1
  427. }, _parent5, _scopeId4));
  428. } else {
  429. return [
  430. createVNode(_component_el_form_item, {
  431. label: "姓名",
  432. prop: "consultName"
  433. }, {
  434. default: withCtx(() => [
  435. createVNode(_component_el_input, {
  436. modelValue: unref(ruleform).consultName,
  437. "onUpdate:modelValue": ($event) => unref(ruleform).consultName = $event
  438. }, null, 8, ["modelValue", "onUpdate:modelValue"])
  439. ]),
  440. _: 1
  441. })
  442. ];
  443. }
  444. }),
  445. _: 1
  446. }, _parent4, _scopeId3));
  447. _push4(ssrRenderComponent(_component_el_col, { span: 12 }, {
  448. default: withCtx((_4, _push5, _parent5, _scopeId4) => {
  449. if (_push5) {
  450. _push5(ssrRenderComponent(_component_el_form_item, {
  451. label: "联系电话",
  452. prop: "consultPhone"
  453. }, {
  454. default: withCtx((_5, _push6, _parent6, _scopeId5) => {
  455. if (_push6) {
  456. _push6(ssrRenderComponent(_component_el_input, {
  457. modelValue: unref(ruleform).consultPhone,
  458. "onUpdate:modelValue": ($event) => unref(ruleform).consultPhone = $event
  459. }, null, _parent6, _scopeId5));
  460. } else {
  461. return [
  462. createVNode(_component_el_input, {
  463. modelValue: unref(ruleform).consultPhone,
  464. "onUpdate:modelValue": ($event) => unref(ruleform).consultPhone = $event
  465. }, null, 8, ["modelValue", "onUpdate:modelValue"])
  466. ];
  467. }
  468. }),
  469. _: 1
  470. }, _parent5, _scopeId4));
  471. } else {
  472. return [
  473. createVNode(_component_el_form_item, {
  474. label: "联系电话",
  475. prop: "consultPhone"
  476. }, {
  477. default: withCtx(() => [
  478. createVNode(_component_el_input, {
  479. modelValue: unref(ruleform).consultPhone,
  480. "onUpdate:modelValue": ($event) => unref(ruleform).consultPhone = $event
  481. }, null, 8, ["modelValue", "onUpdate:modelValue"])
  482. ]),
  483. _: 1
  484. })
  485. ];
  486. }
  487. }),
  488. _: 1
  489. }, _parent4, _scopeId3));
  490. _push4(ssrRenderComponent(_component_el_col, { span: 12 }, {
  491. default: withCtx((_4, _push5, _parent5, _scopeId4) => {
  492. if (_push5) {
  493. _push5(ssrRenderComponent(_component_el_form_item, {
  494. label: "邮箱",
  495. prop: "mail"
  496. }, {
  497. default: withCtx((_5, _push6, _parent6, _scopeId5) => {
  498. if (_push6) {
  499. _push6(ssrRenderComponent(_component_el_input, {
  500. modelValue: unref(ruleform).mail,
  501. "onUpdate:modelValue": ($event) => unref(ruleform).mail = $event
  502. }, null, _parent6, _scopeId5));
  503. } else {
  504. return [
  505. createVNode(_component_el_input, {
  506. modelValue: unref(ruleform).mail,
  507. "onUpdate:modelValue": ($event) => unref(ruleform).mail = $event
  508. }, null, 8, ["modelValue", "onUpdate:modelValue"])
  509. ];
  510. }
  511. }),
  512. _: 1
  513. }, _parent5, _scopeId4));
  514. } else {
  515. return [
  516. createVNode(_component_el_form_item, {
  517. label: "邮箱",
  518. prop: "mail"
  519. }, {
  520. default: withCtx(() => [
  521. createVNode(_component_el_input, {
  522. modelValue: unref(ruleform).mail,
  523. "onUpdate:modelValue": ($event) => unref(ruleform).mail = $event
  524. }, null, 8, ["modelValue", "onUpdate:modelValue"])
  525. ]),
  526. _: 1
  527. })
  528. ];
  529. }
  530. }),
  531. _: 1
  532. }, _parent4, _scopeId3));
  533. _push4(ssrRenderComponent(_component_el_col, { span: 12 }, {
  534. default: withCtx((_4, _push5, _parent5, _scopeId4) => {
  535. if (_push5) {
  536. _push5(ssrRenderComponent(_component_el_form_item, {
  537. label: "公司",
  538. prop: "company"
  539. }, {
  540. default: withCtx((_5, _push6, _parent6, _scopeId5) => {
  541. if (_push6) {
  542. _push6(ssrRenderComponent(_component_el_input, {
  543. modelValue: unref(ruleform).company,
  544. "onUpdate:modelValue": ($event) => unref(ruleform).company = $event
  545. }, null, _parent6, _scopeId5));
  546. } else {
  547. return [
  548. createVNode(_component_el_input, {
  549. modelValue: unref(ruleform).company,
  550. "onUpdate:modelValue": ($event) => unref(ruleform).company = $event
  551. }, null, 8, ["modelValue", "onUpdate:modelValue"])
  552. ];
  553. }
  554. }),
  555. _: 1
  556. }, _parent5, _scopeId4));
  557. } else {
  558. return [
  559. createVNode(_component_el_form_item, {
  560. label: "公司",
  561. prop: "company"
  562. }, {
  563. default: withCtx(() => [
  564. createVNode(_component_el_input, {
  565. modelValue: unref(ruleform).company,
  566. "onUpdate:modelValue": ($event) => unref(ruleform).company = $event
  567. }, null, 8, ["modelValue", "onUpdate:modelValue"])
  568. ]),
  569. _: 1
  570. })
  571. ];
  572. }
  573. }),
  574. _: 1
  575. }, _parent4, _scopeId3));
  576. } else {
  577. return [
  578. createVNode(_component_el_col, { span: 12 }, {
  579. default: withCtx(() => [
  580. createVNode(_component_el_form_item, {
  581. label: "姓名",
  582. prop: "consultName"
  583. }, {
  584. default: withCtx(() => [
  585. createVNode(_component_el_input, {
  586. modelValue: unref(ruleform).consultName,
  587. "onUpdate:modelValue": ($event) => unref(ruleform).consultName = $event
  588. }, null, 8, ["modelValue", "onUpdate:modelValue"])
  589. ]),
  590. _: 1
  591. })
  592. ]),
  593. _: 1
  594. }),
  595. createVNode(_component_el_col, { span: 12 }, {
  596. default: withCtx(() => [
  597. createVNode(_component_el_form_item, {
  598. label: "联系电话",
  599. prop: "consultPhone"
  600. }, {
  601. default: withCtx(() => [
  602. createVNode(_component_el_input, {
  603. modelValue: unref(ruleform).consultPhone,
  604. "onUpdate:modelValue": ($event) => unref(ruleform).consultPhone = $event
  605. }, null, 8, ["modelValue", "onUpdate:modelValue"])
  606. ]),
  607. _: 1
  608. })
  609. ]),
  610. _: 1
  611. }),
  612. createVNode(_component_el_col, { span: 12 }, {
  613. default: withCtx(() => [
  614. createVNode(_component_el_form_item, {
  615. label: "邮箱",
  616. prop: "mail"
  617. }, {
  618. default: withCtx(() => [
  619. createVNode(_component_el_input, {
  620. modelValue: unref(ruleform).mail,
  621. "onUpdate:modelValue": ($event) => unref(ruleform).mail = $event
  622. }, null, 8, ["modelValue", "onUpdate:modelValue"])
  623. ]),
  624. _: 1
  625. })
  626. ]),
  627. _: 1
  628. }),
  629. createVNode(_component_el_col, { span: 12 }, {
  630. default: withCtx(() => [
  631. createVNode(_component_el_form_item, {
  632. label: "公司",
  633. prop: "company"
  634. }, {
  635. default: withCtx(() => [
  636. createVNode(_component_el_input, {
  637. modelValue: unref(ruleform).company,
  638. "onUpdate:modelValue": ($event) => unref(ruleform).company = $event
  639. }, null, 8, ["modelValue", "onUpdate:modelValue"])
  640. ]),
  641. _: 1
  642. })
  643. ]),
  644. _: 1
  645. })
  646. ];
  647. }
  648. }),
  649. _: 1
  650. }, _parent3, _scopeId2));
  651. _push3(ssrRenderComponent(_component_el_form_item, {
  652. label: "需求描述",
  653. prop: "consultContent"
  654. }, {
  655. default: withCtx((_3, _push4, _parent4, _scopeId3) => {
  656. if (_push4) {
  657. _push4(ssrRenderComponent(_component_el_input, {
  658. type: "textarea",
  659. modelValue: unref(ruleform).consultContent,
  660. "onUpdate:modelValue": ($event) => unref(ruleform).consultContent = $event
  661. }, null, _parent4, _scopeId3));
  662. } else {
  663. return [
  664. createVNode(_component_el_input, {
  665. type: "textarea",
  666. modelValue: unref(ruleform).consultContent,
  667. "onUpdate:modelValue": ($event) => unref(ruleform).consultContent = $event
  668. }, null, 8, ["modelValue", "onUpdate:modelValue"])
  669. ];
  670. }
  671. }),
  672. _: 1
  673. }, _parent3, _scopeId2));
  674. } else {
  675. return [
  676. createVNode(_component_el_form_item, {
  677. label: "",
  678. prop: "ruleform.platName",
  679. style: {},
  680. class: "dialogTypeLabel"
  681. }, {
  682. default: withCtx(() => [
  683. createVNode(_component_el_radio_group, {
  684. modelValue: platName.value,
  685. "onUpdate:modelValue": ($event) => platName.value = $event
  686. }, {
  687. default: withCtx(() => [
  688. (openBlock(true), createBlock(Fragment, null, renderList(unref(consultationType), (item, index2) => {
  689. return openBlock(), createBlock(_component_el_radio_button, {
  690. label: item.categoryName,
  691. value: item.categoryName,
  692. key: index2
  693. }, null, 8, ["label", "value"]);
  694. }), 128))
  695. ]),
  696. _: 1
  697. }, 8, ["modelValue", "onUpdate:modelValue"])
  698. ]),
  699. _: 1
  700. }),
  701. createVNode(_component_el_row, { gutter: 20 }, {
  702. default: withCtx(() => [
  703. createVNode(_component_el_col, { span: 12 }, {
  704. default: withCtx(() => [
  705. createVNode(_component_el_form_item, {
  706. label: "姓名",
  707. prop: "consultName"
  708. }, {
  709. default: withCtx(() => [
  710. createVNode(_component_el_input, {
  711. modelValue: unref(ruleform).consultName,
  712. "onUpdate:modelValue": ($event) => unref(ruleform).consultName = $event
  713. }, null, 8, ["modelValue", "onUpdate:modelValue"])
  714. ]),
  715. _: 1
  716. })
  717. ]),
  718. _: 1
  719. }),
  720. createVNode(_component_el_col, { span: 12 }, {
  721. default: withCtx(() => [
  722. createVNode(_component_el_form_item, {
  723. label: "联系电话",
  724. prop: "consultPhone"
  725. }, {
  726. default: withCtx(() => [
  727. createVNode(_component_el_input, {
  728. modelValue: unref(ruleform).consultPhone,
  729. "onUpdate:modelValue": ($event) => unref(ruleform).consultPhone = $event
  730. }, null, 8, ["modelValue", "onUpdate:modelValue"])
  731. ]),
  732. _: 1
  733. })
  734. ]),
  735. _: 1
  736. }),
  737. createVNode(_component_el_col, { span: 12 }, {
  738. default: withCtx(() => [
  739. createVNode(_component_el_form_item, {
  740. label: "邮箱",
  741. prop: "mail"
  742. }, {
  743. default: withCtx(() => [
  744. createVNode(_component_el_input, {
  745. modelValue: unref(ruleform).mail,
  746. "onUpdate:modelValue": ($event) => unref(ruleform).mail = $event
  747. }, null, 8, ["modelValue", "onUpdate:modelValue"])
  748. ]),
  749. _: 1
  750. })
  751. ]),
  752. _: 1
  753. }),
  754. createVNode(_component_el_col, { span: 12 }, {
  755. default: withCtx(() => [
  756. createVNode(_component_el_form_item, {
  757. label: "公司",
  758. prop: "company"
  759. }, {
  760. default: withCtx(() => [
  761. createVNode(_component_el_input, {
  762. modelValue: unref(ruleform).company,
  763. "onUpdate:modelValue": ($event) => unref(ruleform).company = $event
  764. }, null, 8, ["modelValue", "onUpdate:modelValue"])
  765. ]),
  766. _: 1
  767. })
  768. ]),
  769. _: 1
  770. })
  771. ]),
  772. _: 1
  773. }),
  774. createVNode(_component_el_form_item, {
  775. label: "需求描述",
  776. prop: "consultContent"
  777. }, {
  778. default: withCtx(() => [
  779. createVNode(_component_el_input, {
  780. type: "textarea",
  781. modelValue: unref(ruleform).consultContent,
  782. "onUpdate:modelValue": ($event) => unref(ruleform).consultContent = $event
  783. }, null, 8, ["modelValue", "onUpdate:modelValue"])
  784. ]),
  785. _: 1
  786. })
  787. ];
  788. }
  789. }),
  790. _: 1
  791. }, _parent2, _scopeId));
  792. _push2(`<span slot="footer" class="dialog-footer" style="${ssrRenderStyle({ "width": "100%", "text-align": "center" })}"${_scopeId}>`);
  793. _push2(ssrRenderComponent(_component_el_button, {
  794. onClick: ($event) => handle("close")
  795. }, {
  796. default: withCtx((_2, _push3, _parent3, _scopeId2) => {
  797. if (_push3) {
  798. _push3(`取 消`);
  799. } else {
  800. return [
  801. createTextVNode("取 消")
  802. ];
  803. }
  804. }),
  805. _: 1
  806. }, _parent2, _scopeId));
  807. _push2(ssrRenderComponent(_component_el_button, {
  808. type: "primary",
  809. onClick: ($event) => handle("submit")
  810. }, {
  811. default: withCtx((_2, _push3, _parent3, _scopeId2) => {
  812. if (_push3) {
  813. _push3(`提 交`);
  814. } else {
  815. return [
  816. createTextVNode("提 交")
  817. ];
  818. }
  819. }),
  820. _: 1
  821. }, _parent2, _scopeId));
  822. _push2(`</span>`);
  823. } else {
  824. return [
  825. createVNode(_component_el_form, {
  826. model: unref(ruleform),
  827. rules: unref(rules),
  828. ref: "form",
  829. "label-width": "80px",
  830. class: "demo-ruleform"
  831. }, {
  832. default: withCtx(() => [
  833. createVNode(_component_el_form_item, {
  834. label: "",
  835. prop: "ruleform.platName",
  836. style: {},
  837. class: "dialogTypeLabel"
  838. }, {
  839. default: withCtx(() => [
  840. createVNode(_component_el_radio_group, {
  841. modelValue: platName.value,
  842. "onUpdate:modelValue": ($event) => platName.value = $event
  843. }, {
  844. default: withCtx(() => [
  845. (openBlock(true), createBlock(Fragment, null, renderList(unref(consultationType), (item, index2) => {
  846. return openBlock(), createBlock(_component_el_radio_button, {
  847. label: item.categoryName,
  848. value: item.categoryName,
  849. key: index2
  850. }, null, 8, ["label", "value"]);
  851. }), 128))
  852. ]),
  853. _: 1
  854. }, 8, ["modelValue", "onUpdate:modelValue"])
  855. ]),
  856. _: 1
  857. }),
  858. createVNode(_component_el_row, { gutter: 20 }, {
  859. default: withCtx(() => [
  860. createVNode(_component_el_col, { span: 12 }, {
  861. default: withCtx(() => [
  862. createVNode(_component_el_form_item, {
  863. label: "姓名",
  864. prop: "consultName"
  865. }, {
  866. default: withCtx(() => [
  867. createVNode(_component_el_input, {
  868. modelValue: unref(ruleform).consultName,
  869. "onUpdate:modelValue": ($event) => unref(ruleform).consultName = $event
  870. }, null, 8, ["modelValue", "onUpdate:modelValue"])
  871. ]),
  872. _: 1
  873. })
  874. ]),
  875. _: 1
  876. }),
  877. createVNode(_component_el_col, { span: 12 }, {
  878. default: withCtx(() => [
  879. createVNode(_component_el_form_item, {
  880. label: "联系电话",
  881. prop: "consultPhone"
  882. }, {
  883. default: withCtx(() => [
  884. createVNode(_component_el_input, {
  885. modelValue: unref(ruleform).consultPhone,
  886. "onUpdate:modelValue": ($event) => unref(ruleform).consultPhone = $event
  887. }, null, 8, ["modelValue", "onUpdate:modelValue"])
  888. ]),
  889. _: 1
  890. })
  891. ]),
  892. _: 1
  893. }),
  894. createVNode(_component_el_col, { span: 12 }, {
  895. default: withCtx(() => [
  896. createVNode(_component_el_form_item, {
  897. label: "邮箱",
  898. prop: "mail"
  899. }, {
  900. default: withCtx(() => [
  901. createVNode(_component_el_input, {
  902. modelValue: unref(ruleform).mail,
  903. "onUpdate:modelValue": ($event) => unref(ruleform).mail = $event
  904. }, null, 8, ["modelValue", "onUpdate:modelValue"])
  905. ]),
  906. _: 1
  907. })
  908. ]),
  909. _: 1
  910. }),
  911. createVNode(_component_el_col, { span: 12 }, {
  912. default: withCtx(() => [
  913. createVNode(_component_el_form_item, {
  914. label: "公司",
  915. prop: "company"
  916. }, {
  917. default: withCtx(() => [
  918. createVNode(_component_el_input, {
  919. modelValue: unref(ruleform).company,
  920. "onUpdate:modelValue": ($event) => unref(ruleform).company = $event
  921. }, null, 8, ["modelValue", "onUpdate:modelValue"])
  922. ]),
  923. _: 1
  924. })
  925. ]),
  926. _: 1
  927. })
  928. ]),
  929. _: 1
  930. }),
  931. createVNode(_component_el_form_item, {
  932. label: "需求描述",
  933. prop: "consultContent"
  934. }, {
  935. default: withCtx(() => [
  936. createVNode(_component_el_input, {
  937. type: "textarea",
  938. modelValue: unref(ruleform).consultContent,
  939. "onUpdate:modelValue": ($event) => unref(ruleform).consultContent = $event
  940. }, null, 8, ["modelValue", "onUpdate:modelValue"])
  941. ]),
  942. _: 1
  943. })
  944. ]),
  945. _: 1
  946. }, 8, ["model", "rules"]),
  947. createVNode("span", {
  948. slot: "footer",
  949. class: "dialog-footer",
  950. style: { "width": "100%", "text-align": "center" }
  951. }, [
  952. createVNode(_component_el_button, {
  953. onClick: ($event) => handle("close")
  954. }, {
  955. default: withCtx(() => [
  956. createTextVNode("取 消")
  957. ]),
  958. _: 1
  959. }, 8, ["onClick"]),
  960. createVNode(_component_el_button, {
  961. type: "primary",
  962. onClick: ($event) => handle("submit")
  963. }, {
  964. default: withCtx(() => [
  965. createTextVNode("提 交")
  966. ]),
  967. _: 1
  968. }, 8, ["onClick"])
  969. ])
  970. ];
  971. }
  972. }),
  973. _: 1
  974. }, _parent));
  975. };
  976. }
  977. });
  978. const _sfc_setup$1 = _sfc_main$1.setup;
  979. _sfc_main$1.setup = (props, ctx) => {
  980. const ssrContext = useSSRContext();
  981. (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("src/components/layout/dialogPersonal.vue");
  982. return _sfc_setup$1 ? _sfc_setup$1(props, ctx) : void 0;
  983. };
  984. const _sfc_main = /* @__PURE__ */ defineComponent({
  985. __name: "App",
  986. __ssrInlineRender: true,
  987. setup(__props) {
  988. const store2 = useStore();
  989. function setDialogPersonalStatus() {
  990. store2.commit("setDialogPersonalStatus", false);
  991. }
  992. return (_ctx, _push, _parent, _attrs) => {
  993. const _component_router_view = resolveComponent("router-view");
  994. _push(`<!--[-->`);
  995. _push(ssrRenderComponent(_sfc_main$4, null, null, _parent));
  996. _push(ssrRenderComponent(_component_router_view, null, null, _parent));
  997. _push(ssrRenderComponent(_sfc_main$2, null, null, _parent));
  998. _push(ssrRenderComponent(footerCommon, null, null, _parent));
  999. _push(ssrRenderComponent(_sfc_main$1, {
  1000. data: unref(store2).state.dialogPersonalStatus,
  1001. onSetDialogPersonalStatus: setDialogPersonalStatus
  1002. }, null, _parent));
  1003. _push(`<!--]-->`);
  1004. };
  1005. }
  1006. });
  1007. const _sfc_setup = _sfc_main.setup;
  1008. _sfc_main.setup = (props, ctx) => {
  1009. const ssrContext = useSSRContext();
  1010. (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("src/App.vue");
  1011. return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
  1012. };
  1013. const store = createStore({
  1014. state: {
  1015. menuList: [],
  1016. //菜单列表
  1017. pageContent: [],
  1018. //页面主体内容(不包含banner)
  1019. recomMendation: [],
  1020. //推荐内容
  1021. currentPagePath: "",
  1022. //当前页名称
  1023. acitveId: 0,
  1024. //客户案例类型切换活动id
  1025. sub: 0,
  1026. //当前页下标
  1027. columnTypes: [],
  1028. //页面下属类型
  1029. scrollUp: {
  1030. //返回顶部
  1031. opacity: 0,
  1032. visibility: "hidden",
  1033. scrollTo: 0
  1034. },
  1035. route: {},
  1036. //跳转数据
  1037. //分页数据
  1038. pagination: {
  1039. total: 0,
  1040. size: 10,
  1041. count: 1
  1042. },
  1043. dialogPersonalStatus: false
  1044. //弹框状态
  1045. },
  1046. mutations: {
  1047. //菜单列表
  1048. setMenuList(state, data) {
  1049. state.menuList = data;
  1050. return state.menuList;
  1051. },
  1052. //页面主体内容
  1053. setPageData(state, data) {
  1054. state.pageContent = data.records;
  1055. state.pagination.total = data.total;
  1056. return state.pageContent, state.pagination;
  1057. },
  1058. //
  1059. setCurrentPagePathOrSub(state, data) {
  1060. state.currentPagePath = data.index;
  1061. state.sub = data.sub;
  1062. return state.index, state.sub;
  1063. },
  1064. //子页面活动状态
  1065. setAcitveId(state, data) {
  1066. state.acitveId = data;
  1067. return state.acitveId;
  1068. },
  1069. //推荐内容
  1070. setRecomMendation(state, data) {
  1071. state.recomMendation = data;
  1072. return state.recomMendation;
  1073. },
  1074. //设置弹框状态
  1075. setDialogPersonalStatus(state, data) {
  1076. state.dialogPersonalStatus = data;
  1077. return state.dialogPersonalStatus;
  1078. },
  1079. //设置页面下属类型
  1080. setColumnTypes(state, data) {
  1081. state.columnTypes = data;
  1082. return state.columnTypes;
  1083. },
  1084. //设置跳转路由参数
  1085. setRoute(state, data) {
  1086. state.route = data;
  1087. return state.route;
  1088. }
  1089. },
  1090. actions: {
  1091. getMenuList({ commit }) {
  1092. return new Promise((resolve) => {
  1093. getMenu().then((res) => {
  1094. let data = [];
  1095. for (let i = 0; i < res.data.length; i++) {
  1096. data.push(res.data[i]);
  1097. if (data[i].categoryStyle == 1) {
  1098. data[i].path = "/index";
  1099. }
  1100. if (data[i].categoryStyle == 2) {
  1101. data[i].path = "/cases";
  1102. }
  1103. if (data[i].categoryStyle == 3) {
  1104. data[i].path = "/services";
  1105. }
  1106. if (data[i].categoryStyle == 4) {
  1107. data[i].path = "/news";
  1108. }
  1109. if (data[i].categoryStyle == 5) {
  1110. data[i].path = "/about";
  1111. }
  1112. }
  1113. commit("setMenuList", res.data);
  1114. resolve(true);
  1115. });
  1116. });
  1117. },
  1118. /**
  1119. * 获取页面数据
  1120. * @param data.params 传参
  1121. * @param data.index 页面
  1122. * @param data.sub 页面下标
  1123. * @returns
  1124. */
  1125. getPageData({ commit }, data) {
  1126. return new Promise((resolve) => {
  1127. var _a, _b;
  1128. if (data.index || data.sub) {
  1129. commit("setCurrentPagePathOrSub", { index: data.index, sub: data.sub });
  1130. }
  1131. 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) {
  1132. commit("setAcitveId", data.params.categoryid);
  1133. }
  1134. getPageContent(data.params).then((res) => {
  1135. commit("setPageData", res.data);
  1136. resolve(true);
  1137. });
  1138. if ((_b = data.params) == null ? void 0 : _b.details) {
  1139. let params = JSON.parse(JSON.stringify(data.params));
  1140. delete params.articleid;
  1141. params.pageSize = 100;
  1142. delete params.id;
  1143. delete params.details;
  1144. getPageContent(params).then((res) => {
  1145. commit("setRecomMendation", res.data.records);
  1146. resolve(true);
  1147. });
  1148. }
  1149. });
  1150. }
  1151. }
  1152. });
  1153. const index = () => import("./assets/index-26zL30GA.js");
  1154. const cases = () => import("./assets/index-CuwGEkgD.js");
  1155. const cases_Read = () => import("./assets/read-UZ_L0WB3.js");
  1156. const services = () => import("./assets/index-BFGcWMSD.js");
  1157. const services_Read = () => import("./assets/read-CJ5Je7WK.js");
  1158. const news = () => import("./assets/index-C4cftq0v.js");
  1159. const news_Read = () => import("./assets/read-BMdAvrqr.js");
  1160. const about = () => import("./assets/index-C_9nX2uk.js");
  1161. const routes = [
  1162. {
  1163. path: "/index",
  1164. name: "首页",
  1165. component: index,
  1166. meta: {
  1167. title: "首页",
  1168. keepAlive: false
  1169. }
  1170. },
  1171. {
  1172. path: "/cases",
  1173. name: "客户案例",
  1174. component: cases,
  1175. meta: {
  1176. title: "客户案例",
  1177. keepAlive: false
  1178. }
  1179. },
  1180. {
  1181. path: "/cases_Read",
  1182. name: "案例详情页",
  1183. component: cases_Read,
  1184. meta: {
  1185. title: "案例详情页",
  1186. keepAlive: false
  1187. }
  1188. },
  1189. {
  1190. path: "/services",
  1191. name: "产品服务",
  1192. component: services,
  1193. meta: {
  1194. title: "产品服务",
  1195. keepAlive: false
  1196. }
  1197. },
  1198. {
  1199. path: "/services_Read",
  1200. name: "产品详情页",
  1201. component: services_Read,
  1202. meta: {
  1203. title: "产品详情页",
  1204. keepAlive: false
  1205. }
  1206. },
  1207. {
  1208. path: "/news",
  1209. name: "新闻动态",
  1210. component: news,
  1211. meta: {
  1212. title: "新闻动态",
  1213. keepAlive: false
  1214. }
  1215. },
  1216. {
  1217. path: "/news_Read",
  1218. name: "新闻详情",
  1219. component: news_Read,
  1220. meta: {
  1221. title: "新闻详情",
  1222. keepAlive: false
  1223. }
  1224. },
  1225. {
  1226. path: "/about",
  1227. name: "关于永天",
  1228. component: about,
  1229. meta: {
  1230. title: "关于永天",
  1231. keepAlive: false
  1232. }
  1233. }
  1234. ];
  1235. function createSSRRouter() {
  1236. return createRouter({
  1237. history: createMemoryHistory(),
  1238. routes
  1239. });
  1240. }
  1241. const router = createSSRRouter();
  1242. function createApp() {
  1243. const app = createSSRApp(_sfc_main);
  1244. app.use(router);
  1245. app.use(store);
  1246. app.use(ElementPlus);
  1247. app.use(lazyPlugin, {
  1248. loading: "loading.gif",
  1249. error: "error.png"
  1250. });
  1251. return { app, router, store };
  1252. }
  1253. async function render(url, manifest) {
  1254. const { app, router: router2, store: store2 } = createApp();
  1255. await router2.push(url);
  1256. await router2.isReady();
  1257. const matchedComponents = router2.currentRoute.value.matched.flatMap((record) => Object.values(record.components));
  1258. await Promise.all(matchedComponents.map((Component) => {
  1259. if (Component.asyncData) {
  1260. return Component.asyncData({
  1261. store: store2,
  1262. route: router2.currentRoute
  1263. });
  1264. }
  1265. }));
  1266. const context = {};
  1267. const appHtml = await renderToString(app, context);
  1268. const state = store2.state;
  1269. {
  1270. const preloadLinks = renderLinks(context.modules, manifest);
  1271. return { appHtml, state, preloadLinks };
  1272. }
  1273. }
  1274. function renderLinks(modules, manifest) {
  1275. let links = "";
  1276. modules.forEach((id) => {
  1277. if (id) {
  1278. const files = manifest[id];
  1279. if (files) {
  1280. files.forEach((file) => {
  1281. links += renderPreloadLink(file);
  1282. });
  1283. }
  1284. }
  1285. });
  1286. return links;
  1287. }
  1288. function renderPreloadLink(file) {
  1289. if (file.endsWith(".js")) {
  1290. return `<link rel="modulepreload" crossorigin href="${file}">`;
  1291. } else if (file.endsWith(".css")) {
  1292. return `<link rel="stylesheet" href="${file}">`;
  1293. } else if (file.endsWith(".woff")) {
  1294. return `<link rel="preload" href="${file}" as="font" type="font/woff" crossorigin>`;
  1295. } else if (file.endsWith(".woff2")) {
  1296. return `<link rel="preload" href="${file}" as="font" type="font/woff2" crossorigin>`;
  1297. } else if (file.endsWith(".gif")) {
  1298. return `<link rel="preload" href="${file}" as="image" type="image/gif">`;
  1299. } else if (file.endsWith(".jpg")) {
  1300. return `<link rel="preload" href="${file}" as="image" type="image/jpg">`;
  1301. } else if (file.endsWith(".png")) {
  1302. return `<link rel="preload" href="${file}" as="image" type="image/png">`;
  1303. } else {
  1304. return "";
  1305. }
  1306. }
  1307. export {
  1308. _export_sfc as _,
  1309. render
  1310. };