|
@@ -40,6 +40,7 @@
|
|
|
} from "@dcloudio/uni-app";
|
|
|
import {getUserIdentity} from "@/utils/common.js"
|
|
|
import cacheManager from "@/utils/cacheManager.js"
|
|
|
+ import {getCardOnline} from "../../api/catalogue";
|
|
|
|
|
|
const comingSoonDialogRef = ref(null);
|
|
|
function useSelectGrade() {
|
|
@@ -51,7 +52,7 @@
|
|
|
});
|
|
|
|
|
|
onLoad(({nianji,cardId,tipFlag}) => {
|
|
|
- // comingSoonDialogRef.value.handleShow();
|
|
|
+
|
|
|
if (userCode !== 'Visitor') {
|
|
|
const {
|
|
|
nianji: nianji_,
|
|
@@ -85,7 +86,14 @@
|
|
|
});
|
|
|
return;
|
|
|
}
|
|
|
- goDAOToStudy();
|
|
|
+
|
|
|
+ getCardOnline({cardId: data.activeXueke,nianji: data.activeNianji}).then(res => {
|
|
|
+ if (res.data) {
|
|
|
+ goDAOToStudy();
|
|
|
+ } else {
|
|
|
+ comingSoonDialogRef.value.handleShow();
|
|
|
+ }
|
|
|
+ })
|
|
|
}
|
|
|
|
|
|
// 跳转 岛 学习
|
|
@@ -95,9 +103,9 @@
|
|
|
cacheManager.updateObject('auth', {
|
|
|
nianji: data.activeNianji,
|
|
|
zhangId: data.activeNianji == auth.nianji && data.activeXueke == auth.cardId ? auth.zhangId: 0,
|
|
|
- cardId: data.activeXueke,
|
|
|
+ cardId: data.activeXueke,
|
|
|
currentZhang: 0
|
|
|
- })
|
|
|
+ })
|
|
|
cacheManager.remove('daoPageCache')
|
|
|
// 数序
|
|
|
uni.redirectTo({
|