PageSourceSearch

https://greenvideo.cc/_nuxt/BjkZO7rH.js

js greenvideo.cc collected 2026-10-05 19:21:38 UTC 2,640 bytes, 1 lines download raw bytes

1import{H as B,M as C}from"./CGZ8iJB9.js";import{_ as E}from"./DJV7_o04.js";import{i as I,u as M,r as p,o as k,c as O,b as r,w as m,a as e,t as c,m as t,F as R,q as d,d as f}from"./DYo2L477.js";import{c as T,B as v,a as V}from"./CkWcnjeT.js";import{N as g}from"./sDwIH6DV.js";import"./CDPL7B-e.js";import"./Tkw5j4Uy.js";import"./07uBGoHI.js";const W={class:"w-full md:w-[798px] mx-auto px-6 py-12 text-left"},z={class:"font-semibold text-lg lg:text-xl"},D={class:"mt-3"},L={class:"list-none",style:{"line-height":"2rem"}},Z={class:"mt-3 flex flex-col gap-3"},q={class:"mt-6 flex items-center justify-center gap-3 md:gap-12"},h="leave_word_history",F=5,Q=I({__name:"index",setup(J){const{message:s}=T(["message"]),a=M(),n=p(""),o=p(""),u=p(!1),x=async()=>{if(u.value){s.warning("点击太频繁,请稍后再试");return}if(n.value.trim()===""){s.error("邮箱不能为空");return}if(!N(n.value.trim())){s.error("邮箱格式不正确");return}if(o.value==""){s.error("发言不能为空");return}const l=w();if(l.includes(o.value.trim())){s.error("这个内容您已提交过,请不要重复提交");return}u.value=!0;try{await V("/message/commit",{method:"post",body:{leaveWord:o.value,email:n.value}}),s.success("感谢您的发言,我们已收到!"),l.unshift(o.value.trim()),b(l),setTimeout(()=>{u.value=!1},6e4)}catch(i){s.error(i.message),u.value=!1}},y=()=>{o.value="",n.value=""};function w(){try{return JSON.parse(localStorage.getItem(h)||"[]")}catch{return[]}}function b(l){localStorage.setItem(h,JSON.stringify(l.slice(0,F)))}function N(l){return/^[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}$/.test(l)}return(l,i)=>{const S=C,A=B,H=E;return k(),O(R,null,[r(A,null,{default:m(()=>[r(S,{name:"robots",content:"noindex"})]),_:1}),e("div",W,[e("h2",z,c(t(a).t("contact.title")),1),e("div",D,[e("ul",L,[e("li",null,c(t(a).t("contact.p_1")),1),e("li",null,c(t(a).t("contact.p_2")),1),e("li",null,c(t(a).t("contact.p_3")),1),e("li",null,c(t(a).t("contact.p_4")),1)])]),r(H,null,{default:m(()=>[e("div",Z,[r(t(g),{value:t(n),"onUpdate:value":i[0]||(i[0]=_=>d(n)?n.value=_:null),placeholder:t(a).t("contact.input_1_placeholder")},null,8,["value","placeholder"]),r(t(g),{value:t(o),"onUpdate:value":i[1]||(i[1]=_=>d(o)?o.value=_:null),maxlength:"300",rows:5,type:"textarea","show-word-limit":"",placeholder:t(a).t("contact.input_2_placeholder")},null,8,["value","placeholder"]),e("p",q,[r(t(v),{class:"md:w-36",onClick:y},{default:m(()=>[f(c(t(a).t("contact.btn_1")),1)]),_:1}),r(t(v),{class:"md:w-36",type:"primary",onClick:x},{default:m(()=>[f(c(t(a).t("contact.btn_2")),1)]),_:1})])])]),_:1})])],64)}}});export{Q as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.