no message

This commit is contained in:
A1300399510
2023-12-21 12:23:29 +08:00
parent 5887b7f03f
commit 4c41491e79
11 changed files with 184 additions and 202 deletions

View File

@@ -159,7 +159,7 @@ const client_manifest = {
"prefetch": true,
"preload": true,
"css": [],
"file": "error-404.8db08ec7.js",
"file": "error-404.ae43159a.js",
"imports": [
"node_modules/nuxt/dist/app/entry.js"
],
@@ -185,7 +185,7 @@ const client_manifest = {
"prefetch": true,
"preload": true,
"css": [],
"file": "error-500.90688882.js",
"file": "error-500.9272d5c4.js",
"imports": [
"node_modules/nuxt/dist/app/entry.js"
],
@@ -240,7 +240,7 @@ const client_manifest = {
"node_modules/@nuxt/ui-templates/dist/templates/error-404.vue",
"node_modules/@nuxt/ui-templates/dist/templates/error-500.vue"
],
"file": "entry.b76b36bd.js",
"file": "entry.cff8be19.js",
"isEntry": true,
"src": "node_modules/nuxt/dist/app/entry.js",
"_globalCSS": true

View File

@@ -1133,7 +1133,6 @@ const _sfc_main$2 = {
});
};
let isNeedLogin = ref(true);
const goLogin = () => ajax_login();
const route = useRoute();
let detailsInfoDataVuex = useState("detailsInfoData", () => {
});
@@ -1145,9 +1144,7 @@ const _sfc_main$2 = {
window.removeEventListener("scroll", handleScroll);
});
const getCurrentUrl = () => {
const params = route.query;
let url = `${window.location["origin"]}?uniqid=${params["uniqid"] || ""}`;
return url;
return `${window.location["origin"]}?uniqid=${detailsInfo.value["uniqid"] || ""}`;
};
let myCount = ref({});
const getUserData = (key) => {
@@ -1166,10 +1163,7 @@ const _sfc_main$2 = {
historicalSearchList.value.unshift(keyword.value);
historicalSearchList.value = [...new Set(historicalSearchList.value)];
historicalSearchList.value = historicalSearchList.value.slice(0, 10);
localStorage.setItem(
"historical-Search",
JSON.stringify(historicalSearchList.value)
);
localStorage.setItem("historical-Search", JSON.stringify(historicalSearchList.value));
};
const searchClick = () => {
setHistoricalSearchList();
@@ -1246,7 +1240,7 @@ const _sfc_main$2 = {
zeroreply: zeroreply.value
}).then((res) => {
if (res.code == 401)
goLogin();
;
if (res.code != 200)
return;
let data = res.data;
@@ -1276,6 +1270,8 @@ const _sfc_main$2 = {
isSearchMode.value = false;
if (type.value == "details")
handleInsertRelatedlist();
if (list.value.length == 0)
type.value = "list";
}).finally(() => loading.value = false);
};
let typeList = ref([]);
@@ -1304,6 +1300,7 @@ const _sfc_main$2 = {
return;
}
let data = res.data;
data["info"]["uniqid"] = uniqid;
detailsInfo.value = data["info"] || {};
detailsIsanswered.value = data["isanswered"] || 0;
detailsIscollection.value = data["iscollection"] || 0;
@@ -1401,7 +1398,6 @@ const _sfc_main$2 = {
};
const operateLike = (token, index) => {
if (isNeedLogin.value) {
goLogin();
return;
}
$ajax("/api/operate/like", { token }).then((res) => {
@@ -1415,7 +1411,6 @@ const _sfc_main$2 = {
};
const operateCollect = (token = detailsToken, index) => {
if (isNeedLogin.value) {
goLogin();
return;
}
$ajax("/api/operate/collect", {
@@ -1445,7 +1440,6 @@ const _sfc_main$2 = {
let IAnswerInfo = ref({});
const openIAnswer = (index, type2) => {
if (isNeedLogin.value) {
goLogin();
return;
}
if (index == null) {
@@ -1487,7 +1481,6 @@ const _sfc_main$2 = {
};
const submitAnswer = (type2) => {
if (isNeedLogin.value) {
goLogin();
return;
}
let questionTextarea = null;
@@ -1567,7 +1560,6 @@ const _sfc_main$2 = {
};
const submitAnswerComments = (index, ind, i) => {
if (isNeedLogin.value) {
goLogin();
return;
}
const targetAnswerList = [...answerList.value];
@@ -1639,7 +1631,6 @@ const _sfc_main$2 = {
};
const operateAnswerCommentsLike = (token, index, ind, i) => {
if (isNeedLogin.value) {
goLogin();
return;
}
$ajax("/api/comment/like", {
@@ -1662,7 +1653,6 @@ const _sfc_main$2 = {
};
const openAnswerCommentsChild = (index, ind, i) => {
if (isNeedLogin.value) {
goLogin();
return;
}
closeAnswerCommentsChild();
@@ -1712,7 +1702,6 @@ const _sfc_main$2 = {
let myType = ref("");
const handleMy = (key) => {
if (isNeedLogin.value) {
goLogin();
return;
}
if (Object.keys(myCount.value).length === 0) {
@@ -1920,7 +1909,6 @@ const _sfc_main$2 = {
});
const questionsInit = () => {
if (isNeedLogin.value) {
goLogin();
return;
}
$ajax("/api/publish/questions").then((res) => {
@@ -1941,7 +1929,6 @@ const _sfc_main$2 = {
};
const postingIssue = () => {
if (isNeedLogin.value) {
goLogin();
return;
}
$ajax("/api/publish/questionsSubmit", questionsObj.value).then((res) => {
@@ -2137,9 +2124,7 @@ const _sfc_main$2 = {
uploadImg(base64).then((res) => {
let questionTextarea = null;
if (type2 == "you")
questionTextarea = document.querySelector(
".your-answer-textarea"
);
questionTextarea = document.querySelector(".your-answer-textarea");
else
questionTextarea = document.querySelector(".question-textarea");
let imgNode = document.createElement("img");
@@ -2265,7 +2250,7 @@ const _sfc_main$2 = {
inTheEndState.value = temporaryData["inTheEndState"];
list.value = JSON.parse(JSON.stringify(temporaryData.listlist));
myModelState.value = false;
if (pitchIndex.value) {
if (pitchIndex.value !== null && pitchIndex.value !== void 0) {
let uniqid = list.value[pitchIndex.value]["uniqid"];
getDetails(uniqid);
}
@@ -2305,7 +2290,6 @@ const _sfc_main$2 = {
};
const handleMenuState = (index, ind, i) => {
if (isNeedLogin.value) {
goLogin();
return;
}
if (i === void 0)
@@ -2409,6 +2393,7 @@ const _sfc_main$2 = {
await axios.post(baseURL2 + "/api/details", { uniqid: params["uniqid"] }).then((response) => {
let res = response.data;
let data = res.data;
data["info"]["uniqid"] = params["uniqid"];
detailsInfoDataVuex.value = data;
detailsInfo.value = data["info"] || {};
detailsIsanswered.value = data["isanswered"] || 0;
@@ -2458,6 +2443,10 @@ const _sfc_main$2 = {
isSearchMode.value = true;
else
isSearchMode.value = false;
nextTick(() => {
if (list.value.length == 0)
type.value = "list";
});
});
await $ajaxGET("/api/details/relatedlist", { page: 1, limit: 20 }).then((res) => {
if (res.code != 200)
@@ -2520,7 +2509,6 @@ const _sfc_main$2 = {
};
const handleYourAnswer = () => {
if (isNeedLogin.value) {
goLogin();
return;
}
IAnswerInfo.value = { ...yourAnswer.value };
@@ -2533,7 +2521,6 @@ const _sfc_main$2 = {
let isDirectlyListIAnswer = false;
const openListIAnswer = (index) => {
if (isNeedLogin.value) {
goLogin();
return;
}
let targetData = list.value[index];

View File

@@ -3059,7 +3059,7 @@ function klona(x) {
const inlineAppConfig = {
"nuxt": {
"buildId": "898be353-1c7d-4979-9c40-4455eb3d4ab3"
"buildId": "816a9924-aafd-46d2-9b66-fd4675f9f75d"
}
};
@@ -4949,205 +4949,205 @@ const assets = {
"/static/add-icon.0b0b5313.svg": {
"type": "image/svg+xml",
"etag": "\"d67-gajxuGcy6aHIeWAbO0RazX03p90\"",
"mtime": "2023-12-21T03:40:00.367Z",
"mtime": "2023-12-21T04:23:16.421Z",
"size": 3431,
"path": "../public/static/add-icon.0b0b5313.svg"
},
"/static/arrows-icon.271dd0d3.svg": {
"type": "image/svg+xml",
"etag": "\"5a0-yAit7q5lcKJMd35iOMMifZv2uno\"",
"mtime": "2023-12-21T03:40:00.367Z",
"mtime": "2023-12-21T04:23:16.422Z",
"size": 1440,
"path": "../public/static/arrows-icon.271dd0d3.svg"
},
"/static/close-icon.86743366.svg": {
"type": "image/svg+xml",
"etag": "\"2d4-QYrulZl33jopLCT37UdJfnzXOVg\"",
"mtime": "2023-12-21T03:40:00.367Z",
"mtime": "2023-12-21T04:23:16.421Z",
"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-21T03:40:00.367Z",
"mtime": "2023-12-21T04:23:16.421Z",
"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-21T03:40:00.367Z",
"mtime": "2023-12-21T04:23:16.422Z",
"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-21T03:40:00.367Z",
"mtime": "2023-12-21T04:23:16.422Z",
"size": 6142,
"path": "../public/static/delete-icon.4d386dce.svg"
},
"/static/dot-gray.86cdd7b5.svg": {
"type": "image/svg+xml",
"etag": "\"2af-sBMsuPZbsh28jzlFWO9lVYMVDk8\"",
"mtime": "2023-12-21T03:40:00.367Z",
"mtime": "2023-12-21T04:23:16.421Z",
"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-21T03:40:00.367Z",
"mtime": "2023-12-21T04:23:16.421Z",
"size": 687,
"path": "../public/static/dot-yellow.4b5e135b.svg"
},
"/static/dot.1026a040.svg": {
"type": "image/svg+xml",
"etag": "\"217-dx6xqUT4D9pCoKc6nr20aXeJQXQ\"",
"mtime": "2023-12-21T03:40:00.367Z",
"mtime": "2023-12-21T04:23:16.421Z",
"size": 535,
"path": "../public/static/dot.1026a040.svg"
},
"/static/edit-icon-white.29b27582.svg": {
"type": "image/svg+xml",
"etag": "\"8be-EnEF3CQI46JkMNAXbPf3H6T7pzU\"",
"mtime": "2023-12-21T03:40:00.367Z",
"mtime": "2023-12-21T04:23:16.421Z",
"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-21T03:40:00.367Z",
"mtime": "2023-12-21T04:23:16.421Z",
"size": 53288,
"path": "../public/static/empty-icon.24a01ae2.svg"
},
"/static/entry.3714ddae.css": {
"type": "text/css; charset=utf-8",
"etag": "\"b2ba-BwEkbxO3UqHXJE5hynAxCwyj4TY\"",
"mtime": "2023-12-21T03:40:00.370Z",
"mtime": "2023-12-21T04:23:16.423Z",
"size": 45754,
"path": "../public/static/entry.3714ddae.css"
},
"/static/entry.b76b36bd.js": {
"/static/entry.cff8be19.js": {
"type": "application/javascript",
"etag": "\"3c5d6-fal00k+Y+vTi5+9/nXFHAfHfLZI\"",
"mtime": "2023-12-21T03:40:00.370Z",
"size": 247254,
"path": "../public/static/entry.b76b36bd.js"
"etag": "\"3c6a8-NWtoZRfyqed0zvq+M4gt9bHl0xM\"",
"mtime": "2023-12-21T04:23:16.423Z",
"size": 247464,
"path": "../public/static/entry.cff8be19.js"
},
"/static/error-404.7fc72018.css": {
"type": "text/css; charset=utf-8",
"etag": "\"e2e-iNt1cqPQ0WDudfCTZVQd31BeRGs\"",
"mtime": "2023-12-21T03:40:00.370Z",
"mtime": "2023-12-21T04:23:16.423Z",
"size": 3630,
"path": "../public/static/error-404.7fc72018.css"
},
"/static/error-404.8db08ec7.js": {
"/static/error-404.ae43159a.js": {
"type": "application/javascript",
"etag": "\"18de-ZxS2pgOlsQxWG+lfz/a2/1cU5QU\"",
"mtime": "2023-12-21T03:40:00.370Z",
"etag": "\"18de-+ns5k4vVqwbXvuZ73Z+vFn0XozE\"",
"mtime": "2023-12-21T04:23:16.423Z",
"size": 6366,
"path": "../public/static/error-404.8db08ec7.js"
"path": "../public/static/error-404.ae43159a.js"
},
"/static/error-500.90688882.js": {
"/static/error-500.9272d5c4.js": {
"type": "application/javascript",
"etag": "\"756-VQ6zDf/qO+eFIhPjE7z7nRg9pjE\"",
"mtime": "2023-12-21T03:40:00.370Z",
"etag": "\"756-0s3Ym1JbK977knRE7uge3dxGDhQ\"",
"mtime": "2023-12-21T04:23:16.423Z",
"size": 1878,
"path": "../public/static/error-500.90688882.js"
"path": "../public/static/error-500.9272d5c4.js"
},
"/static/error-500.c5df6088.css": {
"type": "text/css; charset=utf-8",
"etag": "\"79e-ByRo+49BgcevWdRjJy3CMx2IA5k\"",
"mtime": "2023-12-21T03:40:00.370Z",
"mtime": "2023-12-21T04:23:16.423Z",
"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-21T03:40:00.367Z",
"mtime": "2023-12-21T04:23:16.422Z",
"size": 2342,
"path": "../public/static/issue-bj.44adad8c.svg"
},
"/static/logo.6622f82d.png": {
"type": "image/png",
"etag": "\"843f-FSXGFGigIHmtzjdcQzuMz/a7E+o\"",
"mtime": "2023-12-21T03:40:00.365Z",
"mtime": "2023-12-21T04:23:16.419Z",
"size": 33855,
"path": "../public/static/logo.6622f82d.png"
},
"/static/menu-icon-gray.d61f02b1.svg": {
"type": "image/svg+xml",
"etag": "\"6de-kmXhltPHfF4W1gmV7wT4aZCZ6gg\"",
"mtime": "2023-12-21T03:40:00.367Z",
"mtime": "2023-12-21T04:23:16.422Z",
"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-21T03:40:00.367Z",
"mtime": "2023-12-21T04:23:16.422Z",
"size": 2497,
"path": "../public/static/QRCode-icon.a105d5fc.svg"
},
"/static/tick-no.179037b3.svg": {
"type": "image/svg+xml",
"etag": "\"1ea-YISAWqJD56jxoQT8N812fDJfkMw\"",
"mtime": "2023-12-21T03:40:00.367Z",
"mtime": "2023-12-21T04:23:16.422Z",
"size": 490,
"path": "../public/static/tick-no.179037b3.svg"
},
"/static/tick-option.e092d22f.svg": {
"type": "image/svg+xml",
"etag": "\"29a-UVjuq3WHs6mhu1KGQ7gQmJH2Bc4\"",
"mtime": "2023-12-21T03:40:00.367Z",
"mtime": "2023-12-21T04:23:16.422Z",
"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-21T03:40:00.367Z",
"mtime": "2023-12-21T04:23:16.422Z",
"size": 1546,
"path": "../public/static/tick-orange.233abc69.svg"
},
"/static/title.98892974.png": {
"type": "image/png",
"etag": "\"1723-0OwkVass/2nFB99dRT4w0sPUvI0\"",
"mtime": "2023-12-21T03:40:00.367Z",
"mtime": "2023-12-21T04:23:16.421Z",
"size": 5923,
"path": "../public/static/title.98892974.png"
},
"/static/triangle-icon.c39ff2e7.svg": {
"type": "image/svg+xml",
"etag": "\"446-ylQ81DOJ3joSbsS9atyrW6pZsBY\"",
"mtime": "2023-12-21T03:40:00.368Z",
"mtime": "2023-12-21T04:23:16.423Z",
"size": 1094,
"path": "../public/static/triangle-icon.c39ff2e7.svg"
},
"/static/view-icon.da7fef35.svg": {
"type": "image/svg+xml",
"etag": "\"f39-5Jwx14wB0jgB0Du25KRZbkEEXvI\"",
"mtime": "2023-12-21T03:40:00.367Z",
"mtime": "2023-12-21T04:23:16.421Z",
"size": 3897,
"path": "../public/static/view-icon.da7fef35.svg"
},
"/static/builds/latest.json": {
"type": "application/json",
"etag": "\"47-1kLtj4V8i4K7DaRtEcDbremoB7U\"",
"mtime": "2023-12-21T03:40:01.664Z",
"etag": "\"47-90Rp9HEUCjxE3NfQhJQ8sWgYeFM\"",
"mtime": "2023-12-21T04:23:17.825Z",
"size": 71,
"path": "../public/static/builds/latest.json"
},
"/static/builds/meta/898be353-1c7d-4979-9c40-4455eb3d4ab3.json": {
"/static/builds/meta/816a9924-aafd-46d2-9b66-fd4675f9f75d.json": {
"type": "application/json",
"etag": "\"8b-JVsP7USViT7Sfx4esVpDLMfYKjU\"",
"mtime": "2023-12-21T03:40:01.664Z",
"etag": "\"8b-W+R68C6dcknQoWHPfEMe+rcjDBU\"",
"mtime": "2023-12-21T04:23:17.825Z",
"size": 139,
"path": "../public/static/builds/meta/898be353-1c7d-4979-9c40-4455eb3d4ab3.json"
"path": "../public/static/builds/meta/816a9924-aafd-46d2-9b66-fd4675f9f75d.json"
}
};