|
@@ -0,0 +1,509 @@
|
|
|
+import { _ as __nuxt_component_0 } from './head-CnKfShNx.mjs';
|
|
|
+import { _ as __nuxt_component_0$1 } from './nuxt-link-DRGY1ko4.mjs';
|
|
|
+import { _ as __nuxt_component_2 } from './Foot-ChUpohjL.mjs';
|
|
|
+import { ref, unref, withCtx, createVNode, openBlock, createBlock, createCommentVNode, toDisplayString, withDirectives, vShow, Fragment, renderList, useSSRContext } from 'file://D:/%E5%BC%A0%E6%96%87%E9%9D%991/zwj/nuxt/sannongzixunwang_web/node_modules/vue/index.mjs';
|
|
|
+import { ssrRenderAttrs, ssrRenderComponent, ssrRenderList, ssrInterpolate, ssrRenderAttr, ssrRenderStyle } from 'file://D:/%E5%BC%A0%E6%96%87%E9%9D%991/zwj/nuxt/sannongzixunwang_web/node_modules/vue/server-renderer/index.mjs';
|
|
|
+import { ElTabs, ElTabPane, ElPagination } from 'file://D:/%E5%BC%A0%E6%96%87%E9%9D%991/zwj/nuxt/sannongzixunwang_web/node_modules/element-plus/es/index.mjs';
|
|
|
+import { _ as _export_sfc, b as useNuxtApp } from './server.mjs';
|
|
|
+import 'file://D:/%E5%BC%A0%E6%96%87%E9%9D%991/zwj/nuxt/sannongzixunwang_web/node_modules/ufo/dist/index.mjs';
|
|
|
+import '../_/renderer.mjs';
|
|
|
+import 'file://D:/%E5%BC%A0%E6%96%87%E9%9D%991/zwj/nuxt/sannongzixunwang_web/node_modules/vue-bundle-renderer/dist/runtime.mjs';
|
|
|
+import 'file://D:/%E5%BC%A0%E6%96%87%E9%9D%991/zwj/nuxt/sannongzixunwang_web/node_modules/h3/dist/index.mjs';
|
|
|
+import 'file://D:/%E5%BC%A0%E6%96%87%E9%9D%991/zwj/nuxt/sannongzixunwang_web/node_modules/devalue/index.js';
|
|
|
+import 'file://D:/%E5%BC%A0%E6%96%87%E9%9D%991/zwj/nuxt/sannongzixunwang_web/node_modules/@unhead/ssr/dist/index.mjs';
|
|
|
+import '../routes/index.mjs';
|
|
|
+import 'file://D:/%E5%BC%A0%E6%96%87%E9%9D%991/zwj/nuxt/sannongzixunwang_web/node_modules/ofetch/dist/node.mjs';
|
|
|
+import 'file://D:/%E5%BC%A0%E6%96%87%E9%9D%991/zwj/nuxt/sannongzixunwang_web/node_modules/destr/dist/index.mjs';
|
|
|
+import 'file://D:/%E5%BC%A0%E6%96%87%E9%9D%991/zwj/nuxt/sannongzixunwang_web/node_modules/unenv/runtime/fetch/index.mjs';
|
|
|
+import 'file://D:/%E5%BC%A0%E6%96%87%E9%9D%991/zwj/nuxt/sannongzixunwang_web/node_modules/hookable/dist/index.mjs';
|
|
|
+import 'file://D:/%E5%BC%A0%E6%96%87%E9%9D%991/zwj/nuxt/sannongzixunwang_web/node_modules/klona/dist/index.mjs';
|
|
|
+import 'file://D:/%E5%BC%A0%E6%96%87%E9%9D%991/zwj/nuxt/sannongzixunwang_web/node_modules/scule/dist/index.mjs';
|
|
|
+import 'file://D:/%E5%BC%A0%E6%96%87%E9%9D%991/zwj/nuxt/sannongzixunwang_web/node_modules/defu/dist/defu.mjs';
|
|
|
+import 'file://D:/%E5%BC%A0%E6%96%87%E9%9D%991/zwj/nuxt/sannongzixunwang_web/node_modules/ohash/dist/index.mjs';
|
|
|
+import 'file://D:/%E5%BC%A0%E6%96%87%E9%9D%991/zwj/nuxt/sannongzixunwang_web/node_modules/unstorage/dist/index.mjs';
|
|
|
+import 'file://D:/%E5%BC%A0%E6%96%87%E9%9D%991/zwj/nuxt/sannongzixunwang_web/node_modules/unstorage/drivers/fs.mjs';
|
|
|
+import 'file:///D:/%E5%BC%A0%E6%96%87%E9%9D%991/zwj/nuxt/sannongzixunwang_web/node_modules/nuxt/dist/core/runtime/nitro/cache-driver.js';
|
|
|
+import 'file://D:/%E5%BC%A0%E6%96%87%E9%9D%991/zwj/nuxt/sannongzixunwang_web/node_modules/unstorage/drivers/fs-lite.mjs';
|
|
|
+import 'file://D:/%E5%BC%A0%E6%96%87%E9%9D%991/zwj/nuxt/sannongzixunwang_web/node_modules/radix3/dist/index.mjs';
|
|
|
+import 'node:fs';
|
|
|
+import 'node:url';
|
|
|
+import 'file://D:/%E5%BC%A0%E6%96%87%E9%9D%991/zwj/nuxt/sannongzixunwang_web/node_modules/pathe/dist/index.mjs';
|
|
|
+import 'file://D:/%E5%BC%A0%E6%96%87%E9%9D%991/zwj/nuxt/sannongzixunwang_web/node_modules/unhead/dist/index.mjs';
|
|
|
+import 'file://D:/%E5%BC%A0%E6%96%87%E9%9D%991/zwj/nuxt/sannongzixunwang_web/node_modules/@unhead/shared/dist/index.mjs';
|
|
|
+import 'file://D:/%E5%BC%A0%E6%96%87%E9%9D%991/zwj/nuxt/sannongzixunwang_web/node_modules/unctx/dist/index.mjs';
|
|
|
+import 'file://D:/%E5%BC%A0%E6%96%87%E9%9D%991/zwj/nuxt/sannongzixunwang_web/node_modules/vue-router/dist/vue-router.node.mjs';
|
|
|
+import 'file://D:/%E5%BC%A0%E6%96%87%E9%9D%991/zwj/nuxt/sannongzixunwang_web/node_modules/pinia/dist/pinia.prod.cjs';
|
|
|
+
|
|
|
+const _imports_0 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAk5JREFUSEu1ljGLE1EQx/8zm0Q8EBEUjkMQTbCRYNZdsqKNciLY2AjBNFZ+BTtB/AZ+AGsP0l1zhcIpomjczRbBqOiFXLQQPS2EkEjYt6N7JOHlLolZk7xmt5iZ38x/3swuYcGHFhwfEwGlUslIp9MnReSUYRhHlVJLUUKGYbSVUj+UUtvNZrNeKBTUuETHAiqVSgbAeQC7QSecNoDXlmVtjbLZBxAR8jzvAjOfiSOfiLyzLOslEYnutw/guu7FuMH7ASOIbdsvxgI8z0sT0WqczEfYbupyDSroNbQ4heYT+SLSsixrrS/VAFAul08nEolLM2bfdx9UMQD4vn8luo7zADBzwzTNJ1EsHVAUkUNaww4CWCaihgY91nvfiZ4iwkQUzUmTiIK+HTO3TNN8NATwPO82EbEGuAMgIyLrzLwBYEVE7gII/8a+R0Q/AdwQkasA3hPRA803tG374bSADWZe1wFEdB/AjojcBHB5KoDrukVm1iU6AOAEgC0iirJGGIYrRKSI6FtPogSAqG9fiKijVdCybXtYIt/3V0UkPY8mi8i2bduP90o0jyHbzS8IgmeO43wcAkQ7yPf9AoDDM1bRrtfra/0NO7SLPM9ziOjsLABmfmqa5qd+jCGA7/vXRWT5fwFKqQ/5fP75yGVXq9VSnU7nlj4LcUDM/DaXy70au66r1eqRbrd7DcBXAJ+TyWSi2+2e06/uGOCvIAjeOI6jT/zA9J+fzEwmc7x3faM1scTMYRiGv0XkeyqVamaz2cberEdKFEeOOLYL/6v4A1mZCSj81vgJAAAAAElFTkSuQmCC";
|
|
|
+const _imports_1 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAYAAACpSkzOAAAAAXNSR0IArs4c6QAAAl5JREFUSEu91s9rE1EQB/DvzKZaRa1xU5GqFLWoKIJY8SSIipRePMS7J6Eaa1D/ChFE/JEmgn+ARDwJAUFaPQk9iCCISKtUIj2Y3ZAWK013Z2QDCdmkyaZmyd7e2535zFv2zVtCjy7qkYNgSEFmBkNYw16JwCTX2OoVp33uX3ZgoYy8dRe/ggpuC+1IYSQCY5RJB9olElDRddyPpSTmWz23PpSFYRZwnsAHgyqtv6+Q79YMZvASbmNcM5SFEbUwbigPbQSpPuuqLBbfIdeINUHmU1wk5kP/g1RjKitL4G19Dh+08zmGI2Ue6wapxpZVppduYq469kFmBnESjoUBiUrJTiALgnr5atBgCnuU+HIYSDXHiiGvVyaw6IPMxzhDET4ZJqSOfLKSmPVBu9IYY+XhekgUh70xE75V5zudqyRnyf++jlwjdIWVzdqXozgOQrIyVtwnwrwGz90jwo9aUa5Y9i28aguJ4igR7lSCCI9I8aUeUsVDJnxVxQkQJiv1KB74Vr8eFJ3CuAHe79vphGMqcOqDtcUcgFVSfwtyWfLFxlcXy+A0hE+F+TGIyGd7Eh98r277M8Q2uxwPFXIkZyeR90HewEwhThTOhoXKciGBF00b1oMGUxhR4gthrKptCxp4ggN9Bl/qFhKSBfsG3tTn8fW62BTOAXykG6ijY8JMGVeJtN+DhMhh1chGUCWZs6bxvv3Bp6BoGmcBlNxNyC9dg+0dG4aD0aCOLiq2rmG2eBs/WxUW/HMCYFsau/sZ+8RBjBRbvPanhD9MsFYNLCxPoBC08o6goCSd3O8Z9A+IGP0bbReOzQAAAABJRU5ErkJggg==";
|
|
|
+const _sfc_main = {
|
|
|
+ __name: "index",
|
|
|
+ __ssrInlineRender: true,
|
|
|
+ setup(__props) {
|
|
|
+ const nuxtApp = useNuxtApp();
|
|
|
+ const axios = nuxtApp.$axios;
|
|
|
+ const activeName = ref("");
|
|
|
+ const listData = ref([]);
|
|
|
+ const typeList = ref([]);
|
|
|
+ ref([]);
|
|
|
+ const currentPage = ref(0);
|
|
|
+ const pageSize = ref(10);
|
|
|
+ const page = ref(1);
|
|
|
+ const pageChage = (val) => {
|
|
|
+ page.value = val;
|
|
|
+ getTopicsList();
|
|
|
+ };
|
|
|
+ const getTopicsList = () => {
|
|
|
+ console.log("activeName", activeName.value);
|
|
|
+ let data = new FormData();
|
|
|
+ data.append("page", page.value);
|
|
|
+ data.append("page_size", pageSize.value);
|
|
|
+ data.append("type", activeName.value);
|
|
|
+ axios.post("chat/getTopicsList", data).then((response) => {
|
|
|
+ listData.value = response.data.data;
|
|
|
+ currentPage.value = response.data.total;
|
|
|
+ });
|
|
|
+ };
|
|
|
+ return (_ctx, _push, _parent, _attrs) => {
|
|
|
+ const _component_TopicHead = __nuxt_component_0;
|
|
|
+ const _component_NuxtLink = __nuxt_component_0$1;
|
|
|
+ const _component_AdvertisingFoot = __nuxt_component_2;
|
|
|
+ _push(`<div${ssrRenderAttrs(_attrs)} data-v-2cb33ba7>`);
|
|
|
+ _push(ssrRenderComponent(_component_TopicHead, null, null, _parent));
|
|
|
+ _push(`<div class="topicBox" data-v-2cb33ba7><div class="inner" data-v-2cb33ba7>`);
|
|
|
+ _push(ssrRenderComponent(unref(ElTabs), {
|
|
|
+ modelValue: activeName.value,
|
|
|
+ "onUpdate:modelValue": ($event) => activeName.value = $event,
|
|
|
+ class: "demo-tabs",
|
|
|
+ onTabChange: getTopicsList
|
|
|
+ }, {
|
|
|
+ default: withCtx((_, _push2, _parent2, _scopeId) => {
|
|
|
+ if (_push2) {
|
|
|
+ _push2(ssrRenderComponent(unref(ElTabPane), {
|
|
|
+ label: "\u63A8\u8350",
|
|
|
+ name: ""
|
|
|
+ }, {
|
|
|
+ default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
|
+ if (_push3) {
|
|
|
+ _push3(`<!--[-->`);
|
|
|
+ ssrRenderList(listData.value, (item) => {
|
|
|
+ _push3(ssrRenderComponent(_component_NuxtLink, {
|
|
|
+ to: `/topic/${item.id}`,
|
|
|
+ target: "_blank"
|
|
|
+ }, {
|
|
|
+ default: withCtx((_3, _push4, _parent4, _scopeId3) => {
|
|
|
+ if (_push4) {
|
|
|
+ _push4(`<div class="topicList" data-v-2cb33ba7${_scopeId3}><div class="listHead" data-v-2cb33ba7${_scopeId3}><div class="left" data-v-2cb33ba7${_scopeId3}>`);
|
|
|
+ if (item.type == 1) {
|
|
|
+ _push4(`<div class="one" data-v-2cb33ba7${_scopeId3}>\u79D1\u7814</div>`);
|
|
|
+ } else if (item.type == 2) {
|
|
|
+ _push4(`<div class="two" data-v-2cb33ba7${_scopeId3}>\u7EF4\u6743</div>`);
|
|
|
+ } else if (item.type == 3) {
|
|
|
+ _push4(`<div class="three" data-v-2cb33ba7${_scopeId3}>\u8BA8\u8BBA</div>`);
|
|
|
+ } else {
|
|
|
+ _push4(`<!---->`);
|
|
|
+ }
|
|
|
+ _push4(`</div><div class="right" data-v-2cb33ba7${_scopeId3}>${ssrInterpolate(item.created_at)}</div></div><div class="listFoot" data-v-2cb33ba7${_scopeId3}><div class="left" data-v-2cb33ba7${_scopeId3}><h2 data-v-2cb33ba7${_scopeId3}>${ssrInterpolate(item.title)}</h2><p data-v-2cb33ba7${_scopeId3}><img${ssrRenderAttr("src", item.avatar)} alt="" data-v-2cb33ba7${_scopeId3}><span data-v-2cb33ba7${_scopeId3}>${ssrInterpolate(item.author)}</span><img${ssrRenderAttr("src", _imports_0)} alt="" data-v-2cb33ba7${_scopeId3}><span data-v-2cb33ba7${_scopeId3}>${ssrInterpolate(item.num)}</span></p></div><div class="right" style="${ssrRenderStyle(item.group_name ? null : { display: "none" })}" data-v-2cb33ba7${_scopeId3}><img${ssrRenderAttr("src", _imports_1)} alt="" data-v-2cb33ba7${_scopeId3}><span data-v-2cb33ba7${_scopeId3}>${ssrInterpolate(item.group_name)}</span></div></div></div>`);
|
|
|
+ } else {
|
|
|
+ return [
|
|
|
+ createVNode("div", { class: "topicList" }, [
|
|
|
+ createVNode("div", { class: "listHead" }, [
|
|
|
+ createVNode("div", { class: "left" }, [
|
|
|
+ item.type == 1 ? (openBlock(), createBlock("div", {
|
|
|
+ key: 0,
|
|
|
+ class: "one"
|
|
|
+ }, "\u79D1\u7814")) : item.type == 2 ? (openBlock(), createBlock("div", {
|
|
|
+ key: 1,
|
|
|
+ class: "two"
|
|
|
+ }, "\u7EF4\u6743")) : item.type == 3 ? (openBlock(), createBlock("div", {
|
|
|
+ key: 2,
|
|
|
+ class: "three"
|
|
|
+ }, "\u8BA8\u8BBA")) : createCommentVNode("", true)
|
|
|
+ ]),
|
|
|
+ createVNode("div", { class: "right" }, toDisplayString(item.created_at), 1)
|
|
|
+ ]),
|
|
|
+ createVNode("div", { class: "listFoot" }, [
|
|
|
+ createVNode("div", { class: "left" }, [
|
|
|
+ createVNode("h2", null, toDisplayString(item.title), 1),
|
|
|
+ createVNode("p", null, [
|
|
|
+ createVNode("img", {
|
|
|
+ src: item.avatar,
|
|
|
+ alt: ""
|
|
|
+ }, null, 8, ["src"]),
|
|
|
+ createVNode("span", null, toDisplayString(item.author), 1),
|
|
|
+ createVNode("img", {
|
|
|
+ src: _imports_0,
|
|
|
+ alt: ""
|
|
|
+ }),
|
|
|
+ createVNode("span", null, toDisplayString(item.num), 1)
|
|
|
+ ])
|
|
|
+ ]),
|
|
|
+ withDirectives(createVNode("div", { class: "right" }, [
|
|
|
+ createVNode("img", {
|
|
|
+ src: _imports_1,
|
|
|
+ alt: ""
|
|
|
+ }),
|
|
|
+ createVNode("span", null, toDisplayString(item.group_name), 1)
|
|
|
+ ], 512), [
|
|
|
+ [vShow, item.group_name]
|
|
|
+ ])
|
|
|
+ ])
|
|
|
+ ])
|
|
|
+ ];
|
|
|
+ }
|
|
|
+ }),
|
|
|
+ _: 2
|
|
|
+ }, _parent3, _scopeId2));
|
|
|
+ });
|
|
|
+ _push3(`<!--]-->`);
|
|
|
+ } else {
|
|
|
+ return [
|
|
|
+ (openBlock(true), createBlock(Fragment, null, renderList(listData.value, (item) => {
|
|
|
+ return openBlock(), createBlock(_component_NuxtLink, {
|
|
|
+ to: `/topic/${item.id}`,
|
|
|
+ target: "_blank"
|
|
|
+ }, {
|
|
|
+ default: withCtx(() => [
|
|
|
+ createVNode("div", { class: "topicList" }, [
|
|
|
+ createVNode("div", { class: "listHead" }, [
|
|
|
+ createVNode("div", { class: "left" }, [
|
|
|
+ item.type == 1 ? (openBlock(), createBlock("div", {
|
|
|
+ key: 0,
|
|
|
+ class: "one"
|
|
|
+ }, "\u79D1\u7814")) : item.type == 2 ? (openBlock(), createBlock("div", {
|
|
|
+ key: 1,
|
|
|
+ class: "two"
|
|
|
+ }, "\u7EF4\u6743")) : item.type == 3 ? (openBlock(), createBlock("div", {
|
|
|
+ key: 2,
|
|
|
+ class: "three"
|
|
|
+ }, "\u8BA8\u8BBA")) : createCommentVNode("", true)
|
|
|
+ ]),
|
|
|
+ createVNode("div", { class: "right" }, toDisplayString(item.created_at), 1)
|
|
|
+ ]),
|
|
|
+ createVNode("div", { class: "listFoot" }, [
|
|
|
+ createVNode("div", { class: "left" }, [
|
|
|
+ createVNode("h2", null, toDisplayString(item.title), 1),
|
|
|
+ createVNode("p", null, [
|
|
|
+ createVNode("img", {
|
|
|
+ src: item.avatar,
|
|
|
+ alt: ""
|
|
|
+ }, null, 8, ["src"]),
|
|
|
+ createVNode("span", null, toDisplayString(item.author), 1),
|
|
|
+ createVNode("img", {
|
|
|
+ src: _imports_0,
|
|
|
+ alt: ""
|
|
|
+ }),
|
|
|
+ createVNode("span", null, toDisplayString(item.num), 1)
|
|
|
+ ])
|
|
|
+ ]),
|
|
|
+ withDirectives(createVNode("div", { class: "right" }, [
|
|
|
+ createVNode("img", {
|
|
|
+ src: _imports_1,
|
|
|
+ alt: ""
|
|
|
+ }),
|
|
|
+ createVNode("span", null, toDisplayString(item.group_name), 1)
|
|
|
+ ], 512), [
|
|
|
+ [vShow, item.group_name]
|
|
|
+ ])
|
|
|
+ ])
|
|
|
+ ])
|
|
|
+ ]),
|
|
|
+ _: 2
|
|
|
+ }, 1032, ["to"]);
|
|
|
+ }), 256))
|
|
|
+ ];
|
|
|
+ }
|
|
|
+ }),
|
|
|
+ _: 1
|
|
|
+ }, _parent2, _scopeId));
|
|
|
+ _push2(`<!--[-->`);
|
|
|
+ ssrRenderList(typeList.value, (item) => {
|
|
|
+ _push2(ssrRenderComponent(unref(ElTabPane), {
|
|
|
+ label: item.label,
|
|
|
+ name: item.value
|
|
|
+ }, {
|
|
|
+ default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
|
+ if (_push3) {
|
|
|
+ _push3(`<!--[-->`);
|
|
|
+ ssrRenderList(listData.value, (item2) => {
|
|
|
+ _push3(ssrRenderComponent(_component_NuxtLink, {
|
|
|
+ to: `/topic/${item2.id}`,
|
|
|
+ target: "_blank"
|
|
|
+ }, {
|
|
|
+ default: withCtx((_3, _push4, _parent4, _scopeId3) => {
|
|
|
+ if (_push4) {
|
|
|
+ _push4(`<div class="topicList" data-v-2cb33ba7${_scopeId3}><div class="listHead" data-v-2cb33ba7${_scopeId3}><div class="left" data-v-2cb33ba7${_scopeId3}>`);
|
|
|
+ if (item2.type == 1) {
|
|
|
+ _push4(`<div class="one" data-v-2cb33ba7${_scopeId3}>\u79D1\u7814</div>`);
|
|
|
+ } else if (item2.type == 2) {
|
|
|
+ _push4(`<div class="two" data-v-2cb33ba7${_scopeId3}>\u7EF4\u6743</div>`);
|
|
|
+ } else if (item2.type == 3) {
|
|
|
+ _push4(`<div class="three" data-v-2cb33ba7${_scopeId3}>\u8BA8\u8BBA</div>`);
|
|
|
+ } else {
|
|
|
+ _push4(`<!---->`);
|
|
|
+ }
|
|
|
+ _push4(`</div><div class="right" data-v-2cb33ba7${_scopeId3}>${ssrInterpolate(item2.created_at)}</div></div><div class="listFoot" data-v-2cb33ba7${_scopeId3}><div class="left" data-v-2cb33ba7${_scopeId3}><h2 data-v-2cb33ba7${_scopeId3}>${ssrInterpolate(item2.title)}</h2><p data-v-2cb33ba7${_scopeId3}><img${ssrRenderAttr("src", item2.avatar)} alt="" data-v-2cb33ba7${_scopeId3}><span data-v-2cb33ba7${_scopeId3}>${ssrInterpolate(item2.author)}</span><img${ssrRenderAttr("src", _imports_0)} alt="" data-v-2cb33ba7${_scopeId3}><span data-v-2cb33ba7${_scopeId3}>${ssrInterpolate()}</span></p></div><div class="right" data-v-2cb33ba7${_scopeId3}><img${ssrRenderAttr("src", _imports_1)} alt="" data-v-2cb33ba7${_scopeId3}><span data-v-2cb33ba7${_scopeId3}>${ssrInterpolate(item2.group_name)}</span></div></div></div>`);
|
|
|
+ } else {
|
|
|
+ return [
|
|
|
+ createVNode("div", { class: "topicList" }, [
|
|
|
+ createVNode("div", { class: "listHead" }, [
|
|
|
+ createVNode("div", { class: "left" }, [
|
|
|
+ item2.type == 1 ? (openBlock(), createBlock("div", {
|
|
|
+ key: 0,
|
|
|
+ class: "one"
|
|
|
+ }, "\u79D1\u7814")) : item2.type == 2 ? (openBlock(), createBlock("div", {
|
|
|
+ key: 1,
|
|
|
+ class: "two"
|
|
|
+ }, "\u7EF4\u6743")) : item2.type == 3 ? (openBlock(), createBlock("div", {
|
|
|
+ key: 2,
|
|
|
+ class: "three"
|
|
|
+ }, "\u8BA8\u8BBA")) : createCommentVNode("", true)
|
|
|
+ ]),
|
|
|
+ createVNode("div", { class: "right" }, toDisplayString(item2.created_at), 1)
|
|
|
+ ]),
|
|
|
+ createVNode("div", { class: "listFoot" }, [
|
|
|
+ createVNode("div", { class: "left" }, [
|
|
|
+ createVNode("h2", null, toDisplayString(item2.title), 1),
|
|
|
+ createVNode("p", null, [
|
|
|
+ createVNode("img", {
|
|
|
+ src: item2.avatar,
|
|
|
+ alt: ""
|
|
|
+ }, null, 8, ["src"]),
|
|
|
+ createVNode("span", null, toDisplayString(item2.author), 1),
|
|
|
+ createVNode("img", {
|
|
|
+ src: _imports_0,
|
|
|
+ alt: ""
|
|
|
+ }),
|
|
|
+ createVNode("span", null, toDisplayString(), 1)
|
|
|
+ ])
|
|
|
+ ]),
|
|
|
+ createVNode("div", { class: "right" }, [
|
|
|
+ createVNode("img", {
|
|
|
+ src: _imports_1,
|
|
|
+ alt: ""
|
|
|
+ }),
|
|
|
+ createVNode("span", null, toDisplayString(item2.group_name), 1)
|
|
|
+ ])
|
|
|
+ ])
|
|
|
+ ])
|
|
|
+ ];
|
|
|
+ }
|
|
|
+ }),
|
|
|
+ _: 2
|
|
|
+ }, _parent3, _scopeId2));
|
|
|
+ });
|
|
|
+ _push3(`<!--]-->`);
|
|
|
+ } else {
|
|
|
+ return [
|
|
|
+ (openBlock(true), createBlock(Fragment, null, renderList(listData.value, (item2) => {
|
|
|
+ return openBlock(), createBlock(_component_NuxtLink, {
|
|
|
+ to: `/topic/${item2.id}`,
|
|
|
+ target: "_blank"
|
|
|
+ }, {
|
|
|
+ default: withCtx(() => [
|
|
|
+ createVNode("div", { class: "topicList" }, [
|
|
|
+ createVNode("div", { class: "listHead" }, [
|
|
|
+ createVNode("div", { class: "left" }, [
|
|
|
+ item2.type == 1 ? (openBlock(), createBlock("div", {
|
|
|
+ key: 0,
|
|
|
+ class: "one"
|
|
|
+ }, "\u79D1\u7814")) : item2.type == 2 ? (openBlock(), createBlock("div", {
|
|
|
+ key: 1,
|
|
|
+ class: "two"
|
|
|
+ }, "\u7EF4\u6743")) : item2.type == 3 ? (openBlock(), createBlock("div", {
|
|
|
+ key: 2,
|
|
|
+ class: "three"
|
|
|
+ }, "\u8BA8\u8BBA")) : createCommentVNode("", true)
|
|
|
+ ]),
|
|
|
+ createVNode("div", { class: "right" }, toDisplayString(item2.created_at), 1)
|
|
|
+ ]),
|
|
|
+ createVNode("div", { class: "listFoot" }, [
|
|
|
+ createVNode("div", { class: "left" }, [
|
|
|
+ createVNode("h2", null, toDisplayString(item2.title), 1),
|
|
|
+ createVNode("p", null, [
|
|
|
+ createVNode("img", {
|
|
|
+ src: item2.avatar,
|
|
|
+ alt: ""
|
|
|
+ }, null, 8, ["src"]),
|
|
|
+ createVNode("span", null, toDisplayString(item2.author), 1),
|
|
|
+ createVNode("img", {
|
|
|
+ src: _imports_0,
|
|
|
+ alt: ""
|
|
|
+ }),
|
|
|
+ createVNode("span", null, toDisplayString(), 1)
|
|
|
+ ])
|
|
|
+ ]),
|
|
|
+ createVNode("div", { class: "right" }, [
|
|
|
+ createVNode("img", {
|
|
|
+ src: _imports_1,
|
|
|
+ alt: ""
|
|
|
+ }),
|
|
|
+ createVNode("span", null, toDisplayString(item2.group_name), 1)
|
|
|
+ ])
|
|
|
+ ])
|
|
|
+ ])
|
|
|
+ ]),
|
|
|
+ _: 2
|
|
|
+ }, 1032, ["to"]);
|
|
|
+ }), 256))
|
|
|
+ ];
|
|
|
+ }
|
|
|
+ }),
|
|
|
+ _: 2
|
|
|
+ }, _parent2, _scopeId));
|
|
|
+ });
|
|
|
+ _push2(`<!--]-->`);
|
|
|
+ } else {
|
|
|
+ return [
|
|
|
+ createVNode(unref(ElTabPane), {
|
|
|
+ label: "\u63A8\u8350",
|
|
|
+ name: ""
|
|
|
+ }, {
|
|
|
+ default: withCtx(() => [
|
|
|
+ (openBlock(true), createBlock(Fragment, null, renderList(listData.value, (item) => {
|
|
|
+ return openBlock(), createBlock(_component_NuxtLink, {
|
|
|
+ to: `/topic/${item.id}`,
|
|
|
+ target: "_blank"
|
|
|
+ }, {
|
|
|
+ default: withCtx(() => [
|
|
|
+ createVNode("div", { class: "topicList" }, [
|
|
|
+ createVNode("div", { class: "listHead" }, [
|
|
|
+ createVNode("div", { class: "left" }, [
|
|
|
+ item.type == 1 ? (openBlock(), createBlock("div", {
|
|
|
+ key: 0,
|
|
|
+ class: "one"
|
|
|
+ }, "\u79D1\u7814")) : item.type == 2 ? (openBlock(), createBlock("div", {
|
|
|
+ key: 1,
|
|
|
+ class: "two"
|
|
|
+ }, "\u7EF4\u6743")) : item.type == 3 ? (openBlock(), createBlock("div", {
|
|
|
+ key: 2,
|
|
|
+ class: "three"
|
|
|
+ }, "\u8BA8\u8BBA")) : createCommentVNode("", true)
|
|
|
+ ]),
|
|
|
+ createVNode("div", { class: "right" }, toDisplayString(item.created_at), 1)
|
|
|
+ ]),
|
|
|
+ createVNode("div", { class: "listFoot" }, [
|
|
|
+ createVNode("div", { class: "left" }, [
|
|
|
+ createVNode("h2", null, toDisplayString(item.title), 1),
|
|
|
+ createVNode("p", null, [
|
|
|
+ createVNode("img", {
|
|
|
+ src: item.avatar,
|
|
|
+ alt: ""
|
|
|
+ }, null, 8, ["src"]),
|
|
|
+ createVNode("span", null, toDisplayString(item.author), 1),
|
|
|
+ createVNode("img", {
|
|
|
+ src: _imports_0,
|
|
|
+ alt: ""
|
|
|
+ }),
|
|
|
+ createVNode("span", null, toDisplayString(item.num), 1)
|
|
|
+ ])
|
|
|
+ ]),
|
|
|
+ withDirectives(createVNode("div", { class: "right" }, [
|
|
|
+ createVNode("img", {
|
|
|
+ src: _imports_1,
|
|
|
+ alt: ""
|
|
|
+ }),
|
|
|
+ createVNode("span", null, toDisplayString(item.group_name), 1)
|
|
|
+ ], 512), [
|
|
|
+ [vShow, item.group_name]
|
|
|
+ ])
|
|
|
+ ])
|
|
|
+ ])
|
|
|
+ ]),
|
|
|
+ _: 2
|
|
|
+ }, 1032, ["to"]);
|
|
|
+ }), 256))
|
|
|
+ ]),
|
|
|
+ _: 1
|
|
|
+ }),
|
|
|
+ (openBlock(true), createBlock(Fragment, null, renderList(typeList.value, (item) => {
|
|
|
+ return openBlock(), createBlock(unref(ElTabPane), {
|
|
|
+ label: item.label,
|
|
|
+ name: item.value
|
|
|
+ }, {
|
|
|
+ default: withCtx(() => [
|
|
|
+ (openBlock(true), createBlock(Fragment, null, renderList(listData.value, (item2) => {
|
|
|
+ return openBlock(), createBlock(_component_NuxtLink, {
|
|
|
+ to: `/topic/${item2.id}`,
|
|
|
+ target: "_blank"
|
|
|
+ }, {
|
|
|
+ default: withCtx(() => [
|
|
|
+ createVNode("div", { class: "topicList" }, [
|
|
|
+ createVNode("div", { class: "listHead" }, [
|
|
|
+ createVNode("div", { class: "left" }, [
|
|
|
+ item2.type == 1 ? (openBlock(), createBlock("div", {
|
|
|
+ key: 0,
|
|
|
+ class: "one"
|
|
|
+ }, "\u79D1\u7814")) : item2.type == 2 ? (openBlock(), createBlock("div", {
|
|
|
+ key: 1,
|
|
|
+ class: "two"
|
|
|
+ }, "\u7EF4\u6743")) : item2.type == 3 ? (openBlock(), createBlock("div", {
|
|
|
+ key: 2,
|
|
|
+ class: "three"
|
|
|
+ }, "\u8BA8\u8BBA")) : createCommentVNode("", true)
|
|
|
+ ]),
|
|
|
+ createVNode("div", { class: "right" }, toDisplayString(item2.created_at), 1)
|
|
|
+ ]),
|
|
|
+ createVNode("div", { class: "listFoot" }, [
|
|
|
+ createVNode("div", { class: "left" }, [
|
|
|
+ createVNode("h2", null, toDisplayString(item2.title), 1),
|
|
|
+ createVNode("p", null, [
|
|
|
+ createVNode("img", {
|
|
|
+ src: item2.avatar,
|
|
|
+ alt: ""
|
|
|
+ }, null, 8, ["src"]),
|
|
|
+ createVNode("span", null, toDisplayString(item2.author), 1),
|
|
|
+ createVNode("img", {
|
|
|
+ src: _imports_0,
|
|
|
+ alt: ""
|
|
|
+ }),
|
|
|
+ createVNode("span", null, toDisplayString(), 1)
|
|
|
+ ])
|
|
|
+ ]),
|
|
|
+ createVNode("div", { class: "right" }, [
|
|
|
+ createVNode("img", {
|
|
|
+ src: _imports_1,
|
|
|
+ alt: ""
|
|
|
+ }),
|
|
|
+ createVNode("span", null, toDisplayString(item2.group_name), 1)
|
|
|
+ ])
|
|
|
+ ])
|
|
|
+ ])
|
|
|
+ ]),
|
|
|
+ _: 2
|
|
|
+ }, 1032, ["to"]);
|
|
|
+ }), 256))
|
|
|
+ ]),
|
|
|
+ _: 2
|
|
|
+ }, 1032, ["label", "name"]);
|
|
|
+ }), 256))
|
|
|
+ ];
|
|
|
+ }
|
|
|
+ }),
|
|
|
+ _: 1
|
|
|
+ }, _parent));
|
|
|
+ _push(`<div class="paginationBox" data-v-2cb33ba7>`);
|
|
|
+ _push(ssrRenderComponent(unref(ElPagination), {
|
|
|
+ background: "",
|
|
|
+ layout: "prev, pager, next",
|
|
|
+ total: currentPage.value,
|
|
|
+ "prev-text": "\u4E0A\u4E00\u9875",
|
|
|
+ "next-text": "\u4E0B\u4E00\u9875",
|
|
|
+ onChange: pageChage
|
|
|
+ }, null, _parent));
|
|
|
+ _push(`</div></div></div>`);
|
|
|
+ _push(ssrRenderComponent(_component_AdvertisingFoot, 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/topic/index.vue");
|
|
|
+ return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
|
|
|
+};
|
|
|
+const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-2cb33ba7"]]);
|
|
|
+
|
|
|
+export { index as default };
|
|
|
+//# sourceMappingURL=index-BvVahdhR.mjs.map
|