shish il y a 3 ans
Parent
commit
962713af85
2 fichiers modifiés avec 32 ajouts et 4 suppressions
  1. 29 2
      ghsApp/src/admin/home/workbench.vue
  2. 3 2
      ghsApp/src/admin/notice/index.vue

+ 29 - 2
ghsApp/src/admin/home/workbench.vue

@@ -28,8 +28,10 @@
 	<template v-if="lookMoney == 1">
 
 		<div class="user-wrap">
-			<div class="user-top">
+			<div class="user-top" style="position: relative;">
 				<div class="app-size-28">今日概况</div>
+				<image :src="`${constant.imgUrl}/icon/notice_icon.png`" @click="toNotify()" class="mind-item"></image>
+				<view class="red-mind" @click="toNotify()">1</view>
 			</div>
 			<div class="income-amount" @click="pageTo({url:'/admin/stat/kdIncome'})">
 				<div>收入</div>
@@ -268,6 +270,9 @@ export default {
 		showErrorPriceFn(){
 			this.$refs.errorPriceRef.open('top')
 		},
+		toNotify(){
+			this.$util.pageTo({url: "/admin/notice/index"})
+		},
 		goLjh(){
 			let that = this
 			// #ifdef MP-WEIXIN
@@ -423,6 +428,28 @@ export default {
 	background-repeat: no-repeat;
 	.user-top {
 		@include disFlex(center, space-between);
+		.mind-item{
+			width:35upx;
+			height:35upx;
+			position:absolute;
+			right:29upx;
+			top:6upx;
+		}
+		.red-mind{
+			width:42upx;
+			height:42upx;
+			line-height:34upx;
+			font-size:26upx;
+			text-align:center;
+			position:absolute;
+			right:-14upx;
+			top:1upx;
+			background-color: red;
+			color:white;
+			border:1upx solid red;
+			border-radius: 26upx;
+			display: inline-block;
+		}
 		.open-bt_bx {
 			display: flex;
 			align-items: center;
@@ -441,7 +468,7 @@ export default {
 				& > .iconfont {
 					font-size: 25upx;
 					padding-right: 10upx;
-          margin-top: -3upx;
+          			margin-top: -3upx;
 				}
 			}
 		}

+ 3 - 2
ghsApp/src/admin/notice/index.vue

@@ -120,8 +120,9 @@ export default {
     flex-direction: column;
     background-color: #f9fbfc;
     .set-all-read{
-        width:210upx;
-        height:80upx;
+        width:240upx;
+        height:90upx;
+        font-size:25upx;
         line-height:80upx;
         text-align:center;
         bottom:15upx;