fei.wang
2025-04-18 11f6acee504c77a8919a4e0ddfe3e70a746e3522
src/views/login/login.vue
@@ -30,8 +30,10 @@
                    </li>
                    <li>
                        <i><img src="../../assets/images/password.png"></i>
                        <input class="forminput" type="password" v-model="loginForm.password" required value=""
                        <input class="forminput" :type="passwordType" v-model="loginForm.password" required value=""
                            placeholder="密码">
                        <i style="margin-left: 85%;"><img :src="paSrc" alt="" @click="changePassward"></i>
                    </li>
                    <div id="captcha-box"></div>
@@ -53,7 +55,7 @@
                    </li>
                    <li>
                        <i><img src="../../assets/images/password.png"></i>
                        <input class="forminput" type="password" v-model="yzms" value="" placeholder="请输入验证码">
                        <input class="forminput" type="text" v-model="yzms" value="" placeholder="请输入验证码">
                    </li>
                    <li>
                        <el-button v-show="denglu" :loading="loading" type="primary"
@@ -82,11 +84,13 @@
        </div>
        <div style="width: 100%;position: fixed;top: 32%;left: 40%">
        <div style="width: 20%;position: absolute;bottom:20px;left: 40%;z-index: 9999;color:rgb(255, 255, 255)">
            {{version}}
        </div>
        <canvas ref="canvas"
            style="position:fixed; width:100%; height:100%; left: 0; top: 0; opacity: .3; pointer-events: none;"></canvas>
    </div>
</template>
@@ -147,6 +151,9 @@
export default {
    data() {
        return {
            version:'',
            passwordType: 'password',
            paSrc: require("@/assets/images/login_pass_active.png"),
            imgs: [
                  img0,
                  img1,
@@ -197,13 +204,8 @@
        }
    },
    mounted() {
        console.log(2333333333);
        console.log();
        console.log(typeof window.initTAC === 'function');
        getSystemOne().then(response => {
            console.log(response);
            this.version = response.data[0].version
            this.loginmethod = response.data[0].loginmethod
            if (response.data[0].loginmethod == '2' || response.data[0].loginmethod == '1') {
                this.loginway = 'duanxin'
@@ -237,6 +239,11 @@
    },
    methods: {
        // 切换密码显示隐藏
changePassward() {
  this.passwordType = this.passwordType==='password'?'text':'password';
  this.paSrc = this.paSrc == require("@/assets/images/login_pass_active.png")?require('@/assets/images/login_pass.png'):require("@/assets/images/login_pass_active.png");
},
        onSuccess() {   //滑块验证通过之后触发的
      this.$notify.success("登录成功")
      LoginId="true"
@@ -360,16 +367,11 @@
        this.loading = true
                    this.$store.dispatch('user/login', this.loginForm)
                        .then((res) => {
                            console.log(11111111111);
                            console.log(res);
                            if (res.usermsg == "false") {
                                this.lock = true
                                this.$message.error('软件授权注册码过期或者错误请联系管理员');
                                this.loading = false
                            } else {
                                console.log(this.otherQuery);
                                const params = { name: res.username, loginfs: '账号密码登录' };
                                addLoginLog(params).then(response => {
@@ -409,9 +411,6 @@
                // this.loginForm=params
                this.$store.dispatch('user/login', params)
                    .then((res) => {
                        console.log(11111111111);
                    console.log(res);
                        if (res.usermsg == "false") {
                            this.lock = true
                            this.$message.error('软件授权注册码过期或者错误请联系管理员');
@@ -420,8 +419,6 @@
                            // return false
                            // this.lock=true
                        } else {
                            console.log(this.otherQuery);
                            const params = { name: res.username, loginfs: '验证码登录' };
                            addLoginLog(params).then(response => {