瀏覽代碼

岛active样式修改

tanxue 6 月之前
父節點
當前提交
45b187043f
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      pages/study/product/shuxue.vue

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

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