hookehuyr

fix 搜索页 成功案例查询联调

<!--
* @Date: 2024-10-20 16:57:48
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-11-01 13:51:06
* @LastEditTime: 2024-12-04 16:00:08
* @FilePath: /hager/src/views/search.vue
* @Description: 文件描述
-->
......@@ -43,10 +43,10 @@
<div slot="label" class="customer-label">成功案例&nbsp;&nbsp;<span>{{ count_case }}</span></div>
<div style="margin-top: 1rem;" v-for="(item, index) in case_list" :key="index">
<div :class="['search-news-wrapper', is_xs ? 'xs' : '']">
<div class="search-news-title" v-html="highlightKeyword(keyword, item.title)"></div>
<div class="search-news-content" v-html="highlightKeyword(keyword, item.content)"></div>
<div class="search-news-title" v-html="highlightKeyword(keyword, item.post_title)"></div>
<div class="search-news-content" v-html="highlightKeyword(keyword, item.post_description)"></div>
<div class="search-news-more">
<div class="search-news-more-btn" @click="goTo(item.id)">MORE</div>
<div class="search-news-more-btn" @click="goToSuccess(item.id)">MORE</div>
</div>
</div>
</div>
......@@ -269,6 +269,14 @@ export default {
id: v.id
}
});
},
goToSuccess (v) { // 跳转成功案例
this.$router.push({
path: '/solution/case',
query: {
id: v
}
});
}
}
}
......