Pārlūkot izejas kodu

通知显示修改

wgl 4 gadi atpakaļ
vecāks
revīzija
1ac395e673

+ 1 - 1
config/project.js

@@ -1 +1 @@
-exports.name = 'business'
+exports.name = 'pension'

+ 1 - 1
src/projects/business/views/Master/Home.vue

@@ -65,7 +65,7 @@
 					</div>
 					<div v-if="noticeList.length" class="mui-col-xs-12">
 						<div class="vongi-floor-padded">
-							<router-link :to="{name:'CommonNotice',query:{type:1}}" v-for="(item,index) in noticeList" :key="index" :class="'text-list '+(item.readStatus?'red-after':'')">
+							<router-link :to="{name:'CommonNotice',query:{type:1}}" v-for="(item,index) in noticeList" :key="index" :class="'text-list '+(item.readStatus?'':'red-after')">
 								<h5 class="mui-ellipsis" v-text="item.title"></h5><span v-text="item.date"></span>
 							</router-link>
 						</div>

+ 5 - 2
src/projects/pension/views/Master/Home.vue

@@ -65,7 +65,7 @@
 					</div>
 					<div v-if="noticeList.length" class="mui-col-xs-12">
 						<div class="vongi-floor-padded">
-							<router-link :to="{name:'CommonNotice',query:{type:1}}" v-for="(item,index) in noticeList" :key="index" class="text-list">
+							<router-link :to="{name:'CommonNotice',query:{type:1}}" v-for="(item,index) in noticeList" :key="index" :class="'text-list '+(item.readStatus?'':'red-after')">
 								<h5 class="mui-ellipsis" v-text="item.title"></h5><span v-text="item.date"></span>
 							</router-link>
 						</div>
@@ -303,4 +303,7 @@
 <style scoped src="$project/assets/css/pension.css"></style>
 <style src="$project/assets/css/mui.picker.min.css"></style>
 <style scoped>
-</style>
+	.red-after:after {
+		background: red;
+	}
+</style>