|
@@ -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) {
|