13127578837 1 year ago
parent
commit
7b2256a967
43 changed files with 621 additions and 1067 deletions
  1. 1 0
      .gitignore
  2. 33 33
      dist/client/.vite/ssr-manifest.json
  3. 0 1
      dist/client/assets/banner.vue_vue_type_style_index_0_lang-CQMv34b5.js
  4. 0 0
      dist/client/assets/close-CCyVJcEQ.js
  5. 0 4
      dist/client/assets/index-C6Ampb56.js
  6. 0 0
      dist/client/assets/index-DK_rSH5T.js
  7. 0 5
      dist/client/assets/index-DO0dCce7.css
  8. 0 0
      dist/client/assets/index-DZv1N6NM.js
  9. 0 0
      dist/client/assets/index-Diyyu77p.js
  10. 0 0
      dist/client/assets/index-I5Y-7KfB.js
  11. 0 0
      dist/client/assets/index-wjhOiBXe.js
  12. 0 1
      dist/client/assets/pagination.vue_vue_type_script_setup_true_lang-D2u7Kd-t.js
  13. 0 0
      dist/client/assets/read-BAPOSKQ4.js
  14. 0 0
      dist/client/assets/read-DV4RbXZv.js
  15. 0 0
      dist/client/assets/read-DaXWsrus.js
  16. 2 2
      dist/client/index.html
  17. 0 91
      dist/server/assets/index-26zL30GA.js
  18. 0 147
      dist/server/assets/index-BFGcWMSD.js
  19. 0 141
      dist/server/assets/index-C4cftq0v.js
  20. 0 101
      dist/server/assets/index-C_9nX2uk.js
  21. 0 126
      dist/server/assets/index-CuwGEkgD.js
  22. 0 103
      dist/server/assets/read-BMdAvrqr.js
  23. 0 103
      dist/server/assets/read-CJ5Je7WK.js
  24. 0 103
      dist/server/assets/read-UZ_L0WB3.js
  25. 422 11
      dist/server/entry-server.js
  26. 12 8
      server.js
  27. 5 5
      src/api/index.ts
  28. 11 13
      src/components/layout/feedFix.vue
  29. 2 2
      src/components/layout/footer.vue
  30. 20 2
      src/components/layout/header.vue
  31. 18 0
      src/entry-client.ts
  32. 0 1
      src/router/index.ts
  33. 59 1
      src/store/index.ts
  34. 1 37
      src/utils/request.ts
  35. 1 1
      src/views/about/index.vue
  36. 13 15
      src/views/cases/index.vue
  37. 1 1
      src/views/cases/read.vue
  38. 4 4
      src/views/index/index.vue
  39. 2 2
      src/views/news/index.vue
  40. 1 1
      src/views/news/read.vue
  41. 2 1
      src/views/services/index.vue
  42. 1 1
      src/views/services/read.vue
  43. 10 0
      vite.config.ts

+ 1 - 0
.gitignore

@@ -9,6 +9,7 @@ pnpm-debug.log*
 lerna-debug.log*
 
 node_modules
+dist
 dist-ssr
 *.local
 

+ 33 - 33
dist/client/.vite/ssr-manifest.json

@@ -1,45 +1,45 @@
 {
-  "\u0000D:/工作/永天/usky-ssr/node_modules/dayjs/dayjs.min.js?commonjs-module": [
+  "\u0000C:/Users/12413/Desktop/ssr/usky-ssr/node_modules/dayjs/dayjs.min.js?commonjs-module": [
     "/assets/logo-white-Cthg1NVg.png",
     "/assets/qr_codeF1-D9vSfJeP.png",
     "/assets/h1_bg-ttUfvXr5.png"
   ],
-  "\u0000D:/工作/永天/usky-ssr/node_modules/dayjs/plugin/advancedFormat.js?commonjs-module": [
+  "\u0000C:/Users/12413/Desktop/ssr/usky-ssr/node_modules/dayjs/plugin/advancedFormat.js?commonjs-module": [
     "/assets/logo-white-Cthg1NVg.png",
     "/assets/qr_codeF1-D9vSfJeP.png",
     "/assets/h1_bg-ttUfvXr5.png"
   ],
-  "\u0000D:/工作/永天/usky-ssr/node_modules/dayjs/plugin/customParseFormat.js?commonjs-module": [
+  "\u0000C:/Users/12413/Desktop/ssr/usky-ssr/node_modules/dayjs/plugin/customParseFormat.js?commonjs-module": [
     "/assets/logo-white-Cthg1NVg.png",
     "/assets/qr_codeF1-D9vSfJeP.png",
     "/assets/h1_bg-ttUfvXr5.png"
   ],
-  "\u0000D:/工作/永天/usky-ssr/node_modules/dayjs/plugin/dayOfYear.js?commonjs-module": [
+  "\u0000C:/Users/12413/Desktop/ssr/usky-ssr/node_modules/dayjs/plugin/dayOfYear.js?commonjs-module": [
     "/assets/logo-white-Cthg1NVg.png",
     "/assets/qr_codeF1-D9vSfJeP.png",
     "/assets/h1_bg-ttUfvXr5.png"
   ],
-  "\u0000D:/工作/永天/usky-ssr/node_modules/dayjs/plugin/isSameOrAfter.js?commonjs-module": [
+  "\u0000C:/Users/12413/Desktop/ssr/usky-ssr/node_modules/dayjs/plugin/isSameOrAfter.js?commonjs-module": [
     "/assets/logo-white-Cthg1NVg.png",
     "/assets/qr_codeF1-D9vSfJeP.png",
     "/assets/h1_bg-ttUfvXr5.png"
   ],
-  "\u0000D:/工作/永天/usky-ssr/node_modules/dayjs/plugin/isSameOrBefore.js?commonjs-module": [
+  "\u0000C:/Users/12413/Desktop/ssr/usky-ssr/node_modules/dayjs/plugin/isSameOrBefore.js?commonjs-module": [
     "/assets/logo-white-Cthg1NVg.png",
     "/assets/qr_codeF1-D9vSfJeP.png",
     "/assets/h1_bg-ttUfvXr5.png"
   ],
-  "\u0000D:/工作/永天/usky-ssr/node_modules/dayjs/plugin/localeData.js?commonjs-module": [
+  "\u0000C:/Users/12413/Desktop/ssr/usky-ssr/node_modules/dayjs/plugin/localeData.js?commonjs-module": [
     "/assets/logo-white-Cthg1NVg.png",
     "/assets/qr_codeF1-D9vSfJeP.png",
     "/assets/h1_bg-ttUfvXr5.png"
   ],
-  "\u0000D:/工作/永天/usky-ssr/node_modules/dayjs/plugin/weekOfYear.js?commonjs-module": [
+  "\u0000C:/Users/12413/Desktop/ssr/usky-ssr/node_modules/dayjs/plugin/weekOfYear.js?commonjs-module": [
     "/assets/logo-white-Cthg1NVg.png",
     "/assets/qr_codeF1-D9vSfJeP.png",
     "/assets/h1_bg-ttUfvXr5.png"
   ],
-  "\u0000D:/工作/永天/usky-ssr/node_modules/dayjs/plugin/weekYear.js?commonjs-module": [
+  "\u0000C:/Users/12413/Desktop/ssr/usky-ssr/node_modules/dayjs/plugin/weekYear.js?commonjs-module": [
     "/assets/logo-white-Cthg1NVg.png",
     "/assets/qr_codeF1-D9vSfJeP.png",
     "/assets/h1_bg-ttUfvXr5.png"
@@ -4805,7 +4805,7 @@
     "/assets/h1_bg-ttUfvXr5.png"
   ],
   "src/assets/img/banner/poster.jpg": [
-    "/assets/banner.vue_vue_type_style_index_0_lang-CQMv34b5.js",
+    "/assets/banner.vue_vue_type_style_index_0_lang-BXcTeUxD.js",
     "/assets/banner-D1J405mV.css",
     "/assets/poster-CWZ8V__r.jpg"
   ],
@@ -4830,10 +4830,10 @@
     "/assets/h1_bg-ttUfvXr5.png"
   ],
   "src/assets/img/news/arrowT.svg": [
-    "/assets/close-CCyVJcEQ.js"
+    "/assets/close-fWNQe6MW.js"
   ],
   "src/assets/img/product/close.png": [
-    "/assets/close-CCyVJcEQ.js"
+    "/assets/close-fWNQe6MW.js"
   ],
   "src/assets/img/qr_codeF1.png": [
     "/assets/logo-white-Cthg1NVg.png",
@@ -4846,12 +4846,12 @@
     "/assets/h1_bg-ttUfvXr5.png"
   ],
   "src/components/layout/banner.vue?vue&type=script&setup=true&lang.ts": [
-    "/assets/banner.vue_vue_type_style_index_0_lang-CQMv34b5.js",
+    "/assets/banner.vue_vue_type_style_index_0_lang-BXcTeUxD.js",
     "/assets/banner-D1J405mV.css",
     "/assets/poster-CWZ8V__r.jpg"
   ],
   "src/components/layout/banner.vue?vue&type=style&index=0&lang.scss": [
-    "/assets/banner.vue_vue_type_style_index_0_lang-CQMv34b5.js",
+    "/assets/banner.vue_vue_type_style_index_0_lang-BXcTeUxD.js",
     "/assets/banner-D1J405mV.css",
     "/assets/poster-CWZ8V__r.jpg"
   ],
@@ -4875,7 +4875,7 @@
     "/assets/qr_codeF1-D9vSfJeP.png",
     "/assets/h1_bg-ttUfvXr5.png"
   ],
-  "src/components/layout/footer.vue?vue&type=style&index=0&scoped=01c3bbbd&lang.scss": [
+  "src/components/layout/footer.vue?vue&type=style&index=0&scoped=14b49d7e&lang.scss": [
     "/assets/logo-white-Cthg1NVg.png",
     "/assets/qr_codeF1-D9vSfJeP.png",
     "/assets/h1_bg-ttUfvXr5.png"
@@ -4886,10 +4886,10 @@
     "/assets/h1_bg-ttUfvXr5.png"
   ],
   "src/components/layout/pagination.vue?vue&type=script&setup=true&lang.ts": [
-    "/assets/pagination.vue_vue_type_script_setup_true_lang-D2u7Kd-t.js"
+    "/assets/pagination.vue_vue_type_script_setup_true_lang-Ba_zXow5.js"
   ],
   "src/components/layout/recomMendation.vue?vue&type=script&setup=true&lang.ts": [
-    "/assets/close-CCyVJcEQ.js"
+    "/assets/close-fWNQe6MW.js"
   ],
   "src/entry-client.ts": [
     "/assets/logo-white-Cthg1NVg.png",
@@ -4927,51 +4927,51 @@
     "/assets/h1_bg-ttUfvXr5.png"
   ],
   "src/views/about/index.vue": [
-    "/assets/index-I5Y-7KfB.js"
+    "/assets/index-DRk_Q5qY.js"
   ],
   "src/views/about/index.vue?vue&type=script&lang.ts": [
-    "/assets/index-I5Y-7KfB.js"
+    "/assets/index-DRk_Q5qY.js"
   ],
   "src/views/cases/index.vue": [
-    "/assets/index-Diyyu77p.js"
+    "/assets/index-MWCF1_Tx.js"
   ],
   "src/views/cases/index.vue?vue&type=script&lang.ts": [
-    "/assets/index-Diyyu77p.js"
+    "/assets/index-MWCF1_Tx.js"
   ],
   "src/views/cases/read.vue": [
-    "/assets/read-DaXWsrus.js"
+    "/assets/read-Cijj9TsV.js"
   ],
   "src/views/cases/read.vue?vue&type=script&lang.ts": [
-    "/assets/read-DaXWsrus.js"
+    "/assets/read-Cijj9TsV.js"
   ],
   "src/views/index/index.vue": [
-    "/assets/index-DZv1N6NM.js"
+    "/assets/index-CJVYOZMw.js"
   ],
   "src/views/index/index.vue?vue&type=script&lang.ts": [
-    "/assets/index-DZv1N6NM.js"
+    "/assets/index-CJVYOZMw.js"
   ],
   "src/views/news/index.vue": [
-    "/assets/index-DK_rSH5T.js"
+    "/assets/index-DXePmDzH.js"
   ],
   "src/views/news/index.vue?vue&type=script&lang.ts": [
-    "/assets/index-DK_rSH5T.js"
+    "/assets/index-DXePmDzH.js"
   ],
   "src/views/news/read.vue": [
-    "/assets/read-BAPOSKQ4.js"
+    "/assets/read-bEqRVZVf.js"
   ],
   "src/views/news/read.vue?vue&type=script&lang.ts": [
-    "/assets/read-BAPOSKQ4.js"
+    "/assets/read-bEqRVZVf.js"
   ],
   "src/views/services/index.vue": [
-    "/assets/index-wjhOiBXe.js"
+    "/assets/index-DTO2TXgw.js"
   ],
   "src/views/services/index.vue?vue&type=script&lang.ts": [
-    "/assets/index-wjhOiBXe.js"
+    "/assets/index-DTO2TXgw.js"
   ],
   "src/views/services/read.vue": [
-    "/assets/read-DV4RbXZv.js"
+    "/assets/read-DzV9yPoD.js"
   ],
   "src/views/services/read.vue?vue&type=script&lang.ts": [
-    "/assets/read-DV4RbXZv.js"
+    "/assets/read-DzV9yPoD.js"
   ]
 }

+ 0 - 1
dist/client/assets/banner.vue_vue_type_style_index_0_lang-CQMv34b5.js

@@ -1 +0,0 @@
-import{d as u,u as p,l as s,c as a,n as d,h as i,F as m,e as _,o as n}from"./index-C6Ampb56.js";const y="/assets/poster-CWZ8V__r.jpg",g=["poster","src"],h=_("source",{type:"video/mp4"},null,-1),v=[h],B=u({__name:"banner",setup(b){var r,l;const e=p(),t=s(1),o=s(""),c=s(y);return t.value=(r=e.state.menuList[e.state.sub])==null?void 0:r.modelType,o.value=(l=e.state.menuList[e.state.sub])==null?void 0:l.imagePath,(k,f)=>(n(),a(m,null,[t.value==1?(n(),a("div",{key:0,style:d([{width:"100%",height:"100%","background-size":"cover","background-position":"center center","background-repeat":"no-repeat"},{backgroundImage:`url(${o.value})`}])},null,4)):i("",!0),t.value==2?(n(),a("video",{key:1,"webkit-playsinline":"webkit-playsinline",playsinline:"",id:"videoPlay",autoplay:"",loop:"",muted:"",preload:"auto",poster:c.value,style:{width:"100%",height:"100%","object-fit":"fill"},src:o.value},v,8,g)):i("",!0)],64))}});export{B as _};

File diff suppressed because it is too large
+ 0 - 0
dist/client/assets/close-CCyVJcEQ.js


File diff suppressed because it is too large
+ 0 - 4
dist/client/assets/index-C6Ampb56.js


File diff suppressed because it is too large
+ 0 - 0
dist/client/assets/index-DK_rSH5T.js


File diff suppressed because it is too large
+ 0 - 5
dist/client/assets/index-DO0dCce7.css


File diff suppressed because it is too large
+ 0 - 0
dist/client/assets/index-DZv1N6NM.js


File diff suppressed because it is too large
+ 0 - 0
dist/client/assets/index-Diyyu77p.js


File diff suppressed because it is too large
+ 0 - 0
dist/client/assets/index-I5Y-7KfB.js


File diff suppressed because it is too large
+ 0 - 0
dist/client/assets/index-wjhOiBXe.js


+ 0 - 1
dist/client/assets/pagination.vue_vue_type_script_setup_true_lang-D2u7Kd-t.js

@@ -1 +0,0 @@
-import{d as v,l as g,a as _,c as m,e as t,q as a,t as l,f as h,w as C,v as f,h as x,o as w}from"./index-C6Ampb56.js";const y={key:0,class:"news-content-section pt-60"},V={class:"container"},k={class:"row newBox"},z={class:"col-lg-12 col-md-12 content"},B={class:"page mt-30 mb-30"},N={class:"d-flex justify-content-center align-items-end cannot_selected",style:{position:"relative"}},b={class:"page-des align-items-start cannot_selected"},j={class:"page-des2 align-items-end cannot_selected pc"},M=v({__name:"pagination",props:{data:Object},emits:[],setup(i,{emit:c}){const r=c,d=i,e=g({});e.value=d.data;function u(n){r("pagination",n),e.value.count=n}return(n,s)=>{const p=_("el-pagination");return e.value.total?(w(),m("div",y,[t("div",V,[t("div",k,[t("div",z,[t("div",B,[t("div",N,[t("div",b,[a("共"),t("span",null,l(Math.ceil(e.value.total/e.value.size)),1),a("页,共"),t("span",null,l(e.value.total),1),a("条信息")]),h(p,{"prev-text":"上一页","next-text":"下一页","page-size":e.value.size,"current-page":e.value.count,background:"",layout:"prev, pager, next",total:e.value.total,onCurrentChange:u},null,8,["page-size","current-page","total"]),t("div",j,[a("前往第 "),C(t("input",{"onUpdate:modelValue":s[0]||(s[0]=o=>e.value.count=o),class:"previous",onChange:s[1]||(s[1]=(...o)=>n.currentChange&&n.currentChange(...o))},null,544),[[f,e.value.count]]),a(" 页 ")])])])])])])])):x("",!0)}}});export{M as _};

File diff suppressed because it is too large
+ 0 - 0
dist/client/assets/read-BAPOSKQ4.js


File diff suppressed because it is too large
+ 0 - 0
dist/client/assets/read-DV4RbXZv.js


File diff suppressed because it is too large
+ 0 - 0
dist/client/assets/read-DaXWsrus.js


+ 2 - 2
dist/client/index.html

@@ -9,8 +9,8 @@
     <meta name="description" content="">
     <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
     <!--preload-links-->
-  <script type="module" crossorigin src="/assets/index-C6Ampb56.js"></script>
-  <link rel="stylesheet" crossorigin href="/assets/index-DO0dCce7.css">
+  <script type="module" crossorigin src="/assets/index-Dm0wv24x.js"></script>
+  <link rel="stylesheet" crossorigin href="/assets/index-C-ji14ki.css">
 </head>
 <body>
     <div id="app" style="width:100%;padding:0;margin:0"><!--ssr-outlet--></div>


+ 0 - 91
dist/server/assets/index-26zL30GA.js

@@ -1,91 +0,0 @@
-import { defineComponent, reactive, resolveComponent, resolveDirective, mergeProps, useSSRContext } from "vue";
-import { useStore } from "vuex";
-import { _ as _sfc_main$1 } from "./banner-Bjm1R_JU.js";
-import { ssrRenderAttrs, ssrRenderComponent, ssrRenderStyle, ssrRenderList, ssrInterpolate, ssrGetDirectiveProps } from "vue/server-renderer";
-import { _ as _export_sfc } from "../entry-server.js";
-import "vue-router";
-import "element-plus";
-import "axios";
-import "vue3-lazy";
-const _sfc_main = defineComponent({
-  setup() {
-    const store = useStore();
-    function go_down() {
-      globalThis.scrollTo({
-        top: globalThis.innerHeight,
-        behavior: "smooth"
-      });
-    }
-    return { store, go_down };
-  },
-  components: {
-    banner: _sfc_main$1
-  },
-  asyncData({ store, route }) {
-    let params = reactive(route.value);
-    return store.dispatch("getMenuList").then(() => {
-      const data = reactive(store.state.menuList);
-      let paramsData = reactive({
-        params: {
-          categoryid: 0,
-          pageNum: 1,
-          pageSize: 100,
-          order: "sortindex"
-        },
-        index: "",
-        sub: 0
-      });
-      for (let i = 0; i < data.length; i++) {
-        if (!data[i].sname && route.value.path == data[i].path || !data[i].sname && data[i].path == "/index") {
-          paramsData = {
-            params: {
-              categoryid: data[i].id,
-              pageNum: 1,
-              pageSize: 100,
-              order: "sortindex"
-            },
-            index: params.path,
-            sub: i
-          };
-          if (params.path == "/index" || params.path == "/") {
-            paramsData.params.categoryid = data[i].id;
-          }
-          return store.dispatch("getPageData", paramsData);
-        }
-      }
-    });
-  }
-});
-function _sfc_ssrRender(_ctx, _push, _parent, _attrs, $props, $setup, $data, $options) {
-  const _component_banner = resolveComponent("banner");
-  const _directive_lazy = resolveDirective("lazy");
-  _push(`<div${ssrRenderAttrs(mergeProps({ class: "pageContain" }, _attrs))}><div class="video-section">`);
-  _push(ssrRenderComponent(_component_banner, null, null, _parent));
-  _push(`<div class="video-des"><div class="des1"><p class="animate__animated animate__fadeInUp">公司成立<span class="num1">20年</span>,围绕行业细分,累计服务超过 <span class="num1">5000</span> 家企业,近<span class="num1"> 10万 </span>个用户</p></div><div class="des2 desCom animate__animated animate__flipInX" style="${ssrRenderStyle({ "top": "43%", "left": "0", "width": "100%", "text-align": "center" })}"><p>核心价值观</p><span>一起梦想,一起成长,一起分享</span></div><div class="des3 desCom animate__animated animate__lightSpeedInLeft" style="${ssrRenderStyle({ "top": "65%", "left": "20%" })}"><p>企业使命</p><span>用数字化手段助力客户融入数智时代</span></div><div class="des4 desCom animate__animated animate__lightSpeedInRight" style="${ssrRenderStyle({ "top": "65%", "right": "25%" })}"><p>企业愿景</p><span>成为智慧数字产业的领跑者</span></div></div><span class="go_down"></span></div>`);
-  if (_ctx.store.state.pageContent.length > 0) {
-    _push(`<section style="${ssrRenderStyle({ "width": "100vw" })}"><!--[-->`);
-    ssrRenderList(_ctx.store.state.pageContent, (arr, index2) => {
-      _push(`<div class="whyUs-section pt-60 pb-60" style="${ssrRenderStyle({ background: index2 % 2 == 1 ? "#F4F8FD" : "#fff" })}"><div class="container"><div class="section-title text-center both-border pb-20"><span class="title-tag">${ssrInterpolate(arr.title)}</span><span class="mb-30">${ssrInterpolate(arr.zhaiyao)}</span></div>`);
-      if (arr.image) {
-        _push(`<div class="row aboutOnlyText" style="${ssrRenderStyle([{ padding: index2 % 2 == 1 ? "40px 25px" : " 40px 25px" }, { "background-color": "#ffff", "box-shadow": "0px 10px 20px 10px rgb(179 202 216 / 20%)", "align-items": "center" }])}"><div class="col-md-6 pr-40 aboutImg text-center"><img${ssrRenderAttrs(mergeProps({ alt: "" }, ssrGetDirectiveProps(_ctx, _directive_lazy, arr.image)))}></div><div class="col-md-6">${arr.content}</div></div>`);
-      } else {
-        _push(`<div class="aboutOnlyText row text-center" style="${ssrRenderStyle([{ padding: index2 % 2 == 1 ? "" : "0 " }, { "background-color": "#ffff" }])}"><div class="about-text-image">${arr.content}</div></div>`);
-      }
-      _push(`</div></div>`);
-    });
-    _push(`<!--]--></section>`);
-  } else {
-    _push(`<!---->`);
-  }
-  _push(`</div>`);
-}
-const _sfc_setup = _sfc_main.setup;
-_sfc_main.setup = (props, ctx) => {
-  const ssrContext = useSSRContext();
-  (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("src/views/index/index.vue");
-  return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
-};
-const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["ssrRender", _sfc_ssrRender]]);
-export {
-  index as default
-};

+ 0 - 147
dist/server/assets/index-BFGcWMSD.js

@@ -1,147 +0,0 @@
-import { defineComponent, ref, reactive, resolveComponent, resolveDirective, mergeProps, useSSRContext } from "vue";
-import { useStore } from "vuex";
-import { useRouter, useRoute } from "vue-router";
-import { _ as _sfc_main$1 } from "./banner-Bjm1R_JU.js";
-import { _ as _sfc_main$2 } from "./pagination-CaTX_3XH.js";
-import { ssrRenderAttrs, ssrRenderComponent, ssrRenderStyle, ssrRenderList, ssrRenderClass, ssrInterpolate, ssrGetDirectiveProps } from "vue/server-renderer";
-import { _ as _export_sfc } from "../entry-server.js";
-import "element-plus";
-import "axios";
-import "vue3-lazy";
-const _sfc_main = defineComponent({
-  setup() {
-    const store = useStore();
-    const router = useRouter();
-    useRoute();
-    const requestParams = ref({});
-    let paramsData = reactive({
-      params: {
-        categoryid: 0,
-        pageNum: 1,
-        pageSize: 100,
-        order: "sortindex",
-        active: true
-      },
-      index: "",
-      sub: 0
-    });
-    let oldCategoryId = ref();
-    function facilityClick(item) {
-      if (item.id != oldCategoryId.value) {
-        requestParams.value = item;
-        paramsData = {
-          params: {
-            categoryid: item.id,
-            pageNum: 1,
-            pageSize: 10,
-            order: "sortindex",
-            active: true
-          },
-          index: store.state.currentPagePath,
-          sub: store.state.sub
-        };
-        oldCategoryId.value = item.id;
-        store.dispatch("getPageData", paramsData);
-      }
-    }
-    function details(item) {
-      let params = {
-        path: `/services_Read`,
-        query: {
-          categoryid: item.categoryid,
-          id: item.id,
-          isUrlId: 1
-        }
-      };
-      store.commit("setRoute", params);
-      router.push(params);
-    }
-    function handleCurrentChange(val) {
-      paramsData.params.pageNum = val;
-      store.dispatch("getPageData", paramsData).then(() => {
-      });
-    }
-    return { store, facilityClick, handleCurrentChange, details };
-  },
-  components: {
-    banner: _sfc_main$1,
-    pagination: _sfc_main$2
-  },
-  asyncData({ store, route }) {
-    let params = reactive(route.value);
-    return store.dispatch("getMenuList").then(() => {
-      var _a;
-      const data = store.state.menuList;
-      let paramsData = reactive({
-        params: {
-          categoryid: 0,
-          pageNum: 1,
-          pageSize: 100,
-          order: "sortindex"
-        },
-        index: "",
-        sub: 0
-      });
-      let str = ref("");
-      if (params.path.indexOf("_") > -1) {
-        str.value = params.path.split("_")[0];
-      }
-      for (let i = 0; i < data.length; i++) {
-        if (!data[i].sname && params.path == data[i].path || data[i].path == str.value) {
-          paramsData = {
-            params: {
-              categoryid: data[i].id,
-              pageNum: 1,
-              pageSize: 100,
-              order: "sortindex"
-            },
-            index: params.path,
-            sub: i
-          };
-          if (!((_a = params.query) == null ? void 0 : _a.categoryid)) {
-            paramsData.params.categoryid = data[i].children[0].id;
-          } else {
-            paramsData.params.categoryid = params.query.categoryid;
-          }
-          return store.dispatch("getPageData", paramsData).then(() => {
-            store.commit("setColumnTypes", store.state.menuList[store.state.sub].children);
-          });
-        }
-      }
-    });
-  }
-});
-function _sfc_ssrRender(_ctx, _push, _parent, _attrs, $props, $setup, $data, $options) {
-  const _component_banner = resolveComponent("banner");
-  const _component_pagination = resolveComponent("pagination");
-  const _directive_lazy = resolveDirective("lazy");
-  _push(`<div${ssrRenderAttrs(mergeProps({ class: "pageContain" }, _attrs))}><section class="common-bradcrumb-section">`);
-  _push(ssrRenderComponent(_component_banner, null, null, _parent));
-  _push(`<section class="product-grid-section" style="${ssrRenderStyle([{ "text-align": "center", "position": "absolute", "bottom": "0" }, { "width": "100%" }])}"><ul class="cannot_selected tabs_selected"><!--[-->`);
-  ssrRenderList(_ctx.store.state.columnTypes, (item, index2) => {
-    _push(`<a class="${ssrRenderClass(item.id == _ctx.store.state.acitveId ? "active" : "")}" style="${ssrRenderStyle({ "width": 1 / _ctx.store.state.columnTypes.length * 100 + "%" })}">${ssrInterpolate(item.categoryName)}</a>`);
-  });
-  _push(`<!--]--></ul></section></section><section class="product-grid-section container pt-20 pb-60 lazyContainer"><div class="row pt-80 content"><!--[-->`);
-  ssrRenderList(_ctx.store.state.pageContent, (item) => {
-    _push(`<div class="col-md-4 newItemOne"><div class="oneInnerBox"><div class="img"><img${ssrRenderAttrs(mergeProps({
-      alt: "",
-      "data-src": item.image
-    }, ssrGetDirectiveProps(_ctx, _directive_lazy, item.image)))}></div><a class="line-two">${ssrInterpolate(item.title)}</a><span class="line-two">${ssrInterpolate(item.zhaiyao)}</span></div></div>`);
-  });
-  _push(`<!--]--></div>`);
-  _push(ssrRenderComponent(_component_pagination, {
-    data: _ctx.store.state.pagination,
-    onPagination: _ctx.handleCurrentChange
-  }, null, _parent));
-  _push(`</section></div>`);
-}
-const _sfc_setup = _sfc_main.setup;
-_sfc_main.setup = (props, ctx) => {
-  const ssrContext = useSSRContext();
-  (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("src/views/services/index.vue");
-  return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
-};
-const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["ssrRender", _sfc_ssrRender]]);
-export {
-  index as default
-};

+ 0 - 141
dist/server/assets/index-C4cftq0v.js

@@ -1,141 +0,0 @@
-import { defineComponent, reactive, ref, resolveComponent, mergeProps, useSSRContext } from "vue";
-import { useStore } from "vuex";
-import { useRouter, useRoute } from "vue-router";
-import { _ as _sfc_main$1 } from "./banner-Bjm1R_JU.js";
-import { _ as _sfc_main$2 } from "./pagination-CaTX_3XH.js";
-import { ssrRenderAttrs, ssrRenderComponent, ssrRenderStyle, ssrRenderList, ssrRenderClass, ssrInterpolate } from "vue/server-renderer";
-import { _ as _export_sfc } from "../entry-server.js";
-import "element-plus";
-import "axios";
-import "vue3-lazy";
-const _sfc_main = defineComponent({
-  setup() {
-    const store = useStore();
-    const router = useRouter();
-    useRoute();
-    reactive({});
-    let paramsData = reactive({
-      params: {
-        categoryid: 0,
-        pageNum: 1,
-        pageSize: 10,
-        order: "sortindex",
-        acitve: true
-      },
-      index: "",
-      sub: 0
-    });
-    let oldCategoryId = ref(store.state.columnTypes[0].id);
-    function facilityClick(item) {
-      if (item.id != oldCategoryId.value) {
-        paramsData = {
-          params: {
-            categoryid: item.id,
-            pageNum: 1,
-            pageSize: 10,
-            order: "sortindex",
-            acitve: true
-          },
-          index: store.state.currentPagePath,
-          sub: store.state.sub
-        };
-        oldCategoryId.value = item.id;
-        store.dispatch("getPageData", paramsData);
-      }
-    }
-    function details(item) {
-      let params = {
-        path: `/news_Read`,
-        query: {
-          categoryid: item.categoryid,
-          id: item.id,
-          isUrlId: 1
-        }
-      };
-      store.commit("setRoute", params);
-      router.push(params);
-    }
-    function handleCurrentChange(val) {
-      paramsData.params.pageNum = val;
-      store.dispatch("getPageData", paramsData);
-    }
-    return { store, facilityClick, handleCurrentChange, details };
-  },
-  components: {
-    banner: _sfc_main$1,
-    pagination: _sfc_main$2
-  },
-  asyncData({ store, route }) {
-    let params = reactive(route.value);
-    return store.dispatch("getMenuList").then(() => {
-      var _a;
-      const data = reactive(store.state.menuList);
-      let paramsData = reactive({});
-      let str = ref("");
-      if (params.path.indexOf("_") > -1) {
-        str.value = params.path.split("_")[0];
-      }
-      for (let i = 0; i < data.length; i++) {
-        if (!data[i].sname && params.path == data[i].path || data[i].path == str.value) {
-          paramsData = {
-            params: {
-              categoryid: data[i].id,
-              pageNum: 1,
-              pageSize: 100
-              //   order:"sortindex",
-            },
-            index: params.path,
-            sub: i
-          };
-          if (!((_a = params.query) == null ? void 0 : _a.categoryid)) {
-            paramsData.params.categoryid = data[i].children[0].id;
-          } else {
-            paramsData.params.categoryid = params.query.categoryid;
-          }
-          return store.dispatch("getPageData", paramsData).then(() => {
-            store.commit("setColumnTypes", store.state.menuList[store.state.sub].children);
-          });
-        }
-      }
-    });
-  }
-});
-function _sfc_ssrRender(_ctx, _push, _parent, _attrs, $props, $setup, $data, $options) {
-  const _component_banner = resolveComponent("banner");
-  const _component_el_image = resolveComponent("el-image");
-  const _component_pagination = resolveComponent("pagination");
-  _push(`<div${ssrRenderAttrs(mergeProps({ class: "pageContain" }, _attrs))}><section class="common-bradcrumb-section">`);
-  _push(ssrRenderComponent(_component_banner, null, null, _parent));
-  _push(`</section><section style="${ssrRenderStyle({ "background": "#F7F7F7" })}"><div class="container"><div class="row newTypeBox"><!--[-->`);
-  ssrRenderList(_ctx.store.state.columnTypes, (item, index2) => {
-    _push(`<div class="col-lg-6 col-md-6"><div class="${ssrRenderClass([item.id == _ctx.store.state.acitveId ? "active" : "", "titleOne"])}">${ssrInterpolate(item.categoryName)}</div></div>`);
-  });
-  _push(`<!--]--></div></div></section><section class="news-content-section pt-70"><div class="container"><div class="row"><div class="col-lg-12 col-md-12 content"><ul><div class="row"><!--[-->`);
-  ssrRenderList(_ctx.store.state.pageContent, (item, index2) => {
-    _push(`<div class="col-md-4 newItemOne lazyContainer"><div class="oneInnerBox"><div class="img" style="${ssrRenderStyle({ "overflow": "hidden" })}">`);
-    _push(ssrRenderComponent(_component_el_image, {
-      src: item.image,
-      alt: "",
-      "data-src": item.image,
-      fit: "contain",
-      style: { "display": "block" }
-    }, null, _parent));
-    _push(`</div><a class="line-two">${ssrInterpolate(item.title)}</a><span>${ssrInterpolate(item.createdate)}</span></div></div>`);
-  });
-  _push(`<!--]--></div></ul>`);
-  _push(ssrRenderComponent(_component_pagination, {
-    data: _ctx.store.state.pagination,
-    onPagination: _ctx.handleCurrentChange
-  }, null, _parent));
-  _push(`</div></div></div></section></div>`);
-}
-const _sfc_setup = _sfc_main.setup;
-_sfc_main.setup = (props, ctx) => {
-  const ssrContext = useSSRContext();
-  (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("src/views/news/index.vue");
-  return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
-};
-const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["ssrRender", _sfc_ssrRender]]);
-export {
-  index as default
-};

+ 0 - 101
dist/server/assets/index-C_9nX2uk.js

@@ -1,101 +0,0 @@
-import { defineComponent, ref, reactive, resolveComponent, resolveDirective, mergeProps, useSSRContext } from "vue";
-import { useStore } from "vuex";
-import { _ as _sfc_main$1 } from "./banner-Bjm1R_JU.js";
-import { ssrRenderAttrs, ssrRenderComponent, ssrRenderList, ssrRenderStyle, ssrRenderAttr, ssrInterpolate, ssrGetDirectiveProps } from "vue/server-renderer";
-import { _ as _export_sfc } from "../entry-server.js";
-import "vue-router";
-import "element-plus";
-import "axios";
-import "vue3-lazy";
-const _sfc_main = defineComponent({
-  setup() {
-    const store = useStore();
-    const requestParams = ref({});
-    let paramsData = reactive({});
-    let oldCategoryId = ref();
-    function facilityClick(item) {
-      if (item.id != oldCategoryId.value) {
-        requestParams.value = item;
-        paramsData = {
-          params: {
-            categoryid: item.id,
-            pageNum: 1,
-            pageSize: 10,
-            order: "sortindex"
-          },
-          index: store.state.currentPagePath,
-          sub: store.state.sub
-        };
-        oldCategoryId.value = item.id;
-        store.dispatch("getPageData", paramsData).then(() => {
-          store.commit("setColumnTypes", store.state.pageContent);
-        });
-      }
-    }
-    return { store, facilityClick };
-  },
-  components: {
-    banner: _sfc_main$1
-  },
-  asyncData({ store, route }) {
-    let params = reactive(route.value);
-    return store.dispatch("getMenuList").then(() => {
-      const data = store.state.menuList;
-      let paramsData = reactive({});
-      for (let i = 0; i < data.length; i++) {
-        if (!data[i].sname && params.path == data[i].path) {
-          paramsData = {
-            params: {
-              categoryid: data[i].id,
-              pageNum: 1,
-              pageSize: 100,
-              order: "sortindex"
-            },
-            index: params.path,
-            sub: i
-          };
-          return store.dispatch("getPageData", paramsData).then(() => {
-            store.commit("setColumnTypes", store.state.pageContent);
-          });
-        }
-      }
-    });
-  }
-});
-function _sfc_ssrRender(_ctx, _push, _parent, _attrs, $props, $setup, $data, $options) {
-  const _component_banner = resolveComponent("banner");
-  const _directive_lazy = resolveDirective("lazy");
-  _push(`<div${ssrRenderAttrs(mergeProps({ class: "pageContain" }, _attrs))}><div class="common-bradcrumb-section">`);
-  _push(ssrRenderComponent(_component_banner, null, null, _parent));
-  _push(`</div><!--[-->`);
-  ssrRenderList(_ctx.store.state.columnTypes, (arr, index2) => {
-    _push(`<section class="about-introduce-section course-section pt-40 pb-60 about-sec" style="${ssrRenderStyle({ background: index2 % 2 == 1 ? "#F4F8FD" : "#fff" })}"><div${ssrRenderAttr("id", arr.id)} class="pointOffset">0</div><div class="container"><div class="row"><div class="col-md-2 col-sm-12 text-center">`);
-    if (index2 == 0) {
-      _push(`<ul class="aboutTyes"><!--[-->`);
-      ssrRenderList(_ctx.store.state.columnTypes, (item, i) => {
-        _push(`<li><a${ssrRenderAttr("href", `#${item.id}`)}>${ssrInterpolate(item.title)}</a></li>`);
-      });
-      _push(`<!--]--></ul>`);
-    } else {
-      _push(`<!---->`);
-    }
-    _push(`</div><div class="col-md-10 col-sm-12"><div class="section-title text-center both-border pb-20"><span class="title-tag">${ssrInterpolate(arr.title)}</span></div>`);
-    if (arr.image) {
-      _push(`<div class="row aboutOnlyText text-left" style="${ssrRenderStyle([{ padding: index2 % 2 == 1 ? "40px 25px" : " 40px 25px" }, { "background-color": "#ffff", "box-shadow": "0px 10px 20px 10px rgb(179 202 216 / 20%)" }])}"><div class="col-md-7 pr-40 aboutImg"><img${ssrRenderAttrs(mergeProps({ alt: "" }, ssrGetDirectiveProps(_ctx, _directive_lazy, arr.image)))}></div><div class="col-md-5">${arr.content}</div></div>`);
-    } else {
-      _push(`<div class="aboutOnlyText row text-left" style="${ssrRenderStyle([{ padding: index2 % 2 == 1 ? "40px" : "0 " }, { "background-color": "#ffff" }])}"><div class="about-text-image">${arr.content}</div></div>`);
-    }
-    _push(`</div></div></div></section>`);
-  });
-  _push(`<!--]--></div>`);
-}
-const _sfc_setup = _sfc_main.setup;
-_sfc_main.setup = (props, ctx) => {
-  const ssrContext = useSSRContext();
-  (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("src/views/about/index.vue");
-  return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
-};
-const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["ssrRender", _sfc_ssrRender]]);
-export {
-  index as default
-};

+ 0 - 126
dist/server/assets/index-CuwGEkgD.js

@@ -1,126 +0,0 @@
-import { defineComponent, ref, reactive, resolveComponent, resolveDirective, mergeProps, useSSRContext } from "vue";
-import { useStore } from "vuex";
-import { useRouter, useRoute } from "vue-router";
-import { _ as _sfc_main$1 } from "./banner-Bjm1R_JU.js";
-import { ssrRenderAttrs, ssrRenderComponent, ssrRenderStyle, ssrRenderList, ssrRenderClass, ssrRenderAttr, ssrInterpolate, ssrGetDirectiveProps } from "vue/server-renderer";
-import { _ as _export_sfc } from "../entry-server.js";
-import "element-plus";
-import "axios";
-import "vue3-lazy";
-const _sfc_main = defineComponent({
-  setup() {
-    const store = useStore();
-    const router = useRouter();
-    useRoute();
-    const requestParams = ref({});
-    let paramsData = reactive({});
-    let oldCategoryId = ref();
-    function facilityClick(item) {
-      if (item.id != oldCategoryId.value) {
-        requestParams.value = item;
-        paramsData = {
-          params: {
-            categoryid: item.id,
-            pageNum: 1,
-            pageSize: 100,
-            order: "sortindex"
-          },
-          index: store.state.currentPagePath,
-          sub: store.state.sub
-        };
-        oldCategoryId.value = item.id;
-        store.dispatch("getPageData", paramsData);
-      }
-    }
-    function details(item) {
-      let params = {
-        path: `/cases_Read`,
-        query: {
-          categoryid: item.categoryid,
-          id: item.id,
-          isUrlId: 1
-        }
-      };
-      store.commit("setRoute", params);
-      router.push(params);
-    }
-    return { store, facilityClick, details };
-  },
-  components: {
-    banner: _sfc_main$1
-  },
-  asyncData({ store, route }) {
-    let params = reactive(route.value);
-    return store.dispatch("getMenuList").then(() => {
-      var _a;
-      const data = reactive(store.state.menuList);
-      let paramsData = reactive({
-        params: {
-          categoryid: 0,
-          pageNum: 1,
-          pageSize: 100,
-          order: "sortindex"
-        },
-        index: "",
-        sub: 0
-      });
-      for (let i = 0; i < data.length; i++) {
-        if (!data[i].sname && params.path == data[i].path) {
-          paramsData = {
-            params: {
-              categoryid: data[i].id,
-              pageNum: 1,
-              pageSize: 100,
-              order: "sortindex"
-            },
-            index: params.path,
-            sub: i
-          };
-          if (!((_a = params.query) == null ? void 0 : _a.categoryid)) {
-            paramsData.params.categoryid = data[i].children[0].id;
-          } else {
-            paramsData.params.categoryid = params.query.categoryid;
-          }
-          return store.dispatch("getPageData", paramsData).then(() => {
-            store.commit("setColumnTypes", store.state.menuList[store.state.sub].children);
-          });
-        }
-      }
-    });
-  }
-});
-function _sfc_ssrRender(_ctx, _push, _parent, _attrs, $props, $setup, $data, $options) {
-  const _component_banner = resolveComponent("banner");
-  const _directive_lazy = resolveDirective("lazy");
-  _push(`<div${ssrRenderAttrs(mergeProps({ class: "pageContain" }, _attrs))}><section class="common-bradcrumb-section">`);
-  _push(ssrRenderComponent(_component_banner, null, null, _parent));
-  _push(`</section><section style="${ssrRenderStyle({ "background": "#F4F8FD" })}" class="solutionType"><div class="container pc" style="${ssrRenderStyle({ "text-align": "center" })}"><!--[-->`);
-  ssrRenderList(_ctx.store.state.columnTypes, (item, index2) => {
-    _push(`<div class="${ssrRenderClass([item.id == _ctx.store.state.acitveId ? "active" : "", "solutionTypeOne"])}" style="${ssrRenderStyle({ "width": 1 / _ctx.store.state.columnTypes.length * 100 + "%" })}"><div style="${ssrRenderStyle({ "width": "40px", "height": "40px", "overflow": "hidden", "margin": "0 auto" })}"><img class="img"${ssrRenderAttr("src", item.imagePath)} alt=""></div><p>${ssrInterpolate(item.categoryName)}</p></div>`);
-  });
-  _push(`<!--]--></div><div class="container mobile" style="${ssrRenderStyle({ "text-align": "center" })}"><!--[-->`);
-  ssrRenderList(_ctx.store.state.columnTypes, (item, index2) => {
-    _push(`<div class="${ssrRenderClass([item.id == _ctx.store.state.acitveId ? "active" : "", "solutionTypeOne"])}" style="${ssrRenderStyle({ "width": 1.5 / _ctx.store.state.columnTypes.length * 100 + "%" })}"><div style="${ssrRenderStyle({ "width": "40px", "height": "40px", "overflow": "hidden", "margin": "0 auto" })}"><img${ssrRenderAttrs(mergeProps({
-      class: "img",
-      alt: ""
-    }, ssrGetDirectiveProps(_ctx, _directive_lazy, item.imagePath)))}></div><p>${ssrInterpolate(item.categoryName)}</p></div>`);
-  });
-  _push(`<!--]--></div></section><section class="solution-section lazyContainer"><!--[-->`);
-  ssrRenderList(_ctx.store.state.pageContent, (item, index2) => {
-    _push(`<div style="${ssrRenderStyle([{ background: index2 % 2 == 1 ? "#F4F8FD" : "#fff" }, { "padding": "40px 0" }])}"><div class="container"><div class="solutionItem"><div class="solutionTitle text-left">${ssrInterpolate(item.title)}</div><div class="row solutionInner"><div class="col-md-7"><p class="text-left">${item.lmtitle}</p><div class="pt-40 mb-20 text-left">${ssrInterpolate(item.zhaiyao)}</div></div><div class="col-md-5 text-center"><img${ssrRenderAttrs(mergeProps({
-      alt: "",
-      "data-src": item.image
-    }, ssrGetDirectiveProps(_ctx, _directive_lazy, item.image)))}></div></div></div></div></div>`);
-  });
-  _push(`<!--]--></section></div>`);
-}
-const _sfc_setup = _sfc_main.setup;
-_sfc_main.setup = (props, ctx) => {
-  const ssrContext = useSSRContext();
-  (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("src/views/cases/index.vue");
-  return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
-};
-const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["ssrRender", _sfc_ssrRender]]);
-export {
-  index as default
-};

+ 0 - 103
dist/server/assets/read-BMdAvrqr.js

@@ -1,103 +0,0 @@
-import { defineComponent, reactive, ref, resolveComponent, mergeProps, useSSRContext } from "vue";
-import { useStore } from "vuex";
-import { useRoute } from "vue-router";
-import { _ as _sfc_main$1 } from "./banner-Bjm1R_JU.js";
-import { _ as _sfc_main$2, a as _imports_0 } from "./close-qpOHEUbb.js";
-import { ssrRenderAttrs, ssrRenderComponent, ssrInterpolate, ssrRenderAttr } from "vue/server-renderer";
-import { _ as _export_sfc } from "../entry-server.js";
-import "element-plus";
-import "axios";
-import "vue3-lazy";
-const _sfc_main = defineComponent({
-  setup() {
-    const store = useStore();
-    const route = useRoute();
-    const recomMendationList = reactive(recomMendationFilter(store.state.recomMendation));
-    function recomMendationFilter(data) {
-      var _a;
-      let array = [];
-      for (let i = 0; i < data.length; i++) {
-        if (data[i].id != ((_a = route.query) == null ? void 0 : _a.id)) {
-          array.push(data[i]);
-        }
-      }
-      return array;
-    }
-    return { store, recomMendationList };
-  },
-  components: {
-    banner: _sfc_main$1,
-    recomMendation: _sfc_main$2
-  },
-  asyncData({ store, route }) {
-    var _a;
-    let params = reactive({});
-    if ((_a = route.value.query) == null ? void 0 : _a.id) {
-      params = route.value;
-    } else {
-      params = store.state.route;
-    }
-    return store.dispatch("getMenuList").then(() => {
-      var _a2, _b, _c, _d, _e;
-      const data = reactive(store.state.menuList);
-      let str = ref("");
-      let sub = ref();
-      let paramsData = reactive({});
-      if (params.path.indexOf("_")) {
-        str.value = params.path.split("_")[0];
-      }
-      for (let i = 0; i < data.length; i++) {
-        if (params.path == data[i].path || str.value == data[i].path) {
-          if (((_a2 = params.query) == null ? void 0 : _a2.categoryid) && !data[i].sname) {
-            sub.value = i;
-            if (((_b = params.query) == null ? void 0 : _b.id) && !params.query.dup) {
-              paramsData = {
-                params: {
-                  categoryid: (_c = params.query) == null ? void 0 : _c.categoryid,
-                  pageNum: 1,
-                  pageSize: 1,
-                  order: "sortindex",
-                  articleid: (_d = params.query) == null ? void 0 : _d.id,
-                  id: (_e = params.query) == null ? void 0 : _e.id,
-                  details: true
-                },
-                index: params.path,
-                sub: sub.value
-              };
-              return store.dispatch("getPageData", paramsData);
-            }
-          }
-        }
-      }
-    });
-  }
-});
-function _sfc_ssrRender(_ctx, _push, _parent, _attrs, $props, $setup, $data, $options) {
-  const _component_banner = resolveComponent("banner");
-  const _component_recomMendation = resolveComponent("recomMendation");
-  _push(`<div${ssrRenderAttrs(mergeProps({ class: "pageContain" }, _attrs))}><section class="common-bradcrumb-section">`);
-  _push(ssrRenderComponent(_component_banner, null, null, _parent));
-  _push(`</section><section class="product-content-section pt-60">`);
-  if (_ctx.store.state.pageContent.length > 0) {
-    _push(`<div class="container"><div class="row"><div class="col-lg-12 col-md-12 content"><div class="read_content mb-60"><div class="section-title text-left both-border mb-60 d-flex justify-content-between"><div><span class="title-tag2">${ssrInterpolate(_ctx.store.state.pageContent[0].title)}</span><div class="new-read-title2"><span>${ssrInterpolate(_ctx.store.state.pageContent[0].createdate)}</span><span>点击量:${ssrInterpolate(_ctx.store.state.pageContent[0].hits)}</span></div></div><a href="javascript:history.back(-1)"><img${ssrRenderAttr("src", _imports_0)} alt=""></a></div><div class="new-read-body">${_ctx.store.state.pageContent[0].content}</div></div>`);
-    if (_ctx.recomMendationList.length > 0) {
-      _push(ssrRenderComponent(_component_recomMendation, { data: _ctx.recomMendationList }, null, _parent));
-    } else {
-      _push(`<!---->`);
-    }
-    _push(`</div></div></div>`);
-  } else {
-    _push(`<!---->`);
-  }
-  _push(`</section></div>`);
-}
-const _sfc_setup = _sfc_main.setup;
-_sfc_main.setup = (props, ctx) => {
-  const ssrContext = useSSRContext();
-  (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("src/views/news/read.vue");
-  return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
-};
-const read = /* @__PURE__ */ _export_sfc(_sfc_main, [["ssrRender", _sfc_ssrRender]]);
-export {
-  read as default
-};

+ 0 - 103
dist/server/assets/read-CJ5Je7WK.js

@@ -1,103 +0,0 @@
-import { defineComponent, ref, reactive, resolveComponent, mergeProps, useSSRContext } from "vue";
-import { useStore } from "vuex";
-import { useRoute } from "vue-router";
-import { _ as _sfc_main$1 } from "./banner-Bjm1R_JU.js";
-import { _ as _sfc_main$2, a as _imports_0 } from "./close-qpOHEUbb.js";
-import { ssrRenderAttrs, ssrRenderComponent, ssrInterpolate, ssrRenderAttr, ssrRenderStyle } from "vue/server-renderer";
-import { _ as _export_sfc } from "../entry-server.js";
-import "element-plus";
-import "axios";
-import "vue3-lazy";
-const _sfc_main = defineComponent({
-  setup() {
-    const store = useStore();
-    const route = useRoute();
-    const recomMendationList = ref(recomMendationFilter(store.state.recomMendation));
-    function recomMendationFilter(data) {
-      var _a;
-      let array = [];
-      for (let i = 0; i < data.length; i++) {
-        if (data[i].id != ((_a = route.query) == null ? void 0 : _a.id)) {
-          array.push(data[i]);
-        }
-      }
-      return array;
-    }
-    return { store, recomMendationList };
-  },
-  components: {
-    banner: _sfc_main$1,
-    recomMendation: _sfc_main$2
-  },
-  asyncData({ store, route }) {
-    var _a;
-    let params = reactive({});
-    if ((_a = route.value.query) == null ? void 0 : _a.categoryid) {
-      params = route.value;
-    } else {
-      params = store.state.route;
-    }
-    return store.dispatch("getMenuList").then(() => {
-      var _a2, _b, _c, _d, _e;
-      const data = reactive(store.state.menuList);
-      let str = ref("");
-      let sub = ref();
-      let paramsData = reactive({});
-      if (params.path.indexOf("_")) {
-        str.value = params.path.split("_")[0];
-      }
-      for (let i = 0; i < data.length; i++) {
-        if (params.path == data[i].path || str.value == data[i].path) {
-          if (((_a2 = params.query) == null ? void 0 : _a2.categoryid) && !data[i].sname) {
-            sub.value = i;
-          }
-        }
-      }
-      if (((_b = params.query) == null ? void 0 : _b.categoryid) && !params.query.dup) {
-        paramsData = {
-          params: {
-            categoryid: (_c = params.query) == null ? void 0 : _c.categoryid,
-            pageNum: 1,
-            pageSize: 1,
-            order: "sortindex",
-            articleid: (_d = params.query) == null ? void 0 : _d.id,
-            id: (_e = params.query) == null ? void 0 : _e.id,
-            details: true
-          },
-          index: params.path,
-          sub: sub.value
-        };
-      }
-      return store.dispatch("getPageData", paramsData);
-    });
-  }
-});
-function _sfc_ssrRender(_ctx, _push, _parent, _attrs, $props, $setup, $data, $options) {
-  const _component_banner = resolveComponent("banner");
-  const _component_recomMendation = resolveComponent("recomMendation");
-  _push(`<div${ssrRenderAttrs(mergeProps({ class: "pageContain" }, _attrs))}><section class="common-bradcrumb-section">`);
-  _push(ssrRenderComponent(_component_banner, null, null, _parent));
-  _push(`</section><section class="product-content-section pt-60">`);
-  if (_ctx.store.state.pageContent.length > 0) {
-    _push(`<div class="container"><div class="row"><div class="col-lg-12 col-md-12 content"><div class="read_content mb-60"><div class="section-title text-left both-border mb-60 d-flex justify-content-between"><span class="title-tag2">${ssrInterpolate(_ctx.store.state.pageContent[0].title)}</span><a href="javascript:history.back(-1)"><img${ssrRenderAttr("src", _imports_0)} alt=""></a></div><div class="row"><div class="col-lg-5 col-md-6"><img${ssrRenderAttr("src", _ctx.store.state.pageContent[0].image)} alt="" style="${ssrRenderStyle({ "width": "90%" })}"></div><div class="col-lg-7 col-md-6"><div>${_ctx.store.state.pageContent[0].content}</div></div></div></div>`);
-    if (_ctx.recomMendationList.length > 0) {
-      _push(ssrRenderComponent(_component_recomMendation, { data: _ctx.recomMendationList }, null, _parent));
-    } else {
-      _push(`<!---->`);
-    }
-    _push(`</div></div></div>`);
-  } else {
-    _push(`<!---->`);
-  }
-  _push(`</section></div>`);
-}
-const _sfc_setup = _sfc_main.setup;
-_sfc_main.setup = (props, ctx) => {
-  const ssrContext = useSSRContext();
-  (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("src/views/services/read.vue");
-  return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
-};
-const read = /* @__PURE__ */ _export_sfc(_sfc_main, [["ssrRender", _sfc_ssrRender]]);
-export {
-  read as default
-};

+ 0 - 103
dist/server/assets/read-UZ_L0WB3.js

@@ -1,103 +0,0 @@
-import { defineComponent, ref, reactive, resolveComponent, mergeProps, useSSRContext } from "vue";
-import { useStore } from "vuex";
-import { useRoute } from "vue-router";
-import { _ as _sfc_main$1 } from "./banner-Bjm1R_JU.js";
-import { _ as _sfc_main$2, a as _imports_0 } from "./close-qpOHEUbb.js";
-import { ssrRenderAttrs, ssrRenderComponent, ssrInterpolate, ssrRenderAttr } from "vue/server-renderer";
-import { _ as _export_sfc } from "../entry-server.js";
-import "element-plus";
-import "axios";
-import "vue3-lazy";
-const _sfc_main = defineComponent({
-  setup() {
-    const store = useStore();
-    const route = useRoute();
-    const recomMendationList = ref(recomMendationFilter(store.state.recomMendation));
-    function recomMendationFilter(data) {
-      var _a;
-      let array = [];
-      for (let i = 0; i < data.length; i++) {
-        if (data[i].id != ((_a = route.query) == null ? void 0 : _a.id)) {
-          array.push(data[i]);
-        }
-      }
-      return array;
-    }
-    return { store, recomMendationList };
-  },
-  components: {
-    banner: _sfc_main$1,
-    recomMendation: _sfc_main$2
-  },
-  asyncData({ store, route }) {
-    var _a;
-    let params = reactive({});
-    if ((_a = route.value.query) == null ? void 0 : _a.categoryid) {
-      params = route.value;
-    } else {
-      params = store.state.route;
-    }
-    return store.dispatch("getMenuList").then(() => {
-      var _a2, _b;
-      const data = reactive(store.state.menuList);
-      let str = ref("");
-      let sub = ref();
-      let paramsData = reactive({});
-      if (params.path.indexOf("_") > -1) {
-        str.value = params.path.split("_")[0];
-      }
-      for (let i = 0; i < data.length; i++) {
-        if (params.path == data[i].path || str.value == data[i].path) {
-          if (((_a2 = params.query) == null ? void 0 : _a2.categoryid) && !data[i].sname) {
-            sub.value = i;
-          }
-        }
-      }
-      if (((_b = params.query) == null ? void 0 : _b.categoryid) && !params.query.dup) {
-        paramsData = {
-          params: {
-            categoryid: params.query.categoryid,
-            pageNum: 1,
-            pageSize: 1,
-            order: "sortindex",
-            articleid: params.query.id,
-            id: params.query.id,
-            details: true
-          },
-          index: params.path,
-          sub: sub.value
-        };
-        return store.dispatch("getPageData", paramsData);
-      }
-    });
-  }
-});
-function _sfc_ssrRender(_ctx, _push, _parent, _attrs, $props, $setup, $data, $options) {
-  const _component_banner = resolveComponent("banner");
-  const _component_recomMendation = resolveComponent("recomMendation");
-  _push(`<div${ssrRenderAttrs(mergeProps({ class: "pageContain" }, _attrs))}><section class="common-bradcrumb-section">`);
-  _push(ssrRenderComponent(_component_banner, null, null, _parent));
-  _push(`</section><section class="product-content-section pt-60">`);
-  if (_ctx.store.state.pageContent.length > 0) {
-    _push(`<div class="container"><div class="row"><div class="col-lg-12 col-md-12 content"><div class="read_content mb-60"><div class="section-title text-center both-border mb-60 d-flex justify-content-between"><span class="title-tag2 text-left">${ssrInterpolate(_ctx.store.state.pageContent[0].title)}</span><a href="javascript:history.back(-1)"><img${ssrRenderAttr("src", _imports_0)} alt=""></a></div><div class="row"><div class="col-lg-12 col-md-12"><div class="text-left">${_ctx.store.state.pageContent[0].content}</div></div></div></div>`);
-    if (_ctx.recomMendationList.length > 0) {
-      _push(ssrRenderComponent(_component_recomMendation, { data: _ctx.recomMendationList }, null, _parent));
-    } else {
-      _push(`<!---->`);
-    }
-    _push(`</div></div></div>`);
-  } else {
-    _push(`<!---->`);
-  }
-  _push(`</section></div>`);
-}
-const _sfc_setup = _sfc_main.setup;
-_sfc_main.setup = (props, ctx) => {
-  const ssrContext = useSSRContext();
-  (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("src/views/cases/read.vue");
-  return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
-};
-const read = /* @__PURE__ */ _export_sfc(_sfc_main, [["ssrRender", _sfc_ssrRender]]);
-export {
-  read as default
-};

File diff suppressed because it is too large
+ 422 - 11
dist/server/entry-server.js


+ 12 - 8
server.js

@@ -30,7 +30,6 @@ async function createServer() {
     }
     // 参考https://cn.vitejs.dev/guide/ssr.html
     app.use('*', async(req, res) => {
-        
         const url = req.originalUrl
         let template
         let render
@@ -70,33 +69,38 @@ async function createServer() {
             // 4. 渲染应用的 HTML。这假设 entry-server.js 导出的 `render`
             //    函数调用了适当的 SSR 框架 API。
             //    例如 ReactDOMServer.renderToString()
+            
             if(!isProd){
                 const { appHtml, state } = await render(url)
-                let a = state.pageContent
-                if(state.pageContent.length>0){
-                    a= state.pageContent[0]
-                }
+                const { title,keywords, description } = state.meta
                 // 5. 注入渲染后的应用程序 HTML 到模板中。
                 html = template
                 .replace(`<!--ssr-outlet-->`, appHtml)
                 .replace('\'<!--vuex-state-->\'', JSON.stringify(state))
+                .replace('<title>',`<title>${title}`)
+                .replace('<meta name="keywords" content="">',`<meta name="keywords" content="${keywords}">`)
+                .replace('<meta name="description" content="">',`<meta name="description" content="${description}">`)
                
             }else{
                 const manifest =  ssrManifest
                 const { appHtml, state,preloadLinks } = await render(url,manifest)
+                const { title,keywords, description } = state.meta
                 html = template
                 .replace(`<!--preload-links-->`, preloadLinks)
                 .replace(`<!--ssr-outlet-->`, appHtml)
                 .replace('\'<!--vuex-state-->\'', JSON.stringify(state))
+                .replace('<title>',`<title>${title}`)
+                .replace('<meta name="keywords" content="">',`<meta name="keywords" content="${keywords}">`)
+                .replace('<meta name="description" content="">',`<meta name="description" content="${description}">`)
             }
             // 6. 返回渲染后的 HTML。
             res.status(200).set({ 'Content-Type': 'text/html' }).end(html)
         } catch (e) {
             // 如果捕获到了一个错误,让 Vite 来修复该堆栈,这样它就可以映射回
             // 你的实际源码中。
-            vite.ssrFixStacktrace(e)
-            console.log(e)
-            next(e)
+            // vite.ssrFixStacktrace(e)
+            // console.log(e)
+            // next(e)
         }
     })
     app.listen(5173, () => {

+ 5 - 5
src/api/index.ts

@@ -1,25 +1,25 @@
 import request from '@/utils/request.ts'
-var api = "http://172.16.120.165:13200/prod-api/"
-// var api = "https://gateWay.usky.cn/prod-api/"
+// var api = "http://172.16.120.165:13200/"
+// var api = "http://gateWay.usky.cn/"
 
 //获取菜单列表
 export function getMenu() {
     return request({
-        url: `${api}service-website/siteCategory/siteCategoryList`,
+        url: `prod-api/service-website/siteCategory/siteCategoryList`,
         method: 'get'
     })
 }
 //获取页面内容
 export function getPageContent(params:any) {
     return request({
-        url: `${api}service-website/siteArticle/siteArticleList`,
+        url: `prod-api/service-website/siteArticle/siteArticleList`,
         method: 'get',
         data: params,
     })
 }
 export function siteReview(data:any) {
     return request({
-        url: `${api}service-website/siteReview`,
+        url: `prod-api/service-website/siteReview`,
         method: 'post',
         data
     })

+ 11 - 13
src/components/layout/feedFix.vue

@@ -1,17 +1,15 @@
 <script setup lang="ts">
-// console.log(process.env.NODE_ENV)
-// // (客户端)监听返回顶部状态
-// if(process.env.NODE_ENV == "development"){
-    // globalThis.addEventListener('scroll', function() {
-    //     var scrollTop = document.documentElement.scrollTop || document.body.scrollTop;
-    //     var element:any = document.getElementById("scroll-up")
-    //     if(scrollTop > 770){
-    //         element.style.opacity = 1
-    //     }else{
-    //         element.style.opacity = 0
-    //     }
-    // });
-// }
+if (typeof window !== 'undefined' && typeof window.globalThis.addEventListener === 'function') {
+    globalThis.addEventListener('scroll', function() {
+        var scrollTop = document.documentElement.scrollTop || document.body.scrollTop;
+        var element:any = document.getElementById("scroll-up")
+        if(scrollTop > 770){
+            element.style.opacity = 1
+        }else{
+            element.style.opacity = 0
+        }
+    });
+}
 //返回顶部
 function scrollToTop() {
     globalThis.scrollTo({

+ 2 - 2
src/components/layout/footer.vue

@@ -23,8 +23,8 @@ setTimeout(()=>{
                             <div>
 
                                 <h5 class="widget-title">
-                                    <a  v-if="item.sname" :href="item.categoryStyle==1?'/?dup='+item.sname:'/template'+item.categoryStyle+'/?dup='+item.sname">{{item.categoryName}}</a>
-                                    <a  v-else :href="item.categoryStyle==1?'/':'/template'+item.categoryStyle+'/'">{{item.categoryName}}</a>
+                                    <a  v-if="item.sname" :href="`${item.path}?dup=${item.sname}`">{{item.categoryName}}</a>
+                                    <a  v-else :href="item.path">{{item.categoryName}}</a>
                                 </h5>
                                 <ul>
                                     <li v-if="item.children" v-for="children in item.children" :key="children.id" style="text-align: left;">

+ 20 - 2
src/components/layout/header.vue

@@ -26,6 +26,24 @@ function handleClose(){
 function dialogPersona(){
     store.commit("setDialogPersonalStatus",true)
 }
+if(typeof window !== 'undefined' && typeof window.globalThis.addEventListener === 'function') {
+    globalThis.addEventListener('scroll', function() {
+        var scrollTop = document.documentElement.scrollTop || document.body.scrollTop;
+        var element:any = document.getElementById("scroll-up")
+        var stickyHeader:any = 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")
+        }
+    });
+}
+
 </script>
 <template>
         <header class="header-absolute sticky-header">
@@ -58,7 +76,7 @@ function dialogPersona(){
                         <div class="apply-expre" v-if="store.state.menuList.length>0" @click="dialogPersona()">申请体验</div>
                     </div>
                 </div>
-                <!-- <div class="mobile-menu mean-container mobileIcon">
+                <div class="mobile-menu mean-container mobileIcon">
                     <div class="mean-bar">
                         <a href="#nav"  @click="mobileIconClick" class="meanmenu-reveal"
                             style="right: 0px; left: auto; text-align: center; text-indent: 0px; font-size: 18px;">
@@ -100,7 +118,7 @@ function dialogPersona(){
                             </template>
                         </el-menu>
                     </el-col>
-                </el-row> -->
+                </el-row>
             </div>
         </header>
 </template>

+ 18 - 0
src/entry-client.ts

@@ -43,5 +43,23 @@ router.isReady().then(() => {
             })
         }
     }))
+    //客户端获取meta数据
+    // const { title,keywords, description } = router.currentRoute.value.meta
+    // console.log(router.currentRoute.value)
+    // const routerV = router.currentRoute.value
+    // const menuList = store.state.menuList
+    // for(let i=0;i<menuList.length;i++){
+    //     if(menuList[i].path == routerV.path && routerV.fullPath.indexOf("dup")<0){
+    //         const title = menuList[i].categoryName
+    //         const keywords = menuList[i].keywords
+    //         const description = menuList[i].description
+    //         document.title = `${title}`
+    //         const keywordsMeta = document.querySelector('meta[name="keywords"]')
+    //         keywordsMeta?.setAttribute("content",`${keywords}`)
+    //         const descriptionMeta = document.querySelector('meta[name="description"]')
+    //         descriptionMeta?.setAttribute("content",`${description}`)
+    //     }
+    // }
+    
     app.mount('#app')
 })

+ 0 - 1
src/router/index.ts

@@ -8,7 +8,6 @@ const news = () => import('@/views/news/index.vue')
 const news_Read = () => import('@/views/news/read.vue')
 const about = () => import('@/views/about/index.vue')
 import { createRouter, createMemoryHistory, createWebHistory } from 'vue-router'
-
 const routes = [
     {
         path: "/index",

+ 59 - 1
src/store/index.ts

@@ -21,6 +21,9 @@ export const store = createStore({
             size:10,
             count:1
         },
+        meta:{
+            title:undefined,keywords:undefined,description:undefined
+        },
         dialogPersonalStatus:false//弹框状态
     },
     mutations:{
@@ -66,31 +69,86 @@ export const store = createStore({
             state.route = data
             return state.route
         },
+        //设置meta
+        setMeta(state:any,data:string){
+            state.meta = data
+            return state.meta
+        },
         
     },
     actions:{
-        getMenuList({ commit } :any){
+        getMenuList({ commit } :any,params:any){
             return new Promise(resolve=>{
                 getMenu().then((res:any)=>{
                     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)
                 })

+ 1 - 37
src/utils/request.ts

@@ -1,45 +1,9 @@
-
-// import axios, { AxiosRequestConfig, AxiosResponse, InternalAxiosRequestConfig } from 'axios'
-// const defaultConfig = {
-//     timeout: 3000,
-//     baseUrl: ''
-// }
-// class Http {
-//     constructor() {
-//         this.httpInterceptorsRequest()
-//         this.httpInterceptorsResponse()
-//     }
-//     private static axiosInstance = axios.create(defaultConfig)
-//     //请求拦截
-//     private httpInterceptorsRequest() {
-//         Http.axiosInstance.interceptors.request.use((config: InternalAxiosRequestConfig) => {
-//             return config
-//         }, err => {
-//             return Promise.reject(err)
-//         })
-//     }
-//     //响应拦截
-//     private httpInterceptorsResponse() {
-//         Http.axiosInstance.interceptors.response.use((response: AxiosResponse) => {
-//             return response
-//         }, err => {
-//             return Promise.reject(err)
-//         })
-//     }
-//     public httpRequestGet(url: string, params: AxiosRequestConfig): Promise<any> {
-//         return Http.axiosInstance.get(url, params).then(res => res.data).catch()
-//     }
-//     public httpRequestPost(url: string, params: AxiosRequestConfig): Promise<any> {
-//         return Http.axiosInstance.post(url, params).then(res => res.data).catch()
-//     }
-// }
-// export const http = new Http()
 import axios, { InternalAxiosRequestConfig, AxiosResponse } from 'axios'
 import { tansParams } from './common.ts'
 // 创建axios实例
 const service: any = axios.create({
     // axios中请求配置有baseURL选项,表示请求URL公共部分
-    baseURL: '',
+    baseURL: import.meta.env.PROD ? 'http://gateWay.usky.cn/' : "http://localhost:5173",
     // 超时
     timeout: 300000
 })

+ 1 - 1
src/views/about/index.vue

@@ -37,7 +37,7 @@ export default defineComponent({
     asyncData({ store, route } :any){
         let params = reactive(route.value) //路由参数
         //获取菜单列表
-        return store.dispatch('getMenuList').then(()=>{
+        return store.dispatch('getMenuList',params).then(()=>{
             const data = store.state.menuList
             let paramsData:any = reactive({})//页面主题内容请求参数
             for(let i=0;i<data.length;i++){

+ 13 - 15
src/views/cases/index.vue

@@ -42,7 +42,7 @@ export default defineComponent({
             }
             store.commit("setRoute",params)
             router.push(params)
-            // globalThis.scrollTo(0, 0)
+            globalThis.scrollTo(0, 0)
         }
         return { store,  facilityClick, details }
     },
@@ -52,7 +52,7 @@ export default defineComponent({
     asyncData({ store, route } :any){
         let params = reactive(route.value) //路由参数
         //获取菜单列表
-        return store.dispatch('getMenuList').then(()=>{
+        return store.dispatch('getMenuList',params).then(()=>{
             //主页数据初始化
             const data = reactive(store.state.menuList)
             let paramsData:any = reactive({
@@ -122,22 +122,20 @@ export default defineComponent({
             <div v-for="(item, index) in store.state.pageContent" :key="item.id"
                 :style="{ background: (index % 2 == 1 ? '#F4F8FD' : '#fff') }" style="padding:40px 0">
                 <div class="container">
-                    <!-- <a :href="`cases_Read?categoryid=${item.categoryid}&id=${item.id}&=isUrlId=1`" style="color:#000"> -->
-                        <div class="solutionItem" @click="details(item)">
-                            <div class="solutionTitle text-left">
-                                {{ item.title }}
+                    <div class="solutionItem" @click="details(item)">
+                        <div class="solutionTitle text-left">
+                            {{ item.title }}
+                        </div>
+                        <div class="row solutionInner">
+                            <div class="col-md-7">
+                                <p v-html="item.lmtitle" class="text-left"></p>
+                                <div class="pt-40 mb-20 text-left">{{ item.zhaiyao }}</div>
                             </div>
-                            <div class="row solutionInner">
-                                <div class="col-md-7">
-                                    <p v-html="item.lmtitle" class="text-left"></p>
-                                    <div class="pt-40 mb-20 text-left">{{ item.zhaiyao }}</div>
-                                </div>
-                                <div class="col-md-5 text-center">
-                                    <img v-lazy="item.image" alt="" :data-src="item.image">
-                                </div>
+                            <div class="col-md-5 text-center">
+                                <img v-lazy="item.image" alt="" :data-src="item.image">
                             </div>
                         </div>
-                    <!-- </a> -->
+                    </div>
                 </div>
             </div>
         </section>

+ 1 - 1
src/views/cases/read.vue

@@ -33,7 +33,7 @@
             }else{
                 params = store.state.route
             }
-            return store.dispatch('getMenuList').then(()=>{
+            return store.dispatch('getMenuList',params).then(()=>{
                 const data = reactive(store.state.menuList)
                 let str = ref("")
                 let sub = ref()

+ 4 - 4
src/views/index/index.vue

@@ -21,7 +21,7 @@ export default defineComponent({
     asyncData({ store, route } :any){
         let params = reactive(route.value) //路由参数
         //获取菜单列表
-        return store.dispatch('getMenuList').then(()=>{
+        return store.dispatch('getMenuList',params).then(()=>{
             const data = reactive(store.state.menuList)
             let paramsData:any = reactive({
                 params:{
@@ -30,12 +30,12 @@ export default defineComponent({
                     pageSize:100,
                     order:"sortindex",
                 },
-                index:"",
+                index:"/index",
                 sub:0
             })//页面主题内容请求参数
             for(let i=0;i<data.length;i++){
                 //主页内容
-                if(!data[i].sname && route.value.path == data[i].path || !data[i].sname && data[i].path =="/index"){
+                if(!data[i].sname && params == data[i].path || !data[i].sname &&  data[i].path =="/index"){
                     paramsData = {
                         params:{
                             categoryid: data[i].id,
@@ -46,7 +46,7 @@ export default defineComponent({
                         index:params.path,
                         sub:i
                     }
-                    if(params.path == "/index" || params.path == "/"){
+                    if(params.path == "/index"){
                         paramsData.params.categoryid = data[i].id
                     }
                     return store.dispatch('getPageData',paramsData)

+ 2 - 2
src/views/news/index.vue

@@ -69,7 +69,7 @@ export default defineComponent({
     asyncData({ store,route } :any){
         let params = reactive(route.value) //路由参数
         //获取菜单列表
-        return store.dispatch('getMenuList').then(()=>{
+        return store.dispatch('getMenuList',params).then(()=>{
             const data = reactive(store.state.menuList)
             let paramsData:any = reactive({})//页面主题内容请求参数
             let str = ref("")
@@ -126,7 +126,7 @@ export default defineComponent({
                                     <div class="col-md-4 newItemOne lazyContainer" v-for="(item,index) in store.state.pageContent" :key="index" >
                                         <div class="oneInnerBox" @click="details(item)">
                                             <div class="img" style="overflow:hidden">
-                                                    <el-image  :src="item.image" alt="" :data-src="item.image" fit="contain"  style="display:block"  />   
+                                                <el-image  :src="item.image" alt="" :data-src="item.image" fit="contain"  style="display:block"  />   
                                             </div>
                                             <a class="line-two">{{item.title}}</a>
                                             <span>{{ item.createdate }}</span>

+ 1 - 1
src/views/news/read.vue

@@ -34,7 +34,7 @@
             params = store.state.route
         }
         //获取菜单列表
-        return store.dispatch('getMenuList').then(()=>{
+        return store.dispatch('getMenuList',params).then(()=>{
             const data = reactive(store.state.menuList)
             let str = ref("")
             let sub = ref()

+ 2 - 1
src/views/services/index.vue

@@ -54,6 +54,7 @@ export default defineComponent({
             }
             store.commit("setRoute",params)
             router.push(params)
+            globalThis.scrollTo(0, 0)
         }
         //分页
         function handleCurrentChange(val:number){
@@ -74,7 +75,7 @@ export default defineComponent({
     asyncData({ store,route } :any){
         let params = reactive(route.value) //路由参数
         //获取菜单列表
-        return store.dispatch('getMenuList').then(()=>{
+        return store.dispatch('getMenuList',params).then(()=>{
             const data = store.state.menuList
             let paramsData = reactive({
                 params:{

+ 1 - 1
src/views/services/read.vue

@@ -33,7 +33,7 @@ export default defineComponent({
             params = store.state.route
         }
         //获取菜单列表
-        return store.dispatch('getMenuList').then(()=>{
+        return store.dispatch('getMenuList',params).then(()=>{
             const data = reactive(store.state.menuList)
             let str =ref("")
             let sub = ref()

+ 10 - 0
vite.config.ts

@@ -26,5 +26,15 @@ export default defineConfig({
         // additionalData: '@import "@/assets/styles/variable.scss";'
       }
     }
+  },
+  server:{
+    host:"localhost",
+    port:3000,
+    proxy:{
+      "/prod-api":{
+        target:"http://172.16.120.165:13200/prod-api/",
+        rewrite:path=>path.replace(/^\/prod-api/,"")
+      }
+    }
   }
 })

Some files were not shown because too many files changed in this diff