mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-14 21:36:44 +08:00
feat:修改在线课二维码
This commit is contained in:
@@ -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,8 +850,8 @@
|
||||
>
|
||||
删除
|
||||
</a-menu-item>
|
||||
<!--新加 二维码
|
||||
<a-menu-item @click="qrcodeVisible(record, 1)">
|
||||
<!-- 新加 二维码 -->
|
||||
<!-- <a-menu-item @click="qrcodeVisible(record, 1)">
|
||||
二维码
|
||||
</a-menu-item> -->
|
||||
</a-menu>
|
||||
@@ -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;
|
||||
};
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user