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];