mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-06-12 18:11:00 +08:00
优化代码
This commit is contained in:
parent
61eb785659
commit
0453580166
@ -45,7 +45,7 @@
|
||||
</div>
|
||||
<div class="col-sm-6" style="text-align:center">
|
||||
<div class="form-group row">
|
||||
<div v-if="addOwnerInfo.ownerPhoto != ''">
|
||||
<div style="width: 100%;" v-if="addOwnerInfo.ownerPhoto != ''">
|
||||
<img width="80%" height="150rem" v-bind:src="addOwnerInfo.ownerPhoto" alt="业主照片">
|
||||
</div>
|
||||
<div style="width: 100%;" v-else>
|
||||
@ -53,7 +53,7 @@
|
||||
<video id="ownerPhoto" style="width: 100%;"></video>
|
||||
<canvas id="canvas" style="display:none;"></canvas>
|
||||
</div>
|
||||
<div>
|
||||
<div v-else>
|
||||
<img width="80%" height="150rem" src="/img/noPhoto.jpg" alt="业主照片">
|
||||
</div>
|
||||
</div>
|
||||
@ -61,7 +61,7 @@
|
||||
|
||||
<button class="btn btn-primary" type="button" v-if="addOwnerInfo.videoPlaying == true && addOwnerInfo.ownerPhoto != ''" v-on:click="_reOpenVedio()"><span
|
||||
class="glyphicon glyphicon-camera"></span>摄像头</button>
|
||||
<button class="btn btn-primary" type="button" v-if="addOwnerInfo.videoPlaying == true" v-on:click="_takePhoto()"><span
|
||||
<button class="btn btn-primary" type="button" v-if="addOwnerInfo.videoPlaying == true && addOwnerInfo.ownerPhoto == ''" v-on:click="_takePhoto()"><span
|
||||
class="glyphicon glyphicon-camera"></span> 拍照</button>
|
||||
<span class="btn btn-default btn-file" v-on:click="_uploadPhoto($event)">
|
||||
<span class="fileinput-new">上传照片</span>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user