|
@@ -96,10 +96,6 @@
|
|
function handleBack() {
|
|
function handleBack() {
|
|
const userCode = getUserIdentity();
|
|
const userCode = getUserIdentity();
|
|
if (userCode !== 'Visitor') {
|
|
if (userCode !== 'Visitor') {
|
|
- if (!data.activeProduct) {
|
|
|
|
- return;
|
|
|
|
- }
|
|
|
|
- const auth = cacheManager.get('auth');
|
|
|
|
uni.redirectTo({
|
|
uni.redirectTo({
|
|
url: `/pages/selectGradesTerms/index`
|
|
url: `/pages/selectGradesTerms/index`
|
|
})
|
|
})
|
|
@@ -165,17 +161,21 @@
|
|
|
|
|
|
|
|
|
|
function initUserProducts() {
|
|
function initUserProducts() {
|
|
|
|
+ const {
|
|
|
|
+ levelId,
|
|
|
|
+ } = cacheManager.get('auth');
|
|
|
|
+ data.levelId = levelId;
|
|
httpApi.getUserZhangList({
|
|
httpApi.getUserZhangList({
|
|
levelId: data.levelId
|
|
levelId: data.levelId
|
|
}).then(res => {
|
|
}).then(res => {
|
|
data.allList = res.data || [];
|
|
data.allList = res.data || [];
|
|
const {
|
|
const {
|
|
- levelId,
|
|
|
|
|
|
+ zhangId,
|
|
} = cacheManager.get('auth');
|
|
} = cacheManager.get('auth');
|
|
- if (levelId) {
|
|
|
|
|
|
+ if (zhangId) {
|
|
// LevelId 翻找根节点学科,执行选中高亮操作
|
|
// LevelId 翻找根节点学科,执行选中高亮操作
|
|
- const obj1 = findRootNode(data.allList, shangxiaId, 'shangxiaId');
|
|
|
|
- const obj2 = findTreeNode(data.allList, shangxiaId, 'children', 'shangxiaId');
|
|
|
|
|
|
+ const obj1 = findRootNode(data.allList, zhangId, 'id');
|
|
|
|
+ const obj2 = findTreeNode(data.allList, zhangId, 'children', 'id');
|
|
data.shangxiaVersionId = obj2.id;
|
|
data.shangxiaVersionId = obj2.id;
|
|
data.shangxiaId = obj1.id;
|
|
data.shangxiaId = obj1.id;
|
|
|
|
|