JS在线生成二维码

Js代码

百度云公开下载地址:链接: https://pan.baidu.com/s/1G-96yi4opJYxaEgesh4Dyg 提取码: wh5r

Html+Php代码

<volist name="huodong_list" id="v">
            <script>
            $(document).ready(function(){
             var qrcode = new QRCode(document.getElementById("qrcode_div{$v.id}"), {
                width : 94,//设置宽高
                height : 90
            });
            qrcode.makeCode("http://www.baidu.com/{$v.id}");
            })
        
        </script>
            <div class="item-box">
                <div class="thumbnail">
                   <div class="thumb"> <img src="{$v.img.l}" alt="{$v.name}" width="312px" height="210px"/></div>

                    <div class="mask">
                        <div class="blur"></div>
                        <div class="content">
                            <div><div class="bg_div" id="qrcode_div{$v.id}"></div></div>
                            <p>微信扫描二维码,查看详情</p>
                        </div>
                    </div>
                </div>
                <div class="detail">
                    <h4 style="height:30px;">{$v.name}</h4>

                    <p>{$v.title}</p>

                    <div class="info">
                        <span class="price">¥{$v.money_price}</span>
                        <span class="worth">¥{$v.original_price}</span>
                        <span class="sell">{$v.joins}人已参加</span>
                    </div>
                </div>
            </div>
 </volist>

 

posted @ 2017-05-17 15:14  温柔的风  阅读(277)  评论(0编辑  收藏  举报