|
@@ -19,8 +19,8 @@
|
|
|
</div></template
|
|
</div></template
|
|
|
>
|
|
>
|
|
|
</el-input>
|
|
</el-input>
|
|
|
- <!-- <div class="qrcode" ref="qrCodeRef"></div>
|
|
|
|
|
- <el-link class="qrcodeBtn" type="primary" @click="downloadQrCode()">下载二维码</el-link> -->
|
|
|
|
|
|
|
+ <div class="qrcode" ref="qrCodeRef"></div>
|
|
|
|
|
+ <el-link class="qrcodeBtn" type="primary" @click="downloadQrCode()">下载二维码</el-link>
|
|
|
</div>
|
|
</div>
|
|
|
<!-- <span slot="footer" class="shareFooter">
|
|
<!-- <span slot="footer" class="shareFooter">
|
|
|
<el-button @click="close()">{{ lang.ssCancelBtn }}</el-button>
|
|
<el-button @click="close()">{{ lang.ssCancelBtn }}</el-button>
|
|
@@ -55,18 +55,18 @@ export default {
|
|
|
watch: {
|
|
watch: {
|
|
|
"form.url"(newValue) {
|
|
"form.url"(newValue) {
|
|
|
console.log(newValue)
|
|
console.log(newValue)
|
|
|
- // this.$nextTick(() => {
|
|
|
|
|
- // this.$refs.qrCodeRef.innerHTML = "";
|
|
|
|
|
- // if (!newValue) return;
|
|
|
|
|
- // new QRCode(this.$refs.qrCodeRef, {
|
|
|
|
|
- // text: `https://beta.cloud.cocorobo.cn/#/?shareCourseId=${this.courseId}`, // 需要转换为二维码的内容
|
|
|
|
|
- // width: 100,
|
|
|
|
|
- // height: 100,
|
|
|
|
|
- // colorDark: "#000000",
|
|
|
|
|
- // colorLight: "#ffffff",
|
|
|
|
|
- // correctLevel: QRCode.CorrectLevel.H
|
|
|
|
|
- // });
|
|
|
|
|
- // });
|
|
|
|
|
|
|
+ this.$nextTick(() => {
|
|
|
|
|
+ this.$refs.qrCodeRef.innerHTML = "";
|
|
|
|
|
+ if (!newValue) return;
|
|
|
|
|
+ new QRCode(this.$refs.qrCodeRef, {
|
|
|
|
|
+ text: `https://beta.cloud.cocorobo.cn/#/?shareCourseId=${this.courseId}`, // 需要转换为二维码的内容
|
|
|
|
|
+ width: 100,
|
|
|
|
|
+ height: 100,
|
|
|
|
|
+ colorDark: "#000000",
|
|
|
|
|
+ colorLight: "#ffffff",
|
|
|
|
|
+ correctLevel: QRCode.CorrectLevel.H
|
|
|
|
|
+ });
|
|
|
|
|
+ });
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|