sokucc 发表于 2017-4-23 22:29:21

(插件)destoon二维码生成插件(可设置中心小LOGO)

使用方法一,JS调用方法,不需要传任何参数,JS自动获取当前页地址并自动生成二维码。

<p align="center" style="margin:auto; width:180px"><img id="weima" src="http://destoon.sniis.net/skin/destoon/image/lazy.gif" class="lazy" original="http://destoon.sniis.net/skin/destoon/image/nopic.gif" style="margin-top:15px; " width="180" height="180" /></p>
      <script>
var _url2 = encodeURIComponent(document.location);
$("#weima").attr('src',"你的网址/api/wei/index.php?url="+_url2)
</script>
<p style="margin-top:0px;text-align:center;">扫一扫分享到微信朋友圈</p>


使用方法二,灵活的标签调用

<img src="http://destoon.sniis.net/skin/destoon/image/lazy.gif" class="lazy" original="http://destoon.sniis.net/skin/destoon/image/nopic.gif" width="200" height="200"/>


列表页循环list中调用实例

<img src="http://destoon.sniis.net/skin/destoon/image/lazy.gif" class="lazy" original="http://destoon.sniis.net/skin/destoon/image/nopic.gif" width="200" height="200"/>

内容页调用实例

<img src="http://destoon.sniis.net/skin/destoon/image/lazy.gif" class="lazy" original="http://destoon.sniis.net/skin/destoon/image/nopic.gif" width="200" height="200"/>

公司主页调用实例
<img src="http://destoon.sniis.net/skin/destoon/image/lazy.gif" class="lazy" original="http://destoon.sniis.net/skin/destoon/image/nopic.gif" width="200" height="200"/>

更多调用只需要将url=后面的换成你的网址或图片地址,文字即可。

下载地址:
**** Hidden Message *****


页: [1]
查看完整版本: (插件)destoon二维码生成插件(可设置中心小LOGO)