From 2948cc8fafb728d7d028632d72dd6cddd9fffe05 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=BE=90=E9=A3=9E=E6=B4=8B?=
<15778543+xufeiyang6017@user.noreply.gitee.com>
Date: Tue, 20 Jan 2026 11:50:12 +0800
Subject: [PATCH] =?UTF-8?q?=E5=AE=9E=E7=8E=B0=E6=B7=BB=E5=8A=A0=E6=A1=8C?=
=?UTF-8?q?=E9=9D=A2=E5=8A=9F=E8=83=BD=EF=BC=9A=E7=82=B9=E5=87=BB=E6=B7=BB?=
=?UTF-8?q?=E5=8A=A0=E6=A1=8C=E9=9D=A2=E6=8C=89=E9=92=AE=E5=BC=B9=E5=87=BA?=
=?UTF-8?q?=E5=BC=95=E5=AF=BC=E6=A1=86=EF=BC=8C=E5=B8=AE=E5=8A=A9=E7=94=A8?=
=?UTF-8?q?=E6=88=B7=E5=B0=86=E5=B0=8F=E7=A8=8B=E5=BA=8F=E6=B7=BB=E5=8A=A0?=
=?UTF-8?q?=E5=88=B0=E6=89=8B=E6=9C=BA=E6=A1=8C=E9=9D=A2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pages/index/index.js | 20 ++++++++
pages/index/index.wxml | 32 +++++++++++-
pages/index/index.wxss | 110 ++++++++++++++++++++++++++++++++++++++++-
3 files changed, 159 insertions(+), 3 deletions(-)
diff --git a/pages/index/index.js b/pages/index/index.js
index c3ed2fb..4d5baa0 100644
--- a/pages/index/index.js
+++ b/pages/index/index.js
@@ -55,6 +55,7 @@ Page({
name: '',
showAuthModal: false,
showOneKeyLoginModal: false,
+ showAddToHomeModal: false,
userInfo: {},
needPhoneAuth: false,
testMode: true,
@@ -2276,6 +2277,25 @@ Page({
url: '/pages/cooperation/index'
})
},
+
+ // 显示添加桌面引导框
+ showAddToHomeModal: function () {
+ this.setData({
+ showAddToHomeModal: true
+ });
+ },
+
+ // 隐藏添加桌面引导框
+ hideAddToHomeModal: function () {
+ this.setData({
+ showAddToHomeModal: false
+ });
+ },
+
+ // 阻止事件冒泡
+ stopPropagation: function (e) {
+ e.stopPropagation();
+ },
// 跳转到货源管理页面
navigateToGoods: function () {
diff --git a/pages/index/index.wxml b/pages/index/index.wxml
index 8e032bc..30e1f71 100644
--- a/pages/index/index.wxml
+++ b/pages/index/index.wxml
@@ -183,12 +183,40 @@
🚻
我们
-
- 🚻
+
+ �
添加桌面
+
+
+
+
+
+ 为了方便您下次使用,请将小程序添加到手机桌面:
+
+ 1
+ 点击右上角的【...】
+
+
+ 2
+ 在弹出菜单中选择【添加到桌面】
+
+
+ 3
+ 返回桌面即可快速访问
+
+
+
+
+
+