This commit is contained in:
管理员 2025-09-09 18:09:21 +08:00
parent adba793b86
commit e693d9b8be
4 changed files with 24 additions and 2 deletions

View File

@ -146,7 +146,7 @@
//
"proxy" : {
"/api" : {
"target" : "http://192.168.1.7:9005",
"target" : "http://speed-bl.renyizhi.cc",
"changeOrigin" : true,
"secure" : false
}

View File

@ -14,7 +14,7 @@
</view>
<view class="reset" @click="emptydata">重置</view>
</view>
<scroll-view :scroll-y="true" class="scroll-view" @scrolltolower='bottomingOut'>
<scroll-view :scroll-y="true" :scroll-top="scroll" class="scroll-view" @scrolltolower='bottomingOut'>
<view v-for="item in list" class="item" @click="openinfo(item.encoding)">
<view class="left">
<view class="t">
@ -111,8 +111,11 @@
queryDate:queryDate.value,
vehicleNumber:vehicleNumber.value
}).then(r=>{
list.value=list.value.concat(r.data.data);
hasNextPage.value=r.data.hasNextPage;
}).catch(res=>{
console.log(res,'错误了')
})
}
//
@ -125,6 +128,8 @@
pageNum.value=1;
list.value=[];
}
let _clet;
//
function bottomingOut(){
if(hasNextPage.value){

View File

@ -96,6 +96,20 @@
getinfo()
}
}
//
let _clet;
uni.onSkt("SERCHNEWDATA", (res) => {
// console.log(res)
// scroll.value=10;
list.value = [...res, ...list.value]
// clearTimeout(_clet)
// _clet=setTimeout(()=>{
// scroll.value=0;
// },500)
//
})
//
function reset(){
hasNextPage.value=true;

View File

@ -181,6 +181,9 @@
function show() {
getinfo()
// #ifdef APP
uni.setAppBadgeNumber(0)
// #endif
}
const itemanimation=ref(false)