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" : { "proxy" : {
"/api" : { "/api" : {
"target" : "http://192.168.1.7:9005", "target" : "http://speed-bl.renyizhi.cc",
"changeOrigin" : true, "changeOrigin" : true,
"secure" : false "secure" : false
} }

View File

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

View File

@ -96,6 +96,20 @@
getinfo() 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(){ function reset(){
hasNextPage.value=true; hasNextPage.value=true;

View File

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