|
|
@ -78,6 +78,7 @@ |
|
|
|
var method = 'POST' |
|
|
|
if(this.vid){ |
|
|
|
param.id = this.vid |
|
|
|
param.get_idcard = 1 |
|
|
|
req = 'api/user/update_visitor' |
|
|
|
} |
|
|
|
|
|
|
@ -94,14 +95,20 @@ |
|
|
|
}); |
|
|
|
}, |
|
|
|
getVisitorInfo() { |
|
|
|
this.visitor_info = JSON.parse(uni.getStorageSync('visitor_info_'+ this.vid)) |
|
|
|
this.name = this.visitor_info.name |
|
|
|
this.idcard = this.visitor_info.idcard |
|
|
|
this.phone = this.visitor_info.phone |
|
|
|
this.nameRule = true |
|
|
|
this.idcardExtRule = true |
|
|
|
this.phoneRule = true |
|
|
|
this.checkSubmit() |
|
|
|
var param = new Object() |
|
|
|
param.vid = this.vid |
|
|
|
|
|
|
|
this.$http.req('api/user/get_modify_visitor', param, 'POST').then(data=>{ |
|
|
|
if(data == -1) return |
|
|
|
this.name = data.name |
|
|
|
this.idcard = data.idcard |
|
|
|
this.phone = data.phone |
|
|
|
this.nameRule = true |
|
|
|
this.idcardExtRule = true |
|
|
|
this.phoneRule = true |
|
|
|
this.checkSubmit() |
|
|
|
}); |
|
|
|
|
|
|
|
}, |
|
|
|
nameBlurEvent(value, res){ |
|
|
|
this.name = value |
|
|
|