提交 98582394 authored 作者: chengye's avatar chengye

测试qrcode

上级 0d9c6eaa
...@@ -217,7 +217,11 @@ ...@@ -217,7 +217,11 @@
$url = 'http://demojz.gonn.tech/jz_detail/' + $(this).data('id'); $url = 'http://demojz.gonn.tech/jz_detail/' + $(this).data('id');
var $qrcode = $('#qrcode') var $qrcode = $('#qrcode')
$qrcode.html('') $qrcode.html('')
$qrcode.qrcode({width: 80, height: 80, correctLevel: 0, text: $url})
var $width = 80;
var $height = 80;
console.log($(document).width())
$qrcode.qrcode({width: $width, height: $height, correctLevel: 0, text: $url})
$(this).find('.icon-qr-code').hide() $(this).find('.icon-qr-code').hide()
layui.use(['layer'],function () { layui.use(['layer'],function () {
$ = layui.jquery; $ = layui.jquery;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论