jwyu 2 years ago
parent
commit
57d9108b4f
2 changed files with 3 additions and 3 deletions
  1. 1 1
      pages-question/components/questionItem.vue
  2. 2 2
      pages-question/detail/index.vue

+ 1 - 1
pages-question/components/questionItem.vue

@@ -36,7 +36,7 @@
             <text class="blue-color" @click="actionHandle('edit')">编辑</text>
             <text :class="data.select_users.user_id ? 'blue-color' : 'grey-color'" @click="actionHandle('send')" >分配并通知</text>
          </template>
-         <text class="blue-color" @click="actionHandle('hot')" v-if="type === 'comment'">{{ data.IsHot ? '取消精选': '精选' }}</text>
+         <!-- <text class="blue-color" @click="actionHandle('hot')" v-if="type === 'comment'">{{ data.IsHot ? '取消精选': '精选' }}</text> -->
          
       </view>
       

+ 2 - 2
pages-question/detail/index.vue

@@ -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 底部条
             })