首页
This commit is contained in:
@@ -71,10 +71,11 @@
|
|||||||
<!-- <u-tabs :list="row.map(e=>({name:e.categoryName}))" font-size="40" bg-color="transparent"
|
<!-- <u-tabs :list="row.map(e=>({name:e.categoryName}))" font-size="40" bg-color="transparent"
|
||||||
inactive-color="#999999" :active-item-style="active"
|
inactive-color="#999999" :active-item-style="active"
|
||||||
:is-scroll="true" :current="index" @change="tabChange()"/> -->
|
:is-scroll="true" :current="index" @change="tabChange()"/> -->
|
||||||
|
<div v-if="row && row.length && row[categoryIndexList[r]]">
|
||||||
<div class="tab-list">
|
<div class="tab-list">
|
||||||
<div class="item" :class="nameIndex == categoryIndexList[r] ? 'active' : ''" v-for="(name, nameIndex) in row" :key="nameIndex" @click="tabClick(r, nameIndex)">{{name.categoryName}}<span></span></div>
|
<div class="item" :class="nameIndex == categoryIndexList[r] ? 'active' : ''" v-for="(name, nameIndex) in row" :key="nameIndex" @click="tabClick(r, nameIndex)">{{name.categoryName}}<span></span></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="list-wrap" v-if="row[categoryIndexList[r]] && row[categoryIndexList[r]].records && row[categoryIndexList[r]].records.length>0">
|
<div class="list-wrap" v-if="row[categoryIndexList[r]].records && row[categoryIndexList[r]].records.length>0">
|
||||||
<div class="list-card" v-for="(category,index) in row[categoryIndexList[r]].records" :key="index"
|
<div class="list-card" v-for="(category,index) in row[categoryIndexList[r]].records" :key="index"
|
||||||
@click="$linkTo('/mods/AppContent/contentDetail?id='+category.id)">
|
@click="$linkTo('/mods/AppContent/contentDetail?id='+category.id)">
|
||||||
<div class="header">{{ category.title }}</div>
|
<div class="header">{{ category.title }}</div>
|
||||||
@@ -102,7 +103,8 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="more-text" v-if="row[categoryIndexList[r]].records.length > 5" @click="$linkTo('/mods/AppContent/AppContent?names='+row[categoryIndexList[r]].categoryName)">查看更多 ></div>
|
<div class="more-text" v-if="row[categoryIndexList[r]].records.length > 5" @click="$linkTo('/mods/AppContent/AppContent?names='+row[categoryIndexList[r]].categoryName)">查看更多 ></div>
|
||||||
<AiEmpty v-if="row[categoryIndexList[r]] && row[categoryIndexList[r]].records && !row[categoryIndexList[r]].records.length"/>
|
<AiEmpty v-if="row[categoryIndexList[r]].records && !row[categoryIndexList[r]].records.length"/>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<AiLogin ref="login"/>
|
<AiLogin ref="login"/>
|
||||||
|
|||||||
Reference in New Issue
Block a user