Commit 655478f4 by 李嘉林

图片显示

parent ac3e3bd9
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
</div> </div>
<div class="img"> <div class="img">
<image <image
mode="widthFix" mode="aspectFill"
:src="userInfo.headPortraitUrl" :src="userInfo.headPortraitUrl"
alt="" alt=""
></image> ></image>
...@@ -76,6 +76,7 @@ ...@@ -76,6 +76,7 @@
<script> <script>
import live from "@/api/live"; import live from "@/api/live";
import { DFSImg } from '@/utils/common.js'
export default { export default {
name: "improveInformation", name: "improveInformation",
data() { data() {
...@@ -128,6 +129,7 @@ export default { ...@@ -128,6 +129,7 @@ export default {
wx.hideLoading(); wx.hideLoading();
if(res.data.ok=='true'){ if(res.data.ok=='true'){
this.userInfo = res.data.data; this.userInfo = res.data.data;
this.userInfo.headPortraitUrl = DFSImg(this.userInfo.headPortraitUrl);
} }
}) })
}, },
...@@ -212,6 +214,7 @@ export default { ...@@ -212,6 +214,7 @@ export default {
.img { .img {
width: 80px; width: 80px;
height: 100px; height: 100px;
overflow: hidden;
image { image {
width: 100%; width: 100%;
height: 100%; height: 100%;
......
...@@ -45,6 +45,7 @@ ...@@ -45,6 +45,7 @@
<script type="text/ecmascript-6"> <script type="text/ecmascript-6">
import live from "@/api/live"; import live from "@/api/live";
import index from "@/api/index"; import index from "@/api/index";
import { DFSImg } from '@/utils/common.js'
export default { export default {
name: "showPassCheck", name: "showPassCheck",
data() { data() {
...@@ -90,6 +91,7 @@ export default { ...@@ -90,6 +91,7 @@ export default {
// wx.hideLoading(); // wx.hideLoading();
if (res.data.ok == "true") { if (res.data.ok == "true") {
this.userInfo = res.data.data; this.userInfo = res.data.data;
this.userInfo.headPortraitUrl = DFSImg(this.userInfo.headPortraitUrl);
} }
}); });
}, },
...@@ -191,6 +193,11 @@ export default { ...@@ -191,6 +193,11 @@ export default {
height: 140px; height: 140px;
border: 1px solid #d8d8d8; border: 1px solid #d8d8d8;
padding: 1px; padding: 1px;
overflow: hidden;
image{
width: 100%;
height: 100%;
}
} }
.userName { .userName {
margin-top: 14px; margin-top: 14px;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment