This commit is contained in:
lmj
2022-07-06 15:42:53 +08:00
parent d0ec97d182
commit 3d5dd4ab56
2 changed files with 6 additions and 5 deletions

View File

@@ -97,9 +97,9 @@
<div class="homework-title">上传作业</div> <div class="homework-title">上传作业</div>
<div class="homework-content"> <div class="homework-content">
<div v-else > <!-- <div v-else >
<el-button type="primary">选择文件并上传</el-button> <el-button type="primary">选择文件并上传</el-button>
</div> </div> -->
</div> </div>
</div> </div>
<!-- <div style="text-align: center;padding-bottom: 10px;"> <!-- <div style="text-align: center;padding-bottom: 10px;">
@@ -477,10 +477,11 @@ export default {
}; };
}, },
mounted() { mounted() {
this.showQrimage();
this.loadResOwners(); this.loadResOwners();
let id = this.$route.query.id; let id = this.$route.query.id;
this.courseInfo.id = id; this.courseInfo.id = id;
this.showQrimage();
let $this = this; let $this = this;
//页面只支取一次,所以先直接写在这里面 //页面只支取一次,所以先直接写在这里面
apiCoursePortal.detail(id).then(rs => { apiCoursePortal.detail(id).then(rs => {
@@ -556,7 +557,7 @@ export default {
showQrimage(row){ showQrimage(row){
this.qrcode = this.webBaseUrl+'/mobile/pages/resource/microDetail?id='+this.courseInfo.id; this.qrcode = this.webBaseUrl+'/mobile/pages/resource/microDetail?id='+this.courseInfo.id;
this.$nextTick(() => { this.$nextTick(() => {
this.crateQrcode(); //this.crateQrcode();
}); });
}, },
crateQrcode(){ crateQrcode(){

View File

@@ -520,7 +520,7 @@ export default {
//判断是否完成 //判断是否完成
let completeType=this.curriculumData.completeSetup; let completeType=this.curriculumData.completeSetup;
let completeSecond=this.curriculumData.second; let completeSecond=this.curriculumData.second;
if(!completeSecond || completeType=0){ if(!completeSecond || completeType==0){
completeSecond=5;//如果没有就采用默认的时间了 completeSecond=5;//如果没有就采用默认的时间了
} }
if(this.contentData.status<9){ //因为1按进度2按时长都是计算时间所以这里直接大于0处理 if(this.contentData.status<9){ //因为1按进度2按时长都是计算时间所以这里直接大于0处理