From 805424a3658d2a5c775ff62c67ea566b92c92817 Mon Sep 17 00:00:00 2001 From: daihh Date: Thu, 16 Jun 2022 09:46:43 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=B8=80=E4=B8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/portal/course/Detail.vue | 6 +++--- src/views/portal/course/Micro.vue | 9 +++++---- 2 files changed, 8 insertions(+), 7 deletions(-) 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;