|
@@ -79,19 +79,20 @@ export default {
|
|
|
this.init();
|
|
|
});
|
|
|
},
|
|
|
- getTab(topic) {
|
|
|
+ getTab() {
|
|
|
+ // getTab(topic) {
|
|
|
let activitys = [];
|
|
|
- (topic || []).map(v => {
|
|
|
- activitys.push({
|
|
|
- isCollectPlatform: v.isCollectPlatform,
|
|
|
- component: "defaultComponent",
|
|
|
- componentReal: "defaultComponent" + v.activityId,
|
|
|
- activityId: v.activityId,
|
|
|
- realName: v.name,
|
|
|
- sortNo: v.sortNo,
|
|
|
- name: v.alias,
|
|
|
- });
|
|
|
- });
|
|
|
+ // (topic || []).map(v => {
|
|
|
+ // activitys.push({
|
|
|
+ // isCollectPlatform: v.isCollectPlatform,
|
|
|
+ // component: "defaultComponent",
|
|
|
+ // componentReal: "defaultComponent" + v.activityId,
|
|
|
+ // activityId: v.activityId,
|
|
|
+ // realName: v.name,
|
|
|
+ // sortNo: v.sortNo,
|
|
|
+ // name: v.alias,
|
|
|
+ // });
|
|
|
+ // });
|
|
|
activitys = activitys.concat([
|
|
|
{
|
|
|
name: "德润三秦",
|
|
@@ -130,8 +131,9 @@ export default {
|
|
|
this.selectA[this.select] = true;
|
|
|
},
|
|
|
selectTab(tab) {
|
|
|
+ console.log(this.activitys[tab.index])
|
|
|
try {
|
|
|
- this.select = this.activitys[tab.index].component;
|
|
|
+ this.select = this.activitys[tab.index].componentReal;
|
|
|
this.selectA[this.select] = true;
|
|
|
} catch (err) {
|
|
|
console.log(err);
|