mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-15 05:46:45 +08:00
feat:修改在线课二维码
This commit is contained in:
@@ -287,7 +287,11 @@
|
|||||||
<div class="btn btn5" @click="of_exit1">
|
<div class="btn btn5" @click="of_exit1">
|
||||||
<div class="btnText">取消</div>
|
<div class="btnText">取消</div>
|
||||||
</div>
|
</div>
|
||||||
<a-button class="btn btn6" @click="createft" :loading="validated===1">
|
<a-button
|
||||||
|
class="btn btn6"
|
||||||
|
@click="createft"
|
||||||
|
:loading="validated === 1"
|
||||||
|
>
|
||||||
确定
|
确定
|
||||||
</a-button>
|
</a-button>
|
||||||
</div>
|
</div>
|
||||||
@@ -846,10 +850,10 @@
|
|||||||
>
|
>
|
||||||
删除
|
删除
|
||||||
</a-menu-item>
|
</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>
|
</a-menu>
|
||||||
</template>
|
</template>
|
||||||
<div class="fb" style="margin-left: -20px">
|
<div class="fb" style="margin-left: -20px">
|
||||||
@@ -1169,7 +1173,11 @@
|
|||||||
<div class="cstm_btn btn5" @click="handleCancelStu">
|
<div class="cstm_btn btn5" @click="handleCancelStu">
|
||||||
<div class="btnText">取消</div>
|
<div class="btnText">取消</div>
|
||||||
</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>
|
</a-button>
|
||||||
</div>
|
</div>
|
||||||
@@ -4867,21 +4875,21 @@ export default defineComponent({
|
|||||||
|
|
||||||
//二维码
|
//二维码
|
||||||
const qrcodeVisible = (record, type) => {
|
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.codevisible = true;
|
||||||
state.codeInfo = {
|
state.codeInfo = {
|
||||||
title: type == 1 ? "【课程】二维码" : "【签到】二维码",
|
title: type == 1 ? "【课程】二维码" : "【签到】二维码",
|
||||||
name: record.name ? record.name : "",
|
name: record.name ? record.name : "",
|
||||||
url:
|
url:
|
||||||
type == 1
|
type == 1
|
||||||
? window.location.protocol +
|
? process.env.VUE_APP_BASE_API +
|
||||||
process.env.VUE_APP_COURSE_STUDY +
|
`/stu/project/redirectDetail?courseId=${record.id}`
|
||||||
record.offcourseId
|
|
||||||
: process.env.VUE_APP_BASE_API +
|
: process.env.VUE_APP_BASE_API +
|
||||||
`/admin/student/studentSign?taskId=${
|
`/admin/student/studentSign?taskId=${
|
||||||
record.id
|
record.id
|
||||||
}&taskType=${2}&type=${3}`,
|
}&taskType=${2}&type=${3}`,
|
||||||
};
|
};
|
||||||
console.log("codeInfo", state.codeInfo);
|
console.log("codeInfo", state.codeInfo, record);
|
||||||
state.codeIndex = 0;
|
state.codeIndex = 0;
|
||||||
state.codeType = type;
|
state.codeType = type;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -2598,7 +2598,7 @@ export default {
|
|||||||
codeUrl =
|
codeUrl =
|
||||||
window.location.protocol +
|
window.location.protocol +
|
||||||
process.env.VUE_APP_ONLINE_CLASS_URL +
|
process.env.VUE_APP_ONLINE_CLASS_URL +
|
||||||
item.targetId;
|
item.courseId;
|
||||||
}
|
}
|
||||||
if (item.type == 2) {
|
if (item.type == 2) {
|
||||||
let date1 = new Date(item.endTime).getTime();
|
let date1 = new Date(item.endTime).getTime();
|
||||||
|
|||||||
Reference in New Issue
Block a user