Authored by 邱骏

话题页改变热门和最新两个tab的位置

<template>
<div class="tab-block">
<div v-for="(tab, index) in tabList" :key="index" :ref="'tab-item' + index" class="tab-item" :class="{active: index == activeIndex}" @click="changeType(index)">
<div v-for="(tab, index) in tabList"
:key="index" :ref="'tab-item' + index"
class="tab-item"
:class="{active: index == activeIndex}"
@click="changeType(index)">
<div class="name">{{tab.name}}</div>
<div v-if="index == statusBlockIndex" ref="statusBlock" class="tab-status-block" :style="statusBlockStyle"></div>
</div>
... ... @@ -19,8 +23,8 @@ export default {
},
data() {
let tabList = [
{name: '最新', type: 2},
{name: '热门', type: 1},
{name: '最新', type: 2},
];
let index = Math.max(findIndex(tabList, {type: this.activeType}), 0);
... ...
... ... @@ -74,7 +74,7 @@ export default {
topicName: '',
headerAnimateStep: 0,
scrollTop: 0,
activeTopicListType: 2,
activeTopicListType: 1,
colWidthForTwo: 0,
scrolling: false,
page: 1,
... ...
{
"name": "yoho-community-web",
"version": "6.9.14-beta-15",
"version": "6.9.16-beta-1",
"private": true,
"description": "A New Yohobuy Project With Express",
"repository": {
... ...