|
|
|
@ -567,6 +567,7 @@ import SquareStyleCourse from '@/components/Course/squareStyleCourse.vue'; |
|
|
|
|
import Advert from '@/components/Advert/index.vue'; |
|
|
|
|
import { SET_POSITION } from "@/store/types/muations-types"; |
|
|
|
|
import { getLocation } from './getLocation.js'; |
|
|
|
|
import { changeCategory } from '@/api/learning'; |
|
|
|
|
|
|
|
|
|
const QQMapWx = require('../../libs/qqmap-wx-jssdk.min.js'); |
|
|
|
|
|
|
|
|
@ -794,7 +795,7 @@ export default { |
|
|
|
|
return `/pages/index/unified_list?type=${item.type}&title=${item.title}&recommend_id=${item.id}`; |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
getNavHrefTaber(item, bo) { |
|
|
|
|
async getNavHrefTaber(item, bo) { |
|
|
|
|
if (item.type === 1) { |
|
|
|
|
uni.navigateTo({ |
|
|
|
|
url: `/pages/activity/event?id=${this.id}`, |
|
|
|
@ -804,7 +805,17 @@ export default { |
|
|
|
|
uni.switchTab({ |
|
|
|
|
url: `/pages/course/special_cate` |
|
|
|
|
}); |
|
|
|
|
} else { |
|
|
|
|
} else if (item.link.indexOf('/learning/index') > -1) { |
|
|
|
|
const subject_id = item.link.split('=')[1]; |
|
|
|
|
try { |
|
|
|
|
const { data } = await changeCategory({ subject_id: subject_id}); |
|
|
|
|
uni.switchTab({ |
|
|
|
|
url: item.link |
|
|
|
|
}); |
|
|
|
|
} catch (err) { |
|
|
|
|
console.log(err); |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
uni.navigateTo({ |
|
|
|
|
url: item.link |
|
|
|
|
}); |
|
|
|
|