index-26zL30GA.js 4.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. import { defineComponent, reactive, resolveComponent, resolveDirective, mergeProps, useSSRContext } from "vue";
  2. import { useStore } from "vuex";
  3. import { _ as _sfc_main$1 } from "./banner-Bjm1R_JU.js";
  4. import { ssrRenderAttrs, ssrRenderComponent, ssrRenderStyle, ssrRenderList, ssrInterpolate, ssrGetDirectiveProps } from "vue/server-renderer";
  5. import { _ as _export_sfc } from "../entry-server.js";
  6. import "vue-router";
  7. import "element-plus";
  8. import "axios";
  9. import "vue3-lazy";
  10. const _sfc_main = defineComponent({
  11. setup() {
  12. const store = useStore();
  13. function go_down() {
  14. globalThis.scrollTo({
  15. top: globalThis.innerHeight,
  16. behavior: "smooth"
  17. });
  18. }
  19. return { store, go_down };
  20. },
  21. components: {
  22. banner: _sfc_main$1
  23. },
  24. asyncData({ store, route }) {
  25. let params = reactive(route.value);
  26. return store.dispatch("getMenuList").then(() => {
  27. const data = reactive(store.state.menuList);
  28. let paramsData = reactive({
  29. params: {
  30. categoryid: 0,
  31. pageNum: 1,
  32. pageSize: 100,
  33. order: "sortindex"
  34. },
  35. index: "",
  36. sub: 0
  37. });
  38. for (let i = 0; i < data.length; i++) {
  39. if (!data[i].sname && route.value.path == data[i].path || !data[i].sname && data[i].path == "/index") {
  40. paramsData = {
  41. params: {
  42. categoryid: data[i].id,
  43. pageNum: 1,
  44. pageSize: 100,
  45. order: "sortindex"
  46. },
  47. index: params.path,
  48. sub: i
  49. };
  50. if (params.path == "/index" || params.path == "/") {
  51. paramsData.params.categoryid = data[i].id;
  52. }
  53. return store.dispatch("getPageData", paramsData);
  54. }
  55. }
  56. });
  57. }
  58. });
  59. function _sfc_ssrRender(_ctx, _push, _parent, _attrs, $props, $setup, $data, $options) {
  60. const _component_banner = resolveComponent("banner");
  61. const _directive_lazy = resolveDirective("lazy");
  62. _push(`<div${ssrRenderAttrs(mergeProps({ class: "pageContain" }, _attrs))}><div class="video-section">`);
  63. _push(ssrRenderComponent(_component_banner, null, null, _parent));
  64. _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>`);
  65. if (_ctx.store.state.pageContent.length > 0) {
  66. _push(`<section style="${ssrRenderStyle({ "width": "100vw" })}"><!--[-->`);
  67. ssrRenderList(_ctx.store.state.pageContent, (arr, index2) => {
  68. _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>`);
  69. if (arr.image) {
  70. _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>`);
  71. } else {
  72. _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>`);
  73. }
  74. _push(`</div></div>`);
  75. });
  76. _push(`<!--]--></section>`);
  77. } else {
  78. _push(`<!---->`);
  79. }
  80. _push(`</div>`);
  81. }
  82. const _sfc_setup = _sfc_main.setup;
  83. _sfc_main.setup = (props, ctx) => {
  84. const ssrContext = useSSRContext();
  85. (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("src/views/index/index.vue");
  86. return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
  87. };
  88. const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["ssrRender", _sfc_ssrRender]]);
  89. export {
  90. index as default
  91. };