Bladeren bron

我的界面:

1、设置默认头像
2、ipad用户头像区域调小(显示出下方的教材)
3、教材链接新开页面变成当前页面打开
zq 1 maand geleden
bovenliggende
commit
ff04c84ab1
2 gewijzigde bestanden met toevoegingen van 8 en 4 verwijderingen
  1. 8 4
      pages/tabbar/person/index.vue
  2. BIN
      static/head.png

+ 8 - 4
pages/tabbar/person/index.vue

@@ -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;

BIN
static/head.png