|
@@ -22,10 +22,15 @@
|
|
|
v-if="user.role == '3' || user.role == '4' || user.role == '5' || user.role == '6' || user.role == '7' || user.role == '8'"
|
|
|
>
|
|
|
<span v-if="user.uid">
|
|
|
- <button type="text" v-if="user.role == '3' || user.role == '4' || user.role == '5' || user.role == '6' || user.role == '7' || user.role == '8'">
|
|
|
+ <button
|
|
|
+ type="text"
|
|
|
+ class="center"
|
|
|
+ @click="tuCenter"
|
|
|
+ v-if="user.role == '3' || user.role == '4' || user.role == '5' || user.role == '6' || user.role == '7' || user.role == '8'"
|
|
|
+ >
|
|
|
个人中心
|
|
|
</button>
|
|
|
- <button type="button" @click="zhuxiao">注销</button>
|
|
|
+ <button type="button" @click="zhuxiao" class="outLogin">退出</button>
|
|
|
</span>
|
|
|
<span v-else>
|
|
|
<el-button type="primary" size="mini" class="loginBtn" @click="webLogin">平台登录</el-button>
|
|
@@ -33,39 +38,16 @@
|
|
|
</el-col>
|
|
|
<el-col :span="3" class="two" v-if="user.role == '0' || user.role == '1' || user.role == '7'">
|
|
|
<span v-if="user.uid">
|
|
|
- <button type="text" v-if="user.role == '0' || user.role == '1' || user.role == '7'">
|
|
|
+ <button type="text" class="center" @click="tuCenter" v-if="user.role == '0' || user.role == '1' || user.role == '7'">
|
|
|
个人中心
|
|
|
</button>
|
|
|
- <button type="button" @click="zhuxiao">注销</button>
|
|
|
+ <button type="button" @click="zhuxiao" class="outLogin">退出</button>
|
|
|
</span>
|
|
|
<span v-else>
|
|
|
<el-button type="primary" size="mini" class="loginBtn" @click="adminLogin">管理登录</el-button>
|
|
|
</span>
|
|
|
</el-col>
|
|
|
</el-col>
|
|
|
- <!-- <p>
|
|
|
- 欢迎来到中科在线
|
|
|
- </p>
|
|
|
- <p @click="guanzhu()" class="btnER">关注公众号</p>
|
|
|
- <p class="username">
|
|
|
- <span v-if="user.uid">
|
|
|
- {{ user.name || user.adminuser }}
|
|
|
- <button
|
|
|
- type="text"
|
|
|
- class="userCenter"
|
|
|
- @click="stnmae"
|
|
|
- v-if="user.role == '3' || user.role == '4' || user.role == '5' || user.role == '6' || user.role == '8'"
|
|
|
- >
|
|
|
- 个人中心
|
|
|
- </button>
|
|
|
- <button type="button" class="logininfo" @click="zhuxiao">注销</button>
|
|
|
- </span>
|
|
|
- <span v-else>
|
|
|
- {{ user.name || user.adminuser }}
|
|
|
- <button type="button" class="logininfo" @click="btnLogin">登录</button>
|
|
|
- <button type="button" class="logininfo" @click="btnLogin">注册</button>
|
|
|
- </span>
|
|
|
- </p> -->
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="superlogo">
|
|
@@ -160,15 +142,16 @@ export default {
|
|
|
adminLogin() {
|
|
|
this.$router.push({ path: '/adminLogin' });
|
|
|
},
|
|
|
-
|
|
|
// 个人中心跳转
|
|
|
- stnmae() {
|
|
|
+ tuCenter() {
|
|
|
if (this.user.role == '4' || this.user.role == '5' || this.user.role == '6' || this.user.role == '7') {
|
|
|
this.$router.push({ path: '/userCenter/index', query: { num: '1' } });
|
|
|
} else if (this.user.role == '3') {
|
|
|
this.$router.push({ path: '/adminCenter/index', query: { num: '1' } });
|
|
|
} else if (this.user.role == '8') {
|
|
|
this.$router.push({ path: '/vipCenter/index', query: { num: '1' } });
|
|
|
+ } else if (this.user.role == '0' || this.user.role == '1') {
|
|
|
+ this.$router.push({ path: '/superAdminCenter/index', query: { num: '1' } });
|
|
|
} else {
|
|
|
this.$router.push('/market/index');
|
|
|
}
|
|
@@ -246,6 +229,24 @@ export default {
|
|
|
.loginBtn:hover {
|
|
|
cursor: pointer;
|
|
|
}
|
|
|
+ .center {
|
|
|
+ font-size: 15px;
|
|
|
+ font-weight: bold;
|
|
|
+ color: #fff;
|
|
|
+ }
|
|
|
+ .center:hover {
|
|
|
+ cursor: pointer;
|
|
|
+ color: #0085d2;
|
|
|
+ }
|
|
|
+ .outLogin {
|
|
|
+ margin: 0 0 0 5px;
|
|
|
+ font-weight: bold;
|
|
|
+ font-size: 14px;
|
|
|
+ }
|
|
|
+ .outLogin:hover {
|
|
|
+ cursor: pointer;
|
|
|
+ color: #0085d2;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|