|
@@ -1,6 +1,16 @@
|
|
|
<template>
|
|
|
- <div class="course-my ng-scope">
|
|
|
- <div class="tc mt20">
|
|
|
+ <div class="course-my" style="background-color: white;">
|
|
|
+ <div class="tc">
|
|
|
+ <img v-if="user.headImg" :src="user.headImg" style="margin: 10px auto;width: 160px; border-radius: 20%;" >
|
|
|
+ </img>
|
|
|
+ <img v-else-if="user.gender=='男'" style="margin: 10px auto;width: 160px; border-radius: 20%;"
|
|
|
+ src="../../../assets/images/user-man.jpg">
|
|
|
+ </img>
|
|
|
+ <img v-else style="margin: 10px auto;width: 160px; border-radius: 20%;"
|
|
|
+ src="../../../assets/images/user-man.jpg" >
|
|
|
+ </img>
|
|
|
+ </div>
|
|
|
+ <div class="mt10 tc">
|
|
|
<div class="pt20 fs18">
|
|
|
当前用户
|
|
|
<span :title="user.nickname" style="display:inline" >
|
|
@@ -10,7 +20,11 @@
|
|
|
</div>
|
|
|
|
|
|
<el-row class="login-entry" style="width: 100%;">
|
|
|
- <el-col :span="12" class="p10">
|
|
|
+
|
|
|
+ <el-col :span="24">
|
|
|
+
|
|
|
+ </el-col>
|
|
|
+ <!-- <el-col :span="12" class="p10">
|
|
|
<button class="btn-b-b fs15" @click="gotoPage('/center/home')">个人中心</button>
|
|
|
</el-col>
|
|
|
|
|
@@ -32,12 +46,14 @@
|
|
|
|
|
|
<el-col :span="12" class="p10">
|
|
|
<button class="btn-b-b fs15" @click="gotoPage('/center/sign')">学时证明</button>
|
|
|
- </el-col>
|
|
|
+ </el-col> -->
|
|
|
|
|
|
- <el-col :span="24" class="p10">
|
|
|
- <button class="btn-b-b " style="width: 100%;" @click="logout()">退出登录</button>
|
|
|
+ <el-col :span="12" class="p10">
|
|
|
+ <button class="btn-b-b b" @click="gotoPage('/center/home')">个人中心</button>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12" class="p10">
|
|
|
+ <button class="btn-b-b b" @click="logout()">退出登录</button>
|
|
|
</el-col>
|
|
|
-
|
|
|
</el-row>
|
|
|
|
|
|
<!--
|
|
@@ -70,7 +86,8 @@
|
|
|
user: {
|
|
|
type: Object,
|
|
|
default: {
|
|
|
- nickanme: ''
|
|
|
+ nickanme: '',
|
|
|
+ gender: ''
|
|
|
}
|
|
|
}
|
|
|
},
|