MrShi
6 小时以前 bc5d79cdd957fcee510d7a1cee07f6775af65596
mini-program/pages/index/index.vue
@@ -152,14 +152,8 @@
      data() {
         return {
            list: [],
            labels: [
               [],
               []
            ],
            brand: [
               [],
               [],
            ],
            labels: [],
            brand: [],
            specialZone: [],
            goodsList: [],
            page: 1,
@@ -235,7 +229,7 @@
         },
         jumpShopZ(item) {
            uni.navigateTo({
               url: '/pages/special-zone/special-zone?qualityId=' + item.id
               url: '/pages/special-zone/special-zone?qualityId=' + item.id+'&title='+item.name
            })
         },
         // 轮播图
@@ -353,26 +347,17 @@
         openLoacing() {
            var that = this;
            uni.chooseLocation({
               success(res1) {
                  const locParam = {
                     latitude: res1.latitude,
                     longitude: res1.longitude
                  };
                  const qqmapsdk = new QQMapWX({
                     key: 'HEIBZ-QJLLM-SZ36X-6ZBHI-S6Y2J-S6FND'
                  });
                  // 腾讯地图逆地理编码
                  qqmapsdk.reverseGeocoder({
                     locParam,
                     success: function(res) {
                        console.log(res,  '==================index获取地址')
                        console.log(locParam)
                        that.$store.commit('setPosition', res.result)
               success(res) {
                  let obj = {
                     formatted_addresses: {
                        recommend: res.name
                     },
                     fail: (err) => {
                        console.error('获取位置失败===========', err);
                     location: {
                        lat: res.latitude,
                        lng: res.longitude
                     }
                  });
                  }
                  that.$store.commit('setPosition', obj)
               }
            })
         },