From 9ff9e1b5e1287aa20f6fa9e94164b2537fff2e19 Mon Sep 17 00:00:00 2001 From: cclu <1106109051@qq.com> Date: Fri, 24 Mar 2023 19:25:31 +0800 Subject: [PATCH] update --- pages/index/index.vue | 6 +++--- pages/userCenter/userCenter.vue | 38 ++++++++++++++++++++++----------- 2 files changed, 29 insertions(+), 15 deletions(-) diff --git a/pages/index/index.vue b/pages/index/index.vue index 6d306cd..4bc4080 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -17,8 +17,8 @@ -

对客营收:

- 门店上传 {{showHeadMsg.uploadState?showHeadMsg.uploadState:''}} +

对客营收

+ 门店上传: {{showHeadMsg.uploadState?showHeadMsg.uploadState:''}}

{{showHeadMsg.totalMoneyShow|| '0.00'}}

@@ -936,7 +936,7 @@ export default { let index = this.showHeadMsg.uploadState.indexOf('/') let first = this.showHeadMsg.uploadState.slice(0,index) let second = this.showHeadMsg.uploadState.slice(index+1,1000) - if (Number(first)-Number(second)>0){ + if (Number(first)-Number(second)<0){ this.isBig = true } _this.$forceUpdate() diff --git a/pages/userCenter/userCenter.vue b/pages/userCenter/userCenter.vue index d0e2850..2108181 100644 --- a/pages/userCenter/userCenter.vue +++ b/pages/userCenter/userCenter.vue @@ -192,7 +192,7 @@ import Tabbar from "../../components/tabbar/tabbar.vue"; imagePath: '/static/images/user/authorityApproval.svg', }, { - id:'', + id:'b0b63a75-56c9-4f1d-aacb-a26e62b47e3e', name: '数据校验', homeUrl: '/pages/dataSummary/dataSummary', notice:0, @@ -258,33 +258,47 @@ import Tabbar from "../../components/tabbar/tabbar.vue"; let phoneStr = state.userData.Membership_Phone if(phoneStr){ return phoneStr.substr(0,3)+' **** '+phoneStr.substr(phoneStr.length-2,phoneStr.length-1) - }else { return '' } - } - }), - getPhone(){ + }, - } + }) }, onLoad(){ let systemInfo = uni.getSystemInfoSync() this.statusBarHeight = Number(systemInfo.statusBarHeight) this.menu = uni.getMenuButtonBoundingClientRect() - console.log('toDoMsg',this.toDoMsg) this.dataList[2].list.forEach(item=>{ - for(let key in this.toDoMsg){ + for(let key in this.user.AuthorityInfo){ if (key === item.id){ - item.isNotice = true - item.notice = this.toDoMsg[key] + if (this.user.AuthorityInfo[key]===1){ + item.isNotice = true + } } } }) + this.dataList[3].list.forEach(item=>{ + for(let key in this.user.AuthorityInfo){ + if (key === item.id){ + if (this.user.AuthorityInfo[key]===1){ + item.isNotice = true + } + + } + } + }) + + this.dataList[2].list.forEach(item=>{ + for(let key in this.toDoMsg){ + if (key === item.id){ + item.notice = this.toDoMsg[key] + } + } + }) this.dataList[3].list.forEach(item=>{ for(let key in this.toDoMsg){ if (key === item.id){ - item.isNotice = true item.notice = this.toDoMsg[key] } } @@ -413,7 +427,7 @@ import Tabbar from "../../components/tabbar/tabbar.vue"; font-weight: 400; color: #782717; line-height: 36rpx; - width: 98%; + width: 100%; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;