feat:修改二维码id

This commit is contained in:
lixg
2023-02-28 19:26:17 +08:00
parent 6248f5869f
commit 5974c98ec3
2 changed files with 18 additions and 15 deletions

View File

@@ -2626,7 +2626,7 @@ export default {
"/homeworkpage?courseId=" + "/homeworkpage?courseId=" +
item.courseId + item.courseId +
"&type=2&id=" + "&type=2&id=" +
item.routerTaskId; item.id;
} }
// 考试 停用 // 考试 停用
if (item.type == 5) { if (item.type == 5) {
@@ -2657,7 +2657,7 @@ export default {
"/livebroadcast?courseId=" + "/livebroadcast?courseId=" +
item.courseId + item.courseId +
"&type=2&id=" + "&type=2&id=" +
item.routerTaskId; item.id;
} }
// 外链 // 外链
if (item.type == 7) { if (item.type == 7) {
@@ -2667,7 +2667,7 @@ export default {
"/outerchain?courseId=" + "/outerchain?courseId=" +
item.courseId + item.courseId +
"&type=2&id=" + "&type=2&id=" +
item.routerTaskId + item.id +
"&chapterOrStageId=" + "&chapterOrStageId=" +
item.chapterId + item.chapterId +
"&infoId=" + "&infoId=" +
@@ -2681,7 +2681,7 @@ export default {
"/discusspage?courseId=" + "/discusspage?courseId=" +
item.courseId + item.courseId +
"&type=2&id=" + "&type=2&id=" +
item.routerTaskId; item.id;
} }
//活动 //活动
if (item.type == 9) { if (item.type == 9) {
@@ -2694,7 +2694,7 @@ export default {
"/activitiespage?courseId=" + "/activitiespage?courseId=" +
item.courseId + item.courseId +
"&type=2&id=" + "&type=2&id=" +
item.routerTaskId; item.id;
} }
//活动 //活动
if (item.type == 10) { if (item.type == 10) {
@@ -2713,13 +2713,14 @@ export default {
if (item.type == 11) { if (item.type == 11) {
if (item.taskStatus == 1 || item.taskStatus == 2) if (item.taskStatus == 1 || item.taskStatus == 2)
return message.error("该任务无法学习,请联系管理员进行替换。"); return message.error("该任务无法学习,请联系管理员进行替换。");
console.log("item", item);
codeUrl = codeUrl =
window.location.protocol + window.location.protocol +
process.env.VUE_APP_H5 + process.env.VUE_APP_H5 +
"/investigatage?courseId=" + "/investigatage?courseId=" +
item.courseId + item.courseId +
"&type=2&id=" + "&type=2&id=" +
item.routerTaskId + item.id +
"&chapterOrStageId=" + "&chapterOrStageId=" +
item.chapterId + item.chapterId +
"&infoId=" + "&infoId=" +
@@ -2733,7 +2734,7 @@ export default {
"/ballotpage?courseId=" + "/ballotpage?courseId=" +
item.courseId + item.courseId +
"&btype=2&id=" + "&btype=2&id=" +
item.routerTaskId + item.id +
"&chapterOrStageId=" + "&chapterOrStageId=" +
item.chapterId + item.chapterId +
"&infoId=" + "&infoId=" +

View File

@@ -4515,7 +4515,7 @@ export default {
"/faceteach?type=2&courseId=" + "/faceteach?type=2&courseId=" +
item.courseId + item.courseId +
"&id=" + "&id=" +
item.projectTaskId; item.id;
} }
if (item.type == 3) return message.error("请在pc端完成"); if (item.type == 3) return message.error("请在pc端完成");
if (item.type == 4) { if (item.type == 4) {
@@ -4528,7 +4528,7 @@ export default {
"/homeworkpage?courseId=" + "/homeworkpage?courseId=" +
item.courseId + item.courseId +
"&type=1&id=" + "&type=1&id=" +
item.projectTaskId; item.id;
} }
// 考试 停用 // 考试 停用
if (item.type == 5) { if (item.type == 5) {
@@ -4559,7 +4559,7 @@ export default {
"/livebroadcast?courseId=" + "/livebroadcast?courseId=" +
item.courseId + item.courseId +
"&type=1&id=" + "&type=1&id=" +
item.projectTaskId; item.id;
} }
// 外链 // 外链
if (item.type == 7) { if (item.type == 7) {
@@ -4569,7 +4569,7 @@ export default {
"/outerchain?courseId=" + "/outerchain?courseId=" +
item.courseId + item.courseId +
"&type=1&id=" + "&type=1&id=" +
item.projectTaskId + item.id +
"&chapterOrStageId=" + "&chapterOrStageId=" +
item.stageId + item.stageId +
"&infoId=" + "&infoId=" +
@@ -4583,20 +4583,21 @@ export default {
"/discusspage?courseId=" + "/discusspage?courseId=" +
item.courseId + item.courseId +
"&type=1&id=" + "&type=1&id=" +
item.projectTaskId; item.id;
} }
//活动 //活动
if (item.type == 9) { if (item.type == 9) {
let date1 = new Date(item.endTime).getTime(); let date1 = new Date(item.endTime).getTime();
let date2 = new Date().getTime(); let date2 = new Date().getTime();
if (date1 < date2) return message.warning("当前活动已结束"); if (date1 < date2) return message.warning("当前活动已结束");
codeUrl = codeUrl =
window.location.protocol + window.location.protocol +
process.env.VUE_APP_H5 + process.env.VUE_APP_H5 +
"/activitiespage?courseId=" + "/activitiespage?courseId=" +
item.courseId + item.courseId +
"&type=1&id=" + "&type=1&id=" +
item.projectTaskId; item.id;
} }
//活动 //活动
if (item.type == 10) { if (item.type == 10) {
@@ -4615,13 +4616,14 @@ export default {
if (item.type == 11) { if (item.type == 11) {
if (item.taskStatus == 1 || item.taskStatus == 2) if (item.taskStatus == 1 || item.taskStatus == 2)
return message.error("该任务无法学习,请联系管理员进行替换。"); return message.error("该任务无法学习,请联系管理员进行替换。");
codeUrl = codeUrl =
window.location.protocol + window.location.protocol +
process.env.VUE_APP_H5 + process.env.VUE_APP_H5 +
"/investigatage?courseId=" + "/investigatage?courseId=" +
item.courseId + item.courseId +
"&type=1&id=" + "&type=1&id=" +
item.projectTaskId + item.id +
"&chapterOrStageId=" + "&chapterOrStageId=" +
item.stageId + item.stageId +
"&infoId=" + "&infoId=" +
@@ -4635,7 +4637,7 @@ export default {
"/ballotpage?courseId=" + "/ballotpage?courseId=" +
item.courseId + item.courseId +
"&btype=2&id=" + "&btype=2&id=" +
item.projectTaskId + item.id +
"&chapterOrStageId=" + "&chapterOrStageId=" +
item.chapterId + item.chapterId +
"&infoId=" + "&infoId=" +