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

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 // ... A
] ]
}, },
{ // {
"root": "pages_adminSet", // A // "root": "pages_adminSet", // A
"pages": [ // "pages": [
{ // {
"path": "shgl", // "path": "shgl",
"style": { // "style": {
"navigationBarTitleText": "上传", // "navigationBarTitleText": "上传",
"enablePullDownRefresh": false, // "enablePullDownRefresh": false,
"navigationStyle": "custom" // "navigationStyle": "custom"
} // }
} // }
// ... A // // ... A
] // ]
}, // },
{ {
"root": "page_user", "root": "page_user",
"pages": [{ "pages": [{

View File

@ -1069,7 +1069,13 @@
this.$nextTick(() => { this.$nextTick(() => {
this.initScroll(); this.initScroll();
}); });
} },
showdevice(newValue, oldValue) {
console.log('showdevice变化了', newValue, oldValue);
},
deviceIndex(newValue, oldValue) {
console.log('deviceIndex变化了', newValue, oldValue);
},
}, },
@ -1134,9 +1140,9 @@
} }
} }
setTimeout(() => { // setTimeout(() => {
this.$store.commit('SET_SHOWTIPS', true); // this.$store.commit('SET_SHOWTIPS', true);
}, 500) // }, 500)
}, },
onShow() { onShow() {
this.timestare() this.timestare()
@ -1208,7 +1214,8 @@
that.longitude = lb.longitude; that.longitude = lb.longitude;
that.deviceGps.latitude = lb.latitude; that.deviceGps.latitude = lb.latitude;
that.deviceGps.longitude = lb.longitude; that.deviceGps.longitude = lb.longitude;
console.log(that.areaInfo, 'that.areaInfo'); // console.log(that.areaInfo, 'that.areaInfo');
console.log('进入了1111111111111');
that.getArea() that.getArea()
if (that.qParam != 'null' && that.showagre == false) { if (that.qParam != 'null' && that.showagre == false) {
let qParam = that.qParam let qParam = that.qParam
@ -1279,6 +1286,8 @@
} else { } else {
this.getinfo() this.getinfo()
} }
}, },
@ -1288,7 +1297,7 @@
if (this.timers) { if (this.timers) {
clearInterval(this.timers); clearInterval(this.timers);
this.timers = null; this.timers = null;
console.log('定时器已清除'); console.log('定时器已清除1');
} }
xBlufi.listenDeviceMsgEvent(false, this.funListenDeviceMsgEvent); xBlufi.listenDeviceMsgEvent(false, this.funListenDeviceMsgEvent);
xBlufi.notifyStartDiscoverBle({ xBlufi.notifyStartDiscoverBle({
@ -1300,7 +1309,7 @@
if (this.timers) { if (this.timers) {
clearInterval(this.timers); clearInterval(this.timers);
this.timers = null; this.timers = null;
console.log('定时器已清除'); console.log('定时器已清除2');
} }
xBlufi.listenDeviceMsgEvent(false, this.funListenDeviceMsgEvent); xBlufi.listenDeviceMsgEvent(false, this.funListenDeviceMsgEvent);
xBlufi.notifyStartDiscoverBle({ xBlufi.notifyStartDiscoverBle({
@ -1312,7 +1321,7 @@
if (this.timers) { if (this.timers) {
clearInterval(this.timers); clearInterval(this.timers);
this.timers = null; this.timers = null;
console.log('定时器已清除'); console.log('定时器已清除3');
} }
xBlufi.listenDeviceMsgEvent(false, this.funListenDeviceMsgEvent); xBlufi.listenDeviceMsgEvent(false, this.funListenDeviceMsgEvent);
xBlufi.notifyStartDiscoverBle({ xBlufi.notifyStartDiscoverBle({
@ -4386,16 +4395,23 @@
if (res.code == 200) { if (res.code == 200) {
this.$store.commit('SET_USERID', res.user.userId); this.$store.commit('SET_USERID', res.user.userId);
this.userinfo = res.user this.userinfo = res.user
} else {
setTimeout(()=>{ setTimeout(()=>{
this.getinfo() 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()
// }, 200)
} }
}); });
} }
}, },
getSNFromQRCode(url) { getSNFromQRCode(url) {
@ -4430,7 +4446,6 @@
this.gps.sn = this.sn this.gps.sn = this.sn
} }
this.$u.get('/app/area/info?', this.gps).then((res) => { this.$u.get('/app/area/info?', this.gps).then((res) => {
// this.showmap = true // this.showmap = true
if (res.code === 200) { if (res.code === 200) {
@ -4511,6 +4526,7 @@
}).catch(error => { }).catch(error => {
console.error("Error fetching area data:", error); console.error("Error fetching area data:", error);
}); });
}, },
convertBoundaryToPolyline(boundary) { convertBoundaryToPolyline(boundary) {