|
@@ -156,11 +156,11 @@ export default {
|
156
|
156
|
iDCard: "",
|
157
|
157
|
recommendName: "",
|
158
|
158
|
invitedCode: "",
|
159
|
|
- latitude:'',
|
160
|
|
- longitude:'',
|
161
|
|
- province:'',
|
162
|
|
- city:'',
|
163
|
|
- county:'',
|
|
159
|
+ latitude: "",
|
|
160
|
+ longitude: "",
|
|
161
|
+ province: "",
|
|
162
|
+ city: "",
|
|
163
|
+ county: "",
|
164
|
164
|
},
|
165
|
165
|
mainImage: [],
|
166
|
166
|
mainImage2: [],
|
|
@@ -177,23 +177,23 @@ export default {
|
177
|
177
|
|
178
|
178
|
// 函数
|
179
|
179
|
methods: {
|
180
|
|
-
|
181
|
|
- getGroupInfo(){
|
182
|
|
- this.api.get('/Group/getGroupInfo',{},{pass:true})
|
183
|
|
- .then(res=>{
|
184
|
|
- if(res.success && res.data){
|
185
|
|
- this.form.appName = res.data.shopName || '';
|
186
|
|
- this.form.province = res.data.province || '';
|
187
|
|
- this.form.city = res.data.city || '';
|
188
|
|
- this.form.county = res.data.district || '';
|
189
|
|
- this.form.address = res.data.detialAddr || '';
|
190
|
|
- this.form.latitude = res.data.latitude || '';
|
191
|
|
- this.form.longitude = res.data.longitude || '';
|
192
|
|
- if(this.form.province){
|
193
|
|
- this.form.pickUpAddress = `${this.form.province}${this.form.city}${this.form.county}`
|
|
180
|
+ getGroupInfo() {
|
|
181
|
+ this.api
|
|
182
|
+ .get("/Group/getGroupInfo", {}, { pass: true })
|
|
183
|
+ .then((res) => {
|
|
184
|
+ if (res.success && res.data) {
|
|
185
|
+ this.form.appName = res.data.shopName || "";
|
|
186
|
+ this.form.province = res.data.province || "";
|
|
187
|
+ this.form.city = res.data.city || "";
|
|
188
|
+ this.form.county = res.data.district || "";
|
|
189
|
+ this.form.address = res.data.detialAddr || "";
|
|
190
|
+ this.form.latitude = res.data.latitude || "";
|
|
191
|
+ this.form.longitude = res.data.longitude || "";
|
|
192
|
+ if (this.form.province) {
|
|
193
|
+ this.form.pickUpAddress = `${this.form.province}${this.form.city}${this.form.county}`;
|
194
|
194
|
}
|
195
|
195
|
}
|
196
|
|
- })
|
|
196
|
+ });
|
197
|
197
|
},
|
198
|
198
|
|
199
|
199
|
mapClick() {
|
|
@@ -224,11 +224,11 @@ export default {
|
224
|
224
|
type: "gcj02", //返回可以用于uni.openLocation的经纬度
|
225
|
225
|
success: function (res) {
|
226
|
226
|
self.form.pickUpAddress = res.address;
|
227
|
|
- self.form.province = '';
|
228
|
|
- self.form.city = '';
|
229
|
|
- self.form.county = '';
|
230
|
|
- this.form.latitude = res.latitude.toFixed(6) || '';
|
231
|
|
- this.form.longitude = res.longitude.toFixed(6) || '';
|
|
227
|
+ self.form.province = "";
|
|
228
|
+ self.form.city = "";
|
|
229
|
+ self.form.county = "";
|
|
230
|
+ self.form.latitude = res.latitude.toFixed(6) || "";
|
|
231
|
+ self.form.longitude = res.longitude.toFixed(6) || "";
|
232
|
232
|
console.log("定位ok", res);
|
233
|
233
|
},
|
234
|
234
|
fail(e) {
|
|
@@ -271,7 +271,7 @@ export default {
|
271
|
271
|
// if (this.form.iDCard.length !== 2) {
|
272
|
272
|
// return this.fn.showToast("请分别上传身份证照正反面");
|
273
|
273
|
// }
|
274
|
|
- if(this.user.parentInviteCode){
|
|
274
|
+ if (this.user.parentInviteCode) {
|
275
|
275
|
this.form.invitedCode = this.user.parentInviteCode;
|
276
|
276
|
}
|
277
|
277
|
this.submitLoading = true;
|