wangguoyu 2 тижнів тому
батько
коміт
e818783b5a
1 змінених файлів з 4 додано та 3 видалено
  1. 4 3
      pages/study/product/yingyu.vue

+ 4 - 3
pages/study/product/yingyu.vue

@@ -82,7 +82,7 @@
 		growthType.value = cacheManager.get('auth')?cacheManager.get('auth').growthType:props.youkeImage
 	})
 	const isVip = getUserIdentity();
-	console.log('isVip',);
+	console.log('isVip',isVip);
 	const gradeMapping = {
 		1: '一年级',
 		2: '二年级',
@@ -145,12 +145,13 @@
 
 	// 获取节class
 	function getClass(data, index, isVip,item) {
+	
 		let brandActive = '';
 		if (isVip === 'VIP') {
 			brandActive = 'brand-active';
-		} else if (data.number == 1 && isVip =='Not-Vip') {
+		} else if (item.firstFlag == 1 && isVip =='Not-Vip') {
 			brandActive = 'brand-active';
-		}else if (data.number == 1 && isVip =='Visitor' &&item.type ==1){
+		}else if (item.firstFlag == 1 && isVip =='Visitor' &&item.type ==1){
 			brandActive = 'brand-active';
 		} else {
 			brandActive = '';