Browse Source

周报列表

newStyle
风继续吹 1 year ago
parent
commit
5a37ad69e9
2 changed files with 82 additions and 7 deletions
  1. +9
    -1
      App.vue
  2. +73
    -6
      pages/index/index.vue

+ 9
- 1
App.vue View File

@@ -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;


+ 73
- 6
pages/index/index.vue View File

@@ -64,6 +64,41 @@
</view>
</view>
</view>
<!-- 临期项目提醒 -->
<view class="endworking" v-if="bulidIngObj.daysRemaining <= 60"
:class="{sixty: (bulidIngObj.daysRemaining > 15 && bulidIngObj.daysRemaining <= 60), fifteen: bulidIngObj.daysRemaining <= 15}">
您的服务于{{ bulidIngObj.endWorking }}到期,为了避免影响您的使用,请与服务商联系
</view>

<template v-if="CHECKAUTHORITY('zxscsy')">
<view class="contbox">
<view class="title">
<image class="title-icon" src="https://static.quhouse.com/bc2ec951ad9a47e5bf58f2829926e143.png"
mode="" />
转写消费
</view>
<view class="shebenbox">
<view class="shebenche">
<view class="shebenchenum">{{paraphraseObj.rechargeSum || 0}}</view>
<view class="shebenchetext">购买小时</view>
</view>
<view class="shebenche">
<view class="shebenchenum">{{paraphraseObj.presenterSum || 0}}</view>
<view class="shebenchetext">赠送小时</view>
</view>
<view class="shebenche">
<view class="shebenchenum">{{paraphraseObj.useSum || 0}}</view>
<view class="shebenchetext">已用小时</view>
</view>
<view class="shebenche">
<view class="shebenchenum" :style="paraphraseObj.surplusSum < 100 ? 'color: red' : ''">
{{paraphraseObj.surplusSum || 0}}
</view>
<view class="shebenchetext">剩余小时</view>
</view>
</view>
</view>
</template>
<!-- 设备总览 -->
<view class="contbox" v-if="permissions.shebeinum">
<view class="title">
@@ -94,7 +129,8 @@
<!-- 今日工作 -->
<view class="contbox" v-if="permissions.shishinum">
<view class="title">
<image class="title-icon" src="https://static.quhouse.com/bc2ec951ad9a47e5bf58f2829926e143.png" mode="" />今日工作
<image class="title-icon" src="https://static.quhouse.com/bc2ec951ad9a47e5bf58f2829926e143.png"
mode="" />今日工作
</view>
<view class="real-timebox">
<view class="timebox">
@@ -118,8 +154,8 @@
<view class="realtext">正在接待</view>
</view>
</view>
<view class="timebox" >
<view class="real" @click="tapjumpreception('6')">
<view class="timebox">
<view class="real" @click="tapjumpreception('6')">
<view class="realnum">{{realtimeobj.activeCustomer|| 0}}</view>
<view class="realtext">有效接待</view>
</view>
@@ -138,7 +174,7 @@
</view>
<view class="realtext">违禁预警</view>
</view>

</view>
</view>
@@ -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;
}
</style>

Loading…
Cancel
Save