Browse Source

增加生成报告带宽

master
kuaileWu 3 months ago
parent
commit
8d6546bdfa
  1. 23
      pages/modify_visitor/modify_visitor.vue

23
pages/modify_visitor/modify_visitor.vue

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

Loading…
Cancel
Save