mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-06-12 18:11:00 +08:00
优化代码
This commit is contained in:
parent
7f8a86f44a
commit
7a62ec51a3
@ -64,7 +64,7 @@
|
||||
class="glyphicon glyphicon-camera"></span>摄像头</button>
|
||||
<button class="btn btn-primary" type="button" v-if="editOwnerInfo.videoPlaying == true && editOwnerInfo.ownerPhoto == ''" v-on:click="_takePhotoForEdit()"><span
|
||||
class="glyphicon glyphicon-camera"></span> 拍照</button>
|
||||
<span class="btn btn-default btn-file" v-on:click="_uploadPhoto($event)">
|
||||
<span class="btn btn-default btn-file" v-on:click="_uploadEditPhoto($event)">
|
||||
<span class="fileinput-new">上传照片</span>
|
||||
</span>
|
||||
<input type="file" class="file" accept=".jpg" id="uploadEditOwnerPhoto" hidden
|
||||
|
||||
@ -209,6 +209,8 @@
|
||||
var data = canvas.toDataURL('image/jpeg', 1.0);
|
||||
vc.component.editOwnerInfo.ownerPhoto = data;
|
||||
//document.getElementById('photo').setAttribute('src', data);
|
||||
}else{
|
||||
vc.toast('未检测到摄像头');
|
||||
}
|
||||
},
|
||||
_uploadEditPhoto: function (event) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user