File tree 2 files changed +2
-17
lines changed 2 files changed +2
-17
lines changed Original file line number Diff line number Diff line change 10
10
< script src ="https://lf6-cdn-tos.bytecdntp.com/cdn/expire-1-y/dayjs/1.10.8/dayjs.min.js "> </ script >
11
11
< script src ="https://lf9-cdn-tos.bytecdntp.com/cdn/expire-1-M/qrcodejs/1.0.0/qrcode.min.js "
12
12
type ="application/javascript "> </ script >
13
- < script src ="https://lf3-cdn-tos.bytecdntp.com/cdn/expire-1-M/dom-to-image/2.6.0/dom-to-image.min.js " type ="application/javascript "> </ script >
14
13
< script defer src ="https://lf26-cdn-tos.bytecdntp.com/cdn/expire-1-M/alpinejs/3.9.0/cdn.min.js "/> </ script>
15
14
{ { if . VConsole } }
16
15
< script src = "https://lf6-cdn-tos.bytecdntp.com/cdn/expire-1-M/vConsole/3.12.1/vconsole.min.js" type = "application/javascript" > </ script >
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ <h3>{{ .PageUser.Name }}</h3>
29
29
</ div >
30
30
31
31
< div id ="qrcode-modal " class ="uk-flex-top " uk-modal >
32
- < div class ="uk-modal-dialog uk-modal-body uk-margin-auto-vertical " style ="max-width: 440px !important " x-data =" {loading: false} " >
32
+ < div class ="uk-modal-dialog uk-modal-body uk-margin-auto-vertical " style ="max-width: 440px !important ">
33
33
< button class ="uk-modal-close-default " type ="button " uk-close > </ button >
34
34
< div style ="width: 100%;padding-top: 100%;position: relative; ">
35
35
< div id ="qrcode_background "
@@ -45,21 +45,7 @@ <h3>{{ .PageUser.Name }}</h3>
45
45
</ div >
46
46
</ div >
47
47
</ div >
48
- < button class ="uk-button uk-margin-small-top uk-button-primary uk-width-1-1 uk-margin-small-bottom " x-on:click.debounce ="()=>{
49
- loading = true;
50
- domtoimage.toPng(document.getElementById('qrcode_background'), {
51
- useCors: true
52
- }).then(function (dataURL) {
53
- const link = document.createElement('a');
54
- link.href = dataURL;
55
- link.download = '提问箱二维码.png';
56
- link.click();
57
- }).finally(() => {
58
- loading = false;
59
- });
60
- } ">
61
- 下载二维码 < div uk-spinner ="ratio: 0.5 " x-show ="loading "> </ div >
62
- </ button >
48
+ < div class ="uk-text-center uk-text-small uk-text-muted uk-margin-top "> 截图保存二维码</ div >
63
49
</ div >
64
50
</ div >
65
51
You can’t perform that action at this time.
0 commit comments