php 通过链接生成二维码,扫码支付用到

$(".good_info").on('click',function () {
var id = $(this).data('id');
var string='http://qr.liantu.com/api.php?text=https://5hao.sheep.squmo.com/wx.php/Good/detail?gid='+id;
layer.ready(function(){
layer.open({
type: 2,
area: ['300px', '350px'],
content: string,
title:'请使用微信扫描'
});
});
});

如果链接无效,生成的码显示后即可显示的就是链接

猜你喜欢

转载自www.cnblogs.com/pansidong/p/9629363.html