From 4ecb1a0a437d31301c6930f32fe209b4902cb97a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=B0=8F=E8=9A=82=E8=9A=81=E4=BA=91?=
Date: Thu, 17 Sep 2026 10:36:48 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=8D=87=E7=BA=A7?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../main/resources/static/assets/js/common.js | 72 ++++++-
.../resources/templates/email/buy_notice.html | 2 +-
.../templates/email/down_notice.html | 2 +-
.../resources/templates/email/download.html | 2 +-
.../resources/templates/email/message.html | 2 +-
.../resources/templates/email/register.html | 2 +-
.../templates/email/register_notice.html | 2 +-
.../src/main/resources/templates/index2.html | 2 +-
.../src/main/resources/templates/index3.html | 4 +-
.../resources/templates/public/consult.html | 188 ++++++++++++++++++
.../resources/templates/public/footer.html | 2 +-
.../main/resources/templates/user/order.html | 57 +++---
12 files changed, 299 insertions(+), 38 deletions(-)
create mode 100644 xiaomayi-modules/xiaomayi-web/src/main/resources/templates/public/consult.html
diff --git a/xiaomayi-modules/xiaomayi-web/src/main/resources/static/assets/js/common.js b/xiaomayi-modules/xiaomayi-web/src/main/resources/static/assets/js/common.js
index 559132c..fb2b333 100644
--- a/xiaomayi-modules/xiaomayi-web/src/main/resources/static/assets/js/common.js
+++ b/xiaomayi-modules/xiaomayi-web/src/main/resources/static/assets/js/common.js
@@ -54,16 +54,80 @@ layui.config({
});
}
- // 返回顶部
+ // 咨询弹窗样式(仅注入一次)
+ if (!$('#xmContactStyle').length) {
+ $('head').append(
+ ''
+ );
+ }
+
+ // 右侧浮层工具栏(保持原 fixbar 样式)
util.fixbar({
bgcolor: '#165DFF',
- bar1: '',
+ bar1: '',
+ bar2: '',
+ bar3: '',
click: function (type) {
- if (type == 'bar1') {
- window.open('tencent://message/?Menu=yes&uin=575073565');
+ if (type === 'bar1') {
+ openContactLayer('wechat');
+ } else if (type === 'bar2') {
+ openContactLayer('qq');
+ } else if (type === 'bar3') {
+ $('html,body').animate({scrollTop: 0}, 300);
}
}
});
+
+ // 咨询弹窗公共方法
+ window.openContactLayer = function(type) {
+ var isWx = type === 'wechat';
+ var heroTitle = isWx ? '微信客服' : 'QQ客服';
+ var heroDesc = isWx ? '长按或扫描二维码,添加微信好友
技术顾问一对一为您解答疑问' : '长按或扫描二维码,添加QQ好友
技术顾问一对一为您解答疑问';
+ var qrImg = isWx ? '/static/assets/images/img_wx.png' : '/static/assets/images/img_qq.png';
+ var qrAlt = isWx ? '微信二维码' : 'QQ二维码';
+ var qrLabel = isWx
+ ? ' 微信扫码'
+ : ' QQ扫码';
+
+ var html = '' +
+ '
' +
+ '
' +
+ '
' + heroTitle + '
' +
+ '
' + heroDesc + '
' +
+ '
' +
+ '
' +
+ '
' +
+ '
' + qrLabel + '
' +
+ '
长按识别或截图扫码
' +
+ '
' +
+ '
';
+
+ layer.open({
+ type: 1,
+ title: false,
+ closeBtn: 0,
+ shade: 0.35,
+ area: ['380px'],
+ content: html,
+ success: function (layero) {
+ layero.css('border-radius', '10px');
+ }
+ });
+ };
}
// 同步当前滚动位置
diff --git a/xiaomayi-modules/xiaomayi-web/src/main/resources/templates/email/buy_notice.html b/xiaomayi-modules/xiaomayi-web/src/main/resources/templates/email/buy_notice.html
index c2576c4..e20445c 100644
--- a/xiaomayi-modules/xiaomayi-web/src/main/resources/templates/email/buy_notice.html
+++ b/xiaomayi-modules/xiaomayi-web/src/main/resources/templates/email/buy_notice.html
@@ -78,7 +78,7 @@
扫码咨询,更好的为您服务
- Copyright © 2020~2026 www.djangoadmin.cn. All rights reserved.
+ Copyright © 2021~2026 www.djangoadmin.cn. All rights reserved.
diff --git a/xiaomayi-modules/xiaomayi-web/src/main/resources/templates/email/down_notice.html b/xiaomayi-modules/xiaomayi-web/src/main/resources/templates/email/down_notice.html
index a56a6d8..2bcff9e 100644
--- a/xiaomayi-modules/xiaomayi-web/src/main/resources/templates/email/down_notice.html
+++ b/xiaomayi-modules/xiaomayi-web/src/main/resources/templates/email/down_notice.html
@@ -78,7 +78,7 @@
扫码咨询,更好的为您服务
- Copyright © 2020~2026 www.djangoadmin.cn. All rights reserved.
+ Copyright © 2021~2026 www.djangoadmin.cn. All rights reserved.
diff --git a/xiaomayi-modules/xiaomayi-web/src/main/resources/templates/email/download.html b/xiaomayi-modules/xiaomayi-web/src/main/resources/templates/email/download.html
index fe0c998..b3a090e 100644
--- a/xiaomayi-modules/xiaomayi-web/src/main/resources/templates/email/download.html
+++ b/xiaomayi-modules/xiaomayi-web/src/main/resources/templates/email/download.html
@@ -82,7 +82,7 @@
扫码咨询,更好的为您服务
- Copyright © 2020~2026 www.djangoadmin.cn. All rights reserved.
+ Copyright © 2021~2026 www.djangoadmin.cn. All rights reserved.
diff --git a/xiaomayi-modules/xiaomayi-web/src/main/resources/templates/email/message.html b/xiaomayi-modules/xiaomayi-web/src/main/resources/templates/email/message.html
index 5e6ab25..60db251 100644
--- a/xiaomayi-modules/xiaomayi-web/src/main/resources/templates/email/message.html
+++ b/xiaomayi-modules/xiaomayi-web/src/main/resources/templates/email/message.html
@@ -78,7 +78,7 @@
扫码咨询,更好的为您服务
- Copyright © 2020~2026 www.djangoadmin.cn. All rights reserved.
+ Copyright © 2021~2026 www.djangoadmin.cn. All rights reserved.
diff --git a/xiaomayi-modules/xiaomayi-web/src/main/resources/templates/email/register.html b/xiaomayi-modules/xiaomayi-web/src/main/resources/templates/email/register.html
index 56f19f5..758ac9f 100644
--- a/xiaomayi-modules/xiaomayi-web/src/main/resources/templates/email/register.html
+++ b/xiaomayi-modules/xiaomayi-web/src/main/resources/templates/email/register.html
@@ -84,7 +84,7 @@
扫码咨询,更好的为您服务
- Copyright © 2020~2026 www.djangoadmin.cn. All rights reserved.
+ Copyright © 2021~2026 www.djangoadmin.cn. All rights reserved.
diff --git a/xiaomayi-modules/xiaomayi-web/src/main/resources/templates/email/register_notice.html b/xiaomayi-modules/xiaomayi-web/src/main/resources/templates/email/register_notice.html
index ed499a7..3e73b7b 100644
--- a/xiaomayi-modules/xiaomayi-web/src/main/resources/templates/email/register_notice.html
+++ b/xiaomayi-modules/xiaomayi-web/src/main/resources/templates/email/register_notice.html
@@ -78,7 +78,7 @@
扫码咨询,更好的为您服务
- Copyright © 2020~2026 www.djangoadmin.cn. All rights reserved.
+ Copyright © 2021~2026 www.djangoadmin.cn. All rights reserved.
diff --git a/xiaomayi-modules/xiaomayi-web/src/main/resources/templates/index2.html b/xiaomayi-modules/xiaomayi-web/src/main/resources/templates/index2.html
index d051989..205121c 100644
--- a/xiaomayi-modules/xiaomayi-web/src/main/resources/templates/index2.html
+++ b/xiaomayi-modules/xiaomayi-web/src/main/resources/templates/index2.html
@@ -214,7 +214,7 @@
diff --git a/xiaomayi-modules/xiaomayi-web/src/main/resources/templates/index3.html b/xiaomayi-modules/xiaomayi-web/src/main/resources/templates/index3.html
index 90649e1..60f9532 100644
--- a/xiaomayi-modules/xiaomayi-web/src/main/resources/templates/index3.html
+++ b/xiaomayi-modules/xiaomayi-web/src/main/resources/templates/index3.html
@@ -437,7 +437,7 @@
@@ -588,6 +588,8 @@
+
+
+
+
+
+
+