Skip to content

Commit

Permalink
template(list): update qrcode text
Browse files Browse the repository at this point in the history
  • Loading branch information
wuhan005 committed Aug 25, 2024
1 parent 0f83adc commit 68ee092
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions templates/question/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,15 @@ <h3>{{ .PageUser.Name }}</h3>
<button class="uk-modal-close-default" type="button" uk-close></button>
<div style="width: 100%;padding-top: 100%;position: relative;">
<div id="qrcode_background"
style="position: absolute;max-width: 400px;max-height: 400px;top: 0;left: 0;right: 0;bottom: 0;background-image: url('https://box-user-assets.n3ko.cc/public/qrcode_template');background-size: 100% 100%;background-repeat: no-repeat;user-select: none;-webkit-user-select: none;">
style="position: absolute;max-width: 400px;max-height: 400px;top: 0;left: 0;right: 0;bottom: 0;background-image: url('https://box-user-assets.n3ko.cc/public/qrcode_bg');background-size: 100% 100%;background-repeat: no-repeat;user-select: none;-webkit-user-select: none;">
<div id="qrcode" style="position: absolute;top: 16.5%;left: 26.5%;width: 47%;height: 47%;">
<img alt="avatar"
style="position: absolute;width: 25%;height: 25%;top: 38%;left: 38%;background: #fff;border: 2px solid #ffffff;border-radius: 5%;"
src="{{ .PageUser.Avatar }}?x-oss-process=image/auto-orient,1/quality,q_70/sharpen,200/resize,limit_0,m_fill,w_200,h_200/format,png"/>
</div>
<div style="font-family: lucida grande, helvetica neue, Helvetica, Arial, Verdana, pingfang sc, STHeiti, microsoft yahei, SimSun, sans-serif;position: absolute;top: 73%;width: 100%;font-size: 140%;text-align: center;color: #ffffff;">
{{ .PageUser.Name }} 的提问箱
<p style="font-size: 60%;margin-top: 3%;">扫一扫二维码 向我提问</p>
</div>
</div>
</div>
Expand All @@ -52,7 +53,7 @@ <h3>{{ .PageUser.Name }}</h3>
const dataURL = canvas.toDataURL('image/png');
const link = document.createElement('a');
link.href = dataURL;
link.download = 'div-as-png.png';
link.download = '提问箱二维码.png';
link.click();
}).finally(() => {
loading = false;
Expand Down

0 comments on commit 68ee092

Please sign in to comment.