测试
This commit is contained in:
@@ -29,7 +29,8 @@ Vue.prototype.$cdn = 'https://cdn.cunwuyun.cn/dvcp/h5/';
|
|||||||
Object.keys(utils).map((e) => (Vue.prototype['$' + e] = utils[e]));
|
Object.keys(utils).map((e) => (Vue.prototype['$' + e] = utils[e]));
|
||||||
utils.dict.init({instance: axios})
|
utils.dict.init({instance: axios})
|
||||||
App.mpType = 'app';
|
App.mpType = 'app';
|
||||||
process.env.NODE_ENV == 'development' && new VConsole();
|
// process.env.NODE_ENV == 'development' && new VConsole();
|
||||||
|
new VConsole()
|
||||||
const app = new Vue({
|
const app = new Vue({
|
||||||
store,
|
store,
|
||||||
...App
|
...App
|
||||||
|
|||||||
@@ -324,6 +324,7 @@
|
|||||||
success: res => {
|
success: res => {
|
||||||
var lat = res.latitude
|
var lat = res.latitude
|
||||||
var lng = res.longitude
|
var lng = res.longitude
|
||||||
|
console.log(res)
|
||||||
this.$http.post('/api/appdvcpconfig/apiForward', `https://apis.map.qq.com/ws/geocoder/v1/?location=${lat},${lng}&key=3RZBZ-LZUCF-CT6J5-NWKZH-FCWOQ-UUFKY&get_poi=1`).then(res => {
|
this.$http.post('/api/appdvcpconfig/apiForward', `https://apis.map.qq.com/ws/geocoder/v1/?location=${lat},${lng}&key=3RZBZ-LZUCF-CT6J5-NWKZH-FCWOQ-UUFKY&get_poi=1`).then(res => {
|
||||||
if (res.code === 0) {
|
if (res.code === 0) {
|
||||||
const data = res.data.result
|
const data = res.data.result
|
||||||
@@ -335,7 +336,7 @@
|
|||||||
})
|
})
|
||||||
|
|
||||||
this.address = {
|
this.address = {
|
||||||
...uni.getStorageSync('address'),
|
...uni.getStorageSync('address')
|
||||||
}
|
}
|
||||||
|
|
||||||
this.getWeather(`${data.ad_info.adcode}`)
|
this.getWeather(`${data.ad_info.adcode}`)
|
||||||
|
|||||||
Reference in New Issue
Block a user