wangguoyu 1 月之前
父节点
当前提交
f833636c0b
共有 1 个文件被更改,包括 11 次插入2 次删除
  1. 11 2
      pages/pay/order.vue

+ 11 - 2
pages/pay/order.vue

@@ -321,8 +321,17 @@
 	function goDao(data,index){
 		console.log('data',data);
 		console.log('index',index);
-		if(data.type == 0){
-			
+		if(data.type ==0 &&data.levelList.length ==1){
+			cacheManager.updateObject('auth', {
+				typeId: data.levelList[0].typeId,
+				levelId: data.levelList[0].levelId,
+				subjectId: data.levelList[0].subjectId,
+				currentZhang: 0
+			})
+			cacheManager.remove('daoPageCache')
+			uni.redirectTo({
+				url: `/pages/study/index`
+			})
 		}
 	}
 	function genggaiVip(data) {