diff --git a/App.vue b/App.vue index 43ab1d3..e419997 100644 --- a/App.vue +++ b/App.vue @@ -20,11 +20,19 @@ StatusBar: Vue.prototype.StatusBar, CustomBar: Vue.prototype.CustomBar, windowHeight: Vue.prototype.windowHeight, - LOADING: false + LOADING: false, + bulidIngObj: uni.getStorageSync('buildingID'), }; }, methods: { + upDateBulidIngObj() { + this.bulidIngObj = uni.getStorageSync('buildingID') + }, + addLookingCount(id) { + this.$u.post('/user/addLookingCount', { houseId: uni.getStorageSync('buildingID').id, recordId: id }) + }, + // 时分秒转换为秒 TIMEEVENT(e) { var time = e; diff --git a/pages/index/index.vue b/pages/index/index.vue index 6346944..94f6a88 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -64,6 +64,41 @@ + + + 您的服务于{{ bulidIngObj.endWorking }}到期,为了避免影响您的使用,请与服务商联系 + + + @@ -94,7 +129,8 @@ - 今日工作 + 今日工作 @@ -118,8 +154,8 @@ 正在接待 - - + + {{realtimeobj.activeCustomer|| 0}} 有效接待 @@ -138,7 +174,7 @@ 违禁预警 - + @@ -403,6 +439,7 @@ // 常错词 ccc // 校准 xz // 查看违禁执行 ckwjzx + paraphraseObj: {}, // 转写消费 }; }, components: {}, @@ -452,6 +489,7 @@ }, onShow() { + this.upDateBulidIngObj() this.getMenu() this.userInfo = uni.getStorageSync('weapp_session_userInfo_data'); @@ -490,10 +528,11 @@ this.initworkThisWeek() this.initrealTimeStatistics() this.updateInit() + this.findByHouseIdForRecharge() }, methods: { // 需求挖掘分析 - toRequireAnalysis(){ + toRequireAnalysis() { uni.navigateTo({ url: '/pages/center/Piabodata/requireminingAnalysis' }); @@ -507,7 +546,7 @@ if (res > 0) { uni.setTabBarBadge({ //显示数字 index: 4, //tabbar下标 - text: `${res}`//数字 + text: `${res}` //数字 }) } else { uni.removeTabBarBadge({ @@ -548,6 +587,7 @@ }, data: { houseId: this.buildingID, + houseName: this.buildingname, serviceId: "test" }, success: (data) => { @@ -672,6 +712,16 @@ }) }, + // 转写充值剩余 + findByHouseIdForRecharge() { + this.$u.get(`/cusLvStatistics/findByHouseIdForRecharge?houseId=${this.buildingID}`).then(res => { + console.log(res) + if (res) { + this.paraphraseObj = res.list + } + }) + }, + //设备 initequipment() { uni.request({ @@ -1261,4 +1311,21 @@ text-align: center; border-bottom: 1rpx solid #f8f8f8; } + + + + .endworking { + margin-top: 20rpx; + padding: 15rpx 30rpx; + width: 100%; + } + + .sixty { + background-color: #FDFCDA; + } + + .fifteen { + background-color: #F9C8C8; + color: #ff0000; + }