no message
This commit is contained in:
parent
5887b7f03f
commit
4c41491e79
@ -1,5 +1,5 @@
|
||||
{
|
||||
"date": "2023-12-21T03:40:06.573Z",
|
||||
"date": "2023-12-21T04:23:22.848Z",
|
||||
"preset": "node-server",
|
||||
"framework": {
|
||||
"name": "nuxt",
|
||||
|
@ -1 +1 @@
|
||||
{"id":"898be353-1c7d-4979-9c40-4455eb3d4ab3","timestamp":1703129996870}
|
||||
{"id":"816a9924-aafd-46d2-9b66-fd4675f9f75d","timestamp":1703132592445}
|
@ -0,0 +1 @@
|
||||
{"id":"816a9924-aafd-46d2-9b66-fd4675f9f75d","timestamp":1703132592445,"matcher":{"static":{},"wildcard":{},"dynamic":{}},"prerendered":[]}
|
@ -1 +0,0 @@
|
||||
{"id":"898be353-1c7d-4979-9c40-4455eb3d4ab3","timestamp":1703129996870,"matcher":{"static":{},"wildcard":{},"dynamic":{}},"prerendered":[]}
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
import{_ as i,t as a,v as r,x as n,y as e,z as s,D as l,E as d}from"./entry.b76b36bd.js";const c=t=>(l("data-v-df79c84d"),t=t(),d(),t),p={class:"font-sans antialiased bg-white dark:bg-black text-black dark:text-white grid min-h-screen place-content-center overflow-hidden"},f=c(()=>e("div",{class:"fixed -bottom-1/2 left-0 right-0 h-1/2 spotlight"},null,-1)),h={class:"max-w-520px text-center"},g=["textContent"],m=["textContent"],x={__name:"error-500",props:{appName:{type:String,default:"Nuxt"},version:{type:String,default:""},statusCode:{type:Number,default:500},statusMessage:{type:String,default:"Server error"},description:{type:String,default:"This page is temporarily unavailable."}},setup(t){const o=t;return a({title:`${o.statusCode} - ${o.statusMessage} | ${o.appName}`,script:[],style:[{children:'*,:before,:after{-webkit-box-sizing:border-box;box-sizing:border-box;border-width:0;border-style:solid;border-color:#e0e0e0}*{--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(14, 165, 233, .5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000}:root{-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{margin:0;font-family:inherit;line-height:inherit}html{-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";line-height:1.5}h1,p{margin:0}h1{font-size:inherit;font-weight:inherit}'}]}),(u,b)=>(r(),n("div",p,[f,e("div",h,[e("h1",{class:"text-8xl sm:text-10xl font-medium mb-8",textContent:s(t.statusCode)},null,8,g),e("p",{class:"text-xl px-8 sm:px-0 sm:text-4xl font-light mb-16 leading-tight",textContent:s(t.description)},null,8,m)])]))}},w=i(x,[["__scopeId","data-v-df79c84d"]]);export{w as default};
|
||||
import{_ as i,t as a,v as r,x as n,y as e,z as s,D as l,E as d}from"./entry.cff8be19.js";const c=t=>(l("data-v-df79c84d"),t=t(),d(),t),p={class:"font-sans antialiased bg-white dark:bg-black text-black dark:text-white grid min-h-screen place-content-center overflow-hidden"},f=c(()=>e("div",{class:"fixed -bottom-1/2 left-0 right-0 h-1/2 spotlight"},null,-1)),h={class:"max-w-520px text-center"},g=["textContent"],m=["textContent"],x={__name:"error-500",props:{appName:{type:String,default:"Nuxt"},version:{type:String,default:""},statusCode:{type:Number,default:500},statusMessage:{type:String,default:"Server error"},description:{type:String,default:"This page is temporarily unavailable."}},setup(t){const o=t;return a({title:`${o.statusCode} - ${o.statusMessage} | ${o.appName}`,script:[],style:[{children:'*,:before,:after{-webkit-box-sizing:border-box;box-sizing:border-box;border-width:0;border-style:solid;border-color:#e0e0e0}*{--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(14, 165, 233, .5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000}:root{-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{margin:0;font-family:inherit;line-height:inherit}html{-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";line-height:1.5}h1,p{margin:0}h1{font-size:inherit;font-weight:inherit}'}]}),(u,b)=>(r(),n("div",p,[f,e("div",h,[e("h1",{class:"text-8xl sm:text-10xl font-medium mb-8",textContent:s(t.statusCode)},null,8,g),e("p",{class:"text-xl px-8 sm:px-0 sm:text-4xl font-light mb-16 leading-tight",textContent:s(t.description)},null,8,m)])]))}},w=i(x,[["__scopeId","data-v-df79c84d"]]);export{w as default};
|
@ -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
|
||||
|
@ -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];
|
||||
|
@ -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"
|
||||
}
|
||||
};
|
||||
|
||||
|
235
app.vue
235
app.vue
@ -289,11 +289,7 @@
|
||||
<div class="operate-item flexacenter" @click="operateCollect(item['token'], index)">
|
||||
<img class="operate-icon operate-collect-icon" v-if="item['iscollection'] == 1" src="./img/collect-icon-colours.svg" />
|
||||
<img class="operate-icon operate-collect-icon" v-else src="./img/collect-icon.png" />
|
||||
{{
|
||||
item["collectionnum"] == 0
|
||||
? "收藏"
|
||||
: item["collectionnum"]
|
||||
}}
|
||||
{{ item["collectionnum"] == 0 ? "收藏" : item["collectionnum"] }}
|
||||
</div>
|
||||
<div class="operate-item operate-transmit flexacenter" @click="handleAnswerTransmitList(index)" @mouseenter.stop="handleAnswerTransmitList(index)" @mouseleave.stop="closeAllTransmitState()">
|
||||
<img class="operate-icon operate-transmit-icon" src="./img/transmit-icon.png" />
|
||||
@ -796,12 +792,10 @@ export default {
|
||||
.then(function (res) {
|
||||
var data = null;
|
||||
try {
|
||||
data =
|
||||
typeof res.data == "string" ? JSON.parse(res.data) : res.data;
|
||||
data = typeof res.data == "string" ? JSON.parse(res.data) : res.data;
|
||||
if (data["code"] == 401) isNeedLogin.value = true;
|
||||
|
||||
if (data["code"] != 200)
|
||||
handleMsg("error", data["message"] || "报错了,请重试!!!");
|
||||
if (data["code"] != 200) handleMsg("error", data["message"] || "报错了,请重试!!!");
|
||||
} catch (error) { }
|
||||
resolve(data);
|
||||
})
|
||||
@ -828,8 +822,7 @@ export default {
|
||||
.then(function (res) {
|
||||
var data = null;
|
||||
try {
|
||||
data =
|
||||
typeof res.data == "string" ? JSON.parse(res.data) : res.data;
|
||||
data = typeof res.data == "string" ? JSON.parse(res.data) : res.data;
|
||||
if (data["code"] == 401) isNeedLogin.value = true;
|
||||
|
||||
if (data["code"] != 200)
|
||||
@ -846,7 +839,12 @@ export default {
|
||||
|
||||
let isNeedLogin = ref(true); // 是否需要有登录
|
||||
// 跳转登录
|
||||
const goLogin = () => ajax_login();
|
||||
const goLogin = () => {
|
||||
if (typeof window === "undefined") return;
|
||||
if (Object.keys(window["userInfoWin"]).length !== 0) {
|
||||
if (window["userInfoWin"]["uid"]) isNeedLogin.value = false;
|
||||
} else ajax_login()
|
||||
}
|
||||
|
||||
const route = useRoute();
|
||||
|
||||
@ -857,8 +855,10 @@ export default {
|
||||
let type = ref("list"); // list details
|
||||
|
||||
onMounted(() => {
|
||||
if (process.env.NODE_ENV !== "production") isNeedLogin.value = false;
|
||||
else determineIsLogin();
|
||||
// if (process.env.NODE_ENV !== "production") isNeedLogin.value = false;
|
||||
// else
|
||||
// 判断一下是否登录
|
||||
determineIsLogin();
|
||||
|
||||
getListClass();
|
||||
window.addEventListener("scroll", handleScroll);
|
||||
@ -954,9 +954,7 @@ export default {
|
||||
|
||||
// 获取当前url 专门 分享的url
|
||||
const getCurrentUrl = () => {
|
||||
const params = route.query;
|
||||
let url = `${window.location['origin']}?uniqid=${params['uniqid'] || ''}`
|
||||
return url;
|
||||
return `${window.location['origin']}?uniqid=${detailsInfo.value['uniqid'] || ''}`;
|
||||
};
|
||||
|
||||
// 我的 数据 数量
|
||||
@ -990,10 +988,7 @@ export default {
|
||||
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));
|
||||
};
|
||||
|
||||
// 搜索点击事件
|
||||
@ -1092,41 +1087,42 @@ export default {
|
||||
keyword: keyword.value,
|
||||
type: typePitch.value,
|
||||
zeroreply: zeroreply.value,
|
||||
})
|
||||
.then((res) => {
|
||||
if (res.code == 401) goLogin();
|
||||
}).then((res) => {
|
||||
if (res.code == 401) goLogin();
|
||||
|
||||
if (res.code != 200) return;
|
||||
if (res.code != 200) return;
|
||||
|
||||
let data = res.data;
|
||||
data.data.forEach(element => {
|
||||
element['content'] = element['content'].replace(/<[^>]*>/g, "");
|
||||
element['content'] = element['content'].replace(/ /g, '');
|
||||
})
|
||||
|
||||
list.value = list.value.concat(data.data || []);
|
||||
backupsList = backupsList.concat(data.data || []);
|
||||
|
||||
total.value = data.count || 0;
|
||||
|
||||
keywordText.value = keyword.value || "";
|
||||
|
||||
// page++
|
||||
if (list.value.length >= data["count"]) page = 0;
|
||||
else page++;
|
||||
|
||||
if (page == 0 && list.value.length != 0) inTheEndState.value = true;
|
||||
else inTheEndState.value = false;
|
||||
|
||||
if (list.value.length == 0) isListEmptyState.value = true;
|
||||
else isListEmptyState.value = false;
|
||||
|
||||
if (keyword.value) isSearchMode.value = true;
|
||||
else isSearchMode.value = false;
|
||||
|
||||
if (type.value == "details") handleInsertRelatedlist();
|
||||
let data = res.data;
|
||||
data.data.forEach(element => {
|
||||
element['content'] = element['content'].replace(/<[^>]*>/g, "");
|
||||
element['content'] = element['content'].replace(/ /g, '');
|
||||
})
|
||||
.finally(() => (loading.value = false));
|
||||
|
||||
list.value = list.value.concat(data.data || []);
|
||||
backupsList = backupsList.concat(data.data || []);
|
||||
|
||||
total.value = data.count || 0;
|
||||
|
||||
keywordText.value = keyword.value || "";
|
||||
|
||||
// page++
|
||||
if (list.value.length >= data["count"]) page = 0;
|
||||
else page++;
|
||||
|
||||
if (page == 0 && list.value.length != 0) inTheEndState.value = true;
|
||||
else inTheEndState.value = false;
|
||||
|
||||
if (list.value.length == 0) isListEmptyState.value = true;
|
||||
else isListEmptyState.value = false;
|
||||
|
||||
if (keyword.value) isSearchMode.value = true;
|
||||
else isSearchMode.value = false;
|
||||
|
||||
if (type.value == "details") handleInsertRelatedlist();
|
||||
|
||||
if (list.value.length == 0) type.value = "list"
|
||||
|
||||
}).finally(() => (loading.value = false));
|
||||
};
|
||||
|
||||
let typeList = ref([]);
|
||||
@ -1170,57 +1166,55 @@ export default {
|
||||
answerList.value = [];
|
||||
answerPage.value = 0;
|
||||
|
||||
$ajax("/api/details", { uniqid })
|
||||
.then((res) => {
|
||||
if (res.code != 200) {
|
||||
type.value = "list";
|
||||
openBottom();
|
||||
$ajax("/api/details", { uniqid }).then((res) => {
|
||||
if (res.code != 200) {
|
||||
type.value = "list";
|
||||
openBottom();
|
||||
|
||||
pitchIndex.value = null;
|
||||
return;
|
||||
}
|
||||
let data = res.data;
|
||||
pitchIndex.value = null;
|
||||
return;
|
||||
}
|
||||
let data = res.data;
|
||||
data["info"]['uniqid'] = uniqid
|
||||
detailsInfo.value = data["info"] || {};
|
||||
detailsIsanswered.value = data["isanswered"] || 0;
|
||||
detailsIscollection.value = data["iscollection"] || 0;
|
||||
detailsIsmyself.value = data["ismyself"] || 0;
|
||||
detailsToken = data["token"] || "";
|
||||
detailShare.value = data["share"] || {};
|
||||
|
||||
detailsInfo.value = data["info"] || {};
|
||||
detailsIsanswered.value = data["isanswered"] || 0;
|
||||
detailsIscollection.value = data["iscollection"] || 0;
|
||||
detailsIsmyself.value = data["ismyself"] || 0;
|
||||
detailsToken = data["token"] || "";
|
||||
detailShare.value = data["share"] || {};
|
||||
type.value = "details";
|
||||
|
||||
type.value = "details";
|
||||
closeBottom();
|
||||
|
||||
closeBottom();
|
||||
if (index !== null && index !== undefined) cut(index);
|
||||
else calculateListIndex(data.info, uniqid);
|
||||
|
||||
if (index !== null && index !== undefined) cut(index);
|
||||
else calculateListIndex(data.info, uniqid);
|
||||
answerList.value = [];
|
||||
answerPage.value = 1;
|
||||
getAnswerList();
|
||||
|
||||
answerList.value = [];
|
||||
answerPage.value = 1;
|
||||
getAnswerList();
|
||||
closeAllTransmitState();
|
||||
|
||||
closeAllTransmitState();
|
||||
if (isOpenAnswer) openIAnswer();
|
||||
|
||||
if (isOpenAnswer) openIAnswer();
|
||||
// 非后退状态才可以 修改 url
|
||||
if (!isBackState) replaceState({ uniqid });
|
||||
isBackState = false;
|
||||
|
||||
// 非后退状态才可以 修改 url
|
||||
if (!isBackState) replaceState({ uniqid });
|
||||
isBackState = false;
|
||||
seo.value = data.seo;
|
||||
|
||||
seo.value = data.seo;
|
||||
// 初始化 我来回答的框
|
||||
yourAnswer.value = {
|
||||
text: "",
|
||||
anonymous: 0,
|
||||
};
|
||||
|
||||
// 初始化 我来回答的框
|
||||
yourAnswer.value = {
|
||||
text: "",
|
||||
anonymous: 0,
|
||||
};
|
||||
// 默认 详情 div 滚动到顶部
|
||||
nextTick(() => detailsAreaScrollTop());
|
||||
|
||||
// 默认 详情 div 滚动到顶部
|
||||
nextTick(() => detailsAreaScrollTop());
|
||||
|
||||
handleInsertRelatedlist(uniqid);
|
||||
})
|
||||
.finally(() => (detailLoading.value = false));
|
||||
handleInsertRelatedlist(uniqid);
|
||||
}).finally(() => (detailLoading.value = false));
|
||||
};
|
||||
|
||||
// 默认 详情 div 滚动到顶部 预防用户在 列表重复点击
|
||||
@ -1283,24 +1277,23 @@ export default {
|
||||
token: detailsToken,
|
||||
limit: 20,
|
||||
page: answerPage.value,
|
||||
}).then((res) => {
|
||||
if (res.code != 200) return;
|
||||
let data = res.data;
|
||||
|
||||
data.data.forEach((element) => {
|
||||
element["commentList"] = [];
|
||||
});
|
||||
|
||||
answerList.value = answerList.value.concat(data.data);
|
||||
|
||||
if (answerList.value.length == data["count"]) answerPage.value = 0;
|
||||
else answerPage.value++;
|
||||
|
||||
detailsInfo.value["answers"] = data["count"];
|
||||
if (pitchIndex.value !== null)
|
||||
list.value[pitchIndex.value]["answers"] = data["count"];
|
||||
})
|
||||
.then((res) => {
|
||||
if (res.code != 200) return;
|
||||
let data = res.data;
|
||||
|
||||
data.data.forEach((element) => {
|
||||
element["commentList"] = [];
|
||||
});
|
||||
|
||||
answerList.value = answerList.value.concat(data.data);
|
||||
|
||||
if (answerList.value.length == data["count"]) answerPage.value = 0;
|
||||
else answerPage.value++;
|
||||
|
||||
detailsInfo.value["answers"] = data["count"];
|
||||
if (pitchIndex.value !== null)
|
||||
list.value[pitchIndex.value]["answers"] = data["count"];
|
||||
})
|
||||
.finally(() => (answerLoading = false));
|
||||
};
|
||||
|
||||
@ -1418,12 +1411,10 @@ export default {
|
||||
|
||||
let questionTextarea = null;
|
||||
|
||||
if (type == "you")
|
||||
questionTextarea = document.querySelector(".your-answer-textarea");
|
||||
if (type == "you") questionTextarea = document.querySelector(".your-answer-textarea");
|
||||
else questionTextarea = document.querySelector(".question-textarea");
|
||||
|
||||
if (questionTextarea)
|
||||
IAnswerInfo.value["text"] = questionTextarea.innerHTML;
|
||||
if (questionTextarea) IAnswerInfo.value["text"] = questionTextarea.innerHTML;
|
||||
|
||||
$ajax("/api/publish/answerSubmit", {
|
||||
token: IAnswerInfo.value["token"] || detailsToken,
|
||||
@ -2210,12 +2201,8 @@ export default {
|
||||
const base64 = e.target.result;
|
||||
uploadImg(base64).then((res) => {
|
||||
let questionTextarea = null;
|
||||
if (type == "you")
|
||||
questionTextarea = document.querySelector(
|
||||
".your-answer-textarea"
|
||||
);
|
||||
else
|
||||
questionTextarea = document.querySelector(".question-textarea");
|
||||
if (type == "you") questionTextarea = document.querySelector(".your-answer-textarea");
|
||||
else questionTextarea = document.querySelector(".question-textarea");
|
||||
|
||||
let imgNode = document.createElement("img");
|
||||
imgNode.setAttribute("src", res.url);
|
||||
@ -2399,7 +2386,7 @@ export default {
|
||||
list.value = JSON.parse(JSON.stringify(temporaryData.listlist));
|
||||
|
||||
myModelState.value = false;
|
||||
if (pitchIndex.value) {
|
||||
if (pitchIndex.value !== null && pitchIndex.value !== undefined) {
|
||||
let uniqid = list.value[pitchIndex.value]["uniqid"];
|
||||
getDetails(uniqid);
|
||||
}
|
||||
@ -2602,6 +2589,8 @@ export default {
|
||||
.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;
|
||||
@ -2692,6 +2681,12 @@ export default {
|
||||
if (keyword.value) isSearchMode.value = true;
|
||||
else isSearchMode.value = false;
|
||||
|
||||
|
||||
nextTick(() => {
|
||||
if (list.value.length == 0) type.value = "list"
|
||||
|
||||
})
|
||||
|
||||
// if (!process.server && params["uniqid"]) handleInsertRelatedlist()
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user