123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172 |
- import { _ as __nuxt_component_0, a as __nuxt_component_6 } from './foot-BVXochPH.mjs';
- import { _ as __nuxt_component_1, a as __nuxt_component_4 } from './HotNews-_5zpQogs.mjs';
- import { _ as __nuxt_component_0$1 } from './nuxt-link-DRGY1ko4.mjs';
- import { _ as __nuxt_component_3 } from './Pagination-BIcfmSVd.mjs';
- import { _ as _imports_0, a as _sfc_main$1 } from './tonny00255_On(1)-tnQohZIY.mjs';
- import { mergeProps, unref, withCtx, createTextVNode, createVNode, toDisplayString, useSSRContext } from 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/vue/index.mjs';
- import { ssrRenderAttrs, ssrRenderComponent, ssrRenderList, ssrInterpolate, ssrRenderAttr } from 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/vue/server-renderer/index.mjs';
- import { _ as _imports_1 } from './sgbhsihfgisdfaasda45632113_A_group_of_Chinese_farmers_are_trans_0e341355-f4d5-4796-b6cd-bdc87996f81b(1)-u7jcE40V.mjs';
- import { ElBreadcrumb, ElBreadcrumbItem } from 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/element-plus/es/index.mjs';
- import { ArrowRight } from 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/@element-plus/icons-vue/dist/index.js';
- import { _ as _export_sfc, b as useNuxtApp, e as useRoute } from './server.mjs';
- import { u as useState } from './state-_I5XcLqc.mjs';
- import '../_/renderer.mjs';
- import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/vue-bundle-renderer/dist/runtime.mjs';
- import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/h3/dist/index.mjs';
- import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/devalue/index.js';
- import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/ufo/dist/index.mjs';
- import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/@unhead/ssr/dist/index.mjs';
- import '../routes/index.mjs';
- import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/ofetch/dist/node.mjs';
- import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/destr/dist/index.mjs';
- import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/unenv/runtime/fetch/index.mjs';
- import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/hookable/dist/index.mjs';
- import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/klona/dist/index.mjs';
- import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/scule/dist/index.mjs';
- import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/defu/dist/defu.mjs';
- import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/ohash/dist/index.mjs';
- import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/unstorage/dist/index.mjs';
- import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/unstorage/drivers/fs.mjs';
- import 'file:///D:/zwj/nuxt/sannongzixunwang_web/node_modules/nuxt/dist/core/runtime/nitro/cache-driver.js';
- import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/unstorage/drivers/fs-lite.mjs';
- import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/radix3/dist/index.mjs';
- import 'node:fs';
- import 'node:url';
- import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/pathe/dist/index.mjs';
- import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/unhead/dist/index.mjs';
- import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/@unhead/shared/dist/index.mjs';
- import './useCookieStore-CVsVVyyy.mjs';
- import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/js-cookie/dist/js.cookie.mjs';
- import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/unctx/dist/index.mjs';
- import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/vue-router/dist/vue-router.node.mjs';
- import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/pinia/dist/pinia.prod.cjs';
- const _sfc_main = {
- __name: "newsList",
- __ssrInlineRender: true,
- setup(__props) {
- const nuxtApp = useNuxtApp();
- const axios = nuxtApp.$axios;
- let keyWord = useState("keyWord", () => "");
- const route = useRoute();
- keyWord.value = route.query.keyword;
- let page = useState("page", () => 1);
- const handleData = (data) => {
- console.log(data.value);
- page.value = data.value;
- axios.get(`/web/getWebsiteArticlesList?page=${page.value}&pageSize=${10}&catid=${14}&keyword=${keyWord.value}`).then((response) => {
- newsList2.value = response.data.rows;
- }).catch((error) => {
- console.error(error);
- });
- };
- const newsList2 = useState("newsList", () => "");
- return (_ctx, _push, _parent, _attrs) => {
- const _component_HomePageHead = __nuxt_component_0;
- const _component_HomeBanner1 = __nuxt_component_1;
- const _component_NuxtLink = __nuxt_component_0$1;
- const _component_HomePagination = __nuxt_component_3;
- const _component_DetailHotNews = __nuxt_component_4;
- const _component_HomeSannongzixun = _sfc_main$1;
- const _component_HomeFoot = __nuxt_component_6;
- _push(`<div${ssrRenderAttrs(mergeProps({ id: "newsList" }, _attrs))} data-v-bed5b6c5>`);
- _push(ssrRenderComponent(_component_HomePageHead, null, null, _parent));
- _push(ssrRenderComponent(_component_HomeBanner1, null, null, _parent));
- _push(`<div class="breadcrumb" data-v-bed5b6c5><div class="inner" data-v-bed5b6c5><span class="location" data-v-bed5b6c5>\u5F53\u524D\u4F4D\u7F6E:</span>`);
- _push(ssrRenderComponent(unref(ElBreadcrumb), { "separator-icon": unref(ArrowRight) }, {
- default: withCtx((_, _push2, _parent2, _scopeId) => {
- if (_push2) {
- _push2(ssrRenderComponent(unref(ElBreadcrumbItem), { to: { path: "/" } }, {
- default: withCtx((_2, _push3, _parent3, _scopeId2) => {
- if (_push3) {
- _push3(`\u9996\u9875`);
- } else {
- return [
- createTextVNode("\u9996\u9875")
- ];
- }
- }),
- _: 1
- }, _parent2, _scopeId));
- _push2(ssrRenderComponent(unref(ElBreadcrumbItem), { to: { path: "/primaryNavigation/newsList" } }, {
- default: withCtx((_2, _push3, _parent3, _scopeId2) => {
- if (_push3) {
- _push3(`\u4E09\u519C\u4E4B\u7A97`);
- } else {
- return [
- createTextVNode("\u4E09\u519C\u4E4B\u7A97")
- ];
- }
- }),
- _: 1
- }, _parent2, _scopeId));
- } else {
- return [
- createVNode(unref(ElBreadcrumbItem), { to: { path: "/" } }, {
- default: withCtx(() => [
- createTextVNode("\u9996\u9875")
- ]),
- _: 1
- }),
- createVNode(unref(ElBreadcrumbItem), { to: { path: "/primaryNavigation/newsList" } }, {
- default: withCtx(() => [
- createTextVNode("\u4E09\u519C\u4E4B\u7A97")
- ]),
- _: 1
- })
- ];
- }
- }),
- _: 1
- }, _parent));
- _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><!--[-->`);
- ssrRenderList(unref(newsList2), (item, index) => {
- _push(`<li data-v-bed5b6c5>`);
- _push(ssrRenderComponent(_component_NuxtLink, { to: "/primaryNavigation/newsDetail/newsDetail" }, {
- default: withCtx((_, _push2, _parent2, _scopeId) => {
- if (_push2) {
- _push2(`${ssrInterpolate(item.title)}`);
- } else {
- return [
- createTextVNode(toDisplayString(item.title), 1)
- ];
- }
- }),
- _: 2
- }, _parent));
- _push(`</li>`);
- });
- _push(`<!--]--></ul><div class="pagination" data-v-bed5b6c5>`);
- _push(ssrRenderComponent(_component_HomePagination, { onSendData: handleData }, null, _parent));
- _push(`</div></div><div class="innerRight" data-v-bed5b6c5>`);
- _push(ssrRenderComponent(_component_DetailHotNews, null, null, _parent));
- _push(`</div></div></div>`);
- _push(ssrRenderComponent(_component_HomeSannongzixun, null, null, _parent));
- _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><!--[-->`);
- ssrRenderList(3, (item) => {
- _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>`);
- });
- _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><!--[-->`);
- ssrRenderList(3, (item) => {
- _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>`);
- });
- _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><!--[-->`);
- ssrRenderList(2, (item) => {
- _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>`);
- });
- _push(`<!--]--></ul></div></div></div>`);
- _push(ssrRenderComponent(_component_HomeFoot, null, null, _parent));
- _push(`</div>`);
- };
- }
- };
- const _sfc_setup = _sfc_main.setup;
- _sfc_main.setup = (props, ctx) => {
- const ssrContext = useSSRContext();
- (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("pages/primaryNavigation/newsList.vue");
- return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
- };
- const newsList = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-bed5b6c5"]]);
- export { newsList as default };
- //# sourceMappingURL=newsList-B-HlaJZE.mjs.map
|