
2016-06-04 &nbs←¥★₽p; | 發布者:≥↔σ梁國(guó)芳 &↑ | 查看(kàλ¶→>n):3320次
php<?phpportant; list-style- ®÷type: decimal !important;" id="vDIHqIFc">require_once "./weixinsdk/jssdk.php";$jssdk = new JSSDK("wxce99d783e9b78489&quo©δt;, "4743a428031bc650be1ff24e4e✘✘♥3446da");portant; list-style-typeΩπ: decimal !important;">portant; list-style-type:¶<' decimal !important;">$signPackage = $jssdk->GetSignPackage();$acc = $jssdk->getAccessToken();
?><script src="static/js/jweixin-1.1.0 .js"></script><script>portant; list-style-type: decimal !iβ¥mportant;" id="mbIHZ">wx.config({debug: false,portant; list-style-tλ™λype: decimal !important;">appId: '<?php echo $signPackage[&quo≈÷"t;appId"];?>',timestamp: <?php echo $signPackage["timestamp"];?>,nonceStr: '<?php echo $signγ↑ Package["nonceSt✔♣γr"];?>',portant; list-style-type: decimal !iσ ÷♦mportant;">signature: '<?php echo $signPackage✔→±["signature"];?>',jsApiList: [portant; list-style-type: decimal !im®₽portant;">'startSearchBeacons',portant; list-style-typ≤e: decimal !important;">'onSearchBeacons','stopSearchBeacons',]});var val='';wx.ready(function () {//開(kāi)啓查找周邊ibeacon設備接口wx.startSearchBeacons({ticket:"",complete:function(arr){portant; list-style-type: deciε>mal !important;">wx.onSearchBeacons({complete:function(argv){if(val!=argv){val=argv;δ←✔σ$.post("{:U('json')}&quoπ•&t;,argv,function(res){portant; list-style-type: decimΩλal !important;">arr=eval(res);if(!arr){$('.list').eq(0).append('<p class="footerp×¶λ">沒有(yǒu)更多(duō)內(nèi)容了(le)& ♣εlt;/p>');}var str='';for(var i=0; i<arr.length; i++){// str+='<dd><a hr ↕↔ef="./index.php?s=/home/restaur₽ ant/detail/id/'+arr[i]÷§['id']+'.html">';portant; list-style-typ↓σe: decimal !important;">str+='<dd><a href="'+arr[i]['url']+'">';str+='<img src="'+arr[i]['img']+'"/>' ;str+='<span>';str+='<h1> '+ arr[i]['name']+'<span style="font-sπ> ₩ize:14px;text-align:≥δ<×right;">'+arr[i]['distance']+'米</span></h1>' ;str+='<p>'+arr[i]['description']+'</p>' ;str+='</span>' ;str+='</a>' ;str+='</dd>' ;}→$('.list').eq(0).html(str);var b = $('.list img').width();Ω$('.list img').