diff --git a/pages.json b/pages.json index 05e06d0..bfa159f 100644 --- a/pages.json +++ b/pages.json @@ -167,6 +167,19 @@ "navigationBarTitleText": "提现结果" } }, + { + "path": "pages/user/promotion/PromoterOrder/index", + "style": { + "navigationBarTitleText": "分销详情" + } + }, + { + "path": "pages/user/promotion/PromoterList/index", + "style": { + "navigationBarTitleText": "分销列表", + "navigationBarBackgroundColor": "#FFFFFF" + } + }, { "path": "pages/user/promotion/UserPromotion/index", "style": { diff --git a/pages/chose-city/chose-city.vue b/pages/chose-city/chose-city.vue index 76c2d5f..ce34a9c 100644 --- a/pages/chose-city/chose-city.vue +++ b/pages/chose-city/chose-city.vue @@ -341,10 +341,11 @@ export default { }, async getMapData() { const map = await getLocation() - if (map) { + if (map.length > 1) { const {latitude, longitude} = map[1] - const address = await getCurAddress(latitude, longitude) - this.location = address[1].data.result.ad_info.city + getCurAddress(latitude, longitude, address => { + this.location = address.city + }) } }, init() { diff --git a/pages/cloud/cloud.vue b/pages/cloud/cloud.vue index 2dc2d0c..5b4b5f9 100644 --- a/pages/cloud/cloud.vue +++ b/pages/cloud/cloud.vue @@ -74,7 +74,7 @@