列表加载20条
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -53,7 +53,7 @@ const _sfc_main = {
|
||||
if (page.value == 0 || loading.value)
|
||||
return;
|
||||
loading.value = true;
|
||||
getListHttp({ page: page.value, keyword: keyword.value }).then((res) => {
|
||||
getListHttp({ page: page.value, keyword: keyword.value, limit: 20 }).then((res) => {
|
||||
if (res.code != 200) {
|
||||
page.value = 0;
|
||||
ElMessage.error(res.message);
|
||||
@@ -133,7 +133,7 @@ const _sfc_main = {
|
||||
}, _parent));
|
||||
_push(ssrRenderComponent(_component_TopHead, null, null, _parent));
|
||||
if (unref(keyword)) {
|
||||
_push(`<div class="search-info flexacenter" data-v-87c4e44c><div class="flexacenter" data-v-87c4e44c>${ssrInterpolate(unref(keyword))} <img class="round-fork-fork"${ssrRenderAttr("src", _imports_0)} data-v-87c4e44c></div><div class="halving-line" data-v-87c4e44c></div><div class="search-result" data-v-87c4e44c>\u5171 ${ssrInterpolate(unref(count))} \u6761\u641C\u7D22\u6570\u636E</div></div>`);
|
||||
_push(`<div class="search-info flexacenter" data-v-4b94e687><div class="flexacenter" data-v-4b94e687>${ssrInterpolate(unref(keyword))} <img class="round-fork-fork"${ssrRenderAttr("src", _imports_0)} data-v-4b94e687></div><div class="halving-line" data-v-4b94e687></div><div class="search-result" data-v-4b94e687>\u5171 ${ssrInterpolate(unref(count))} \u6761\u641C\u7D22\u6570\u636E</div></div>`);
|
||||
} else {
|
||||
_push(`<!---->`);
|
||||
}
|
||||
@@ -141,35 +141,35 @@ const _sfc_main = {
|
||||
class: ["vote-list-box", { "firstdata": unref(firstdataState) }],
|
||||
ref_key: "gridContainer",
|
||||
ref: gridContainer
|
||||
}, ssrGetDirectiveProps(_ctx, _directive_loading, unref(loading))))} data-v-87c4e44c><!--[-->`);
|
||||
}, ssrGetDirectiveProps(_ctx, _directive_loading, unref(loading))))} data-v-4b94e687><!--[-->`);
|
||||
ssrRenderList(unref(list), (item, index2) => {
|
||||
_push(`<a target="_blank"${ssrRenderAttr("href", `/details/${item["uniqid"]}?colorI=${index2 % 6}`)} class="${ssrRenderClass([{ "isvote": item["isvote"] == 1 || item["status"] == 0 }, "vote-item"])}" style="${ssrRenderStyle({ "--main-color": ("colourValue" in _ctx ? _ctx.colourValue : unref(colourValue))[index2 % 6]["main"], "--bg-color": ("colourValue" in _ctx ? _ctx.colourValue : unref(colourValue))[index2 % 6]["bg"], "--bc-color": ("colourValue" in _ctx ? _ctx.colourValue : unref(colourValue))[index2 % 6]["bc"] })}" data-v-87c4e44c><div class="vote-title" data-v-87c4e44c>`);
|
||||
_push(`<a target="_blank"${ssrRenderAttr("href", `/details/${item["uniqid"]}?colorI=${index2 % 6}`)} class="${ssrRenderClass([{ "isvote": item["isvote"] == 1 || item["status"] == 0 }, "vote-item"])}" style="${ssrRenderStyle({ "--main-color": ("colourValue" in _ctx ? _ctx.colourValue : unref(colourValue))[index2 % 6]["main"], "--bg-color": ("colourValue" in _ctx ? _ctx.colourValue : unref(colourValue))[index2 % 6]["bg"], "--bc-color": ("colourValue" in _ctx ? _ctx.colourValue : unref(colourValue))[index2 % 6]["bc"] })}" data-v-4b94e687><div class="vote-title" data-v-4b94e687>`);
|
||||
if (item["status"] == 1) {
|
||||
_push(`<div class="vote-state" data-v-87c4e44c>\u8FDB\u884C\u4E2D</div>`);
|
||||
_push(`<div class="vote-state" data-v-4b94e687>\u8FDB\u884C\u4E2D</div>`);
|
||||
} else {
|
||||
_push(`<div class="vote-state finish" data-v-87c4e44c>\u5DF2\u7ED3\u675F</div>`);
|
||||
_push(`<div class="vote-state finish" data-v-4b94e687>\u5DF2\u7ED3\u675F</div>`);
|
||||
}
|
||||
_push(` ${ssrInterpolate(item["title"])}</div><div class="vote-explain" data-v-87c4e44c>${ssrInterpolate(item["message"])}</div><div class="vote-option-list flexflex" data-v-87c4e44c><!--[-->`);
|
||||
_push(` ${ssrInterpolate(item["title"])}</div><div class="vote-explain" data-v-4b94e687>${ssrInterpolate(item["message"])}</div><div class="vote-option-list flexflex" data-v-4b94e687><!--[-->`);
|
||||
ssrRenderList(item == null ? void 0 : item.option, (item2, index22) => {
|
||||
_push(`<div class="${ssrRenderClass([{ "pitch": item2.selected == 1 }, "vote-option-item flexflex"])}" data-v-87c4e44c><div class="flexflex" style="${ssrRenderStyle({ "padding": "2px 0" })}" data-v-87c4e44c><div class="vote-option-number flexcenter" data-v-87c4e44c>${ssrInterpolate(index22 + 1)}</div><img class="tick-icon"${ssrRenderAttr("src", _imports_1)} data-v-87c4e44c><div class="vote-option-content flex1" data-v-87c4e44c>${ssrInterpolate(item2["value"])}</div></div><div class="vote-option-progress flexacenter" data-v-87c4e44c><div class="vote-option-progress-step" style="${ssrRenderStyle({ width: item2["percentage"] + "%" })}" data-v-87c4e44c></div><div class="vote-option-progress-value" data-v-87c4e44c>${ssrInterpolate(item2["count"])}</div></div></div>`);
|
||||
_push(`<div class="${ssrRenderClass([{ "pitch": item2.selected == 1 }, "vote-option-item flexflex"])}" data-v-4b94e687><div class="flexflex" style="${ssrRenderStyle({ "padding": "2px 0" })}" data-v-4b94e687><div class="vote-option-number flexcenter" data-v-4b94e687>${ssrInterpolate(index22 + 1)}</div><img class="tick-icon"${ssrRenderAttr("src", _imports_1)} data-v-4b94e687><div class="vote-option-content flex1" data-v-4b94e687>${ssrInterpolate(item2["value"])}</div></div><div class="vote-option-progress flexacenter" data-v-4b94e687><div class="vote-option-progress-step" style="${ssrRenderStyle({ width: item2["percentage"] + "%" })}" data-v-4b94e687></div><div class="vote-option-progress-value" data-v-4b94e687>${ssrInterpolate(item2["count"])}</div></div></div>`);
|
||||
});
|
||||
_push(`<!--]--></div><div class="vote-data flexacenter" data-v-87c4e44c><div class="vote-data-left flexacenter" data-v-87c4e44c>${ssrInterpolate(item.votes)}\u4EBA\u53C2\u4E0E `);
|
||||
_push(`<!--]--></div><div class="vote-data flexacenter" data-v-4b94e687><div class="vote-data-left flexacenter" data-v-4b94e687>${ssrInterpolate(item.votes)}\u4EBA\u53C2\u4E0E `);
|
||||
if (item["deadline"]) {
|
||||
_push(`<!--[-->| ${ssrInterpolate(("handleDeadline" in _ctx ? _ctx.handleDeadline : unref(handleDeadline))(item["deadline"]))}\u7ED3\u675F<!--]-->`);
|
||||
} else {
|
||||
_push(`<!---->`);
|
||||
}
|
||||
_push(`</div><div class="vote-data-right flexacenter" data-v-87c4e44c><div class="vote-data-item flexacenter" data-v-87c4e44c><img class="vote-data-icon"${ssrRenderAttr("src", _imports_2)} data-v-87c4e44c>\xA0 ${ssrInterpolate(item.views)}</div><div class="vote-data-item flexacenter" data-v-87c4e44c>`);
|
||||
_push(`</div><div class="vote-data-right flexacenter" data-v-4b94e687><div class="vote-data-item flexacenter" data-v-4b94e687><img class="vote-data-icon"${ssrRenderAttr("src", _imports_2)} data-v-4b94e687>\xA0 ${ssrInterpolate(item.views)}</div><div class="vote-data-item flexacenter" data-v-4b94e687>`);
|
||||
if (item["islike"] == 0) {
|
||||
_push(`<img class="vote-data-icon"${ssrRenderAttr("src", _imports_3)} data-v-87c4e44c>`);
|
||||
_push(`<img class="vote-data-icon"${ssrRenderAttr("src", _imports_3)} data-v-4b94e687>`);
|
||||
} else {
|
||||
_push(`<img class="vote-data-icon"${ssrRenderAttr("src", _imports_4)} data-v-87c4e44c>`);
|
||||
_push(`<img class="vote-data-icon"${ssrRenderAttr("src", _imports_4)} data-v-4b94e687>`);
|
||||
}
|
||||
_push(`\xA0 ${ssrInterpolate(item["likes"])}</div><div class="vote-data-item flexacenter" data-v-87c4e44c><img class="vote-data-icon"${ssrRenderAttr("src", _imports_5)} data-v-87c4e44c>\xA0 ${ssrInterpolate(item["comments"])}</div></div></div></a>`);
|
||||
_push(`\xA0 ${ssrInterpolate(item["likes"])}</div><div class="vote-data-item flexacenter" data-v-4b94e687><img class="vote-data-icon"${ssrRenderAttr("src", _imports_5)} data-v-4b94e687>\xA0 ${ssrInterpolate(item["comments"])}</div></div></div></a>`);
|
||||
});
|
||||
_push(`<!--]-->`);
|
||||
if (unref(keyword) && unref(list).length == 0 && !unref(loading)) {
|
||||
_push(`<div class="empty-box flexcenter" data-v-87c4e44c>`);
|
||||
_push(`<div class="empty-box flexcenter" data-v-4b94e687>`);
|
||||
_push(ssrRenderComponent(_component_Empty, { isNeedIssue: true }, null, _parent));
|
||||
_push(`</div>`);
|
||||
} else {
|
||||
@@ -185,7 +185,7 @@ _sfc_main.setup = (props, ctx) => {
|
||||
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("pages/index.html/index.vue");
|
||||
return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
|
||||
};
|
||||
const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-87c4e44c"]]);
|
||||
const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-4b94e687"]]);
|
||||
|
||||
export { index as default };
|
||||
//# sourceMappingURL=index-H93pHjP6.mjs.map
|
||||
//# sourceMappingURL=index-UHO4cBMd.mjs.map
|
||||
1
.output/server/chunks/app/_nuxt/index-UHO4cBMd.mjs.map
Normal file
1
.output/server/chunks/app/_nuxt/index-UHO4cBMd.mjs.map
Normal file
File diff suppressed because one or more lines are too long
@@ -1,6 +0,0 @@
|
||||
const index_vue_vue_type_style_index_0_scoped_87c4e44c_lang = ".vote-item[data-v-87c4e44c]{--main-color:#2cbae6;--bg-color:#eaf5f8;--bc-color:#d5ebf2}.search-info[data-v-87c4e44c]{color:#72db86;font-size:14px;margin:0 auto 31px;width:1200px}.search-info .round-fork-fork[data-v-87c4e44c]{cursor:pointer;height:14px;margin-left:8px;width:14px}.search-info .halving-line[data-v-87c4e44c]{background-color:#d7d7d7;height:13px;margin:0 20px;width:1px}.search-info .search-result[data-v-87c4e44c]{color:#7f7f7f;font-size:13px}.vote-list-box[data-v-87c4e44c]{display:flex;flex-wrap:wrap;margin:0 auto;min-height:100vh;width:1200px}.vote-list-box.firstdata .vote-item[data-v-87c4e44c]{margin-right:22.5px}.vote-list-box.firstdata .vote-item[data-v-87c4e44c]:nth-of-type(3n){margin-right:0}.vote-list-box .vote-item[data-v-87c4e44c]{background-color:#fff;border-radius:16px;cursor:pointer;margin-bottom:20px;padding:25px 22px 24px;width:385px}.vote-list-box .vote-item[data-v-87c4e44c]:hover{box-shadow:0 0 5px 2px hsla(0,0%,85%,.48)}.vote-list-box .vote-item.isvote .vote-option-list .vote-option-item .vote-option-progress[data-v-87c4e44c]{display:flex}.vote-list-box .vote-item .vote-title[data-v-87c4e44c]{color:#000;font-size:16px;font-style:normal;font-weight:650;line-height:26px;margin-bottom:10px;word-break:break-all}.vote-list-box .vote-item .vote-title .vote-state[data-v-87c4e44c]{align-items:center;background-color:var(--main-color);border-radius:25px;color:#fff;display:inline-flex;font-size:12px;height:20px;justify-content:center;margin-right:6px;padding:0 6px}.vote-list-box .vote-item .vote-title .vote-state.finish[data-v-87c4e44c]{background:#000;color:#fff}.vote-list-box .vote-item .vote-explain[data-v-87c4e44c]{color:#555;font-size:13px;line-height:22px;margin-bottom:14px;word-break:break-word}.vote-list-box .vote-item .vote-option-list[data-v-87c4e44c]{background-color:var(--bg-color);border:1px solid var(--bc-color);border-radius:13px;flex-direction:column;margin-bottom:16px;padding:8px 0;width:340px}.vote-list-box .vote-item .vote-option-list .vote-option-item[data-v-87c4e44c]{flex-direction:column;padding:10px 15px}.vote-list-box .vote-item .vote-option-list .vote-option-item[data-v-87c4e44c]:not(:last-of-type){border-bottom:1px solid var(--bc-color)}.vote-list-box .vote-item .vote-option-list .vote-option-item.pitch .vote-option-number[data-v-87c4e44c]{display:none}.vote-list-box .vote-item .vote-option-list .vote-option-item.pitch .tick-icon[data-v-87c4e44c]{display:block}.vote-list-box .vote-item .vote-option-list .vote-option-item.pitch .vote-option-content[data-v-87c4e44c]{color:#000;font-weight:650}.vote-list-box .vote-item .vote-option-list .vote-option-item .vote-option-number[data-v-87c4e44c]{background-color:var(--main-color);border-radius:50%;color:#fff;font-size:11px;height:14px;margin-right:6px;margin-top:3px;width:14px}.vote-list-box .vote-item .vote-option-list .vote-option-item .tick-icon[data-v-87c4e44c]{display:none;height:14px;margin-right:6px;margin-top:3px;width:14px}.vote-list-box .vote-item .vote-option-list .vote-option-item .vote-option-content[data-v-87c4e44c]{color:#333;font-size:14px;line-height:20px;word-break:break-word}.vote-list-box .vote-item .vote-option-list .vote-option-item .vote-option-progress[data-v-87c4e44c]{display:none;height:5px;justify-content:flex-end;margin-top:5px;width:100%}.vote-list-box .vote-item .vote-option-list .vote-option-item .vote-option-progress .vote-option-progress-step[data-v-87c4e44c]{background-color:var(--main-color);border-radius:66px;height:4px;margin-right:14px;opacity:.49039}.vote-list-box .vote-item .vote-option-list .vote-option-item .vote-option-progress .vote-option-progress-value[data-v-87c4e44c]{color:var(--main-color);font-size:12px;line-height:20px}.vote-list-box .vote-item .vote-data[data-v-87c4e44c]{color:#aaa;font-size:12px;justify-content:space-between;line-height:22px}.vote-list-box .vote-item .vote-data .vote-data-item[data-v-87c4e44c]{margin-left:16px}.vote-list-box .vote-item .vote-data .vote-data-item .vote-data-icon[data-v-87c4e44c]{cursor:pointer;width:13px}.empty-box[data-v-87c4e44c]{background-color:#fff;border-radius:16px;height:540px;margin:0 auto;width:1200px}";
|
||||
|
||||
const indexStyles_fIPpQadM = [index_vue_vue_type_style_index_0_scoped_87c4e44c_lang, index_vue_vue_type_style_index_0_scoped_87c4e44c_lang];
|
||||
|
||||
export { indexStyles_fIPpQadM as default };
|
||||
//# sourceMappingURL=index-styles.fIPpQadM.mjs.map
|
||||
@@ -1 +0,0 @@
|
||||
{"version":3,"file":"index-styles.fIPpQadM.mjs","sources":["../../../../../.nuxt/dist/server/_nuxt/index-styles-1.mjs-NLr4vj2b.js","../../../../../.nuxt/dist/server/_nuxt/index-styles.fIPpQadM.mjs"],"sourcesContent":null,"names":["style_0","style_1"],"mappings":"AAAA,MAAM,qDAAwD,GAAA,ikIAAA;;ACE9D,6BAAe,CAACA,qDAAO,EAAEC,qDAAO;;;;"}
|
||||
@@ -0,0 +1,6 @@
|
||||
const index_vue_vue_type_style_index_0_scoped_4b94e687_lang = ".vote-item[data-v-4b94e687]{--main-color:#2cbae6;--bg-color:#eaf5f8;--bc-color:#d5ebf2}.search-info[data-v-4b94e687]{color:#72db86;font-size:14px;margin:0 auto 31px;width:1200px}.search-info .round-fork-fork[data-v-4b94e687]{cursor:pointer;height:14px;margin-left:8px;width:14px}.search-info .halving-line[data-v-4b94e687]{background-color:#d7d7d7;height:13px;margin:0 20px;width:1px}.search-info .search-result[data-v-4b94e687]{color:#7f7f7f;font-size:13px}.vote-list-box[data-v-4b94e687]{display:flex;flex-wrap:wrap;margin:0 auto;min-height:100vh;width:1200px}.vote-list-box.firstdata .vote-item[data-v-4b94e687]{margin-right:22.5px}.vote-list-box.firstdata .vote-item[data-v-4b94e687]:nth-of-type(3n){margin-right:0}.vote-list-box .vote-item[data-v-4b94e687]{background-color:#fff;border-radius:16px;cursor:pointer;margin-bottom:20px;padding:25px 22px 24px;width:385px}.vote-list-box .vote-item[data-v-4b94e687]:hover{box-shadow:0 0 5px 2px hsla(0,0%,85%,.48)}.vote-list-box .vote-item.isvote .vote-option-list .vote-option-item .vote-option-progress[data-v-4b94e687]{display:flex}.vote-list-box .vote-item .vote-title[data-v-4b94e687]{color:#000;font-size:16px;font-style:normal;font-weight:650;line-height:26px;margin-bottom:10px;word-break:break-all}.vote-list-box .vote-item .vote-title .vote-state[data-v-4b94e687]{align-items:center;background-color:var(--main-color);border-radius:25px;color:#fff;display:inline-flex;font-size:12px;height:20px;justify-content:center;margin-right:6px;padding:0 6px}.vote-list-box .vote-item .vote-title .vote-state.finish[data-v-4b94e687]{background:#000;color:#fff}.vote-list-box .vote-item .vote-explain[data-v-4b94e687]{color:#555;font-size:13px;line-height:22px;margin-bottom:14px;word-break:break-word}.vote-list-box .vote-item .vote-option-list[data-v-4b94e687]{background-color:var(--bg-color);border:1px solid var(--bc-color);border-radius:13px;flex-direction:column;margin-bottom:16px;padding:8px 0;width:340px}.vote-list-box .vote-item .vote-option-list .vote-option-item[data-v-4b94e687]{flex-direction:column;padding:10px 15px}.vote-list-box .vote-item .vote-option-list .vote-option-item[data-v-4b94e687]:not(:last-of-type){border-bottom:1px solid var(--bc-color)}.vote-list-box .vote-item .vote-option-list .vote-option-item.pitch .vote-option-number[data-v-4b94e687]{display:none}.vote-list-box .vote-item .vote-option-list .vote-option-item.pitch .tick-icon[data-v-4b94e687]{display:block}.vote-list-box .vote-item .vote-option-list .vote-option-item.pitch .vote-option-content[data-v-4b94e687]{color:#000;font-weight:650}.vote-list-box .vote-item .vote-option-list .vote-option-item .vote-option-number[data-v-4b94e687]{background-color:var(--main-color);border-radius:50%;color:#fff;font-size:11px;height:14px;margin-right:6px;margin-top:3px;width:14px}.vote-list-box .vote-item .vote-option-list .vote-option-item .tick-icon[data-v-4b94e687]{display:none;height:14px;margin-right:6px;margin-top:3px;width:14px}.vote-list-box .vote-item .vote-option-list .vote-option-item .vote-option-content[data-v-4b94e687]{color:#333;font-size:14px;line-height:20px;word-break:break-word}.vote-list-box .vote-item .vote-option-list .vote-option-item .vote-option-progress[data-v-4b94e687]{display:none;height:5px;justify-content:flex-end;margin-top:5px;width:100%}.vote-list-box .vote-item .vote-option-list .vote-option-item .vote-option-progress .vote-option-progress-step[data-v-4b94e687]{background-color:var(--main-color);border-radius:66px;height:4px;margin-right:14px;opacity:.49039}.vote-list-box .vote-item .vote-option-list .vote-option-item .vote-option-progress .vote-option-progress-value[data-v-4b94e687]{color:var(--main-color);font-size:12px;line-height:20px}.vote-list-box .vote-item .vote-data[data-v-4b94e687]{color:#aaa;font-size:12px;justify-content:space-between;line-height:22px}.vote-list-box .vote-item .vote-data .vote-data-item[data-v-4b94e687]{margin-left:16px}.vote-list-box .vote-item .vote-data .vote-data-item .vote-data-icon[data-v-4b94e687]{cursor:pointer;width:13px}.empty-box[data-v-4b94e687]{background-color:#fff;border-radius:16px;height:540px;margin:0 auto;width:1200px}";
|
||||
|
||||
const indexStyles_k7glAHoc = [index_vue_vue_type_style_index_0_scoped_4b94e687_lang, index_vue_vue_type_style_index_0_scoped_4b94e687_lang];
|
||||
|
||||
export { indexStyles_k7glAHoc as default };
|
||||
//# sourceMappingURL=index-styles.k7glAHoc.mjs.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"index-styles.k7glAHoc.mjs","sources":["../../../../../.nuxt/dist/server/_nuxt/index-styles-1.mjs-1dR0rxuO.js","../../../../../.nuxt/dist/server/_nuxt/index-styles.k7glAHoc.mjs"],"sourcesContent":null,"names":["style_0","style_1"],"mappings":"AAAA,MAAM,qDAAwD,GAAA,ikIAAA;;ACE9D,6BAAe,CAACA,qDAAO,EAAEC,qDAAO;;;;"}
|
||||
Reference in New Issue
Block a user