wangguoyu 2 недель назад
Родитель
Сommit
96b1c8a98f

+ 1 - 1
pages/study/index.vue

@@ -381,7 +381,7 @@
 	function listClick(data, data2, index) {
 		console.log('data', data); // 节内容
 		console.log('data2', data2); //章内容
-		if (!cacheManager.get('auth')) {
+		if (!cacheManager.get('auth') && data.firstFlag!=1) {
 			youkeDialogRef.value.handleShow();
 			return;
 		}

+ 8 - 7
pages/study/product/shuxue.vue

@@ -33,13 +33,14 @@
 						<!-- 节名称 -->
 						<view class="brand-content"> {{ item.jieName }} </view>
 					</view>
-					
+
 					<view v-if="isVip == 'Visitor'">
-						<!-- 序号或锁 -->
-						<view   class="brand-icon">{{ item.number }}
+			
+						<!-- 锁 -->
+						<view v-if="options.number ==1 && item.firstFlag ==1" class="brand-icon">{{ item.number }}
 						</view>
 						<!-- 锁 -->
-						<view  v-if="options.number !='1' || item.type==2"  class="brand-lock"></view>
+						<view v-else class="brand-lock"></view>
 						<!-- 箭头 -->
 						<view v-if="item.daeFlag  &&  animalNum == index &&isVip != 'Visitor'" class="brand-arrow">
 						</view>
@@ -167,14 +168,14 @@
 	}
 
 	// 获取节class
-	function getClass(data, index, isVip,item) {
+	function getClass(data, index, isVip, item) {
 		//	console.log('data',data);
 		let brandActive = '';
 		if (isVip === 'VIP') {
 			brandActive = 'brand-active';
-		} else if (data.number == 1&&item.firstFlag==1 && isVip =='Not-Vip') {
+		} else if (data.number == 1 && item.firstFlag == 1 && isVip == 'Not-Vip') {
 			brandActive = 'brand-active';
-		} else if (data.number == 1&&item.firstFlag==1 && isVip =='Visitor' &&item.type ==1) {
+		} else if (data.number == 1 && item.firstFlag == 1 && isVip == 'Visitor' && item.type == 1) {
 			brandActive = 'brand-active';
 		} else {
 			brandActive = '';

+ 3 - 3
pages/study/product/shuxueNew.vue

@@ -30,10 +30,10 @@
 					
 					
 					<view v-if="isVip == 'Visitor'">
-						<!-- 序号 -->
-						<view   class="brand-icon">{{ item.number }} </view>
+			
+						<view v-if="options.number ==1 && item.firstFlag ==1" class="brand-icon">{{ item.number }} </view>
 						<!-- 锁 -->
-						<view  v-if="options.number !='1' || item.type==2"  class="brand-lock"></view>
+						<view v-else class="brand-lock"></view>
 						<!-- 箭头 -->
 						<view v-if="item.daeFlag  &&  animalNum == index &&isVip != 'Visitor'" class="brand-arrow"> </view>
 						<!-- 节名称 -->

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

@@ -31,10 +31,10 @@
 
 					</view>
 					<view v-if="isVip == 'Visitor'">
-						<!-- 序号 -->
-						<view  class="brand-icon">{{ item.number }}</view>
 						<!-- 锁 -->
-						<view v-if="options.number !='1' || item.type==2"  class="brand-lock"></view>
+						<view v-if="options.number ==1 && item.firstFlag ==1" class="brand-icon">{{ item.number }} </view>
+						<!-- 锁 -->
+						<view v-else class="brand-lock"></view>
 						<!-- 箭头 -->
 						<view v-if="item.daeFlag  &&  animalNum == index && isVip != 'Visitor'" class="brand-arrow"></view>
 						<!-- 节名称 -->