更改寺庙列表导航和定位
This commit is contained in:
@@ -79,11 +79,18 @@ function signToWechat(config, shareConfig) {
|
||||
}
|
||||
|
||||
function getLocation() {
|
||||
return new Promise(resolve => {
|
||||
return new Promise((resolve, reject) => {
|
||||
wechatInstance.getLocation({
|
||||
type: 'wgs84',
|
||||
success: res => {
|
||||
resolve(res);
|
||||
if(res.errMsg === 'getLocation:ok'){
|
||||
resolve(res);
|
||||
} else {
|
||||
reject();
|
||||
}
|
||||
},
|
||||
error: () => {
|
||||
reject();
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user