diff --git a/src/main/resources/views/mobile/mine/index.html b/src/main/resources/views/mobile/mine/index.html index ec9c241..4b309ab 100644 --- a/src/main/resources/views/mobile/mine/index.html +++ b/src/main/resources/views/mobile/mine/index.html @@ -16,7 +16,7 @@ layout("/mobile/platform.html"){ padding: 8px 8px; } .main_content { - height: calc(100vh - 570px); + height: 290px; background: linear-gradient(to top right, rgb(238, 163, 175), rgb(149, 214, 240)); border-radius: 0 0 20px 20px; } @@ -30,12 +30,8 @@ layout("/mobile/platform.html"){ font-weight: bold; } .avatar { - background-color: lightgray; width: 50px; height: 50px; - border-radius: 50px; - text-align: center; - line-height: 50px; } .count_content { text-align: center; @@ -104,7 +100,9 @@ layout("/mobile/platform.html"){
${@shiro.getPrincipalProperty('username')}老师,欢迎您!
-
{{getShortName()}}
+
+ +
@@ -128,13 +126,6 @@ layout("/mobile/platform.html"){ - - - - - - - @@ -177,6 +168,7 @@ layout("/mobile/platform.html"){ el: '#app', data() { return { + avatar: '', yearActions: [], yearShow: false, pageForm: { @@ -251,6 +243,8 @@ layout("/mobile/platform.html"){ async init() { await this.getUserInfo() await this.getActivityCount() + const sex = "${@shiro.getPrincipalProperty('sex')}" + this.avatar = sex === '女' ? '/avatar_girl.svg' : '/avatar_boy.svg' } }, async created() {