去掉首页定时刷新今日订单数据

This commit is contained in:
Mr.jiang 2024-08-21 09:55:11 +08:00
parent 7dd91b77f3
commit fcc0644787
2 changed files with 9 additions and 8 deletions

View File

@ -2,8 +2,8 @@
"name" : "盛安到家",
"appid" : "__UNI__B37C795",
"description" : "",
"versionName" : "2.1.0",
"versionCode" : 110,
"versionName" : "2.1.1",
"versionCode" : 120,
"transformPx" : false,
/* 5+App */
"app-plus" : {

View File

@ -775,12 +775,13 @@ export default {
// #endif
let that = this
if (that.time) clearInterval(that.time);
if (this.isLogin) {
that.time = setInterval(function () {
that.getNewOrder()
console.log(that.time);
}, 10000)
}
that.getNewOrder()
// if (this.isLogin) {
// that.time = setInterval(function () {
// that.getNewOrder()
// console.log("",that.time);
// }, 100)
// }
} else {
console.log(this.userId,"false============>");
this.isLogin = false