wangguoyu 5 月之前
父节点
当前提交
1d742410b9
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      pages/study/product/yingyu.vue

+ 2 - 1
pages/study/product/yingyu.vue

@@ -123,10 +123,11 @@
 	
 	
 	// 获取节class
 	// 获取节class
 	function getClass (data,index,isVip){
 	function getClass (data,index,isVip){
-		console.log(data,index,isVip,'data,index,isVip');
 		let brandActive = '';
 		let brandActive = '';
 		if(isVip==='VIP'){
 		if(isVip==='VIP'){
 			brandActive = 'brand-active';
 			brandActive = 'brand-active';
+		}else if(index===0){
+			brandActive = 'brand-active';
 		}else{
 		}else{
 			brandActive = '';
 			brandActive = '';
 		}
 		}