|
@@ -82,11 +82,20 @@
|
|
|
this.networkType = res.networkType
|
|
|
}
|
|
|
});
|
|
|
- if(this.SystemInfo.platform=="ios"){
|
|
|
- this.judgeIosPermission()
|
|
|
- }else{
|
|
|
- this.requestAndroidPermission()
|
|
|
- }
|
|
|
+ uni.getLocation({
|
|
|
+ success:res=>{
|
|
|
+ },
|
|
|
+ fail:err=>{
|
|
|
+ if(this.SystemInfo.platform=="ios"){
|
|
|
+ this.judgeIosPermission()
|
|
|
+ }else{
|
|
|
+ this.requestAndroidPermission()
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+ uni.$on('loginphone',data=>{
|
|
|
+ this.tel=data
|
|
|
+ })
|
|
|
},
|
|
|
methods: {
|
|
|
...mapMutations(['login']),
|
|
@@ -95,7 +104,7 @@
|
|
|
if (!result) {
|
|
|
uni.showModal({
|
|
|
title: "温馨提示",
|
|
|
- content: "为了更好地服务,请开启定位权限,是否同意?",
|
|
|
+ content: "为了更好地为您服务,请开启定位权限,请问是否同意??",
|
|
|
cancelText: "不同意",
|
|
|
confirmText: "同意",
|
|
|
success: res => {
|