no message
This commit is contained in:
7
app.vue
7
app.vue
@@ -45,9 +45,9 @@
|
||||
</div>
|
||||
<div class="tab-box flexcenter" :class="{ 'tab-list-fixed': tabListFixeState }">
|
||||
<div class="tab-list flexacenter">
|
||||
<div class="item flexcenter" :class="{ pitch: typePitch == null }" @click="cutType(null)">All</div>
|
||||
<!-- <div class="item flexcenter" :class="{ pitch: typePitch == null }" @click="cutType(null)">All</div> -->
|
||||
<template v-for="(item, index) in typeList" :key="index">
|
||||
<div class="halving-line">|</div>
|
||||
<div v-if="index !== 0" class="halving-line">|</div>
|
||||
<div class="item flexcenter" :class="{ pitch: typePitch == it['id'] }" v-for="it in item" :key="it" @click="cutType(it.id)">{{ it["name"] }}</div>
|
||||
</template>
|
||||
</div>
|
||||
@@ -1134,11 +1134,12 @@ export default {
|
||||
|
||||
// 获取分类数据 列表分类
|
||||
const getListClass = () => {
|
||||
typeList.value = []
|
||||
$ajaxGET("/api/common/typeList").then(res => {
|
||||
if (res.code != 200) return
|
||||
let data = res.data
|
||||
typeList.value = data
|
||||
|
||||
typeList.value.unshift([{ id: null, name: "All" }])
|
||||
getPageHeight()
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user