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