| | |
| | | }); |
| | | |
| | | const router = Taro.useRouter(); |
| | | const { userDetail } = useUser(); |
| | | const id = router.params?.id ?? ''; |
| | | const isCopy = router.params?.isCopy === 'true'; |
| | | const isEdit = !!id; |
| | | |
| | | const form = reactive({ |
| | | name: '', |
| | | contactPhoneNumber: '', |
| | | name: userDetail.value.name ?? '', |
| | | contactPhoneNumber: userDetail.value.contactPhoneNumber ?? '', |
| | | provinceCode: '', |
| | | cityCode: '', |
| | | areaCode: '', |
| | |
| | | countyCode: data.areaCode, |
| | | latitude: data.latitude, |
| | | longitude: data.longitude, |
| | | addressName: data.addressName, |
| | | address: data.addressName, |
| | | }; |
| | | form.addressDetail = data.addressDetail; |
| | |
| | | provinceCode: form.weMapInfo.provinceCode, |
| | | cityCode: form.weMapInfo.cityCode, |
| | | areaCode: form.weMapInfo.countyCode, |
| | | addressName: form.weMapInfo.address, |
| | | addressName: form.weMapInfo.addressName, |
| | | addressDetail: form.addressDetail, |
| | | longitude: form.weMapInfo.longitude, |
| | | latitude: form.weMapInfo.latitude, |