diff --git a/pages/billing/addUser.vue b/pages/billing/addUser.vue index e212f76..0addf67 100644 --- a/pages/billing/addUser.vue +++ b/pages/billing/addUser.vue @@ -117,7 +117,17 @@ this.formData.consigneeMobile = data.consigneeMobile || data.phone this.formData.consigneeName = data.consigneeName || data.name } - + + }, + onShow(){ + uni.authorize({ + scope: 'scope.userLocation', + success() { + + },fail(){ + this.tui.toast("您未授权,AI入库功能可能会出现错误") + } + }) }, methods: { //获取手机通讯录 @@ -210,10 +220,15 @@ }, openPicker() { let that = this; - uni.chooseLocation({ - success: function(res) { - if (res.name != '') { - let aaa = getArea(res.address) + uni.chooseLocation({ + latitude:'38.335974', + longitude:'116.805783', + success: function(res) { + console.log('11111',res) + if (res.name != '') { + + let aaa = getArea(res.address) + console.log('2222',aaa) that.formData.province = aaa.province that.formData.city = aaa.city that.formData.area = aaa.country diff --git a/pages/index/index.vue b/pages/index/index.vue index ab7ff03..f0a1eb9 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -26,13 +26,19 @@ 推款 + + + + Ai入库 + - + diff --git a/pages/inventory/goodsList1.vue b/pages/inventory/goodsList1.vue index d82405c..d30411c 100644 --- a/pages/inventory/goodsList1.vue +++ b/pages/inventory/goodsList1.vue @@ -1,55 +1,56 @@ @@ -545,16 +569,18 @@