<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                企業??AI智能體構建引擎,智能編排和調試,一鍵部署,支持知識庫和私有化部署方案 廣告
                首先,獲得授權 ``` wx.getSetting({ success: res=> { if (!res.authSetting\['scope.userLocation'\]) { wx.authorize({//授權 scope: 'scope.userLocation', success() { this.locationData() //定位方法 } }) }else{ this.locationData()//定位方法 } } }) ``` 其次,獲得當前位置的經緯度 ``` locationData: function(){ wx.getLocation({ type: 'wgs84', success: res=> { this.setData({ latitude: res.latitude, longitude: res.longitude }) } }) this.mapReverseGeo() } ``` 最后,解析經緯度獲得地址名稱 ``` mapReverseGeo() { var \_this = this; const latitude = \_this.data.latitude const longitude = \_this.data.longitude console.log(this.data.latitude) qqmapsdk.reverseGeocoder({ //位置坐標,默認獲取當前位置,非必須參數 //Object格式 // location: { // latitude: \_this.data.latitude, // longitude: \_this.data.longitude // }, //String格式 location: latitude,longitude, success: function (res) {//成功后的回調 // console.log(res); // console.log(res.result.address\_component.city) _this.setData({ district:res.result.address\_component.district }) }, fail: function (error) { console.error(error); } }) } ```
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看