|
@@ -35,6 +35,7 @@
|
|
|
data() {
|
|
|
return {
|
|
|
user_head_img: '', // 用户头像
|
|
|
+ default_head_img: '../../../static/head.png', // 默认头像
|
|
|
user_name: '用户名',
|
|
|
pageList: [],
|
|
|
}
|
|
@@ -48,7 +49,7 @@
|
|
|
GetMyUserInfo().then((res) => {
|
|
|
if (res.status) {
|
|
|
this.user_name = res.real_name;
|
|
|
- this.user_head_img = res.image_url;
|
|
|
+ this.user_head_img = res.image_url ? res.image_url : this.default_head_img;
|
|
|
}
|
|
|
});
|
|
|
},
|
|
@@ -67,8 +68,10 @@
|
|
|
},
|
|
|
linkBook(book_id) {
|
|
|
let baseUrl = location.protocol + '//' + location.hostname + (location.port ? ':' + location.port : '');
|
|
|
- let url = baseUrl + '/GCLS-Book/#/courseview?showCourse=true&invok_module=GCLS-LC&bookId=' + book_id;
|
|
|
- window.open(url, 'target');
|
|
|
+ let url = baseUrl + '/GCLS-Book/#/courseview?showCourse=true&invok_module=GCLS-LC&bookId=' + book_id +
|
|
|
+ "&enterPage=mobilePerson";
|
|
|
+ //window.open(url, 'target');
|
|
|
+ window.location.href = url;
|
|
|
},
|
|
|
}
|
|
|
}
|
|
@@ -80,7 +83,8 @@
|
|
|
margin: 16rpx;
|
|
|
background-color: #fff;
|
|
|
border-radius: 16rpx;
|
|
|
- height: 400rpx;
|
|
|
+ //height: 400rpx;
|
|
|
+ padding: 17px;
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
|
align-items: center;
|