|
|
|
@ -7,10 +7,7 @@ const wxqqmap = require('../../libs/qqmap-wx-jssdk.min') |
|
|
|
const event = require('../../utils/event') |
|
|
|
const storage = require('../../utils/storage') |
|
|
|
const app = getApp() |
|
|
|
const qqwxmap = new wxqqmap({ |
|
|
|
key: 'GAMBZ-CBGCK-GB6J3-A6PJX-F6ZHH-IWFUD' // 必填,这里最好填自己申请的的
|
|
|
|
// key: 'NGOBZ-UL7ED-WJ34D-PMWW7-LBDI2-J5FYK'
|
|
|
|
}) |
|
|
|
const qqwxmap = new wxqqmap({ key: 'GAMBZ-CBGCK-GB6J3-A6PJX-F6ZHH-IWFUD'}) |
|
|
|
var fragments = [] |
|
|
|
|
|
|
|
Page({ |
|
|
|
@ -87,7 +84,7 @@ Page({ |
|
|
|
defaultIndex: function () { |
|
|
|
this.locationing() |
|
|
|
this.onResume() |
|
|
|
if (this.data.path) { |
|
|
|
if (this.data.path && '/pages/index/index' != this.data.path) { |
|
|
|
util.navigateTo(this.data.path) |
|
|
|
} |
|
|
|
getPopupInfo().then(result => { |
|
|
|
@ -106,7 +103,7 @@ Page({ |
|
|
|
location: res, |
|
|
|
success: function (res) { |
|
|
|
app.nowLocation.cityName = res.result.address_component.city.replace('市', '') |
|
|
|
app.nowLocation.cityCode = res.result.ad_info.city_code |
|
|
|
app.nowLocation.cityCode = res.result.ad_info.city_code.replace('156', '') |
|
|
|
if(!app.nowCity){ |
|
|
|
app.nowCity = { cityName: app.nowLocation.cityName, cityCode: app.nowLocation.cityCode } |
|
|
|
that.setData({ cityName: app.nowLocation.cityName }) |
|
|
|
|