feat:修改在线课二维码

This commit is contained in:
lixg
2023-03-02 15:57:32 +08:00
parent cd3c4d42cc
commit 5691a5f4c5
2 changed files with 18 additions and 10 deletions

View File

@@ -287,7 +287,11 @@
<div class="btn btn5" @click="of_exit1">
<div class="btnText">取消</div>
</div>
<a-button class="btn btn6" @click="createft" :loading="validated===1">
<a-button
class="btn btn6"
@click="createft"
:loading="validated === 1"
>
确定
</a-button>
</div>
@@ -846,10 +850,10 @@
>
删除
</a-menu-item>
<!--新加 二维码
<a-menu-item @click="qrcodeVisible(record, 1)">
<!-- 新加 二维码 -->
<!-- <a-menu-item @click="qrcodeVisible(record, 1)">
二维码
</a-menu-item>-->
</a-menu-item> -->
</a-menu>
</template>
<div class="fb" style="margin-left: -20px">
@@ -1169,7 +1173,11 @@
<div class="cstm_btn btn5" @click="handleCancelStu">
<div class="btnText">取消</div>
</div>
<a-button class="cstm_btn btn6" @click="handleSureStu" :loading="validated===1">
<a-button
class="cstm_btn btn6"
@click="handleSureStu"
:loading="validated === 1"
>
确定
</a-button>
</div>
@@ -4867,21 +4875,21 @@ export default defineComponent({
//二维码
const qrcodeVisible = (record, type) => {
// `${location.protocol}//${location.host}${import.meta.env.VUE_APP_BASE_API}/stu/project/redirectDetail?courseId=${record.id}`
state.codevisible = true;
state.codeInfo = {
title: type == 1 ? "【课程】二维码" : "【签到】二维码",
name: record.name ? record.name : "",
url:
type == 1
? window.location.protocol +
process.env.VUE_APP_COURSE_STUDY +
record.offcourseId
? process.env.VUE_APP_BASE_API +
`/stu/project/redirectDetail?courseId=${record.id}`
: process.env.VUE_APP_BASE_API +
`/admin/student/studentSign?taskId=${
record.id
}&taskType=${2}&type=${3}`,
};
console.log("codeInfo", state.codeInfo);
console.log("codeInfo", state.codeInfo, record);
state.codeIndex = 0;
state.codeType = type;
};

View File

@@ -2598,7 +2598,7 @@ export default {
codeUrl =
window.location.protocol +
process.env.VUE_APP_ONLINE_CLASS_URL +
item.targetId;
item.courseId;
}
if (item.type == 2) {
let date1 = new Date(item.endTime).getTime();