优化业主编辑

This commit is contained in:
java110 2020-06-22 16:46:46 +08:00
parent a108527982
commit e26fd30f24
2 changed files with 4 additions and 1 deletions

View File

@ -14,7 +14,7 @@
<span class="btn btn-default btn-file" v-on:click="_uploadPhoto($event)">
<span class="fileinput-new" >上传照片</span>
</span>
<input type="file" class="file" accept="images/*" id="uploadOwnerPhoto" hidden v-on:click="_choosePhoto($event)">
<input type="file" class="file" accept="images/*" id="uploadOwnerPhoto" hidden v-on:change="_choosePhoto($event)">
</div>
</div>
<div class="col-sm-6">

View File

@ -213,6 +213,9 @@
reader.readAsDataURL(file); //读取为base64
reader.onloadend = function (e) {
vc.component.addOwnerInfo.ownerPhoto = reader.result;
let obj = document.getElementById('uploadOwnerPhoto') ;
obj.outerHTML=obj.outerHTML
}
}
},