diff --git a/api/api.js b/api/api.js index b5d682d..8194131 100644 --- a/api/api.js +++ b/api/api.js @@ -40,6 +40,7 @@ export const listForType = (data) => syhttp.get('/action/listForType', data) //首页 export const lindexist = (data) => syhttp.get('/index/index', data) + //产品列表 export const landproduct = (data) => syhttp.get('/land/product', data) @@ -62,6 +63,4 @@ export const towns = (data) => http.get('/common/geo/towns', data) //乡村 export const villages = (data) => http.get('/common/geo/villages', data) //小组 -export const groups = (data) => http.get('/common/geo/groups', data) - - +export const groups = (data) => http.get('/common/geo/groups', data) \ No newline at end of file diff --git a/pages/addLand/addLand.vue b/pages/addLand/addLand.vue index ab4d006..15fe0c2 100644 --- a/pages/addLand/addLand.vue +++ b/pages/addLand/addLand.vue @@ -364,10 +364,19 @@ } const location = () => { + + uni.navigateTo({ + url: '/pages/addLand/select_address_n' + }) + return + uni.showLoading({ title: '获取位置中' }) uni.getLocation({ + + + type: 'gcj02', geocode: true, isHighAccuracy: true, @@ -441,7 +450,7 @@ } onLoad((options) => { - + console.log(options || "") provincen() }) diff --git a/pages/addLand/select_address_n.nvue b/pages/addLand/select_address_n.nvue index 2367908..5e6e2cf 100644 --- a/pages/addLand/select_address_n.nvue +++ b/pages/addLand/select_address_n.nvue @@ -17,65 +17,26 @@ 当前位置: - {{locationInfo.formatted_addresses?locationInfo.formatted_addresses.recommend:locationInfo.address}} + {{address}} - 重新定位 + 重新定位 - - - 泸州区县 - - - - {{item.name}} - - - - 选择街道/镇 - - - - {{key}} - - - {{item.name}} - - - - - + +