易建军 1 일 전
부모
커밋
2ece462b2b
1개의 변경된 파일5개의 추가작업 그리고 2개의 파일을 삭제
  1. 5 2
      mer_uniapp/pages/index/index.vue

+ 5 - 2
mer_uniapp/pages/index/index.vue

@@ -281,8 +281,11 @@
 					this.proList = res.data.proList;
 					console.log(res.data)
 					this.messageList = res.data.headline;
-					this.cateList = res.data.navigatList;
-					this.cateId = res.data.cateId
+					this.cateList = res.data.navigatList.map(item => {
+						if (item.name == '今日吃啥') item.color = '#FF9805';
+						return item;
+					});
+					this.cateId = res.data.cateId;
 					// this.cateList.push({
 					// 	id: 999999,
 					// 	name: '今日吃啥',