|
|
@ -108,16 +108,6 @@ export default { |
|
|
|
}) |
|
|
|
if(res.statu){ |
|
|
|
this.fields.type.columns=[res.data] |
|
|
|
res.data.forEach(i=>{ |
|
|
|
if(i.label==this.adderss.city){ |
|
|
|
i.children.forEach(j=>{ |
|
|
|
if(j.label==this.adderss.district){ |
|
|
|
this.fields.areaCode.value=[i.value,j.value] |
|
|
|
this.formData.areaCode=j.value |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
}) |
|
|
|
}else{ |
|
|
|
uni.showModal({ |
|
|
|
title:"提示", |
|
|
@ -129,6 +119,16 @@ export default { |
|
|
|
var res=await request("/base/api/plantCompany/queryAreaList?code=530000000000") |
|
|
|
if(res.statu){ |
|
|
|
this.fields.areaCode.columns=[res.data] |
|
|
|
res.data.forEach(i=>{ |
|
|
|
if(i.label==this.adderss.city){ |
|
|
|
i.children.forEach(j=>{ |
|
|
|
if(j.label==this.adderss.district){ |
|
|
|
this.fields.areaCode.value=[i.value,j.value] |
|
|
|
this.formData.areaCode=j.value |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
}) |
|
|
|
}else{ |
|
|
|
uni.showModal({ |
|
|
|
title:"提示", |
|
|
@ -148,7 +148,7 @@ export default { |
|
|
|
if(res.statu){ |
|
|
|
uni.showToast({title:"注册成功!"}) |
|
|
|
setTimeout(()=>{ |
|
|
|
uni.reLaunch({url:`/?phone=${this.formData.connectPhone}`}) |
|
|
|
uni.reLaunch({url:`/pages/home/login?phone=${this.formData.connectPhone}`}) |
|
|
|
},1500) |
|
|
|
}else{ |
|
|
|
uni.showModal({ |
|
|
|