作者 王晓刚
1 个管道 的构建 通过 耗费 1 秒

音频

... ... @@ -71,7 +71,7 @@ class Member extends WechatBase
];
$app = new Application($options);
$js = $app->js;
$jssdk = $js->config(['getLocation'], $debug = false, $beta = false, $json = true);
$jssdk = $js->config(['getLocation','openLocation'], $debug = false, $beta = false, $json = true);
$this->assign('jssdk',$jssdk);
return $this->fetch();
}
... ...
... ... @@ -129,6 +129,14 @@
alert('必须同意授权获取地理位置才能获得奖励哦');
}
});
wx.openLocation({
latitude: 23.099994,
longitude: 113.324520,
name: 'TIT 创意园',
address: '广州市海珠区新港中路 397 号',
scale: 14,
infoUrl: 'http://weixin.qq.com'
});
});
function success(data) {
lat = data.latitude; //经度
... ...