优化图片尺寸大小

This commit is contained in:
xiaogang 2021-01-28 14:45:29 +08:00
parent d53413471b
commit 91bf7f0b9b
4 changed files with 5 additions and 4 deletions

View File

@ -74,7 +74,7 @@
<div class="form-group row"> <div class="form-group row">
<label class="col-sm-2 col-form-label">照片</label> <label class="col-sm-2 col-form-label">照片</label>
<div class="col-sm-10"> <div class="col-sm-10">
<img width="100%" height="100%" <img width="150" height="150"
v-bind:src="addStaffViewInfo.photo" alt="员工照片"> v-bind:src="addStaffViewInfo.photo" alt="员工照片">
</div> </div>
</div> </div>

View File

@ -55,8 +55,8 @@
</div> </div>
<div class="form-group row"> <div class="form-group row">
<label class="col-sm-2 col-form-label">照片</label> <label class="col-sm-2 col-form-label">照片</label>
<div class="col-sm-10"><img width="100%" height="100%" <div class="col-sm-10"><img width="150" height="150"
v-bind:src="editStaffInfo.photo" alt="业主照片"></div> v-bind:src="editStaffInfo.photo" onerror="this.src='/img/noPhoto.jpg';" alt="业主照片"></div>
</div> </div>
</div> </div>

View File

@ -156,6 +156,7 @@
mediaStreamTrack: null, mediaStreamTrack: null,
attrs:[] attrs:[]
}; };
this._loadOwnerAttrSpec();
}, },
_addUserMedia: function () { _addUserMedia: function () {
return navigator.getUserMedia = navigator.getUserMedia || return navigator.getUserMedia = navigator.getUserMedia ||

View File

@ -79,7 +79,7 @@
<thead> <thead>
<tr> <tr>
<th>业主ID</th> <th>业主ID</th>
<th data-hide="phone"></th> <th data-hide="phone"></th>
<!-- <th data-hide="phone">房屋编号</th> --> <!-- <th data-hide="phone">房屋编号</th> -->
<th data-hide="phone">性别</th> <th data-hide="phone">性别</th>
<th data-hide="phone">年龄</th> <th data-hide="phone">年龄</th>