From 5cd305e82c737b0674466f6b5d55b1b8d4335d65 Mon Sep 17 00:00:00 2001 From: lancer <1905818361@qq.com> Date: Wed, 26 Jan 2022 15:56:14 +0800 Subject: [PATCH] init --- pages/index/index.vue | 29 +++++++++++++++++++++++++---- utils/domain.js | 6 +++--- 2 files changed, 28 insertions(+), 7 deletions(-) diff --git a/pages/index/index.vue b/pages/index/index.vue index 7867272..6776a77 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -71,19 +71,19 @@ 待处理 - {{equipmentobj.totalNum || 0}} + {{operation.receptionCount || 0}} 接待即将结束 - {{equipmentobj.onlineNum || 0}} + {{operation.accountCount || 0}} 未标顾问 - {{equipmentobj.activeNum || 0}} + {{operation.forbiddenCount || 0}} 违禁提醒 - {{equipmentobj.lowPowerNum || 0}} + {{operation.lowPowerNum || 0}} 低电工牌 @@ -348,6 +348,12 @@ activeNum: '', lowPowerNum: '', }, + operation:{ + receptionCount:'', + accountCount:'', + forbiddenCount:'', + lowPowerNum:'' + }, Menulist: [], realtimeobj: { sumCustomer: '', @@ -426,6 +432,7 @@ this.equipmentisshow = true; // this.Myworkcard = false; this.initequipment() + this.waitForOperation() } this.initworkThisWeek() this.initrealTimeStatistics() @@ -586,6 +593,19 @@ } }) }, + // 待处理 + waitForOperation (){ + this.$u.post('/cusLvStatistics/waitForOperation ',{ + houseId:this.buildingID + }) + .then(res=>{ + // console.log(res,'带接待') + this.operation.receptionCount=res.receptionCount + this.operation.accountCount=res.accountCount + this.operation.forbiddenCount=res.forbiddenCount + this.operation.lowPowerNum=res.lowPowerNum + }) + }, //我的工牌 iniodianloang() { uni.request({ @@ -647,6 +667,7 @@ uni.setStorageSync("buildingID", lopan); //楼盘id写入缓存 this.initworkThisWeek() this.initrealTimeStatistics() + this.waitForOperation() this.initequipment() this.iniodianloang() diff --git a/utils/domain.js b/utils/domain.js index ba888d3..e57b5b7 100644 --- a/utils/domain.js +++ b/utils/domain.js @@ -2,11 +2,11 @@ // const base = 'http://39.97.167.65' ;// 测试站 // const base = 'http://8kdmng.natappfree.cc' ;// 佳豪 // const base = 'http://192.168.31.134:9999' ;// 佳豪 -// const base = 'http://192.168.31.167:9999' // 长龙 -const base = 'https://zanyong.hfju.com';// 正式 +const base = 'http://192.168.31.167:9999' // 长龙 +// const base = 'https://zanyong.hfju.com';// 正式 // http.js使用 -const baseUrl = `${base}/autoSR/api`; // 长龙 +const baseUrl = `${base}/autoSR/api`; // config 使用 const host = `${base}/autoSR/api`; const hosts = `${base}/`;