当前位置:网站首页>Scroll View implémente la mise à jour déroulante (empêche onload d'entrer dans la page de mise à jour initiale du Shell Triggered pour déclencher la mise à jour déroulante pour True)
Scroll View implémente la mise à jour déroulante (empêche onload d'entrer dans la page de mise à jour initiale du Shell Triggered pour déclencher la mise à jour déroulante pour True)
2022-07-24 00:53:00 【Lumière de la route.】
Évitez l'entrée initiale dans la page parce que vous voulezrefresher-triggeredPourtrueN'utilisez pas correctement les problèmes de chargement déroulants
<scroll-view scroll-y="true" :style="{height:scrollH+'px'}"
:refresher-triggered="triggered" @scrolltolower="scrolltolower"
:refresher-threshold="100"
@refresherrefresh="onRefresh" @refresherrestore="onRestore"
@refresherabort="onAbort" refresher-background="linear-gradient( to right, #A0AAFF,#5E6EFF)"
@refresherpulling="refreshPullingTap" :refresher-enabled="isRefresher">
<view></view>
</scroll-view>data(){
return{
scrollH:0,
triggered:false,
_freshing:false,
isRefresher:true
}
},
methods:{
scrolltolower(e){
uni.$u.throttle(this.commonPage(), 1000)
},
onRefresh(){
if (this._freshing) return;
this._freshing = true;
this.findRecruitNewsList(0);
let tName=setTimeout(()=>{
clearTimeout(tName)
this.triggered = false;
this._freshing = false;
},1000)
},
onRestore(){
this.triggered = 'restore';
},
onAbort(){
},
refreshPullingTap(){
},
}Code clé:
onLoad(){
// Réglage d'un interrupteur de rafraîchissement déroulant personnalisé
this.isRefresher=false;
let t=setTimeout(() => {
clearTimeout(t);
this.triggered = true;
}, 1000)
let ts=setTimeout(()=>{
clearTimeout(ts);
this.isRefresher=true;
},3000)
},
边栏推荐
- This is a big problem
- The most basic code interpretation of C language
- Communication module sorting (II) hc-05
- Semaphore
- An article teaches you the basic use of kubernetes
- Introduction to several scenarios involving programming operation of Excel in SAP implementation project
- 项目场景:nvidia-smi Unable to datemine the device handle for GPU 0000:01:00.0: Unknow Error
- Coloring old photos - deoldify get started quickly
- Tutorial on principles and applications of database system (042) -- MySQL query (4): using wildcards to construct query conditions
- Focus on microservices
猜你喜欢

Redis | very important Middleware

Summary of polynomial commitment schemes

Idea hot deployment (hot load)

Easy gene | target gene DNA methylation sequencing (target BS)

入职3个月的测试员面临转正,领导:1年工作经验包装成5年,试用期淘汰

Beifeng communication appeared in China (Xiamen) emergency exhibition | intelligent communication means are strong and eye-catching!
![[video game training] non contact object size and shape measurement 2020 video game G](/img/b7/d70a702e52062e38176b589eb15415.jpg)
[video game training] non contact object size and shape measurement 2020 video game G

Prometheus+node exporter+grafana monitoring server system resources

Centernet target detection model and centerfusion fusion target detection model

【电赛训练】非接触物体尺寸形态测量 2020年电赛G题
随机推荐
Notes and Reflections on the red dust of the sky (V) strong culture and weak culture
T-seda code
Solve the problem that MySQL inserts Chinese garbled code into the table
Interviewer: if the order is not paid within 30 minutes after it is generated, it will be automatically cancelled. How to realize it?
Classic example of C language - commodity inspection code
Implementation of singleton mode and prevention of reflection and serialization
《天幕红尘》笔记与思考(五)强势文化与弱势文化
JS drag and drop element
MySQL data query (select)
Tutorial on the principle and application of database system (050) -- MySQL query (XII): analysis of the execution process of select command
Small farmers also have big goals in the test, and the latest big bat interview summary (constantly updating...)
Tutorial on principles and applications of database system (052) -- data integrity of MySQL (XIV): crosstab query (row column conversion)
XXL job realizes the code parsing of email sending warnings (line by line code interpretation)
Robot dog back submachine gun shooting video fire, netizens shivering: stoooooooopppp!
Résumé du websocket minier
Analysis of the advantages of the LAAS scheme of elephant swap led to strong performance of ETOKEN
MySQL exercise: all employees reporting to the CEO
Intelligent OCR identification of express documents helps the logistics industry to upgrade Digitalization
Are the top ten securities companies risky and safe to open accounts?
MySQL common commands