mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-student.git
synced 2025-12-07 01:46:46 +08:00
feat:增加测评跳转外部链接-改为请求接口返回url的形式跳转
This commit is contained in:
@@ -512,13 +512,13 @@ function toFinish(d, sName, chapterOrStageId) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// 测评模块 请求接口跳转新的页面 - 新增 暂时未调试 目前无测评数据 2023-02-04
|
// 测评模块 请求接口跳转新的页面 - 新增 暂时未调试 目前无测评数据 2023-02-04
|
||||||
if(d.type == 100) {
|
if(d.type == 10) {
|
||||||
// 调用接口 跳转页面
|
// 调用接口 跳转页面
|
||||||
console.log('我是查询测评跳转链接所传递得参数',{
|
console.log('我是查询测评跳转链接所传递得参数',{
|
||||||
"businessType": "project",
|
"businessType": "project",
|
||||||
"chapterId": chapterOrStageId,
|
"chapterId": chapterOrStageId,
|
||||||
"courseId": d.courseId,
|
"courseId": d.courseId,
|
||||||
"quizKid": "",
|
"quizKid": d.targetId,
|
||||||
"routerOrProjectId": projectId,
|
"routerOrProjectId": projectId,
|
||||||
"studentId": userInfo.value.id,
|
"studentId": userInfo.value.id,
|
||||||
"studentName": userInfo.value.realName
|
"studentName": userInfo.value.realName
|
||||||
@@ -527,15 +527,16 @@ function toFinish(d, sName, chapterOrStageId) {
|
|||||||
"businessType": "project",
|
"businessType": "project",
|
||||||
"chapterId": chapterOrStageId,
|
"chapterId": chapterOrStageId,
|
||||||
"courseId": d.courseId,
|
"courseId": d.courseId,
|
||||||
"quizKid": "",
|
"quizKid": d.targetId,
|
||||||
"routerOrProjectId": projectId,
|
"routerOrProjectId": projectId,
|
||||||
"studentId": userInfo.value.id,
|
"studentId": userInfo.value.id,
|
||||||
"studentName": userInfo.value.realName
|
"studentName": userInfo.value.realName
|
||||||
}).then(res=>{
|
}).then(res=>{
|
||||||
console.log(res)
|
console.log(res)
|
||||||
if(res.data.code==200){
|
if(res.code==200){
|
||||||
|
let jumpUrl = res.data.quizUrl
|
||||||
// 此处写跳转url
|
// 此处写跳转url
|
||||||
window.open( 'http://ceping.com', '_top')
|
window.open( jumpUrl, '_top')
|
||||||
}
|
}
|
||||||
}).catch(err=>{
|
}).catch(err=>{
|
||||||
console.log(err)
|
console.log(err)
|
||||||
|
|||||||
@@ -524,30 +524,31 @@ function toFinish(d) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 测评模块 请求接口跳转新的页面 - 新增 暂时未调试 目前无测评数据 2023-02-04
|
// 测评模块 请求接口跳转新的页面 - 新增 暂时未调试 目前无测评数据 2023-02-04
|
||||||
if(d.type == 100) {
|
if(d.type == 10) {
|
||||||
// 调用接口 跳转页面
|
// 调用接口 跳转页面
|
||||||
console.log('我是查询测评跳转链接所传递得参数',{
|
console.log('我是查询测评跳转链接所传递得参数',{
|
||||||
"businessType": "project",
|
"businessType": "learningpath",
|
||||||
"chapterId": chapterOrStageId,
|
"chapterId": data.value.currentStageId,
|
||||||
"courseId": d.courseId,
|
"courseId": d.courseId,
|
||||||
"quizKid": "",
|
"quizKid": d.targetId,
|
||||||
"routerOrProjectId": routerId,
|
"routerOrProjectId": routerId,
|
||||||
"studentId": userInfo.value.id,
|
"studentId": userInfo.value.id,
|
||||||
"studentName": userInfo.value.realName
|
"studentName": userInfo.value.realName
|
||||||
})
|
})
|
||||||
request(EvaluationToLearn, {
|
request(EvaluationToLearn, {
|
||||||
"businessType": "project",
|
"businessType": "learningpath",
|
||||||
"chapterId": chapterOrStageId,
|
"chapterId": data.value.currentStageId,
|
||||||
"courseId": d.courseId,
|
"courseId": d.courseId,
|
||||||
"quizKid": "",
|
"quizKid": d.targetId,
|
||||||
"routerOrProjectId": routerId,
|
"routerOrProjectId": routerId,
|
||||||
"studentId": userInfo.value.id,
|
"studentId": userInfo.value.id,
|
||||||
"studentName": userInfo.value.realName
|
"studentName": userInfo.value.realName
|
||||||
}).then(res=>{
|
}).then(res=>{
|
||||||
console.log(res)
|
console.log(res)
|
||||||
if(res.data.code==200){
|
if(res.code==200){
|
||||||
|
let jumpUrl = res.data.quizUrl
|
||||||
// 此处写跳转url
|
// 此处写跳转url
|
||||||
window.open( 'http://ceping.com', '_top')
|
window.open( jumpUrl, '_top')
|
||||||
}
|
}
|
||||||
}).catch(err=>{
|
}).catch(err=>{
|
||||||
console.log(err)
|
console.log(err)
|
||||||
|
|||||||
@@ -102,6 +102,9 @@ export default defineConfig(({ command, mode }) =>
|
|||||||
},'/link/getOne': {
|
},'/link/getOne': {
|
||||||
target: loadEnv(mode, process.cwd()).VITE_PROXY_URL,
|
target: loadEnv(mode, process.cwd()).VITE_PROXY_URL,
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
|
},'/evaluation/evaluationToLearn': {
|
||||||
|
target: loadEnv(mode, process.cwd()).VITE_PROXY_URL,
|
||||||
|
changeOrigin: true,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user