diff --git a/src/views/portal/course/Detail.vue b/src/views/portal/course/Detail.vue index 3b5a79f4..72ce79af 100644 --- a/src/views/portal/course/Detail.vue +++ b/src/views/portal/course/Detail.vue @@ -165,12 +165,12 @@ export default { }; }, mounted() { - + let id = this.$route.query.id; + this.courseInfo.id=id; this.$watermark.set(this.userInfo.name+this.userInfo.loginName); //this.stuStusts=0; this.loadResOwners(); - let id = this.$route.query.id; - this.courseInfo.id=id; + let $this=this; //页面只支取一次,所以先直接写在这里面 apiCoursePortal.detail(id).then(rs=>{ diff --git a/src/views/portal/course/Micro.vue b/src/views/portal/course/Micro.vue index 69eaceab..314f3405 100644 --- a/src/views/portal/course/Micro.vue +++ b/src/views/portal/course/Micro.vue @@ -401,11 +401,12 @@ export default { }; }, mounted() { + let id = this.$route.query.id; + this.courseInfo.id = id; this.showQrimage(); this.$watermark.set(this.userInfo.name+this.userInfo.loginName); this.loadResOwners(); - let id = this.$route.query.id; - this.courseInfo.id = id; + let $this = this; //页面只支取一次,所以先直接写在这里面 apiCoursePortal.detail(id).then(rs => { @@ -1230,8 +1231,8 @@ export default { .qrcode{ display: inline-block; img { - width: 132px; - height: 132px; + width: 200px; + height: 200px; background-color: #fff; //设置白色背景色 padding: 6px; // 利用padding的特性,挤出白边 box-sizing: border-box;