|
|
@@ -4,7 +4,7 @@
|
|
|
<section class="contentArea">
|
|
|
<div class="tabList">
|
|
|
<div class="cell" v-for="item in typeList" :key="item.type" @click="jumpTo(item.topAreaData.url)">
|
|
|
- <p class="word">{{item.topAreaData.tabTitle || item.topAreaData.title}}</p>
|
|
|
+ <p class="word" style="white-space: nowrap">{{item.topAreaData.tabTitle || item.topAreaData.title}}</p>
|
|
|
<p class="line" v-if="item.type === type"></p>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -64,34 +64,38 @@
|
|
|
}
|
|
|
},
|
|
|
async asyncData({$axios, params, req, store}) {
|
|
|
- let userinfo = store.state.userinfo
|
|
|
- const dealData = new DealData({$axios, req, userinfo})
|
|
|
- const type = params.type || 'identify'
|
|
|
- let {topAreaData, list} = data[type]
|
|
|
+ console.log("&&&&*****", params);
|
|
|
+ let userinfo = store.state.userinfo;
|
|
|
+ const dealData = new DealData({$axios, req, userinfo});
|
|
|
+ const type = params.type || 'identify';
|
|
|
+ let {topAreaData, list} = data[type];
|
|
|
//处理数据,假若有 跳转链接, 设置按钮样式
|
|
|
list.forEach(item => {
|
|
|
if (item.jumpUrl) {
|
|
|
item.rightStatus = 'ok click'
|
|
|
}
|
|
|
- })
|
|
|
+ });
|
|
|
|
|
|
switch (params.type) {
|
|
|
case 'professional': //专业经历
|
|
|
- list = await dealData.professional(list)
|
|
|
- break
|
|
|
+ list = await dealData.professional(list);
|
|
|
+ break;
|
|
|
case 'identify': //身份特征
|
|
|
- list = await dealData.identify(list)
|
|
|
- break
|
|
|
+ list = await dealData.identify(list);
|
|
|
+ break;
|
|
|
case 'project': //项目经验
|
|
|
- list = await dealData.project(list)
|
|
|
- break
|
|
|
+ list = await dealData.project(list);
|
|
|
+ break;
|
|
|
case 'credit': //社会信用
|
|
|
- list = await dealData.credit(list)
|
|
|
- break
|
|
|
+ list = await dealData.credit(list);
|
|
|
+ break;
|
|
|
+ case 'social': //社区影响力
|
|
|
+ list = await dealData.social(list);
|
|
|
+ break;
|
|
|
}
|
|
|
|
|
|
//data转化为数组
|
|
|
- let typeList = []
|
|
|
+ let typeList = [];
|
|
|
for (let key in data) {
|
|
|
if (data[key] && data[key].list) {
|
|
|
typeList.push({
|
|
|
@@ -119,23 +123,23 @@
|
|
|
},
|
|
|
methods: {
|
|
|
jumpTo(url, item) {
|
|
|
- console.log('点击', "url", url, "item", item)
|
|
|
+ console.log('点击', "url", url, "item", item);
|
|
|
if (url) {
|
|
|
switch (url) {
|
|
|
case 'openRealNameAuth': //打开实名认证弹窗
|
|
|
- console.log('openRealNameAuth 打开实名认证弹窗')
|
|
|
- this.toastType = 'openRealNameAuth'
|
|
|
- this.toastDataInfo = item || {}
|
|
|
+ console.log('openRealNameAuth 打开实名认证弹窗');
|
|
|
+ this.toastType = 'openRealNameAuth';
|
|
|
+ this.toastDataInfo = item || {};
|
|
|
break;
|
|
|
case 'openEducation': //打开最高学历认证
|
|
|
- console.log('openEducation 打开最高学历认证')
|
|
|
- this.toastType = 'openEducation'
|
|
|
- this.toastDataInfo = item || {}
|
|
|
+ console.log('openEducation 打开最高学历认证');
|
|
|
+ this.toastType = 'openEducation';
|
|
|
+ this.toastDataInfo = item || {};
|
|
|
break;
|
|
|
case 'openWorkHistory': //工作经历弹窗
|
|
|
- console.log('openWorkHistory 工作经历弹窗')
|
|
|
- this.toastType = 'openWorkHistory'
|
|
|
- this.toastDataInfo = item || {}
|
|
|
+ console.log('openWorkHistory 工作经历弹窗');
|
|
|
+ this.toastType = 'openWorkHistory';
|
|
|
+ this.toastDataInfo = item || {};
|
|
|
break;
|
|
|
case'/wo/':
|
|
|
url += this.$store.state.userinfo.uid;
|
|
|
@@ -155,14 +159,14 @@
|
|
|
$axios: this.$axios,
|
|
|
res: {header: {}},
|
|
|
userinfo: this.$store.state.userinfo
|
|
|
- })
|
|
|
+ });
|
|
|
switch (type) {
|
|
|
case 'openWorkHistory':
|
|
|
- this.list = await dealData.professional(this.list)
|
|
|
- break
|
|
|
+ this.list = await dealData.professional(this.list);
|
|
|
+ break;
|
|
|
case 'openEducation':
|
|
|
- this.list = await dealData.identify(this.list)
|
|
|
- break
|
|
|
+ this.list = await dealData.identify(this.list);
|
|
|
+ break;
|
|
|
}
|
|
|
}
|
|
|
}
|