|
|
@@ -301,7 +301,6 @@
|
|
|
phone: uni.getStorageSync('phone'),
|
|
|
ordinaryUserId: null,
|
|
|
storeExtent: null,
|
|
|
- address: '',
|
|
|
longitude: '',
|
|
|
latitude: '',
|
|
|
typeLabel: null,
|
|
|
@@ -365,10 +364,11 @@
|
|
|
})] : []
|
|
|
let storageData = uni.getStorageSync('address');
|
|
|
// this.form.address = storageData.address
|
|
|
- this.form.latitude = storageData.lat
|
|
|
- this.form.longitude = storageData.lng
|
|
|
+ this.form.latitude = storageData.lat || 37.855068;
|
|
|
+ this.form.longitude = storageData.lng || 112.536392
|
|
|
},
|
|
|
async onLoad(data) {
|
|
|
+
|
|
|
if (data.loginType) {
|
|
|
// data.loginType =2 需要根据merchantId查询商户临时数据
|
|
|
// data.loginType =3 不需要回显
|
|
|
@@ -419,7 +419,6 @@
|
|
|
} else {
|
|
|
if (data.params) {
|
|
|
let obj = JSON.parse(decodeURIComponent(data.params));
|
|
|
-
|
|
|
this.title = '店铺信息'
|
|
|
this.tab = 1
|
|
|
obj.lifespanType = obj.lifespanType ? obj.lifespanType : '1'
|