This commit is contained in:
shijingjing
2022-04-29 13:43:43 +08:00
parent 6873d1149d
commit 217e93a359
2 changed files with 3 additions and 3 deletions

View File

@@ -29,7 +29,7 @@ export default {
current: 1,
categoryType: '0',
list: [],
parentName: ''
parentName: '',
}
},
onLoad(o) {

View File

@@ -3,7 +3,7 @@
<div class="header" v-if="tabList.length">
<div class="header-tab">
<img src="https://cdn.cunwuyun.cn/dvcp/live/dh.png" alt="" class="more-icon" @click="toSelect()">
<u-tabs :list="tabList" :current="currIndex" @change="changeTab" style="width:650rpx" :font-size="26"></u-tabs>
<u-tabs :list="tabList" :current="currIndex" @change="changeTab" style="width:650rpx" is-scroll :font-size="26"></u-tabs>
<!-- <div v-for="(item, index) in tabList" :key="index" @click="changeTab(item.id)" v-if="index < 5" :class="currId == item.id ? 'tab-item active-item' : 'tab-item'">{{item.name}}<span class="active-line" v-if="currId == item.id"></span></div> -->
</div>
</div>
@@ -131,7 +131,7 @@
}
}).then(res => {
if (res.code === 0) {
this.newsList = this.current == 1 ? [...res.data.records] : [...this.newsList, ...res.data.records]
this.newsList = this.current == 1 ? res.data.records : [...this.newsList, ...res.data.records]
}
})
},