|
@@ -5,7 +5,7 @@
|
|
|
<van-search :value="key_word" shape="round" :placeholder="type==='question' ? '提问内容' : '评论内容'" disabled />
|
|
|
|
|
|
</view>
|
|
|
- <van-tabs id="tabs" :active="status" title-active-color="#3385FF" color="#3385FF" @change="typeChange" >
|
|
|
+ <van-tabs v-if="type=='question'" id="tabs" :active="status" title-active-color="#3385FF" color="#3385FF" @change="typeChange" >
|
|
|
<template v-if="tabs.length">
|
|
|
<van-tab :title="item.label" :name="item.key" v-for="item in tabs" :key="item.key"></van-tab>
|
|
|
</template>
|
|
@@ -110,7 +110,7 @@
|
|
|
uni.$off('questionListUpdate')
|
|
|
},
|
|
|
onShow() {
|
|
|
- if(!this.id){
|
|
|
+ if(!this.id&&this.type==='question'){
|
|
|
this.$nextTick(()=>{
|
|
|
this.selectComponent('#tabs').resize();// 解决初始渲染 vant tab 底部条
|
|
|
})
|