修改列表样式前

This commit is contained in:
A1300399510
2023-12-15 17:45:53 +08:00
parent 9648d0792b
commit 8fa746564b
22 changed files with 212 additions and 120 deletions

View File

@@ -159,7 +159,7 @@ const client_manifest = {
"prefetch": true,
"preload": true,
"css": [],
"file": "error-404.76387355.js",
"file": "error-404.eb99afb2.js",
"imports": [
"node_modules/nuxt/dist/app/entry.js"
],
@@ -185,7 +185,7 @@ const client_manifest = {
"prefetch": true,
"preload": true,
"css": [],
"file": "error-500.96a36d5b.js",
"file": "error-500.a72ffb41.js",
"imports": [
"node_modules/nuxt/dist/app/entry.js"
],
@@ -202,7 +202,7 @@ const client_manifest = {
"resourceType": "style",
"prefetch": true,
"preload": true,
"file": "entry.81c43f24.css",
"file": "entry.d0051705.css",
"src": "node_modules/nuxt/dist/app/entry.css"
},
"node_modules/nuxt/dist/app/entry.js": {
@@ -234,19 +234,19 @@ const client_manifest = {
"triangle-icon.c39ff2e7.svg"
],
"css": [
"entry.81c43f24.css"
"entry.d0051705.css"
],
"dynamicImports": [
"node_modules/@nuxt/ui-templates/dist/templates/error-404.vue",
"node_modules/@nuxt/ui-templates/dist/templates/error-500.vue"
],
"file": "entry.04826565.js",
"file": "entry.7cbcb895.js",
"isEntry": true,
"src": "node_modules/nuxt/dist/app/entry.js",
"_globalCSS": true
},
"entry.81c43f24.css": {
"file": "entry.81c43f24.css",
"entry.d0051705.css": {
"file": "entry.d0051705.css",
"resourceType": "style",
"prefetch": true,
"preload": true

View File

@@ -1149,6 +1149,7 @@ const _sfc_main$2 = {
page = 1;
list.value = [];
type.value = "list";
openBottom();
pitchIndex.value = null;
replaceState({
keyword: keyword.value
@@ -1173,6 +1174,7 @@ const _sfc_main$2 = {
page = 1;
list.value = [];
type.value = "list";
openBottom();
pitchIndex.value = null;
getList();
};
@@ -1255,6 +1257,7 @@ const _sfc_main$2 = {
$ajax("/api/details", { uniqid }).then((res) => {
if (res.code != 200) {
type.value = "list";
openBottom();
pitchIndex.value = null;
return;
}
@@ -1266,6 +1269,7 @@ const _sfc_main$2 = {
detailsToken = data["token"] || "";
detailShare.value = data["share"] || {};
type.value = "details";
closeBottom();
if (index !== null && index !== void 0)
cut(index);
else
@@ -1278,13 +1282,22 @@ const _sfc_main$2 = {
openIAnswer();
seo.value = data.seo;
yourAnswer.value = {
// 初始化 我来回答的框
text: "",
anonymous: 0
};
detailsAreaScrollTop();
}).finally(() => {
detailLoading.value = false;
});
};
const detailsAreaScrollTop = () => {
let detailsArea = document.querySelector(".details-area-box");
detailsArea.scrollTo({
top: 0,
behavior: "smooth"
});
};
const calculateListIndex = (info, uniqid) => {
let targetList = [...list.value];
if (targetList.length == 0 && isSearchMode.value == false) {
@@ -1540,6 +1553,7 @@ const _sfc_main$2 = {
},
...data
};
targetAnswerList[index]["commentList"][ind]["child"][i]["commentInput"] = "";
targetAnswerList[index]["commentList"][ind]["child"].unshift(targetData);
targetAnswerList[index]["commentList"][ind]["childnum"]++;
} else if (ind != null) {
@@ -1554,6 +1568,7 @@ const _sfc_main$2 = {
};
targetAnswerList[index]["commentList"][ind]["child"].unshift(targetData);
targetAnswerList[index]["commentList"][ind]["childnum"]++;
targetAnswerList[index]["commentList"][ind]["commentInput"] = "";
} else {
let targetData = {
id: data["commentid"],
@@ -1566,6 +1581,7 @@ const _sfc_main$2 = {
};
targetAnswerList[index]["commentList"].unshift(targetData);
targetAnswerList[index]["commentCount"]++;
targetAnswerList[index]["commentInput"] = "";
}
targetAnswerList[index]["commentnum"] = data["count"];
closeAnswerCommentsChild();
@@ -2026,6 +2042,7 @@ const _sfc_main$2 = {
};
const closeDetailMode = () => {
type.value = "list";
openBottom();
pitchIndex.value = null;
seo.value = {};
};
@@ -2168,6 +2185,7 @@ const _sfc_main$2 = {
page = 1;
list.value = [];
type.value = "list";
openBottom();
pitchIndex.value = null;
getList();
};
@@ -2323,6 +2341,20 @@ const _sfc_main$2 = {
link.target = "_blank";
link.click();
};
const closeBottom = () => {
const footer = document.querySelector("body .index-footer");
if (footer)
footer.style.display = "none";
else
setTimeout(() => closeBottom(), 1e3);
};
const openBottom = () => {
const footer = document.querySelector("body .index-footer");
if (footer)
footer.style.display = "block";
else
setTimeout(() => openBottom(), 1e3);
};
return {
bottomTpsStyle,
TAHomePage,
@@ -2624,7 +2656,7 @@ function _sfc_ssrRender(_ctx, _push, _parent, _attrs, $props, $setup, $data, $op
} else {
_push(`<img class="operate-icon operate-like-icon"${ssrRenderAttr("src", _imports_25)}>`);
}
_push(` ${ssrInterpolate(item["likenum"])}</div><div class="${ssrRenderClass([{ commentnum: item["commentState"] }, "operate-item flexacenter"])}"><img class="operate-icon operate-comment-icon"${ssrRenderAttr("src", _imports_26)}> ${ssrInterpolate(item["commentnum"])}</div><div class="operate-item flexacenter">`);
_push(` ${ssrInterpolate(item["likenum"])}</div><div class="${ssrRenderClass([{ commentnum: item["commentState"] }, "operate-item flexacenter"])}"><img class="operate-icon operate-comment-icon"${ssrRenderAttr("src", _imports_26)}>${ssrInterpolate(item["commentnum"])}</div><div class="operate-item flexacenter">`);
if (item["iscollection"] == 1) {
_push(`<img class="operate-icon operate-collect-icon"${ssrRenderAttr("src", _imports_19)}>`);
} else {
@@ -2705,7 +2737,7 @@ function _sfc_ssrRender(_ctx, _push, _parent, _attrs, $props, $setup, $data, $op
_push(`</div></div>`);
});
_push(`<!--]-->`);
if (it["childnum"] >= 3 && it["childnum"] > it["child"].length) {
if (it["childnum"] > it["child"].length) {
_push(`<div class="comments-also flexacenter"><div class="">还有${ssrInterpolate(it["childnum"] - 1)}条回复</div><img class="also-icon"${ssrRenderAttr("src", _imports_30)}></div>`);
} else {
_push(`<!---->`);
@@ -2802,7 +2834,7 @@ function _sfc_ssrRender(_ctx, _push, _parent, _attrs, $props, $setup, $data, $op
ssrRenderList($setup.myAnswerList, (item, index) => {
_push(`<div class="item flexflex"><div class="icon a flexcenter">A</div><div class="centre flexflex flex1"><div class="info flexacenter"><div class="name">${ssrInterpolate(item["nickname"])}</div><div class="time">${ssrInterpolate($setup.handleDate(item["publicationdate"]))}</div></div><div class="titletitle ellipsis">${item["content"]}</div><div class="text ellipsis">提问:${ssrInterpolate(item["title"])}</div></div><div class="operate-box flexacenter"><div class="state-box flexacenter"><div class="text">${ssrInterpolate(item["anonymous"] == 0 ? "公开" : "匿名")}</div><img class="arrows"${ssrRenderAttr("src", _imports_35)}>`);
if (item["popupState"]) {
_push(`<div class="state-popup flexflex"><div class="state-popup-mask"></div><div class="${ssrRenderClass([{ pitch: item["anonymous"] == 0 }, "state-popup-item flexacenter flex1"])}"><div class="">公开发表</div><img class="state-popup-icon"${ssrRenderAttr("src", _imports_36)}></div><div class="${ssrRenderClass([{ pitch: item["anonymous"] == 1 }, "state-popup-item flexacenter flex1"])}"><div class="">匿名发表</div><img class="state-popup-icon"${ssrRenderAttr("src", _imports_36)}></div></div>`);
_push(`<div class="state-popup flexflex"><div class="${ssrRenderClass([{ pitch: item["anonymous"] == 0 }, "state-popup-item flexacenter flex1"])}"><div class="">公开发表</div><img class="state-popup-icon"${ssrRenderAttr("src", _imports_36)}></div><div class="${ssrRenderClass([{ pitch: item["anonymous"] == 1 }, "state-popup-item flexacenter flex1"])}"><div class="">匿名发表</div><img class="state-popup-icon"${ssrRenderAttr("src", _imports_36)}></div></div>`);
} else {
_push(`<!---->`);
}

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
{"version":3,"file":"entry-styles.01300843.mjs","sources":["../../../../../.nuxt/dist/server/static/entry-styles-1.mjs-0949f21b.js","../../../../../.nuxt/dist/server/static/entry-styles.01300843.mjs"],"sourcesContent":null,"names":["__buildAssetsURL","style_0"],"mappings":";;;;;;;;;;;;;;;;AAAA,MAAA,mCAAA,GAAA,2pMAAA,GAAAA,cAAA,CAAA,4BAAA,CAAA,GAAA,05rCAAA;;ACCA,6BAAe,CAACC,mCAAO;;;;"}

File diff suppressed because one or more lines are too long

View File

@@ -1 +0,0 @@
{"version":3,"file":"entry-styles.5b5f51ab.mjs","sources":["../../../../../.nuxt/dist/server/static/entry-styles-1.mjs-808099d5.js","../../../../../.nuxt/dist/server/static/entry-styles.5b5f51ab.mjs"],"sourcesContent":null,"names":["__buildAssetsURL","style_0"],"mappings":";;;;;;;;;;;;;;;;AAAA,MAAA,mCAAA,GAAA,0pMAAA,GAAAA,cAAA,CAAA,4BAAA,CAAA,GAAA,2rrCAAA;;ACCA,6BAAe,CAACC,mCAAO;;;;"}

View File

@@ -1,8 +1,8 @@
const interopDefault = r => r.default || r || [];
const styles = {
"node_modules/nuxt/dist/app/entry.js": () => import('./static/entry-styles.5b5f51ab.mjs').then(interopDefault),
"node_modules/@nuxt/ui-templates/dist/templates/error-500.vue": () => import('./static/error-500-styles.cf4b3e80.mjs').then(interopDefault),
"node_modules/@nuxt/ui-templates/dist/templates/error-404.vue": () => import('./static/error-404-styles.1e0dde27.mjs').then(interopDefault)
"node_modules/nuxt/dist/app/entry.js": () => import('./static/entry-styles.01300843.mjs').then(interopDefault),
"node_modules/@nuxt/ui-templates/dist/templates/error-404.vue": () => import('./static/error-404-styles.1e0dde27.mjs').then(interopDefault),
"node_modules/@nuxt/ui-templates/dist/templates/error-500.vue": () => import('./static/error-500-styles.cf4b3e80.mjs').then(interopDefault)
};
export { styles as default };

View File

@@ -3059,7 +3059,7 @@ function klona(x) {
const inlineAppConfig = {
"nuxt": {
"buildId": "d85790b1-872e-48b7-8875-762f51931e7d"
"buildId": "1e6a2d4e-548a-428c-ad50-9848287242f5"
}
};
@@ -4949,205 +4949,205 @@ const assets = {
"/static/add-icon.0b0b5313.svg": {
"type": "image/svg+xml",
"etag": "\"d67-gajxuGcy6aHIeWAbO0RazX03p90\"",
"mtime": "2023-12-15T03:28:24.425Z",
"mtime": "2023-12-15T09:06:20.498Z",
"size": 3431,
"path": "../public/static/add-icon.0b0b5313.svg"
},
"/static/arrows-icon.271dd0d3.svg": {
"type": "image/svg+xml",
"etag": "\"5a0-yAit7q5lcKJMd35iOMMifZv2uno\"",
"mtime": "2023-12-15T03:28:24.426Z",
"mtime": "2023-12-15T09:06:20.496Z",
"size": 1440,
"path": "../public/static/arrows-icon.271dd0d3.svg"
},
"/static/close-icon.86743366.svg": {
"type": "image/svg+xml",
"etag": "\"2d4-QYrulZl33jopLCT37UdJfnzXOVg\"",
"mtime": "2023-12-15T03:28:24.426Z",
"mtime": "2023-12-15T09:06:20.498Z",
"size": 724,
"path": "../public/static/close-icon.86743366.svg"
},
"/static/collect-icon-colours.6d2ade7f.svg": {
"type": "image/svg+xml",
"etag": "\"7ab-av9D1DgxgD5cvY5wd30haD7c1q0\"",
"mtime": "2023-12-15T03:28:24.426Z",
"mtime": "2023-12-15T09:06:20.498Z",
"size": 1963,
"path": "../public/static/collect-icon-colours.6d2ade7f.svg"
},
"/static/comment-icon-gray.2c8779f9.svg": {
"type": "image/svg+xml",
"etag": "\"816-HEGvNjvS0TeA/3uJweilvZfCqlk\"",
"mtime": "2023-12-15T03:28:24.426Z",
"mtime": "2023-12-15T09:06:20.498Z",
"size": 2070,
"path": "../public/static/comment-icon-gray.2c8779f9.svg"
},
"/static/delete-icon.4d386dce.svg": {
"type": "image/svg+xml",
"etag": "\"17fe-RGKa0+MaUqOqlbPlXlig67fGkaY\"",
"mtime": "2023-12-15T03:28:24.423Z",
"mtime": "2023-12-15T09:06:20.499Z",
"size": 6142,
"path": "../public/static/delete-icon.4d386dce.svg"
},
"/static/dot-gray.86cdd7b5.svg": {
"type": "image/svg+xml",
"etag": "\"2af-sBMsuPZbsh28jzlFWO9lVYMVDk8\"",
"mtime": "2023-12-15T03:28:24.426Z",
"mtime": "2023-12-15T09:06:20.498Z",
"size": 687,
"path": "../public/static/dot-gray.86cdd7b5.svg"
},
"/static/dot-yellow.4b5e135b.svg": {
"type": "image/svg+xml",
"etag": "\"2af-6L7YsWhGTHBB6NqQztB/l2OFRfE\"",
"mtime": "2023-12-15T03:28:24.425Z",
"mtime": "2023-12-15T09:06:20.498Z",
"size": 687,
"path": "../public/static/dot-yellow.4b5e135b.svg"
},
"/static/dot.1026a040.svg": {
"type": "image/svg+xml",
"etag": "\"217-dx6xqUT4D9pCoKc6nr20aXeJQXQ\"",
"mtime": "2023-12-15T03:28:24.425Z",
"mtime": "2023-12-15T09:06:20.498Z",
"size": 535,
"path": "../public/static/dot.1026a040.svg"
},
"/static/edit-icon-white.29b27582.svg": {
"type": "image/svg+xml",
"etag": "\"8be-EnEF3CQI46JkMNAXbPf3H6T7pzU\"",
"mtime": "2023-12-15T03:28:24.426Z",
"mtime": "2023-12-15T09:06:20.498Z",
"size": 2238,
"path": "../public/static/edit-icon-white.29b27582.svg"
},
"/static/empty-icon.24a01ae2.svg": {
"type": "image/svg+xml",
"etag": "\"d028-Our2UxxUiciRSduORd8JZCt5Prw\"",
"mtime": "2023-12-15T03:28:24.426Z",
"mtime": "2023-12-15T09:06:20.498Z",
"size": 53288,
"path": "../public/static/empty-icon.24a01ae2.svg"
},
"/static/entry.04826565.js": {
"/static/entry.7cbcb895.js": {
"type": "application/javascript",
"etag": "\"3ad16-vO19lr+1fd+smbwk0KKPWuQsavI\"",
"mtime": "2023-12-15T03:28:24.428Z",
"size": 240918,
"path": "../public/static/entry.04826565.js"
"etag": "\"3ae6e-rdRTMu3GqcKv8DlFipBPR16yEuA\"",
"mtime": "2023-12-15T09:06:20.500Z",
"size": 241262,
"path": "../public/static/entry.7cbcb895.js"
},
"/static/entry.81c43f24.css": {
"/static/entry.d0051705.css": {
"type": "text/css; charset=utf-8",
"etag": "\"ae41-qV/deKiByhd6hGEQqOT5362FQr0\"",
"mtime": "2023-12-15T03:28:24.428Z",
"size": 44609,
"path": "../public/static/entry.81c43f24.css"
},
"/static/error-404.76387355.js": {
"type": "application/javascript",
"etag": "\"18de-+9ECWB0ps5SOzYATA0Ab1UiRVTs\"",
"mtime": "2023-12-15T03:28:24.428Z",
"size": 6366,
"path": "../public/static/error-404.76387355.js"
"etag": "\"af21-CGiztCz4hW+9/5WvV+/bg9wGCGE\"",
"mtime": "2023-12-15T09:06:20.500Z",
"size": 44833,
"path": "../public/static/entry.d0051705.css"
},
"/static/error-404.7fc72018.css": {
"type": "text/css; charset=utf-8",
"etag": "\"e2e-iNt1cqPQ0WDudfCTZVQd31BeRGs\"",
"mtime": "2023-12-15T03:28:24.428Z",
"mtime": "2023-12-15T09:06:20.500Z",
"size": 3630,
"path": "../public/static/error-404.7fc72018.css"
},
"/static/error-500.96a36d5b.js": {
"/static/error-404.eb99afb2.js": {
"type": "application/javascript",
"etag": "\"756-9rnqM424/KisrnYZ5onbH6IapzQ\"",
"mtime": "2023-12-15T03:28:24.428Z",
"etag": "\"18de-qcXEhgABD3i1NKdXbqS2fsR7wZY\"",
"mtime": "2023-12-15T09:06:20.500Z",
"size": 6366,
"path": "../public/static/error-404.eb99afb2.js"
},
"/static/error-500.a72ffb41.js": {
"type": "application/javascript",
"etag": "\"756-a7AXATacmK9r/Tkrpmzta0evGas\"",
"mtime": "2023-12-15T09:06:20.500Z",
"size": 1878,
"path": "../public/static/error-500.96a36d5b.js"
"path": "../public/static/error-500.a72ffb41.js"
},
"/static/error-500.c5df6088.css": {
"type": "text/css; charset=utf-8",
"etag": "\"79e-ByRo+49BgcevWdRjJy3CMx2IA5k\"",
"mtime": "2023-12-15T03:28:24.428Z",
"mtime": "2023-12-15T09:06:20.500Z",
"size": 1950,
"path": "../public/static/error-500.c5df6088.css"
},
"/static/issue-bj.44adad8c.svg": {
"type": "image/svg+xml",
"etag": "\"926-lK6rrraYIC+9Yxyy0subzOK8XpE\"",
"mtime": "2023-12-15T03:28:24.426Z",
"mtime": "2023-12-15T09:06:20.498Z",
"size": 2342,
"path": "../public/static/issue-bj.44adad8c.svg"
},
"/static/logo.6622f82d.png": {
"type": "image/png",
"etag": "\"843f-FSXGFGigIHmtzjdcQzuMz/a7E+o\"",
"mtime": "2023-12-15T03:28:24.425Z",
"mtime": "2023-12-15T09:06:20.498Z",
"size": 33855,
"path": "../public/static/logo.6622f82d.png"
},
"/static/menu-icon-gray.d61f02b1.svg": {
"type": "image/svg+xml",
"etag": "\"6de-kmXhltPHfF4W1gmV7wT4aZCZ6gg\"",
"mtime": "2023-12-15T03:28:24.426Z",
"mtime": "2023-12-15T09:06:20.498Z",
"size": 1758,
"path": "../public/static/menu-icon-gray.d61f02b1.svg"
},
"/static/QRCode-icon.a105d5fc.svg": {
"type": "image/svg+xml",
"etag": "\"9c1-qGg9jZ5wmHJGzh2A00nHIGWHMh4\"",
"mtime": "2023-12-15T03:28:24.426Z",
"mtime": "2023-12-15T09:06:20.498Z",
"size": 2497,
"path": "../public/static/QRCode-icon.a105d5fc.svg"
},
"/static/tick-no.179037b3.svg": {
"type": "image/svg+xml",
"etag": "\"1ea-YISAWqJD56jxoQT8N812fDJfkMw\"",
"mtime": "2023-12-15T03:28:24.426Z",
"mtime": "2023-12-15T09:06:20.498Z",
"size": 490,
"path": "../public/static/tick-no.179037b3.svg"
},
"/static/tick-option.e092d22f.svg": {
"type": "image/svg+xml",
"etag": "\"29a-UVjuq3WHs6mhu1KGQ7gQmJH2Bc4\"",
"mtime": "2023-12-15T03:28:24.426Z",
"mtime": "2023-12-15T09:06:20.498Z",
"size": 666,
"path": "../public/static/tick-option.e092d22f.svg"
},
"/static/tick-orange.233abc69.svg": {
"type": "image/svg+xml",
"etag": "\"60a-VrP9K+TQp6JbNcrU5k1Dor/Kq/E\"",
"mtime": "2023-12-15T03:28:24.426Z",
"mtime": "2023-12-15T09:06:20.499Z",
"size": 1546,
"path": "../public/static/tick-orange.233abc69.svg"
},
"/static/title.98892974.png": {
"type": "image/png",
"etag": "\"1723-0OwkVass/2nFB99dRT4w0sPUvI0\"",
"mtime": "2023-12-15T03:28:24.426Z",
"mtime": "2023-12-15T09:06:20.498Z",
"size": 5923,
"path": "../public/static/title.98892974.png"
},
"/static/triangle-icon.c39ff2e7.svg": {
"type": "image/svg+xml",
"etag": "\"446-ylQ81DOJ3joSbsS9atyrW6pZsBY\"",
"mtime": "2023-12-15T03:28:24.427Z",
"mtime": "2023-12-15T09:06:20.499Z",
"size": 1094,
"path": "../public/static/triangle-icon.c39ff2e7.svg"
},
"/static/view-icon.da7fef35.svg": {
"type": "image/svg+xml",
"etag": "\"f39-5Jwx14wB0jgB0Du25KRZbkEEXvI\"",
"mtime": "2023-12-15T03:28:24.426Z",
"mtime": "2023-12-15T09:06:20.498Z",
"size": 3897,
"path": "../public/static/view-icon.da7fef35.svg"
},
"/static/builds/latest.json": {
"type": "application/json",
"etag": "\"47-06awgpUfBbM9kIIk5CouirCgKMg\"",
"mtime": "2023-12-15T03:28:25.797Z",
"etag": "\"47-enxQSI3dmkBtXQL0IPk/zNDhlH0\"",
"mtime": "2023-12-15T09:06:21.765Z",
"size": 71,
"path": "../public/static/builds/latest.json"
},
"/static/builds/meta/d85790b1-872e-48b7-8875-762f51931e7d.json": {
"/static/builds/meta/1e6a2d4e-548a-428c-ad50-9848287242f5.json": {
"type": "application/json",
"etag": "\"8b-yy5QKMFkOsm1x/tnYDEDpxbF0wY\"",
"mtime": "2023-12-15T03:28:25.798Z",
"etag": "\"8b-uBiV7j+Wbkl8F6q68tYvD8raf2o\"",
"mtime": "2023-12-15T09:06:21.765Z",
"size": 139,
"path": "../public/static/builds/meta/d85790b1-872e-48b7-8875-762f51931e7d.json"
"path": "../public/static/builds/meta/1e6a2d4e-548a-428c-ad50-9848287242f5.json"
}
};