From d8dffde8d876aade13aef21e3fd95b9a5a740291 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: Wed, 21 Jan 2026 15:10:46 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BF=AE=E6=94=B9=E8=B4=A7=E6=BA=90?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E6=8C=89=E9=92=AE=E8=B7=B3=E8=BD=AC=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E4=B8=BApages/goods/index?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/index/index.js | 17 +++++++++++++++++ pages/index/index.wxml | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/pages/index/index.js b/pages/index/index.js index 1109a30..51a04ae 100644 --- a/pages/index/index.js +++ b/pages/index/index.js @@ -404,6 +404,23 @@ Page({ }); }, + // 跳转到货源管理页面 + navigateToGoodsManage() { + wx.navigateTo({ + url: '/pages/goods/index', + success: function () { + console.log('成功跳转到货源管理页面'); + }, + fail: function (error) { + console.error('跳转到货源管理页面失败:', error); + wx.showToast({ + title: '跳转失败,请稍后重试', + icon: 'none' + }); + } + }); + }, + // 切换侧边栏显示 toggleSidebar() { if (this.data.isDragging) { diff --git a/pages/index/index.wxml b/pages/index/index.wxml index 6eafa3f..af5a7de 100644 --- a/pages/index/index.wxml +++ b/pages/index/index.wxml @@ -171,7 +171,7 @@ - + 🛒 货源管理