久久不射电影院,秋霞免费乱理伦片在线观看,欧美天堂视频,天天躁夜夜躁

歡迎您光臨深圳塔燈網(wǎng)絡(luò)科技有限公司!
電話圖標(biāo) 余先生:13699882642

網(wǎng)站百科

為您解碼網(wǎng)站建設(shè)的點(diǎn)點(diǎn)滴滴

uni-app微信小程序第二次地理位置授權(quán)失敗解決

發(fā)表日期:2019-11 文章編輯:小燈 瀏覽次數(shù):8240

微信小程序第一次拒絕地理位置授權(quán),是不可以再次談起授權(quán)彈框的,想要再次授權(quán)只能打開設(shè)置面板

uni.openSetting({
  success(res) {
    console.log(res.authSetting)
  }
});
            getLocal() {
                uni.openSetting({
                    success: (res) => {
                        if(res.authSetting) {
                            var that = this
                            uni.getLocation({
                                type: 'gcj02',
                                success: function (res) {
                                    uni.request({
                                        url: 'https://apis.map.qq.com/ws/geocoder/v1/?location=' + res.latitude + ',' + res.longitude + '&key=Y4ZBZ-4WO6X-NOD4G-7LUEA-YUC2T-PYFZT',
                                        success: (address) => {
                                            that.saveLocalCity(address.data.result.address_component.city)
                                            that.activeCity.cityName = address.data.result.address_component.city
                                            console.log(that.activeCity.cityName)
                                        }
                                    })
                                },
                                fail:function(e){
                                    console.log(e)
                                }
                            });
                        }
                    }
                })
            }

本頁內(nèi)容由塔燈網(wǎng)絡(luò)科技有限公司通過網(wǎng)絡(luò)收集編輯所得,所有資料僅供用戶學(xué)習(xí)參考,本站不擁有所有權(quán),如您認(rèn)為本網(wǎng)頁中由涉嫌抄襲的內(nèi)容,請及時(shí)與我們聯(lián)系,并提供相關(guān)證據(jù),工作人員會(huì)在5工作日內(nèi)聯(lián)系您,一經(jīng)查實(shí),本站立刻刪除侵權(quán)內(nèi)容。本文鏈接:http://www.webpost.com.cn/25258.html
相關(guān)小程序