From f8d5da258c050d63c56f044517ff1d67070d36fc Mon Sep 17 00:00:00 2001 From: sws <1141121512@qq.com> Date: Thu, 26 Dec 2024 17:07:20 +0800 Subject: [PATCH] =?UTF-8?q?1.diy=E6=BB=9A=E5=8A=A8=E7=9B=91=E5=90=AC?= =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App.vue | 4 ++-- components/diy/diy.vue | 8 +++++--- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/App.vue b/App.vue index 72d1dd6c..48913d0e 100644 --- a/App.vue +++ b/App.vue @@ -7,10 +7,10 @@ data: { // 基础配置 // 数据接口请求地址 - request_url:'https://d1.shopxo.vip/', + request_url:'https://new.shopxo.vip/', // 静态资源地址(如系统根目录不在public目录下面请在静态地址后面加public目录、如:https://d1.shopxo.vip/public/) - static_url:'https://d1.shopxo.vip/', + static_url:'https://new.shopxo.vip/', // 系统类型(默认default、如额外独立小程序、可与程序分身插件实现不同主体小程序及支付独立) system_type: 'default', diff --git a/components/diy/diy.vue b/components/diy/diy.vue index 4d46634f..b7d2876c 100644 --- a/components/diy/diy.vue +++ b/components/diy/diy.vue @@ -4,7 +4,7 @@ - + @@ -254,6 +254,7 @@ outer_container_padding: 0, // 滚动延迟器 + head_scroll_top: 0, scroll_throttle_timeout: null, }; }, @@ -569,10 +570,11 @@ const scroll_num = e.detail.scrollTop; if (scroll_num / (this.sticky_top + 33) <= 1) { // 更新数据的逻辑 - this.scroll_top = scroll_num; + this.head_scroll_top = scroll_num; } else { - this.scroll_top = this.sticky_top + 100; + this.head_scroll_top = this.sticky_top + 100; } + this.scroll_top = scroll_num; this.scroll_timer_compute(scroll_num); },