mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-02-25 14:17:54 +08:00
优化业主编辑
This commit is contained in:
parent
a108527982
commit
e26fd30f24
@ -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">
|
||||
|
||||
@ -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
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Loading…
Reference in New Issue
Block a user