Commit 655478f4 by 李嘉林

图片显示

parent ac3e3bd9
......@@ -12,7 +12,7 @@
</div>
<div class="img">
<image
mode="widthFix"
mode="aspectFill"
:src="userInfo.headPortraitUrl"
alt=""
></image>
......@@ -76,6 +76,7 @@
<script>
import live from "@/api/live";
import { DFSImg } from '@/utils/common.js'
export default {
name: "improveInformation",
data() {
......@@ -128,6 +129,7 @@ export default {
wx.hideLoading();
if(res.data.ok=='true'){
this.userInfo = res.data.data;
this.userInfo.headPortraitUrl = DFSImg(this.userInfo.headPortraitUrl);
}
})
},
......@@ -212,6 +214,7 @@ export default {
.img {
width: 80px;
height: 100px;
overflow: hidden;
image {
width: 100%;
height: 100%;
......
......@@ -45,6 +45,7 @@
<script type="text/ecmascript-6">
import live from "@/api/live";
import index from "@/api/index";
import { DFSImg } from '@/utils/common.js'
export default {
name: "showPassCheck",
data() {
......@@ -90,6 +91,7 @@ export default {
// wx.hideLoading();
if (res.data.ok == "true") {
this.userInfo = res.data.data;
this.userInfo.headPortraitUrl = DFSImg(this.userInfo.headPortraitUrl);
}
});
},
......@@ -191,6 +193,11 @@ export default {
height: 140px;
border: 1px solid #d8d8d8;
padding: 1px;
overflow: hidden;
image{
width: 100%;
height: 100%;
}
}
.userName {
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