|
@@ -245,9 +245,15 @@
|
|
|
<!-- 工作台:start -->
|
|
<!-- 工作台:start -->
|
|
|
<section class="developer-workbench block">
|
|
<section class="developer-workbench block">
|
|
|
<div class="developer-workbench-user" @click='linkToUser' :class="isLogin ? 'developer-workbench-user-logined' : ''">
|
|
<div class="developer-workbench-user" @click='linkToUser' :class="isLogin ? 'developer-workbench-user-logined' : ''">
|
|
|
|
|
+
|
|
|
<div class="developer-user-avatar">
|
|
<div class="developer-user-avatar">
|
|
|
<img :src="userInfo.icon_url || personalIcon" />
|
|
<img :src="userInfo.icon_url || personalIcon" />
|
|
|
|
|
+ <template v-if="isLogin">
|
|
|
|
|
+ <span class="developer-flag" :class="isDeveloperVip ? 'developer-vip-flag':'developer-notvip-flag'"></span>
|
|
|
|
|
+ </template>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
<div class="developer-user-info">
|
|
<div class="developer-user-info">
|
|
|
<div v-if="isLogin" class="developer-user-name text-line-1">
|
|
<div v-if="isLogin" class="developer-user-name text-line-1">
|
|
|
{{ userInfo.nickname }}
|
|
{{ userInfo.nickname }}
|
|
@@ -264,6 +270,10 @@
|
|
|
</span>
|
|
</span>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+
|
|
|
|
|
+ <a class="developer-vip-btn-area" :class="isDeveloperVip ? 'developer-vip-renewal-btn':'developer-vip-apply-btn'">
|
|
|
|
|
+
|
|
|
|
|
+ </a>
|
|
|
</div>
|
|
</div>
|
|
|
<h5 class="user-title">工作台</h5>
|
|
<h5 class="user-title">工作台</h5>
|
|
|
<div class="developer-work-list">
|
|
<div class="developer-work-list">
|
|
@@ -489,6 +499,26 @@ export default {
|
|
|
},
|
|
},
|
|
|
isLogin() {
|
|
isLogin() {
|
|
|
return this.$store.getters.isLogin
|
|
return this.$store.getters.isLogin
|
|
|
|
|
+ },
|
|
|
|
|
+ isVipMode(){
|
|
|
|
|
+ if(!this.isLogin){
|
|
|
|
|
+ return false
|
|
|
|
|
+ }
|
|
|
|
|
+ const {is_vip} = this.$store.state.userinfo || {}
|
|
|
|
|
+ return !!is_vip
|
|
|
|
|
+ },
|
|
|
|
|
+ isDeveloperVip(){
|
|
|
|
|
+ const { vip_type_id } = this.$store.state.userinfo || {}
|
|
|
|
|
+ if(!this.isVipMode){
|
|
|
|
|
+ return false
|
|
|
|
|
+ }
|
|
|
|
|
+ // 1 初创会员
|
|
|
|
|
+ // 2 开发者会员
|
|
|
|
|
+ // 3 企业版会员
|
|
|
|
|
+ if(vip_type_id == 2){
|
|
|
|
|
+ return true
|
|
|
|
|
+ }
|
|
|
|
|
+ return false
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
async asyncData({
|
|
async asyncData({
|