commit
This commit is contained in:
@@ -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"){
|
||||
<div>${@shiro.getPrincipalProperty('username')}老师,欢迎您!</div>
|
||||
</div>
|
||||
<div>
|
||||
<div class="avatar">{{getShortName()}}</div>
|
||||
<div class="avatar">
|
||||
<img :src="avatar" fit="cover"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="activity_tooltip">
|
||||
@@ -128,13 +126,6 @@ layout("/mobile/platform.html"){
|
||||
<van-cell icon="coupon-o" title="工号" :value="userInfo.loginname"></van-cell>
|
||||
<van-cell icon="manager-o" title="性别" :value="userInfo.sex"></van-cell>
|
||||
<van-cell icon="phone-o" title="手机号" :value="userInfo.mobile"></van-cell>
|
||||
<van-cell icon="comment-o" title="身份证" :value="userInfo.idcard"></van-cell>
|
||||
<van-cell icon="friends-o" title="民族" :value="userInfo.nation"></van-cell>
|
||||
<van-cell icon="notes-o" title="学历" :value="userInfo.education"></van-cell>
|
||||
<van-cell icon="newspaper-o" title="学位" :value="userInfo.academicDegree"></van-cell>
|
||||
<van-cell icon="credit-pay" title="政治面貌" :value="userInfo.political"></van-cell>
|
||||
<van-cell icon="idcard" title="人员类型" :value="userInfo.personType"></van-cell>
|
||||
<van-cell icon="hotel-o" title="职务" :value="userInfo.position"></van-cell>
|
||||
<van-cell icon="bar-chart-o" title="所属单位" :value="userInfo.unitname"></van-cell>
|
||||
<van-cell icon="cluster-o" title="所属工会" :value="userInfo.unionname"></van-cell>
|
||||
</template>
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user