Ver Fonte

feat(message): 无消息时折叠

wangpx há 1 ano atrás
pai
commit
7ead770027
1 ficheiros alterados com 2 adições e 6 exclusões
  1. 2 6
      pages/message/index.vue

+ 2 - 6
pages/message/index.vue

@@ -3,7 +3,7 @@
 		<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="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>
@@ -303,7 +303,7 @@ function setAllMsgRead() {
 }
 </script>
 
-<style lang="scss">
+<style lang="scss" scoped>
 @import "@/static/font/ygoa/iconfont.css";
 
 .text {
@@ -312,10 +312,6 @@ function setAllMsgRead() {
 	margin-top: 10rpx;
 }
 
-::v-deep .uni-section-header__content {
-	// max-width: 3rem;
-}
-
 .toClockInBtn {
 	.uni-fab__circle--rightBottom {
 		bottom: 100px;