|
@@ -164,7 +164,7 @@ const handleChange = ({ fileList: files }) => {
|
|
console.log(fileList.value)
|
|
console.log(fileList.value)
|
|
}
|
|
}
|
|
const getCurrentLocation = () => {
|
|
const getCurrentLocation = () => {
|
|
- console.log('点击地址')
|
|
|
|
|
|
+ uni.showToast({ icon: 'loading', title: '正在获取位置...' })
|
|
uni.getLocation({
|
|
uni.getLocation({
|
|
type: 'gcj02',
|
|
type: 'gcj02',
|
|
success: async (success: any) => {
|
|
success: async (success: any) => {
|
|
@@ -173,7 +173,7 @@ const getCurrentLocation = () => {
|
|
dataForm.value.address.address = name
|
|
dataForm.value.address.address = name
|
|
dataForm.value.address.latitude = latitude
|
|
dataForm.value.address.latitude = latitude
|
|
dataForm.value.address.longitude = longitude
|
|
dataForm.value.address.longitude = longitude
|
|
- console.log('提交信息:::', dataForm.value)
|
|
|
|
|
|
+ uni.hideToast()
|
|
},
|
|
},
|
|
fail: (err) => {
|
|
fail: (err) => {
|
|
console.log('获取地址失败', err)
|
|
console.log('获取地址失败', err)
|
|
@@ -191,15 +191,16 @@ const getCurrentLocation = () => {
|
|
dataForm.value.address.address = name
|
|
dataForm.value.address.address = name
|
|
dataForm.value.address.latitude = latitude
|
|
dataForm.value.address.latitude = latitude
|
|
dataForm.value.address.longitude = longitude
|
|
dataForm.value.address.longitude = longitude
|
|
- console.log('提交信息:::', dataForm.value)
|
|
|
|
|
|
+ uni.hideToast()
|
|
},
|
|
},
|
|
fail: function (err) {
|
|
fail: function (err) {
|
|
console.log('获取位置失败:', err)
|
|
console.log('获取位置失败:', err)
|
|
|
|
+ uni.hideToast()
|
|
},
|
|
},
|
|
})
|
|
})
|
|
},
|
|
},
|
|
fail: function () {
|
|
fail: function () {
|
|
- console.log('用户拒绝授权,不再提示')
|
|
|
|
|
|
+ uni.hideToast()
|
|
// 用户拒绝授权,可以选择记录下来,不再提示
|
|
// 用户拒绝授权,可以选择记录下来,不再提示
|
|
uni.showToast({
|
|
uni.showToast({
|
|
title: '您拒绝了位置授权',
|
|
title: '您拒绝了位置授权',
|
|
@@ -253,7 +254,7 @@ onMounted(async () => {
|
|
@click="handleTabbarItemClick"
|
|
@click="handleTabbarItemClick"
|
|
/>
|
|
/>
|
|
<wd-action-sheet v-model="publishState" title="创建跟进" @close="publishState = false">
|
|
<wd-action-sheet v-model="publishState" title="创建跟进" @close="publishState = false">
|
|
- <view class="flex flex-col p-4 h-[calc(75vh)] overflow-y-auto">
|
|
|
|
|
|
+ <view class="flex flex-col p-4 h-[calc(65vh)]! overflow-y-auto">
|
|
<div>
|
|
<div>
|
|
<DataForm
|
|
<DataForm
|
|
ref="dataFormRef"
|
|
ref="dataFormRef"
|