From 9f225bb1f1e26d25c1652d3e1ec2a8f239f69615 Mon Sep 17 00:00:00 2001
From: dengjunjie <dengjunjie@hnkhzn.com>
Date: 星期二, 18 三月 2025 10:41:29 +0800
Subject: [PATCH] 1

---
 项目代码/WMS/WIDESEA_WMSClient/src/views/Login.vue |   38 +++++++++++++-------------------------
 1 files changed, 13 insertions(+), 25 deletions(-)

diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSClient/src/views/Login.vue" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSClient/src/views/Login.vue"
index 1e61cdf..500b81e 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSClient/src/views/Login.vue"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSClient/src/views/Login.vue"
@@ -36,17 +36,15 @@
       </div>
 
       <!-- 璐﹀彿淇℃伅 -->
-      <div class="account-info">
-        <el-link type="primary">蹇樿瀵嗙爜</el-link>&nbsp; &nbsp;
-				<el-link type="primary" @click="gotoRegister">鐢ㄦ埛娉ㄥ唽</el-link>
-        <!-- <p>婕旂ず璐﹀彿锛歛dmin666 &nbsp; &nbsp;瀵嗙爜:123456</p>
+      <!-- <div class="account-info">
+        <p>婕旂ず璐﹀彿锛歛dmin666 &nbsp; &nbsp;瀵嗙爜:123456</p>
         <p>鏈湴璐﹀彿锛歛dmin &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;瀵嗙爜:123456</p>
         <p><a href="https://jq.qq.com/?_wv=1027&k=Sqstuy0M" style="text-decoration: none"
             target="_blank">QQ3缇�:743852316</a>
           &nbsp; &nbsp;&nbsp; &nbsp;
           <a href="http://v2.volcore.xyz/document/guide" style="text-decoration: none" target="_blank">妗嗘灦鏂囨。</a>
-        </p> -->
-      </div>
+        </p>
+      </div> -->
       <!-- 閾炬帴浣嶇疆 -->
       <!-- <div class="app-link" >
         <a href="#" style="text-decoration: none">绉诲姩绔壂鐮�</a>
@@ -75,8 +73,7 @@
       <a href="http://120.48.115.252:9990" style="text-decoration: none" target="blank">瑙嗛婕旂ず鍦板潃</a>
     </div> -->
 
-    <!-- <img class="login-bg" src="/static/login_bg.png" /> -->
-    <img class="login-bg" :src="loginbg" />
+    <img class="login-bg" src="/static/login_bg.png" />
   </div>
 </template>
 
@@ -92,26 +89,20 @@
 import { useRouter, useRoute } from 'vue-router';
 import store from '../store/index';
 import http from '@/../src/api/http.js';
-var imgUrl = require("@/assets/login_bg.png");
 export default defineComponent({
   setup(props, context) {
     store.commit('clearUserInfo', '');
     const loading = ref(false);
     const codeImgSrc = ref('');
     const userInfo = reactive({
-      userName: 'admin',
-      password: '123456',
-      verificationCode: '1234',
+      userName: '',
+      password: '',
+      verificationCode: '',
       UUID: undefined
     });
 
-    const loginbg = ref(imgUrl);
-
-    const gotoRegister=()=>{
-      router.push({ path: '/register' });
-    };
     const getVierificationCode = () => {
-      http.get('/api/Sys_User/getVierificationCode').then((x) => {
+      http.get('/api/User/getVierificationCode').then((x) => {
         codeImgSrc.value = 'data:image/png;base64,' + x.img;
         userInfo.UUID = x.uuid;
       });
@@ -125,11 +116,10 @@
     const login = () => {
       if (!userInfo.userName) return $message.error('璇疯緭鍏ョ敤鎴峰悕');
       if (!userInfo.password) return $message.error('璇疯緭鍏ュ瘑鐮�');
-      if (!userInfo.verificationCode) {
-        return $message.error('璇疯緭鍏ラ獙璇佺爜');
-      }
+      if (!userInfo.verificationCode) return $message.error('璇疯緭鍏ラ獙璇佺爜');
+      if (userInfo.verificationCode!="1234") return $message.error('楠岃瘉鐮佹湁璇�');
       loading.value = true;
-      http.post('/api/Sys_User/login', userInfo, '姝e湪鐧诲綍....').then((result) => {
+      http.post('/api/User/login', userInfo, '姝e湪鐧诲綍....').then((result) => {
         if (!result.status) {
           loading.value = false;
           getVierificationCode();
@@ -155,9 +145,7 @@
       login,
       userInfo,
       loginPress,
-      openUrl,
-      gotoRegister,
-      loginbg
+      openUrl
     };
   },
   directives: {

--
Gitblit v1.9.3