|
|
@@ -3,13 +3,13 @@
|
|
|
<uni-nav-bar dark :border="false" :fixed="true" title="宇光同行">
|
|
|
</uni-nav-bar>
|
|
|
<!-- 待办消息列表 -->
|
|
|
- <uni-collapse>
|
|
|
- <uni-collapse-item title-border="show" :border="true" :show-animation="true" :open="unProcessNum > 0 || false">
|
|
|
+ <uni-collapse :accordion="true">
|
|
|
+ <uni-collapse-item title-border="show" :border="true" :show-animation="true"
|
|
|
+ :open="unProcessNum > 0 || false">
|
|
|
<template v-slot:title>
|
|
|
<uni-section title="待办" type="line" titleFontSize="1.3rem">
|
|
|
<template v-slot:right>
|
|
|
- <uni-badge :text="unProcessNum" class="unReadBadge"
|
|
|
- v-if="unProcessNum > 0"></uni-badge>
|
|
|
+ <uni-badge :text="unProcessNum" class="unReadBadge" v-if="unProcessNum > 0"></uni-badge>
|
|
|
</template>
|
|
|
</uni-section>
|
|
|
</template>
|
|
|
@@ -21,19 +21,46 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
</uni-collapse-item>
|
|
|
+ <!-- 公告列表 -->
|
|
|
+ <uni-collapse-item title-border="show" :border="true" :show-animation="true"
|
|
|
+ :open="unReadMsgNum > 0 || false">
|
|
|
+ <template v-slot:title>
|
|
|
+ <uni-section title="公告" type="line" titleFontSize="1.3rem">
|
|
|
+ <!-- <template v-slot:right>
|
|
|
+ <uni-badge :text="unReadMsgNum"
|
|
|
+ v-if="unReadMsgNum !== undefined && unReadMsgNum > 0"></uni-badge>
|
|
|
+ <button @click.stop="clickReadButton" class="read_button" v-if="unReadMsgNum !== undefined"
|
|
|
+ :disabled="unReadMsgNum === 0 ? true : false">一键阅读</button>
|
|
|
+ </template> -->
|
|
|
+ </uni-section>
|
|
|
+ </template>
|
|
|
+ <message-list @clickSegment="getNoticeData" @clickItem="handleToNoticeDetail"
|
|
|
+ @scrollToBottom="getNoticePage" :pSize="5" :pageNo="1" :anime="true" :open="false"></message-list>
|
|
|
+ </uni-collapse-item>
|
|
|
+ <!-- 消息列表 -->
|
|
|
+ <uni-collapse-item title-border="show" :border="true" :show-animation="true"
|
|
|
+ :open="unReadMsgNum > 0 || false">
|
|
|
+ <template v-slot:title>
|
|
|
+ <uni-section title="消息" type="line" titleFontSize="1.3rem">
|
|
|
+ <template v-slot:right>
|
|
|
+ <uni-badge :text="unReadMsgNum"
|
|
|
+ v-if="unReadMsgNum !== undefined && unReadMsgNum > 0"></uni-badge>
|
|
|
+ <button @click.stop="setAllMsgRead" class="read_button" v-if="unReadMsgNum !== undefined"
|
|
|
+ :disabled="unReadMsgNum === 0 ? true : false">一键阅读</button>
|
|
|
+ </template>
|
|
|
+ </uni-section>
|
|
|
+ </template>
|
|
|
+ <message-list ref="msgListRef" @readMsg="setAllMsgRead" @clickSegment="getMessageData"
|
|
|
+ @clickItem="handleToMessageDetail" @scrollToBottom="getMessagePage" :defaultCurrent="1" :pSize="5"
|
|
|
+ :pageNo="1" :segments="{ '全部': '', '未读': '0', '已读': '1' }">
|
|
|
+ </message-list>
|
|
|
+ </uni-collapse-item>
|
|
|
</uni-collapse>
|
|
|
-
|
|
|
<!-- 公告列表 -->
|
|
|
- <message-list @clickSegment="getNoticeData" @clickItem="handleToNoticeDetail" @scrollToBottom="getNoticePage" :pSize="5" :pageNo="1"
|
|
|
- :anime="true" :open="false" title="公告"></message-list>
|
|
|
+ <!-- <message-list @clickSegment="getNoticeData" @clickItem="handleToNoticeDetail" @scrollToBottom="getNoticePage" :pSize="5" :pageNo="1" :anime="true" :open="false" title="公告"></message-list> -->
|
|
|
|
|
|
<!-- 消息列表 -->
|
|
|
- <message-list ref="msgListRef" @readMsg="setAllMsgRead" :unReadNum="unReadMsgNum" @clickSegment="getMessageData"
|
|
|
- @clickItem="handleToMessageDetail"
|
|
|
- @scrollToBottom="getMessagePage" :defaultCurrent="1" :pSize="5"
|
|
|
- :pageNo="1" :anime="true" :open="false"
|
|
|
- :segments="{ '全部': '', '未读': '0', '已读': '1' }" title="消息">
|
|
|
- </message-list>
|
|
|
+ <!-- <message-list ref="msgListRef" @readMsg="setAllMsgRead" :unReadNum="unReadMsgNum" @clickSegment="getMessageData" @clickItem="handleToMessageDetail" @scrollToBottom="getMessagePage" :defaultCurrent="1" :pSize="5" :pageNo="1" :anime="true" :open="false" :segments="{ '全部': '', '未读': '0', '已读': '1' }" title="消息"></message-list> -->
|
|
|
|
|
|
<!-- 跳转打卡页按钮 -->
|
|
|
<view class="fab_button toClockInBtn">
|
|
|
@@ -67,7 +94,7 @@ const processListRef = ref(null)
|
|
|
onMounted(() => {
|
|
|
uni.$on('showTabBarBadge', showTabBarBadge)
|
|
|
uni.$on('ReloadProcessData', () => {
|
|
|
- new Promise((resolve, reject) =>{
|
|
|
+ new Promise((resolve, reject) => {
|
|
|
processListRef.value.onClickItem()
|
|
|
})
|
|
|
})
|
|
|
@@ -297,12 +324,12 @@ function setAllMsgRead() {
|
|
|
userStore.LogOut().then(res => {
|
|
|
uni.reLaunch({ url: '/pages/login' })
|
|
|
})
|
|
|
- }).catch(()=>{})
|
|
|
+ }).catch(() => { })
|
|
|
}
|
|
|
})
|
|
|
})
|
|
|
}
|
|
|
- }).catch(()=>{})
|
|
|
+ }).catch(() => { })
|
|
|
}
|
|
|
</script>
|
|
|
|
|
|
@@ -320,27 +347,47 @@ function setAllMsgRead() {
|
|
|
bottom: 100px;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
.uni-badge {
|
|
|
- height: 1.5rem !important;
|
|
|
- line-height: 1.375rem !important;
|
|
|
- font-size: 1.125rem !important;
|
|
|
+ height: 1.5rem !important;
|
|
|
+ line-height: 1.375rem !important;
|
|
|
+ font-size: 1.125rem !important;
|
|
|
}
|
|
|
|
|
|
+.read_button {
|
|
|
+ position: absolute;
|
|
|
+ top: 12px;
|
|
|
+ right: 38px;
|
|
|
+ height: 28px;
|
|
|
+ line-height: 28px;
|
|
|
+ font-size: 14px;
|
|
|
+ background-color: #007aff;
|
|
|
+ color: #fff;
|
|
|
+}
|
|
|
+.read_button[disabled] {
|
|
|
+ background-color: #f5f5f5;
|
|
|
+ color: #666;
|
|
|
+ opacity: 0.5;
|
|
|
+}
|
|
|
::v-deep .flow_step_section {
|
|
|
- .uni-section .uni-section-header {
|
|
|
+ .uni-section .uni-section-header {
|
|
|
padding: 5px 10px;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
::v-deep .flow_step_container {
|
|
|
+ min-height: 60px;
|
|
|
+ margin: 10px 15px;
|
|
|
.u-steps {
|
|
|
.u-steps-item {
|
|
|
padding-bottom: 11px;
|
|
|
+
|
|
|
.redcontent {
|
|
|
.u-text__value--content {
|
|
|
color: #ff4500;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
.active_step_circle {
|
|
|
width: 20px;
|
|
|
height: 20px;
|