|
@@ -108,7 +108,6 @@
|
|
this.mapCtx = uni.createMapContext('map')
|
|
this.mapCtx = uni.createMapContext('map')
|
|
},
|
|
},
|
|
onShow() {
|
|
onShow() {
|
|
- console.log(1111)
|
|
|
|
this.checkLogin()
|
|
this.checkLogin()
|
|
},
|
|
},
|
|
onLoad() {
|
|
onLoad() {
|
|
@@ -118,7 +117,6 @@
|
|
// 检验登录token是否过期
|
|
// 检验登录token是否过期
|
|
checkLogin () {
|
|
checkLogin () {
|
|
checkLogin().then(res =>{
|
|
checkLogin().then(res =>{
|
|
- console.log(res,'11111111111')
|
|
|
|
if (res.status == '200'){
|
|
if (res.status == '200'){
|
|
this.hasLogin = true
|
|
this.hasLogin = true
|
|
} else {
|
|
} else {
|
|
@@ -134,7 +132,6 @@
|
|
// #ifndef H5 || APP-PLUS
|
|
// #ifndef H5 || APP-PLUS
|
|
uni.getSetting({
|
|
uni.getSetting({
|
|
success(res) {
|
|
success(res) {
|
|
- console.log(res,'11111')
|
|
|
|
if (!res.authSetting['scope.userLocation']) {
|
|
if (!res.authSetting['scope.userLocation']) {
|
|
uni.authorize({
|
|
uni.authorize({
|
|
scope: 'scope.userLocation',
|
|
scope: 'scope.userLocation',
|