newsList-B-HlaJZE.mjs 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  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 { _ as __nuxt_component_0$1 } from './nuxt-link-DRGY1ko4.mjs';
  4. import { _ as __nuxt_component_3 } from './Pagination-BIcfmSVd.mjs';
  5. import { _ as _imports_0, a as _sfc_main$1 } from './tonny00255_On(1)-tnQohZIY.mjs';
  6. import { mergeProps, unref, withCtx, createTextVNode, createVNode, toDisplayString, useSSRContext } from 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/vue/index.mjs';
  7. import { ssrRenderAttrs, ssrRenderComponent, ssrRenderList, ssrInterpolate, ssrRenderAttr } from 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/vue/server-renderer/index.mjs';
  8. import { _ as _imports_1 } from './sgbhsihfgisdfaasda45632113_A_group_of_Chinese_farmers_are_trans_0e341355-f4d5-4796-b6cd-bdc87996f81b(1)-u7jcE40V.mjs';
  9. import { ElBreadcrumb, ElBreadcrumbItem } from 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/element-plus/es/index.mjs';
  10. import { ArrowRight } from 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/@element-plus/icons-vue/dist/index.js';
  11. import { _ as _export_sfc, b as useNuxtApp, e as useRoute } from './server.mjs';
  12. import { u as useState } from './state-_I5XcLqc.mjs';
  13. import '../_/renderer.mjs';
  14. import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/vue-bundle-renderer/dist/runtime.mjs';
  15. import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/h3/dist/index.mjs';
  16. import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/devalue/index.js';
  17. import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/ufo/dist/index.mjs';
  18. import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/@unhead/ssr/dist/index.mjs';
  19. import '../routes/index.mjs';
  20. import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/ofetch/dist/node.mjs';
  21. import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/destr/dist/index.mjs';
  22. import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/unenv/runtime/fetch/index.mjs';
  23. import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/hookable/dist/index.mjs';
  24. import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/klona/dist/index.mjs';
  25. import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/scule/dist/index.mjs';
  26. import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/defu/dist/defu.mjs';
  27. import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/ohash/dist/index.mjs';
  28. import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/unstorage/dist/index.mjs';
  29. import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/unstorage/drivers/fs.mjs';
  30. import 'file:///D:/zwj/nuxt/sannongzixunwang_web/node_modules/nuxt/dist/core/runtime/nitro/cache-driver.js';
  31. import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/unstorage/drivers/fs-lite.mjs';
  32. import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/radix3/dist/index.mjs';
  33. import 'node:fs';
  34. import 'node:url';
  35. import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/pathe/dist/index.mjs';
  36. import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/unhead/dist/index.mjs';
  37. import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/@unhead/shared/dist/index.mjs';
  38. import './useCookieStore-CVsVVyyy.mjs';
  39. import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/js-cookie/dist/js.cookie.mjs';
  40. import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/unctx/dist/index.mjs';
  41. import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/vue-router/dist/vue-router.node.mjs';
  42. import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/pinia/dist/pinia.prod.cjs';
  43. const _sfc_main = {
  44. __name: "newsList",
  45. __ssrInlineRender: true,
  46. setup(__props) {
  47. const nuxtApp = useNuxtApp();
  48. const axios = nuxtApp.$axios;
  49. let keyWord = useState("keyWord", () => "");
  50. const route = useRoute();
  51. keyWord.value = route.query.keyword;
  52. let page = useState("page", () => 1);
  53. const handleData = (data) => {
  54. console.log(data.value);
  55. page.value = data.value;
  56. axios.get(`/web/getWebsiteArticlesList?page=${page.value}&pageSize=${10}&catid=${14}&keyword=${keyWord.value}`).then((response) => {
  57. newsList2.value = response.data.rows;
  58. }).catch((error) => {
  59. console.error(error);
  60. });
  61. };
  62. const newsList2 = useState("newsList", () => "");
  63. return (_ctx, _push, _parent, _attrs) => {
  64. const _component_HomePageHead = __nuxt_component_0;
  65. const _component_HomeBanner1 = __nuxt_component_1;
  66. const _component_NuxtLink = __nuxt_component_0$1;
  67. const _component_HomePagination = __nuxt_component_3;
  68. const _component_DetailHotNews = __nuxt_component_4;
  69. const _component_HomeSannongzixun = _sfc_main$1;
  70. const _component_HomeFoot = __nuxt_component_6;
  71. _push(`<div${ssrRenderAttrs(mergeProps({ id: "newsList" }, _attrs))} data-v-bed5b6c5>`);
  72. _push(ssrRenderComponent(_component_HomePageHead, null, null, _parent));
  73. _push(ssrRenderComponent(_component_HomeBanner1, null, null, _parent));
  74. _push(`<div class="breadcrumb" data-v-bed5b6c5><div class="inner" data-v-bed5b6c5><span class="location" data-v-bed5b6c5>\u5F53\u524D\u4F4D\u7F6E:</span>`);
  75. _push(ssrRenderComponent(unref(ElBreadcrumb), { "separator-icon": unref(ArrowRight) }, {
  76. default: withCtx((_, _push2, _parent2, _scopeId) => {
  77. if (_push2) {
  78. _push2(ssrRenderComponent(unref(ElBreadcrumbItem), { to: { path: "/" } }, {
  79. default: withCtx((_2, _push3, _parent3, _scopeId2) => {
  80. if (_push3) {
  81. _push3(`\u9996\u9875`);
  82. } else {
  83. return [
  84. createTextVNode("\u9996\u9875")
  85. ];
  86. }
  87. }),
  88. _: 1
  89. }, _parent2, _scopeId));
  90. _push2(ssrRenderComponent(unref(ElBreadcrumbItem), { to: { path: "/primaryNavigation/newsList" } }, {
  91. default: withCtx((_2, _push3, _parent3, _scopeId2) => {
  92. if (_push3) {
  93. _push3(`\u4E09\u519C\u4E4B\u7A97`);
  94. } else {
  95. return [
  96. createTextVNode("\u4E09\u519C\u4E4B\u7A97")
  97. ];
  98. }
  99. }),
  100. _: 1
  101. }, _parent2, _scopeId));
  102. } else {
  103. return [
  104. createVNode(unref(ElBreadcrumbItem), { to: { path: "/" } }, {
  105. default: withCtx(() => [
  106. createTextVNode("\u9996\u9875")
  107. ]),
  108. _: 1
  109. }),
  110. createVNode(unref(ElBreadcrumbItem), { to: { path: "/primaryNavigation/newsList" } }, {
  111. default: withCtx(() => [
  112. createTextVNode("\u4E09\u519C\u4E4B\u7A97")
  113. ]),
  114. _: 1
  115. })
  116. ];
  117. }
  118. }),
  119. _: 1
  120. }, _parent));
  121. _push(`</div></div><div class="newsList" data-v-bed5b6c5><div class="inner" data-v-bed5b6c5><div class="innerLeft" data-v-bed5b6c5><ul class="list" data-v-bed5b6c5><!--[-->`);
  122. ssrRenderList(unref(newsList2), (item, index) => {
  123. _push(`<li data-v-bed5b6c5>`);
  124. _push(ssrRenderComponent(_component_NuxtLink, { to: "/primaryNavigation/newsDetail/newsDetail" }, {
  125. default: withCtx((_, _push2, _parent2, _scopeId) => {
  126. if (_push2) {
  127. _push2(`${ssrInterpolate(item.title)}`);
  128. } else {
  129. return [
  130. createTextVNode(toDisplayString(item.title), 1)
  131. ];
  132. }
  133. }),
  134. _: 2
  135. }, _parent));
  136. _push(`</li>`);
  137. });
  138. _push(`<!--]--></ul><div class="pagination" data-v-bed5b6c5>`);
  139. _push(ssrRenderComponent(_component_HomePagination, { onSendData: handleData }, null, _parent));
  140. _push(`</div></div><div class="innerRight" data-v-bed5b6c5>`);
  141. _push(ssrRenderComponent(_component_DetailHotNews, null, null, _parent));
  142. _push(`</div></div></div>`);
  143. _push(ssrRenderComponent(_component_HomeSannongzixun, null, null, _parent));
  144. _push(`<div class="zixuntuijian" data-v-bed5b6c5><div class="inner" data-v-bed5b6c5><div class="innerLeft" data-v-bed5b6c5><div class="zixunLeft" data-v-bed5b6c5><div class="title" data-v-bed5b6c5><h3 data-v-bed5b6c5> \u8D44\u8BAF\u63A8\u8350 <span data-v-bed5b6c5>\u67E5\u770B\u66F4\u591A</span></h3></div><ul class="photo_text" data-v-bed5b6c5><li data-v-bed5b6c5><img${ssrRenderAttr("src", _imports_0)} alt="" data-v-bed5b6c5><div data-v-bed5b6c5><h5 data-v-bed5b6c5>\u9AD8\u90AE\u5E02\u5468\u5C71\u9547\u5F00\u5C55\u6E14\u4E1A\u5B89\u5168\u751F\u4EA7\u5E94\u6025</h5><p data-v-bed5b6c5><span data-v-bed5b6c5>\u738B\u67D0\u67D0</span><span data-v-bed5b6c5>2024-8-6</span></p></div></li><!--[-->`);
  145. ssrRenderList(3, (item) => {
  146. _push(`<li data-v-bed5b6c5><em data-v-bed5b6c5></em> \u9AD8\u90AE\u5E02\u5468\u5C71\u9547\u5F00\u5C55\u6E14\u4E1A\u5B89\u5168\u751F\u4EA7\u5E94\u6025 </li>`);
  147. });
  148. _push(`<!--]--></ul></div><div class="zixunRight" data-v-bed5b6c5><div class="title" data-v-bed5b6c5><h3 data-v-bed5b6c5> \u8D44\u8BAF\u63A8\u8350 <span data-v-bed5b6c5>\u67E5\u770B\u66F4\u591A</span></h3></div><ul class="photo_text" data-v-bed5b6c5><li data-v-bed5b6c5><img${ssrRenderAttr("src", _imports_0)} alt="" data-v-bed5b6c5><div data-v-bed5b6c5><h5 data-v-bed5b6c5>\u9AD8\u90AE\u5E02\u5468\u5C71\u9547\u5F00\u5C55\u6E14\u4E1A\u5B89\u5168\u751F\u4EA7\u5E94\u6025</h5><p data-v-bed5b6c5><span data-v-bed5b6c5>\u738B\u67D0\u67D0</span><span data-v-bed5b6c5>2024-8-6</span></p></div></li><!--[-->`);
  149. ssrRenderList(3, (item) => {
  150. _push(`<li data-v-bed5b6c5><em data-v-bed5b6c5></em> \u9AD8\u90AE\u5E02\u5468\u5C71\u9547\u5F00\u5C55\u6E14\u4E1A\u5B89\u5168\u751F\u4EA7\u5E94\u6025 </li>`);
  151. });
  152. _push(`<!--]--></ul></div></div><div class="innerRight" data-v-bed5b6c5><div class="title" data-v-bed5b6c5><h4 data-v-bed5b6c5> \u70ED\u70B9\u8D44\u8BAF <span data-v-bed5b6c5>\u67E5\u770B\u66F4\u591A</span></h4></div><ul class="rightList" data-v-bed5b6c5><!--[-->`);
  153. ssrRenderList(2, (item) => {
  154. _push(`<li data-v-bed5b6c5><img class="left"${ssrRenderAttr("src", _imports_1)} alt="" data-v-bed5b6c5><p class="left" data-v-bed5b6c5>\u9AD8\u90AE\u5E02\u5468\u5C71\u9547\u5F00\u5C55\u6E14\u4E1A\u5B89\u5168\u751F\u4EA7\u5E94\u6025\u6F14\u7EC3</p></li>`);
  155. });
  156. _push(`<!--]--></ul></div></div></div>`);
  157. _push(ssrRenderComponent(_component_HomeFoot, null, null, _parent));
  158. _push(`</div>`);
  159. };
  160. }
  161. };
  162. const _sfc_setup = _sfc_main.setup;
  163. _sfc_main.setup = (props, ctx) => {
  164. const ssrContext = useSSRContext();
  165. (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("pages/primaryNavigation/newsList.vue");
  166. return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
  167. };
  168. const newsList = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-bed5b6c5"]]);
  169. export { newsList as default };
  170. //# sourceMappingURL=newsList-B-HlaJZE.mjs.map