|
@@ -210,13 +210,13 @@ export default {
|
|
|
this.getDetail()
|
|
|
},
|
|
|
onShow() {
|
|
|
- // if(uni.getStorageSync('formData')){
|
|
|
- // let {name,phone,address} = uni.getStorageSync('formData')
|
|
|
- // alert(name)
|
|
|
- // this.name = name
|
|
|
- // this.phone = phone
|
|
|
- // this.address = address
|
|
|
- // }
|
|
|
+ if (uni.getStorageSync('formDataaaa')) {
|
|
|
+ let { name, phone, address, websitName } = uni.getStorageSync('formData')
|
|
|
+ this.websitName = websitName
|
|
|
+ this.name = name
|
|
|
+ this.phone = phone
|
|
|
+ this.address = address
|
|
|
+ }
|
|
|
},
|
|
|
computed: {
|
|
|
isDisabled() {
|
|
@@ -463,9 +463,14 @@ export default {
|
|
|
getLocation() {
|
|
|
uni.chooseLocation({
|
|
|
success: async res => {
|
|
|
- // uni.setStorageSync('formData',{name: this.name,phone: this.phone,address: res.address})
|
|
|
let addressData = await this.getRegionByLatLng(res.latitude, res.longitude)
|
|
|
this.address = addressData.provinceName + addressData.cityName + addressData.areaName + res.address
|
|
|
+ uni.setStorageSync('formDataaaa', {
|
|
|
+ websitName: this.websitName,
|
|
|
+ name: this.name,
|
|
|
+ phone: this.phone,
|
|
|
+ address: this.address
|
|
|
+ })
|
|
|
},
|
|
|
fail: res => {
|
|
|
uni.getSetting({
|