修复押金充值后页面闪烁问题

This commit is contained in:
Sliverber 2024-08-09 20:10:57 +08:00
parent 77175a85d0
commit c9456a3b85
2 changed files with 54 additions and 38 deletions

View File

@ -211,22 +211,22 @@
// ... A
]
},
{
"root": "pages_adminSet", // A
"pages": [
{
"path": "shgl",
"style": {
"navigationBarTitleText": "上传",
"enablePullDownRefresh": false,
"navigationStyle": "custom"
}
}
// {
// "root": "pages_adminSet", // A
// "pages": [
// {
// "path": "shgl",
// "style": {
// "navigationBarTitleText": "上传",
// "enablePullDownRefresh": false,
// "navigationStyle": "custom"
// }
// }
// ... A
]
},
// // ... A
// ]
// },
{
"root": "page_user",
"pages": [{

View File

@ -1069,7 +1069,13 @@
this.$nextTick(() => {
this.initScroll();
});
}
},
showdevice(newValue, oldValue) {
console.log('showdevice变化了', newValue, oldValue);
},
deviceIndex(newValue, oldValue) {
console.log('deviceIndex变化了', newValue, oldValue);
},
},
@ -1134,9 +1140,9 @@
}
}
setTimeout(() => {
this.$store.commit('SET_SHOWTIPS', true);
}, 500)
// setTimeout(() => {
// this.$store.commit('SET_SHOWTIPS', true);
// }, 500)
},
onShow() {
this.timestare()
@ -1208,7 +1214,8 @@
that.longitude = lb.longitude;
that.deviceGps.latitude = lb.latitude;
that.deviceGps.longitude = lb.longitude;
console.log(that.areaInfo, 'that.areaInfo');
// console.log(that.areaInfo, 'that.areaInfo');
console.log('进入了1111111111111');
that.getArea()
if (that.qParam != 'null' && that.showagre == false) {
let qParam = that.qParam
@ -1279,6 +1286,8 @@
} else {
this.getinfo()
}
},
@ -1288,7 +1297,7 @@
if (this.timers) {
clearInterval(this.timers);
this.timers = null;
console.log('定时器已清除');
console.log('定时器已清除1');
}
xBlufi.listenDeviceMsgEvent(false, this.funListenDeviceMsgEvent);
xBlufi.notifyStartDiscoverBle({
@ -1300,7 +1309,7 @@
if (this.timers) {
clearInterval(this.timers);
this.timers = null;
console.log('定时器已清除');
console.log('定时器已清除2');
}
xBlufi.listenDeviceMsgEvent(false, this.funListenDeviceMsgEvent);
xBlufi.notifyStartDiscoverBle({
@ -1312,7 +1321,7 @@
if (this.timers) {
clearInterval(this.timers);
this.timers = null;
console.log('定时器已清除');
console.log('定时器已清除3');
}
xBlufi.listenDeviceMsgEvent(false, this.funListenDeviceMsgEvent);
xBlufi.notifyStartDiscoverBle({
@ -4382,18 +4391,25 @@
getinfo() {
if (uni.getStorageSync('token')) {
this.$u.get("/getAppInfo").then((res) => {
if (res.code == 200) {
this.$store.commit('SET_USERID', res.user.userId);
this.userinfo = res.user
setTimeout(()=>{
console.log(this.userinfo.balance,this.deviceIndex,this.showdevice,'this.userinfo.balancethis.userinfo.balancethis.userinfo.balance');
if(this.userinfo.balance!=0&&this.deviceIndex==1&&this.showdevice==true){
this.taploadmask(1)
}
},300)
} else {
setTimeout(() => {
this.getinfo()
}, )
// setTimeout(() => {
// this.getinfo()
// }, 200)
}
});
}
@ -4430,11 +4446,10 @@
this.gps.sn = this.sn
}
this.$u.get('/app/area/info?', this.gps).then((res) => {
// this.showmap = true
if (res.code === 200) {
// 线
const polylines = this.convertBoundaryToPolyline(res.data.boundaryStr)
// console.log(polylines,'polylinespolylinespolylines');
@ -4445,11 +4460,11 @@
setTimeout(() => {
let abb = this.cleanedText()
console.log(abb.length, 'cleanedTextcleanedTextcleanedText');
//
this.duration = abb.length * 0.3; // 50 px/s
}, 200)
this.polyline.push(polylines)
console.log();
// console.log(this.areaInfo, 'areaInfoareaInfo');
@ -4460,14 +4475,14 @@
this.getParking()
if (uni.getStorageSync('token')) {
this.getisInOrder()
}
const hasShownPopup = uni.getStorageSync('hasShownPopup');
console.log(hasShownPopup, 'hasShownPopup');
if (hasShownPopup === '' || hasShownPopup === null) {
console.log('1111111111');
this.showTips = true;
this.startCountdown();
uni.setStorageSync('hasShownPopup', true);
@ -4476,7 +4491,7 @@
this.showTips = uni.getStorageSync('hasShownPopup');
console.log(this.showTips, 'this.showTips');
this.startCountdown();
}
if (this.sn) {
setTimeout(()=>{
@ -4490,7 +4505,7 @@
},800)
}
// if(!hasShownPopup){
// console.log(typeof(hasShownPopup),'hasShownPopuphasShownPopup');
// this.showTips=uni.getStorageSync('hasShownPopup')
@ -4498,7 +4513,7 @@
// this.showTips=true
// uni.setStorageSync('hasShownPopup', true);
// }
// this.$store.commit('SET_SHOWTIPS', true);
// console.log(this.polyline);
} else {
@ -4511,6 +4526,7 @@
}).catch(error => {
console.error("Error fetching area data:", error);
});
},
convertBoundaryToPolyline(boundary) {