From 67079a3799238f42a585ffaf4e3f9a0fcdf69b3e Mon Sep 17 00:00:00 2001 From: liguigong Date: Sun, 28 Sep 2025 14:59:36 +0800 Subject: [PATCH] =?UTF-8?q?fix(fittingRoom):=E4=BC=98=E5=8C=96=E8=AF=95?= =?UTF-8?q?=E8=A1=A3=E9=97=B4=E9=A1=B5=E9=9D=A2=E9=80=BB=E8=BE=91=E4=B8=8E?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=E4=BA=A4=E4=BA=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 移除未使用的点击事件和相关函数 - 调整轮播图获取结果的定时器间隔从2秒至6秒 - 更新下拉刷新逻辑,仅在存在模型ID时请求数据 - 修改页面卸载钩子为onUnload并清理定时器- 禁用服饰上传页的下拉刷新功能 -优化网格组件中衣物切换判断条件 - 更新文件最后编辑时间和作者信息- 调整试衣间页面结构与样式高度单位统一为rpx- 注释掉部分冗余或调试用途的代码逻辑 - 全局函数updateToken语法规范化并移除初始化调用 --- App.vue | 6 +- pages.json | 2 +- .../fittingRoom/components/s-grid-clothes.vue | 23 ++--- pages/fittingRoom/index.vue | 80 +++++------------- sheep/api/fittingRoom/index.js | 7 +- static/uploads/0.png | Bin 0 -> 6801 bytes static/uploads/2.png | Bin 0 -> 4558 bytes static/uploads/3.png | Bin 0 -> 5181 bytes static/uploads/4.png | Bin 0 -> 4884 bytes static/uploads/5.png | Bin 0 -> 7010 bytes 10 files changed, 41 insertions(+), 77 deletions(-) create mode 100644 static/uploads/0.png create mode 100644 static/uploads/2.png create mode 100644 static/uploads/3.png create mode 100644 static/uploads/4.png create mode 100644 static/uploads/5.png diff --git a/App.vue b/App.vue index c11a0e3..c17f8d1 100644 --- a/App.vue +++ b/App.vue @@ -8,12 +8,12 @@ fail: () => {}, }); - window.updateToken=function(newToken) { + window.updateToken = function (newToken) { console.log('Token updated via global function:', newToken); uni.setStorageSync('token', newToken); - } + }; // 加载Shopro底层依赖 - ShoproInit(); + // ShoproInit(); }); onShow(() => { diff --git a/pages.json b/pages.json index 5544669..74c411c 100644 --- a/pages.json +++ b/pages.json @@ -60,7 +60,7 @@ "path": "pages/uploadClothes/index", "style": { "navigationBarTitleText": "服饰上传", - "enablePullDownRefresh": true + "enablePullDownRefresh": false }, "meta": { "sync": true, diff --git a/pages/fittingRoom/components/s-grid-clothes.vue b/pages/fittingRoom/components/s-grid-clothes.vue index 9c5c494..33c7155 100644 --- a/pages/fittingRoom/components/s-grid-clothes.vue +++ b/pages/fittingRoom/components/s-grid-clothes.vue @@ -1,29 +1,28 @@