奇橙 vor 1 Jahr
Ursprung
Commit
f9d1e13cd5

Datei-Diff unterdrückt, da er zu groß ist
+ 0 - 0
dist/assets/Knowledge-DwpM_WuH.js


Datei-Diff unterdrückt, da er zu groß ist
+ 0 - 0
dist/assets/Login-BSwYRZ2G.css


+ 1 - 0
dist/assets/Login-BvsDGzq8.js

@@ -0,0 +1 @@
+import{_ as g}from"./login-VH6pjdPe.js";import{_,d as f,f as r,o as w,c as h,b as o,g as p,r as u,i as k,p as v,l as V}from"./index-BOn0bSfS.js";const $=f({components:{},props:[],setup(){const{ajax:e,helper:s}=k("$global"),a=u("user"),i=u("123");return{login:async()=>{const t=await e.user.login(a.value,i.value);t&&(s.write("userName",t.nickname||t.username),s.write("token",t.access_token),s.goLink("/"))},username:a,password:i,goRegister:()=>{s.goLink("register")}}}}),l=e=>(v("data-v-2f95801b"),e=e(),V(),e),b=l(()=>o("header",null,[o("img",{src:g}),o("p",null,"欢迎使用")],-1)),y=l(()=>o("p",null,"账号登录",-1)),C=l(()=>o("p",null,"账号",-1)),I=l(()=>o("p",null,"密码",-1));function R(e,s,a,i,d,c){const t=r("a-input"),m=r("a-input-password");return w(),h("main",null,[o("section",null,[b,y,o("section",null,[C,o("div",null,[p(t,{placeholder:"请输入手机号",style:{width:"250px",height:"40px"},modelValue:e.username,"onUpdate:modelValue":s[0]||(s[0]=n=>e.username=n)},null,8,["modelValue"])])]),o("section",null,[I,o("div",null,[p(m,{placeholder:"请输入手机号",style:{width:"250px",height:"40px"},modelValue:e.password,"onUpdate:modelValue":s[1]||(s[1]=n=>e.password=n)},null,8,["modelValue"])])]),o("section",null,[o("p",{style:{cursor:"pointer"},onClick:s[2]||(s[2]=(...n)=>e.goRegister&&e.goRegister(...n))},"去注册")]),o("div",{onClick:s[3]||(s[3]=(...n)=>e.login&&e.login(...n))},"登录")])])}const N=_($,[["render",R],["__scopeId","data-v-2f95801b"]]);export{N as default};

+ 0 - 1
dist/assets/Login-CWgHKsrg.js

@@ -1 +0,0 @@
-import{_ as c}from"./login-VH6pjdPe.js";import{_ as m,d as g,f,o as _,c as h,b as o,g as r,r as p,i as k,p as w,l as v}from"./index-CcKOufzT.js";const V=g({components:{},props:[],setup(){const{ajax:e,helper:s}=k("$global"),a=p("user"),i=p("123");return{login:async()=>{const n=await e.user.login(a.value,i.value);n&&(s.write("userName",n.nickname||n.username),s.write("token",n.access_token),s.goLink("/"))},username:a,password:i,goRegister:()=>{s.goLink("register")}}}}),t=e=>(w("data-v-3cb73cef"),e=e(),v(),e),$=t(()=>o("header",null,[o("img",{src:c}),o("p",null,"欢迎使用")],-1)),b=t(()=>o("p",null,"账号登录",-1)),y=t(()=>o("p",null,"账号",-1)),C=t(()=>o("p",null,"密码",-1));function I(e,s,a,i,u,d){const n=f("a-input");return _(),h("main",null,[o("section",null,[$,b,o("section",null,[y,o("div",null,[r(n,{placeholder:"请输入手机号",style:{width:"250px",height:"40px"},modelValue:e.username,"onUpdate:modelValue":s[0]||(s[0]=l=>e.username=l)},null,8,["modelValue"])])]),o("section",null,[C,o("div",null,[r(n,{placeholder:"请输入手机号",style:{width:"250px",height:"40px"},modelValue:e.password,"onUpdate:modelValue":s[1]||(s[1]=l=>e.password=l)},null,8,["modelValue"])])]),o("section",null,[o("p",{style:{cursor:"pointer"},onClick:s[2]||(s[2]=(...l)=>e.goRegister&&e.goRegister(...l))},"去注册")]),o("div",{onClick:s[3]||(s[3]=(...l)=>e.login&&e.login(...l))},"登录")])])}const L=m(V,[["render",I],["__scopeId","data-v-3cb73cef"]]);export{L as default};

Datei-Diff unterdrückt, da er zu groß ist
+ 0 - 0
dist/assets/Login-tKF2wh6U.css


+ 1 - 0
dist/assets/Register-Beu9o63m.js

@@ -0,0 +1 @@
+import{_}from"./login-VH6pjdPe.js";import{_ as g,d as f,f as p,o as h,c as w,b as s,g as i,r as d,i as v,p as V,l as b}from"./index-BOn0bSfS.js";const $=f({components:{},props:[],setup(){const{ajax:e,helper:o}=v("$global"),l=d(""),a=d("");return{register:async()=>{const r=await e.user.register(l.value,a.value);r&&(o.write("userName",String(r.username)),o.goLink("/login"))},username:l,password:a}}}),t=e=>(V("data-v-b8d3c93b"),e=e(),b(),e),k=t(()=>s("header",null,[s("img",{src:_}),s("p",null,"欢迎使用")],-1)),y=t(()=>s("p",null,"账号注册",-1)),I=t(()=>s("p",null,"账号",-1)),S=t(()=>s("p",null,"密码",-1));function B(e,o,l,a,u,r){const c=p("a-input"),m=p("a-input-password");return h(),w("main",null,[s("section",null,[k,y,s("section",null,[I,s("div",null,[i(c,{placeholder:"请输入账号",style:{width:"250px",height:"40px"},modelValue:e.username,"onUpdate:modelValue":o[0]||(o[0]=n=>e.username=n)},null,8,["modelValue"])])]),s("section",null,[S,s("div",null,[i(m,{type:"password",placeholder:"请输入密码",style:{width:"250px",height:"40px"},modelValue:e.password,"onUpdate:modelValue":o[1]||(o[1]=n=>e.password=n)},null,8,["modelValue"])])]),s("div",{onClick:o[2]||(o[2]=(...n)=>e.register&&e.register(...n))},"注册")])])}const j=g($,[["render",B],["__scopeId","data-v-b8d3c93b"]]);export{j as default};

Datei-Diff unterdrückt, da er zu groß ist
+ 0 - 0
dist/assets/Register-BmrHOKh1.css


+ 0 - 1
dist/assets/Register-CtyIhIqS.js

@@ -1 +0,0 @@
-import{_ as c}from"./login-VH6pjdPe.js";import{_ as m,d as g,f as _,o as f,c as h,b as s,g as i,r as d,i as w,p as v,l as V}from"./index-CcKOufzT.js";const $=g({components:{},props:[],setup(){const{ajax:e,helper:o}=w("$global"),l=d(""),r=d("");return{register:async()=>{const a=await e.user.register(l.value,r.value);a&&(o.write("userName",String(a.username)),o.goLink("/login"))},username:l,password:r}}}),t=e=>(v("data-v-c7657004"),e=e(),V(),e),k=t(()=>s("header",null,[s("img",{src:c}),s("p",null,"欢迎使用")],-1)),y=t(()=>s("p",null,"账号注册",-1)),I=t(()=>s("p",null,"账号",-1)),S=t(()=>s("p",null,"密码",-1));function B(e,o,l,r,u,a){const p=_("a-input");return f(),h("main",null,[s("section",null,[k,y,s("section",null,[I,s("div",null,[i(p,{placeholder:"请输入账号",style:{width:"250px",height:"40px"},modelValue:e.username,"onUpdate:modelValue":o[0]||(o[0]=n=>e.username=n)},null,8,["modelValue"])])]),s("section",null,[S,s("div",null,[i(p,{type:"password",placeholder:"请输入密码",style:{width:"250px",height:"40px"},modelValue:e.password,"onUpdate:modelValue":o[1]||(o[1]=n=>e.password=n)},null,8,["modelValue"])])]),s("div",{onClick:o[2]||(o[2]=(...n)=>e.register&&e.register(...n))},"注册")])])}const b=m($,[["render",B],["__scopeId","data-v-c7657004"]]);export{b as default};

Datei-Diff unterdrückt, da er zu groß ist
+ 0 - 0
dist/assets/Register-Rn3hcio4.css


Datei-Diff unterdrückt, da er zu groß ist
+ 1 - 1
dist/assets/index-BOn0bSfS.js


Datei-Diff unterdrückt, da er zu groß ist
+ 0 - 0
dist/assets/index-DebiOz04.css


+ 2 - 2
dist/index.html

@@ -5,8 +5,8 @@
         <link rel="icon" href="/logo.svg" />
         <meta name="viewport" content="width=device-width, initial-scale=1.0" />
         <title>测试页面</title>
-      <script type="module" crossorigin src="/assets/index-CcKOufzT.js"></script>
-      <link rel="stylesheet" crossorigin href="/assets/index-BYSg4Ddj.css">
+      <script type="module" crossorigin src="/assets/index-BOn0bSfS.js"></script>
+      <link rel="stylesheet" crossorigin href="/assets/index-DebiOz04.css">
     </head>
     <body>
         <div id="app"></div>

+ 2 - 1
src/components/History.vue

@@ -302,6 +302,7 @@ export default defineComponent({
             emit("set-new");
         };
         const handleClick = (id) => {
+            return;
             emit("handle-click", id);
         };
         return {
@@ -480,7 +481,7 @@ main {
             }
             > div {
                 padding: 8px 0;
-                cursor: pointer;
+                cursor: not-allowed;
                 overflow: hidden;
                 position: relative;
                 transition-duration: 0.2s;

+ 4 - 4
src/components/NormalCards.vue

@@ -1,13 +1,13 @@
 <template>
     <main>
         <header>
-            <p>试一试这样问我:</p>
+            <!-- <p>试一试这样问我:</p>
             <a-button size="small" type="outline" shape="round" @click="changeCards"
                 ><template #icon> <icon-swap /> </template>换一换</a-button
-            >
+            > -->
         </header>
         <section>
-            <div
+            <!-- <div
                 v-for="(item, key) in listData"
                 :key="key"
                 :class="{ rotate: isRotate, 'no-rotate': isOver }"
@@ -18,7 +18,7 @@
                     <p>{{ item.title }}</p>
                 </div>
                 <p>{{ item.content }}</p>
-            </div>
+            </div> -->
         </section>
     </main>
 </template>

+ 0 - 1
src/components/Slider.vue

@@ -240,7 +240,6 @@ export default defineComponent({
         const { helper, config } = inject("$global");
         const userName = ref(helper.read("userName") || "");
         if (!userName.value) {
-            helper.message("error", "用户未登录");
             helper.goLink("/login");
         }
         const handleClick = (index) => {

+ 6 - 2
src/views/Login.vue

@@ -16,8 +16,12 @@
             <section>
                 <p>密码</p>
                 <div>
-                    <a-input placeholder="请输入手机号" :style="{ width: '250px', height: '40px' }" v-model="password">
-                    </a-input>
+                    <a-input-password
+                        placeholder="请输入手机号"
+                        :style="{ width: '250px', height: '40px' }"
+                        v-model="password"
+                    >
+                    </a-input-password>
                 </div>
             </section>
             <section><p style="cursor: pointer" @click="goRegister">去注册</p></section>

+ 2 - 2
src/views/Register.vue

@@ -16,13 +16,13 @@
             <section>
                 <p>密码</p>
                 <div>
-                    <a-input
+                    <a-input-password
                         type="password"
                         placeholder="请输入密码"
                         :style="{ width: '250px', height: '40px' }"
                         v-model="password"
                     >
-                    </a-input>
+                    </a-input-password>
                 </div>
             </section>
             <div @click="register">注册</div>

Einige Dateien werden nicht angezeigt, da zu viele Dateien in diesem Diff geändert wurden.