newsDetail-DYi5nBHy.mjs 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. import { _ as __nuxt_component_0, a as __nuxt_component_6 } from './foot-BVXochPH.mjs';
  2. import { _ as __nuxt_component_1, a as __nuxt_component_4 } from './HotNews-_5zpQogs.mjs';
  3. import { ssrRenderComponent, ssrInterpolate, ssrRenderAttr, ssrRenderList } from 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/vue/server-renderer/index.mjs';
  4. import { _ as _imports_1 } from './sgbhsihfgisdfaasda45632113_A_group_of_Chinese_farmers_are_trans_0e341355-f4d5-4796-b6cd-bdc87996f81b(1)-u7jcE40V.mjs';
  5. import { useSSRContext, unref, withCtx, createTextVNode, createVNode } from 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/vue/index.mjs';
  6. import { _ as _export_sfc, b as useNuxtApp } from './server.mjs';
  7. import { ElBreadcrumb, ElBreadcrumbItem } from 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/element-plus/es/index.mjs';
  8. import { ArrowRight } from 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/@element-plus/icons-vue/dist/index.js';
  9. import { u as useState } from './state-_I5XcLqc.mjs';
  10. import '../_/renderer.mjs';
  11. import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/vue-bundle-renderer/dist/runtime.mjs';
  12. import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/h3/dist/index.mjs';
  13. import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/devalue/index.js';
  14. import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/ufo/dist/index.mjs';
  15. import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/@unhead/ssr/dist/index.mjs';
  16. import '../routes/index.mjs';
  17. import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/ofetch/dist/node.mjs';
  18. import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/destr/dist/index.mjs';
  19. import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/unenv/runtime/fetch/index.mjs';
  20. import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/hookable/dist/index.mjs';
  21. import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/klona/dist/index.mjs';
  22. import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/scule/dist/index.mjs';
  23. import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/defu/dist/defu.mjs';
  24. import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/ohash/dist/index.mjs';
  25. import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/unstorage/dist/index.mjs';
  26. import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/unstorage/drivers/fs.mjs';
  27. import 'file:///D:/zwj/nuxt/sannongzixunwang_web/node_modules/nuxt/dist/core/runtime/nitro/cache-driver.js';
  28. import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/unstorage/drivers/fs-lite.mjs';
  29. import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/radix3/dist/index.mjs';
  30. import 'node:fs';
  31. import 'node:url';
  32. import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/pathe/dist/index.mjs';
  33. import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/unhead/dist/index.mjs';
  34. import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/@unhead/shared/dist/index.mjs';
  35. import './nuxt-link-DRGY1ko4.mjs';
  36. import './useCookieStore-CVsVVyyy.mjs';
  37. import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/js-cookie/dist/js.cookie.mjs';
  38. import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/unctx/dist/index.mjs';
  39. import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/vue-router/dist/vue-router.node.mjs';
  40. import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/pinia/dist/pinia.prod.cjs';
  41. const _sfc_main$1 = {};
  42. function _sfc_ssrRender(_ctx, _push, _parent, _attrs) {
  43. _push(`<!--[--><div class="title" data-v-f5eca23e><h4 data-v-f5eca23e> \u70ED\u70B9\u8D44\u8BAF <span data-v-f5eca23e>\u67E5\u770B\u66F4\u591A</span></h4></div><ul class="rightList" data-v-f5eca23e><!--[-->`);
  44. ssrRenderList(5, (item) => {
  45. _push(`<li data-v-f5eca23e><img class="left"${ssrRenderAttr("src", _imports_1)} alt="" data-v-f5eca23e><p class="left" data-v-f5eca23e>\u9AD8\u90AE\u5E02\u5468\u5C71\u9547\u5F00\u5C55\u6E14\u4E1A\u5B89\u5168\u751F\u4EA7\u5E94\u6025\u6F14\u7EC3</p></li>`);
  46. });
  47. _push(`<!--]--></ul><!--]-->`);
  48. }
  49. const _sfc_setup$1 = _sfc_main$1.setup;
  50. _sfc_main$1.setup = (props, ctx) => {
  51. const ssrContext = useSSRContext();
  52. (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("components/detail/HotNews2.vue");
  53. return _sfc_setup$1 ? _sfc_setup$1(props, ctx) : void 0;
  54. };
  55. const __nuxt_component_3 = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["ssrRender", _sfc_ssrRender], ["__scopeId", "data-v-f5eca23e"]]);
  56. const _sfc_main = {
  57. __name: "newsDetail",
  58. __ssrInlineRender: true,
  59. setup(__props) {
  60. const nuxtApp = useNuxtApp();
  61. nuxtApp.$axios;
  62. const newsDetail2 = useState("newsDetail", () => "");
  63. return (_ctx, _push, _parent, _attrs) => {
  64. const _component_HomePageHead = __nuxt_component_0;
  65. const _component_HomeBanner1 = __nuxt_component_1;
  66. const _component_DetailHotNews = __nuxt_component_4;
  67. const _component_DetailHotNews2 = __nuxt_component_3;
  68. const _component_HomeFoot = __nuxt_component_6;
  69. _push(`<!--[-->`);
  70. _push(ssrRenderComponent(_component_HomePageHead, null, null, _parent));
  71. _push(ssrRenderComponent(_component_HomeBanner1, null, null, _parent));
  72. _push(`<div class="breadcrumb" data-v-c2f5534d><div class="inner" data-v-c2f5534d><span class="location" data-v-c2f5534d>\u5F53\u524D\u4F4D\u7F6E:</span>`);
  73. _push(ssrRenderComponent(unref(ElBreadcrumb), { "separator-icon": unref(ArrowRight) }, {
  74. default: withCtx((_, _push2, _parent2, _scopeId) => {
  75. if (_push2) {
  76. _push2(ssrRenderComponent(unref(ElBreadcrumbItem), { to: { path: "/" } }, {
  77. default: withCtx((_2, _push3, _parent3, _scopeId2) => {
  78. if (_push3) {
  79. _push3(`\u9996\u9875`);
  80. } else {
  81. return [
  82. createTextVNode("\u9996\u9875")
  83. ];
  84. }
  85. }),
  86. _: 1
  87. }, _parent2, _scopeId));
  88. _push2(ssrRenderComponent(unref(ElBreadcrumbItem), { to: { path: "/primaryNavigation/newsList" } }, {
  89. default: withCtx((_2, _push3, _parent3, _scopeId2) => {
  90. if (_push3) {
  91. _push3(`\u4E09\u519C\u4E4B\u7A97`);
  92. } else {
  93. return [
  94. createTextVNode("\u4E09\u519C\u4E4B\u7A97")
  95. ];
  96. }
  97. }),
  98. _: 1
  99. }, _parent2, _scopeId));
  100. _push2(ssrRenderComponent(unref(ElBreadcrumbItem), { to: { path: "/primaryNavigation/newsDetail/newsDetail" } }, {
  101. default: withCtx((_2, _push3, _parent3, _scopeId2) => {
  102. if (_push3) {
  103. _push3(`\u6587\u7AE0\u8BE6\u60C5`);
  104. } else {
  105. return [
  106. createTextVNode("\u6587\u7AE0\u8BE6\u60C5")
  107. ];
  108. }
  109. }),
  110. _: 1
  111. }, _parent2, _scopeId));
  112. } else {
  113. return [
  114. createVNode(unref(ElBreadcrumbItem), { to: { path: "/" } }, {
  115. default: withCtx(() => [
  116. createTextVNode("\u9996\u9875")
  117. ]),
  118. _: 1
  119. }),
  120. createVNode(unref(ElBreadcrumbItem), { to: { path: "/primaryNavigation/newsList" } }, {
  121. default: withCtx(() => [
  122. createTextVNode("\u4E09\u519C\u4E4B\u7A97")
  123. ]),
  124. _: 1
  125. }),
  126. createVNode(unref(ElBreadcrumbItem), { to: { path: "/primaryNavigation/newsDetail/newsDetail" } }, {
  127. default: withCtx(() => [
  128. createTextVNode("\u6587\u7AE0\u8BE6\u60C5")
  129. ]),
  130. _: 1
  131. })
  132. ];
  133. }
  134. }),
  135. _: 1
  136. }, _parent));
  137. _push(`</div></div><div class="newsDetail" data-v-c2f5534d><div class="inner" data-v-c2f5534d><div class="innerLeft" data-v-c2f5534d><div class="LeftTop" data-v-c2f5534d><h1 data-v-c2f5534d>${ssrInterpolate(unref(newsDetail2).title)}</h1><p data-v-c2f5534d> \u6765\u6E90: <span data-v-c2f5534d>${ssrInterpolate(unref(newsDetail2).author)}</span><span data-v-c2f5534d>${ssrInterpolate(unref(newsDetail2).updated_at)}</span> \u6D4F\u89C8\u91CF: <span data-v-c2f5534d>${ssrInterpolate(unref(newsDetail2).hits)}</span></p><img${ssrRenderAttr("src", unref(newsDetail2).imgurl)} alt="" data-v-c2f5534d></div><div class="leftBottom" data-v-c2f5534d>${ssrInterpolate(unref(newsDetail2).content)}</div></div><div class="innerRight" data-v-c2f5534d>`);
  138. _push(ssrRenderComponent(_component_DetailHotNews, null, null, _parent));
  139. _push(ssrRenderComponent(_component_DetailHotNews2, null, null, _parent));
  140. _push(`</div></div></div>`);
  141. _push(ssrRenderComponent(_component_HomeFoot, null, null, _parent));
  142. _push(`<!--]-->`);
  143. };
  144. }
  145. };
  146. const _sfc_setup = _sfc_main.setup;
  147. _sfc_main.setup = (props, ctx) => {
  148. const ssrContext = useSSRContext();
  149. (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("pages/primaryNavigation/newsDetail/newsDetail.vue");
  150. return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
  151. };
  152. const newsDetail = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-c2f5534d"]]);
  153. export { newsDetail as default };
  154. //# sourceMappingURL=newsDetail-DYi5nBHy.mjs.map