Browse Source

注册页面 修改页面注册成功后跳转、地区定位

master
邓宏 2 years ago
parent
commit
ace7a451b1
  1. 22
      pages/home/register.vue
  2. 1
      pages/massif/info.vue

22
pages/home/register.vue

@ -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({

1
pages/massif/info.vue

@ -56,7 +56,6 @@ import request from '@/common/request'
address:"",
},
rules:{
// plantBaseInfoId:{required:true, message:"", trigger:"change"},
// plotNumber:{required:false, message:"", trigger:"blur"},
plotName:{required:true, message:"地块名称必填!", trigger:"blur"},
// drawArea:{required:true, type:'number', message:"", trigger:"blur"},

Loading…
Cancel
Save