Showing
1 changed file
with
12 additions
and
4 deletions
| 1 | <!-- | 1 | <!-- |
| 2 | * @Date: 2024-10-20 16:57:48 | 2 | * @Date: 2024-10-20 16:57:48 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2024-11-01 13:51:06 | 4 | + * @LastEditTime: 2024-12-04 16:00:08 |
| 5 | * @FilePath: /hager/src/views/search.vue | 5 | * @FilePath: /hager/src/views/search.vue |
| 6 | * @Description: 文件描述 | 6 | * @Description: 文件描述 |
| 7 | --> | 7 | --> |
| ... | @@ -43,10 +43,10 @@ | ... | @@ -43,10 +43,10 @@ |
| 43 | <div slot="label" class="customer-label">成功案例 <span>{{ count_case }}</span></div> | 43 | <div slot="label" class="customer-label">成功案例 <span>{{ count_case }}</span></div> |
| 44 | <div style="margin-top: 1rem;" v-for="(item, index) in case_list" :key="index"> | 44 | <div style="margin-top: 1rem;" v-for="(item, index) in case_list" :key="index"> |
| 45 | <div :class="['search-news-wrapper', is_xs ? 'xs' : '']"> | 45 | <div :class="['search-news-wrapper', is_xs ? 'xs' : '']"> |
| 46 | - <div class="search-news-title" v-html="highlightKeyword(keyword, item.title)"></div> | 46 | + <div class="search-news-title" v-html="highlightKeyword(keyword, item.post_title)"></div> |
| 47 | - <div class="search-news-content" v-html="highlightKeyword(keyword, item.content)"></div> | 47 | + <div class="search-news-content" v-html="highlightKeyword(keyword, item.post_description)"></div> |
| 48 | <div class="search-news-more"> | 48 | <div class="search-news-more"> |
| 49 | - <div class="search-news-more-btn" @click="goTo(item.id)">MORE</div> | 49 | + <div class="search-news-more-btn" @click="goToSuccess(item.id)">MORE</div> |
| 50 | </div> | 50 | </div> |
| 51 | </div> | 51 | </div> |
| 52 | </div> | 52 | </div> |
| ... | @@ -269,6 +269,14 @@ export default { | ... | @@ -269,6 +269,14 @@ export default { |
| 269 | id: v.id | 269 | id: v.id |
| 270 | } | 270 | } |
| 271 | }); | 271 | }); |
| 272 | + }, | ||
| 273 | + goToSuccess (v) { // 跳转成功案例 | ||
| 274 | + this.$router.push({ | ||
| 275 | + path: '/solution/case', | ||
| 276 | + query: { | ||
| 277 | + id: v | ||
| 278 | + } | ||
| 279 | + }); | ||
| 272 | } | 280 | } |
| 273 | } | 281 | } |
| 274 | } | 282 | } | ... | ... |
-
Please register or login to post a comment