Browse Source

样式修改

lilei 4 years ago
parent
commit
61e5642174
1 changed files with 20 additions and 19 deletions
  1. 20 19
      pages/index/index.vue

+ 20 - 19
pages/index/index.vue

@@ -24,10 +24,10 @@
 			</div>
 			<div class="panel-body">
 				<div class="order-list">
-					<div v-for="item in toDoData" :key="item.id">
+					<div v-for="item in toDoData" :key="item.id" @click="viewToDo(item)">
 						<span>{{item.createDate.split(' ')[0]}}</span>
 						<span>{{item.sourceTypeDictValue}}</span>
-						<span>{{item.statusDictValue}}</span>
+						<span :class="item.status">{{item.statusDictValue}}</span>
 					</div>
 				</div>
 				<div class="nodata" v-if="toDoData.length==0">{{notoDoDataText}}</div>
@@ -71,7 +71,7 @@
 					{
 						id: 'DJZX',
 						icon: 'dianjian',
-						color: '#ff5500',
+						color: '#ff8b3e',
 						name: '点检中心',
 						url: '/pages/spotCheckCenter/spotChecking',
 						target: 'page',
@@ -80,7 +80,7 @@
 					{
 						id: 'XCXD',
 						icon: 'xianchangjiancha',
-						color: '#00aa00',
+						color: '#00aa7f',
 						name: '现场巡店',
 						url: '/pages/siteInspection/siteInspection',
 						target: 'page',
@@ -89,7 +89,7 @@
 					{
 						id: 'XDJL',
 						icon: 'tubiaokuwenjian-gengxin-',
-						color: '#d0527e',
+						color: '#55aaff',
 						name: '巡店记录',
 						url: '/pages/shopTourRecord/shopTourRecord',
 						target: 'page',
@@ -170,7 +170,13 @@
 				uni.navigateTo({
 					url: '/pages/toDoList/toDoList'
 				})
-			}
+			},
+			// 详细页
+			viewToDo(item){
+				uni.navigateTo({
+					url: "/pages/toDoList/backlogDetail?id="+item.id
+				})
+			},
 		}
 	};
 </script>
@@ -190,7 +196,7 @@
 			.panel-title {
 				display: flex;
 				align-items: center;
-				padding: 20upx 15upx;
+				padding:20upx 25upx;
 				border-bottom: 2upx solid #eee;
 
 				.texts {
@@ -219,31 +225,26 @@
 				}
 			}
 		}
-
 		.order-list {
 			>div {
 				display: flex;
 				align-items: center;
 				font-size: 30upx;
-				padding: 14upx 0;
-
+				padding: 15upx 0;
 				span {
 					flex-grow: 1;
 					text-align: center;
 					color: #666;
 					width: 33.3%;
 				}
-
-				span.daiJs {
-					color: #ff0000;
+				span.PENDING{
+					color: #ff736e;
 				}
-
-				span.daiWg {
-					color: #ffaa00;
+				span.EXPIRED{
+					color: #999;
 				}
-
-				span.yiJs {
-					color: #5fbe00;
+				span.FINISHED{
+					color: #bbec82;
 				}
 			}
 		}