Skip to content

Commit 2fea33d

Browse files
committed
fix tmtindex qr code
1 parent 91377b8 commit 2fea33d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_tasks/plugins/TmTIndex.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ module.exports = function (config) {
9999

100100
html = html + tmpHtml;
101101

102-
html += '</tbody></table><div id="qrcode"></div><script src="http://wximg.gtimg.com/tmt/tools/file-list/js/jquery-2.1.3.min.js"></script><script src="http://wximg.gtimg.com/tmt/tools/file-list/js/qrcode.min.js"></script><script type="text/javascript">$(document).ready(function(){document.title= "'+ config.projectName + ' 资源列表"; $(".level1").prependTo(".table-body"); $(".td-qrcode i").bind("mouseenter ",function(){$("#qrcode").show().empty();new QRCode(document.getElementById("qrcode"), encodeURI(window.location.href+$(this).parent().parent().find("a").text()));});$("body").bind("click",function(){$("#qrcode").hide();});});</script></body></html>';
102+
html += '</tbody></table><div id="qrcode"></div><script src="http://wximg.gtimg.com/tmt/tools/file-list/js/jquery-2.1.3.min.js"></script><script src="http://wximg.gtimg.com/tmt/tools/file-list/js/qrcode.min.js"></script><script type="text/javascript">$(document).ready(function(){document.title= "' + config.projectName + ' 资源列表"; $(".level1").prependTo(".table-body"); $(".td-qrcode i").bind("mouseenter ",function(){$("#qrcode").show().empty();new QRCode(document.getElementById("qrcode"), encodeURI(window.location.href.split("TmTIndex.html")[0]+$(this).parent().parent().find("a").attr("href")));});$("body").bind("click",function(){$("#qrcode").hide();});});</script></body></html>';
103103

104104
var out = fs.createWriteStream('./dev/html/TmTIndex.html', {encoding: "utf8"});
105105
out.write(html, function (err) {

0 commit comments

Comments
 (0)