更改寺庙列表导航和定位

This commit is contained in:
2022-03-21 10:27:02 +08:00
parent 5ebf00a86f
commit ec94965858
10 changed files with 99 additions and 45 deletions
+9 -2
View File
@@ -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();
}
});
});