This commit is contained in:
2024-12-02 16:02:09 +08:00
parent 60c4e355b4
commit 035b0a46c7
11 changed files with 869 additions and 16 deletions
@@ -3,17 +3,18 @@
<div>
<el-dialog
title="活动二维码"
:title="title"
:visible.sync="codeDialogVisible"
:close-on-click-modal="false"
width="40%">
<span></span>
<div style="width: 100%;">
<div id="qrcode" style="width: 70%;left: 0;right: 0;margin: auto"></div>
</div>
<span slot="footer" class="dialog-footer">
<el-button @click="codeDialogVisible = false" type="primary">关 闭</el-button>
<!-- <el-button type="primary" @click="dwn('活动二维码')">下 载</el-button>-->
<!-- <el-button type="primary" @click="dwn('活动二维码')">下 载</el-button>-->
</span>
</el-dialog>
</div>
@@ -27,6 +28,7 @@ module.exports = {
data() {
return {
codeDialogVisible: false,
title: "活动二维码",
}
},
@@ -47,7 +49,10 @@ module.exports = {
var filename = name + '_' + (new Date()).getTime() + '.' + type;
this.saveFile(dataurl, filename);
},
openCode(url) {
openCode(url,title) {
if (title){
this.title=this.title+"("+title+")"
}
this.codeDialogVisible = true
this.$nextTick(() => {
$("#qrcode").html("")