张延森 5 vuotta sitten
vanhempi
commit
a3d8fa5532
2 muutettua tiedostoa jossa 17 lisäystä ja 0 poistoa
  1. 1
    0
      src/pages/activity/index.js
  2. 16
    0
      src/pages/project/index.js

+ 1
- 0
src/pages/activity/index.js Näytä tiedosto

@@ -89,6 +89,7 @@ export default class Index extends Component {
89 89
   }
90 90
 
91 91
   onPullDownRefresh = async (rest) => {
92
+    // debugger
92 93
     if (this.refreshing) return
93 94
     this.refreshing = true
94 95
 

+ 16
- 0
src/pages/project/index.js Näytä tiedosto

@@ -88,17 +88,33 @@ export default class Index extends Component {
88 88
       this.qqmapsdk.reverseGeocoder({
89 89
         location,
90 90
         success: (res) => {
91
+          debugger
91 92
           let city = res.result.address_component.city
93
+          
92 94
           let curCity = cityList.filter(item => {
93 95
             return item.name == city
94 96
           })
97
+          Taro.showModal({
98
+            title: 'fail',
99
+            content: JSON.stringify(curCity[0] + "---")
100
+          })
95 101
           this.updateCity(curCity[0] || cityList[0])
96 102
         },
97 103
         fail: (error) => {
104
+          Taro.showModal({
105
+            title: 'fail',
106
+            content: JSON.stringify(err)
107
+          })
108
+          console.error(err)
98 109
           this.updateCity(cityList[0])
99 110
         },
100 111
       })
101 112
     }).catch(err => {
113
+      Taro.showModal({
114
+        title: 'catch',
115
+        content: JSON.stringify(err)
116
+      })
117
+      console.error(err)
102 118
       this.updateCity(cityList[0])
103 119
     })
104 120
   }