From f468170d79dee3f8efb75705c7e23a1b53e54e91 Mon Sep 17 00:00:00 2001
From: feige <791364011@qq.com>
Date: 星期二, 29 七月 2025 22:08:02 +0800
Subject: [PATCH] 修改了内容
---
ruoyi-ui/src/views/login.vue | 49 ++++++++++++++++++++++++++++++++++++++++++++++++-
1 files changed, 48 insertions(+), 1 deletions(-)
diff --git a/ruoyi-ui/src/views/login.vue b/ruoyi-ui/src/views/login.vue
index 8354128..992b754 100644
--- a/ruoyi-ui/src/views/login.vue
+++ b/ruoyi-ui/src/views/login.vue
@@ -27,7 +27,12 @@
</div>
</div>
-
+
+ <!-- 娣诲姞QQ瀹㈡湇鎸夐挳 -->
+ <div class="qq-service-btn" @click="openQQChat">
+ <img :src="require('@/assets/image/qq.png')" alt="QQ瀹㈡湇">
+ <span>QQ瀹㈡湇</span>
+ </div>
<el-dialog :visible.sync="open" style="margin: 0px;" customClass="customWidth" width="620px">
<el-form ref="loginForm" :model="loginForm" :rules="loginRules" class="login-form" style="margin: 0px;">
<h3 class="title">鐧诲綍鏈兘閮藉缃�</h3>
@@ -209,6 +214,23 @@
</div>
</el-dialog>
+
+
+ <el-dialog :visible.sync="qqDialogVisible" title="QQ瀹㈡湇" width="400px">
+ <div style="text-align: center; padding: 20px;">
+ <img :src="require('@/assets/image/qq.png')" alt="QQ瀹㈡湇" style="width: 80px; height: 80px; margin-bottom: 15px;">
+ <h3 style="margin-bottom: 15px;">瀹㈡湇QQ: 3224414357</h3>
+ <p style="margin-bottom: 20px; color: #666;">璇锋坊鍔犲ソ鍙嬪悗鍙戣捣浼氳瘽</p>
+ <div style="display: flex; justify-content: center; gap: 15px;">
+ <el-button type="primary" @click="copyQQ" plain>
+ 澶嶅埗QQ鍙�
+ </el-button>
+ <el-button type="success" @click="addQQFriend">
+ 娣诲姞濂藉弸
+ </el-button>
+ </div>
+ </div>
+</el-dialog>
<!-- 搴曢儴 -->
<div class="el-login-footer" >
<span style="color: black; "><span v-html="'\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0'"></span></span>
@@ -219,6 +241,9 @@
<div class="gpr">
<!-- <img :key="url" :src="url" style="width:100%;height:30%"></img> -->
</div>
+
+
+
</div>
</template>
@@ -239,6 +264,7 @@
}
};
return {
+ qqDialogVisible: false,
url: require('../assets/images/index.png'),
openRegister: false,
avatar: undefined,
@@ -311,6 +337,27 @@
this.getCookie();
},
methods: {
+ openQQChat() {
+ this.qqDialogVisible = true;
+ },
+ copyQQ() {
+ const qq = '3224414357';
+ navigator.clipboard.writeText(qq).then(() => {
+ this.$message.success('QQ鍙峰凡澶嶅埗鍒板壀璐存澘');
+ }).catch(() => {
+ // 鍏煎涓嶆敮鎸乧lipboard API鐨勬祻瑙堝櫒
+ const input = document.createElement('input');
+ input.value = qq;
+ document.body.appendChild(input);
+ input.select();
+ document.execCommand('copy');
+ document.body.removeChild(input);
+ this.$message.success('QQ鍙峰凡澶嶅埗');
+ });
+ },
+ addQQFriend() {
+ window.open('tencent://message/?Menu=yes&uin=3224414357&Site=xxx&Service=10&sigT=10&sigU=10', '_blank');
+ },
handleRegister() {
//alert(this.registerForm.nickname)
this.$refs.registerForm.validate(valid => {
--
Gitblit v1.9.1