1.diy滚动监听优化

master
sws 2024-12-26 19:15:23 +08:00
parent 78a339bcd6
commit db2b9ab9c9
1 changed files with 2 additions and 6 deletions

View File

@ -1,7 +1,7 @@
<template>
<view :style="page_style">
<view :style="page_img_style">
<scroll-view :scroll-y="true" class="ht" @scroll="on_scroll_event" @scrolltolower="on_scroll_lower_event" @refresherrefresh="on_refresh_event" lower-threshold="60">
<scroll-view :scroll-y="true" class="ht" @scroll="on_scroll_event" @scrolltolower="on_scroll_lower_event" lower-threshold="60">
<!-- 头部小程序兼容 -->
<view class="pr header">
<componentDiyHeader :propKey="header_data.id" :propValue="header_data.com_data" :propScrollTop="head_scroll_top" @onImmersionModelCallBack="immersion_model_call_back" @onLocationBack="choice_location_back"></componentDiyHeader>
@ -462,10 +462,6 @@
this.get_goods_list();
}
},
//
on_refresh_event() {
this.head_scroll_top = 0;
},
//
get_goods_list(is_mandatory) {
@ -608,7 +604,7 @@
this.scroll_top = scroll_num;
//
this.scroll_throttle_timeout = null;
}, 1); //
}, 20); //
}
},