加入点击发布 点赞 评论等打开弹窗

This commit is contained in:
DESKTOP-RQ919RC\Pc 2025-06-23 16:36:43 +08:00
parent 0c3eeec6ea
commit b5342122db
14 changed files with 139 additions and 63 deletions

View File

@ -1,5 +1,5 @@
{
"date": "2025-05-23T06:20:25.124Z",
"date": "2025-06-23T08:33:29.259Z",
"preset": "node-server",
"framework": {
"name": "nuxt",

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
import{_ as s,t as a,v as i,x as u,y as e,z as o}from"./B7LTOXac.js";const l={class:"antialiased bg-white dark:bg-black dark:text-white font-sans grid min-h-screen overflow-hidden place-content-center text-black"},c={class:"max-w-520px text-center"},d=["textContent"],p=["textContent"],f={__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 r=t;return a({title:`${r.statusCode} - ${r.statusMessage} | ${r.appName}`,script:[{children:`!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))r(e);new MutationObserver((e=>{for(const o of e)if("childList"===o.type)for(const e of o.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&r(e)})).observe(document,{childList:!0,subtree:!0})}function r(e){if(e.ep)return;e.ep=!0;const r=function(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?r.credentials="include":"anonymous"===e.crossOrigin?r.credentials="omit":r.credentials="same-origin",r}(e);fetch(e.href,r)}}();`}],style:[{children:'*,:after,:before{border-color:var(--un-default-border-color,#e5e7eb);border-style:solid;border-width:0;box-sizing:border-box}:after,:before{--un-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}h1{font-size:inherit;font-weight:inherit}h1,p{margin:0}*,:after,:before{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 transparent;--un-ring-shadow:0 0 transparent;--un-shadow-inset: ;--un-shadow:0 0 transparent;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }'}]}),(g,n)=>(u(),i("div",l,[n[0]||(n[0]=e("div",{class:"-bottom-1/2 fixed h-1/2 left-0 right-0 spotlight"},null,-1)),e("div",c,[e("h1",{class:"font-medium mb-8 sm:text-10xl text-8xl",textContent:o(t.statusCode)},null,8,d),e("p",{class:"font-light leading-tight mb-16 px-8 sm:px-0 sm:text-4xl text-xl",textContent:o(t.description)},null,8,p)])]))}},m=s(f,[["__scopeId","data-v-84d937c0"]]);export{m as default};
import{_ as s,t as a,v as i,x as u,y as e,z as o}from"./CfEjeSBm.js";const l={class:"antialiased bg-white dark:bg-black dark:text-white font-sans grid min-h-screen overflow-hidden place-content-center text-black"},c={class:"max-w-520px text-center"},d=["textContent"],p=["textContent"],f={__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 r=t;return a({title:`${r.statusCode} - ${r.statusMessage} | ${r.appName}`,script:[{children:`!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))r(e);new MutationObserver((e=>{for(const o of e)if("childList"===o.type)for(const e of o.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&r(e)})).observe(document,{childList:!0,subtree:!0})}function r(e){if(e.ep)return;e.ep=!0;const r=function(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?r.credentials="include":"anonymous"===e.crossOrigin?r.credentials="omit":r.credentials="same-origin",r}(e);fetch(e.href,r)}}();`}],style:[{children:'*,:after,:before{border-color:var(--un-default-border-color,#e5e7eb);border-style:solid;border-width:0;box-sizing:border-box}:after,:before{--un-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}h1{font-size:inherit;font-weight:inherit}h1,p{margin:0}*,:after,:before{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 transparent;--un-ring-shadow:0 0 transparent;--un-shadow-inset: ;--un-shadow:0 0 transparent;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }'}]}),(g,n)=>(u(),i("div",l,[n[0]||(n[0]=e("div",{class:"-bottom-1/2 fixed h-1/2 left-0 right-0 spotlight"},null,-1)),e("div",c,[e("h1",{class:"font-medium mb-8 sm:text-10xl text-8xl",textContent:o(t.statusCode)},null,8,d),e("p",{class:"font-light leading-tight mb-16 px-8 sm:px-0 sm:text-4xl text-xl",textContent:o(t.description)},null,8,p)])]))}},m=s(f,[["__scopeId","data-v-84d937c0"]]);export{m as default};

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
{"id":"b7219fc6-4498-452a-8818-f00e163b4048","timestamp":1747981201188}
{"id":"c3d03a7d-f451-4f3e-a3e7-bb6d2809a260","timestamp":1750667591637}

View File

@ -1 +0,0 @@
{"id":"b7219fc6-4498-452a-8818-f00e163b4048","timestamp":1747981201188,"matcher":{"static":{},"wildcard":{},"dynamic":{}},"prerendered":[]}

View File

@ -0,0 +1 @@
{"id":"c3d03a7d-f451-4f3e-a3e7-bb6d2809a260","timestamp":1750667591637,"matcher":{"static":{},"wildcard":{},"dynamic":{}},"prerendered":[]}

View File

@ -2609,75 +2609,75 @@ const assets$1 = {
"size": 2238,
"path": "../public/favicon.ico"
},
"/static/B7LTOXac.js": {
"/static/CfEjeSBm.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"5aef8-RdvbQCDeEekfHCyJLsBvcCBaYCc\"",
"mtime": "2025-05-23T06:20:11.717Z",
"size": 372472,
"path": "../public/static/B7LTOXac.js"
"etag": "\"5b1cd-n7oovH/7gaK6twQsEcdIXaU/rG8\"",
"mtime": "2025-06-23T08:33:18.741Z",
"size": 373197,
"path": "../public/static/CfEjeSBm.js"
},
"/static/BceciXOH.js": {
"/static/CqXfGTyn.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"d3c-kHtz4hhaK+ue4Zl/c1P4jeja324\"",
"mtime": "2025-05-23T06:20:11.717Z",
"etag": "\"d3c-Q6dZ3pSHpDLahso/Q0LCi7WlPfI\"",
"mtime": "2025-06-23T08:33:18.741Z",
"size": 3388,
"path": "../public/static/BceciXOH.js"
"path": "../public/static/CqXfGTyn.js"
},
"/static/empty-icon.CyaRoygc.png": {
"type": "image/png",
"etag": "\"17df-ZbUVuzPJ5DAL9B9xteitdPCiUxY\"",
"mtime": "2025-05-23T06:20:11.715Z",
"mtime": "2025-06-23T08:33:18.740Z",
"size": 6111,
"path": "../public/static/empty-icon.CyaRoygc.png"
},
"/static/entry.Ac-gJZ5d.css": {
"type": "text/css; charset=utf-8",
"etag": "\"18a30-qmndbce/ZiLfG/YK0OQ7Cl+gk+8\"",
"mtime": "2025-05-23T06:20:11.715Z",
"mtime": "2025-06-23T08:33:18.740Z",
"size": 100912,
"path": "../public/static/entry.Ac-gJZ5d.css"
},
"/static/error-404.CZkObG7r.css": {
"type": "text/css; charset=utf-8",
"etag": "\"de4-qBee3TVrfYv3V1By16k8mWrjcVQ\"",
"mtime": "2025-05-23T06:20:11.715Z",
"mtime": "2025-06-23T08:33:18.741Z",
"size": 3556,
"path": "../public/static/error-404.CZkObG7r.css"
},
"/static/error-500.BFrSi6nG.css": {
"type": "text/css; charset=utf-8",
"etag": "\"75c-1DSF9z8DiRXW3VbuCpNqepB9vI0\"",
"mtime": "2025-05-23T06:20:11.717Z",
"mtime": "2025-06-23T08:33:18.740Z",
"size": 1884,
"path": "../public/static/error-500.BFrSi6nG.css"
},
"/static/logo.DlviZpxD.png": {
"type": "image/png",
"etag": "\"843f-FSXGFGigIHmtzjdcQzuMz/a7E+o\"",
"mtime": "2025-05-23T06:20:11.715Z",
"mtime": "2025-06-23T08:33:18.740Z",
"size": 33855,
"path": "../public/static/logo.DlviZpxD.png"
},
"/static/Pd5q2QhC.js": {
"/static/_QqbM9t2.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"24c9-oyxCxfDQ1CMYO/OfJRgSVScz0u8\"",
"mtime": "2025-05-23T06:20:11.717Z",
"etag": "\"24c9-BiukeLU/O82meH3kClDEnvEzZGI\"",
"mtime": "2025-06-23T08:33:18.741Z",
"size": 9417,
"path": "../public/static/Pd5q2QhC.js"
"path": "../public/static/_QqbM9t2.js"
},
"/static/builds/latest.json": {
"type": "application/json",
"etag": "\"47-sQBoje5det3O3aNX2HygGra2NQ8\"",
"mtime": "2025-05-23T06:20:15.851Z",
"etag": "\"47-ksfFSxxzVrwHuX6zmRlEToThsRA\"",
"mtime": "2025-06-23T08:33:21.720Z",
"size": 71,
"path": "../public/static/builds/latest.json"
},
"/static/builds/meta/b7219fc6-4498-452a-8818-f00e163b4048.json": {
"/static/builds/meta/c3d03a7d-f451-4f3e-a3e7-bb6d2809a260.json": {
"type": "application/json",
"etag": "\"8b-OUytpi9tdasJvzdiIe8ZxlI8+Gc\"",
"mtime": "2025-05-23T06:20:15.851Z",
"etag": "\"8b-V+ADg+Ket3DSAmQRclGF55/DQbU\"",
"mtime": "2025-06-23T08:33:21.720Z",
"size": 139,
"path": "../public/static/builds/meta/b7219fc6-4498-452a-8818-f00e163b4048.json"
"path": "../public/static/builds/meta/c3d03a7d-f451-4f3e-a3e7-bb6d2809a260.json"
}
};
@ -4349,7 +4349,7 @@ function _expandFromEnv(value) {
const _inlineRuntimeConfig = {
"app": {
"baseURL": "/",
"buildId": "b7219fc6-4498-452a-8818-f00e163b4048",
"buildId": "c3d03a7d-f451-4f3e-a3e7-bb6d2809a260",
"buildAssetsDir": "/static/",
"cdnURL": ""
},

View File

@ -18,7 +18,7 @@ const client_manifest = {
"module": true,
"prefetch": true,
"preload": true,
"file": "Pd5q2QhC.js",
"file": "_QqbM9t2.js",
"name": "error-404",
"src": "node_modules/.store/nuxt@3.16.0/node_modules/nuxt/dist/app/components/error-404.vue",
"isDynamicEntry": true,
@ -38,7 +38,7 @@ const client_manifest = {
"module": true,
"prefetch": true,
"preload": true,
"file": "BceciXOH.js",
"file": "CqXfGTyn.js",
"name": "error-500",
"src": "node_modules/.store/nuxt@3.16.0/node_modules/nuxt/dist/app/components/error-500.vue",
"isDynamicEntry": true,
@ -58,7 +58,7 @@ const client_manifest = {
"module": true,
"prefetch": true,
"preload": true,
"file": "B7LTOXac.js",
"file": "CfEjeSBm.js",
"name": "entry",
"src": "node_modules/.store/nuxt@3.16.0/node_modules/nuxt/dist/app/entry.js",
"isEntry": true,

View File

@ -5348,6 +5348,8 @@ const _sfc_main$3 = {
__expose({
closeEmoji
});
inject("openAttest");
inject("realname");
inject("handleMenuState");
let dialogVisible = ref(false);
let commemtDelete = {};
@ -5779,6 +5781,18 @@ const _sfc_main$2 = {
const route = useRoute();
const baseURL = "https://ask.gter.net";
let type = ref("list");
let realname = ref(0);
const openAttest = () => {
const handleAttestClose = () => {
var _a;
(void 0).removeEventListener("closeAttest", handleAttestClose);
realname.value = ((_a = (void 0).userInfoWin) == null ? void 0 : _a.realname) || 0;
};
(void 0).addEventListener("closeAttest", handleAttestClose);
loadAttest(2);
};
provide("realname", realname);
provide("openAttest", openAttest);
let user = ref({});
provide("user", user);
let originUrl = ref("");
@ -5983,6 +5997,10 @@ const _sfc_main$2 = {
let answerList = ref([]);
let answerPage = ref(1);
const operateLike = () => {
if (realname.value == 0 && user.value.uin > 0) {
openAttest();
return;
}
if (isNeedLogin.value) {
return;
}

View File

@ -2,10 +2,10 @@ const interopDefault = r => r.default || r || [];
const styles = {
"node_modules/.store/nuxt@3.16.0/node_modules/nuxt/dist/app/entry.js": () => import('./entry-styles.BMEJ6WCM.mjs').then(interopDefault),
"app.vue": () => import('./app-styles.CoC7fGAv.mjs').then(interopDefault),
"node_modules/.store/nuxt@3.16.0/node_modules/nuxt/dist/app/components/error-500.vue": () => import('./error-500-styles.TwxDbBgG.mjs').then(interopDefault),
"node_modules/.store/nuxt@3.16.0/node_modules/nuxt/dist/app/components/error-404.vue": () => import('./error-404-styles.wRz_-Rw1.mjs').then(interopDefault),
"node_modules/.store/nuxt@3.16.0/node_modules/nuxt/dist/app/components/error-500.vue?vue&type=style&index=0&scoped=84d937c0&lang.css": () => import('./error-500-styles.Cx3AJg0u.mjs').then(interopDefault),
"node_modules/.store/nuxt@3.16.0/node_modules/nuxt/dist/app/components/error-500.vue": () => import('./error-500-styles.TwxDbBgG.mjs').then(interopDefault),
"node_modules/.store/nuxt@3.16.0/node_modules/nuxt/dist/app/components/error-404.vue?vue&type=style&index=0&scoped=075d74b5&lang.css": () => import('./error-404-styles.BNmKahfp.mjs').then(interopDefault),
"node_modules/.store/nuxt@3.16.0/node_modules/nuxt/dist/app/components/error-500.vue?vue&type=style&index=0&scoped=84d937c0&lang.css": () => import('./error-500-styles.Cx3AJg0u.mjs').then(interopDefault),
"app.vue?vue&type=style&index=0&lang.css": () => import('./app-styles.DjCRi-SL.mjs').then(interopDefault)
};

42
app.vue
View File

@ -511,7 +511,10 @@ import axios from "axios";
export default {
name: "#answer-app",
async setup() {
const author = "034d01f3ab7e7c248d7cfdf8fdb96915";
const author = "a37009134499cce160254db1bc9ccb94";
if (process.env.NODE_ENV !== "production" && document) document.cookie = "miucms_session=" + author;
const $ajax = (url, data) => {
url = url.indexOf("//") > -1 ? url : baseURL + url;
return new Promise(function (resolve, reject) {
@ -647,8 +650,41 @@ export default {
setTimeout(() => {
if (params["ispublish"]) questionsInit();
}, 500);
const isLoginValue = params["islogin"];
if (isLoginValue == 1) getUserInfoWin();
else realname.value = 1;
});
let realname = ref(0); //
const getUserInfoWin = () => {
const checkUser = () => {
const user = window.userInfoWin;
if (!user) {
setTimeout(checkUser, 100);
return;
}
userInfoWin.value = user;
realname.value = user.realname || 0;
};
setTimeout(checkUser, 100);
};
const openAttest = () => {
const handleAttestClose = () => {
document.removeEventListener("closeAttest", handleAttestClose);
realname.value = window.userInfoWin?.realname || 0;
};
//
document.addEventListener("closeAttest", handleAttestClose);
loadAttest(2);
};
provide("realname", realname);
provide("openAttest", openAttest);
//
const hanleServerRequestData = () => {
const params = route.query;
@ -1051,6 +1087,10 @@ export default {
// -
const operateLike = () => {
if (realname.value == 0 && user.value.uin > 0) {
openAttest();
return;
}
if (isNeedLogin.value) {
goLogin();
return;

View File

@ -537,9 +537,16 @@ const handleInputPaste = (event, index, ii) => {
}
};
let openAttest = inject("openAttest");
const realname = inject("realname");
// -
const submitAnswerComments = (index, i) => {
if (realname.value == 0 && user.value.uin > 0) {
openAttest();
return;
}
if (isNeedLogin.value) {
goLogin();
return;
@ -641,6 +648,13 @@ const submitAnswerComments = (index, i) => {
// -
const operateAnswerCommentsLike = (token, index, i) => {
console.log(realname.value == 0, user);
if (realname.value == 0 && user.value.uin > 0) {
openAttest();
return;
}
if (isNeedLogin.value) {
goLogin();
return;
@ -667,7 +681,11 @@ const operateAnswerCommentsLike = (token, index, i) => {
// -
const openAnswerCommentsChild = (index, i) => {
// console.log("isNeedLogin", isNeedLogin)
if (realname.value == 0 && user.value.uin > 0) {
openAttest();
return;
}
if (isNeedLogin.value) {
goLogin();
return;