diff --git a/pages/seller/index.js b/pages/seller/index.js
index 672c21b..c5f37c8 100644
--- a/pages/seller/index.js
+++ b/pages/seller/index.js
@@ -1625,12 +1625,7 @@ Page({
draftSupplies
});
- // 显示搜索结果提示
- wx.showToast({
- title: `找到${filteredSupplies.length}个货源`,
- icon: 'none',
- duration: 1500
- });
+
},
// 下拉刷新处理函数
@@ -1798,12 +1793,7 @@ Page({
draftSupplies
});
- // 显示搜索结果提示
- wx.showToast({
- title: `找到${filteredSupplies.length}个货源`,
- icon: 'none',
- duration: 1500
- });
+
},
// 修改图片URL处理函数
@@ -2561,9 +2551,9 @@ Page({
}, 500)
},
- // 导航到全屏创建货源页面
+ // 显示添加货源弹窗
showAddSupply(e) {
- console.log('点击创建新货源按钮,导航到全屏页面');
+ console.log('点击创建新货源按钮');
// 阻止事件冒泡,防止触发父元素的点击事件
if (e && e.stopPropagation) {
@@ -2573,10 +2563,15 @@ Page({
// 从本地存储加载之前保存的货源数据
const savedSupply = wx.getStorageSync('newSupplyDraft') || { name: '', price: '', minOrder: '', yolk: '', spec: '', imageUrls: [] };
- // 导航到新的全屏创建货源页面
- wx.navigateTo({
- url: '/pages/create-supply/index'
+ // 直接显示创建货源弹窗,无需登录验证
+ this.setData({
+ showImagePreview: false,
+ showModal: true,
+ newSupply: savedSupply
});
+
+ // 锁定页面滚动
+ this.disablePageScroll();
},
// 隐藏弹窗
diff --git a/pages/seller/index.wxml b/pages/seller/index.wxml
index c935b1c..124e0c2 100644
--- a/pages/seller/index.wxml
+++ b/pages/seller/index.wxml
@@ -472,11 +472,11 @@
-
+
×
-
+
创建货源
@@ -545,6 +545,8 @@
+
+
@@ -555,7 +557,7 @@
×
-
+
编辑货源
@@ -695,7 +697,7 @@