hookehuyr

fix 解决方案详情页接口结构修改联调

1 <!-- 1 <!--
2 * @Date: 2024-09-29 15:49:27 2 * @Date: 2024-09-29 15:49:27
3 * @LastEditors: hookehuyr hookehuyr@gmail.com 3 * @LastEditors: hookehuyr hookehuyr@gmail.com
4 - * @LastEditTime: 2024-12-04 16:24:25 4 + * @LastEditTime: 2024-12-05 09:52:17
5 * @FilePath: /hager/src/views/solution/detail.vue 5 * @FilePath: /hager/src/views/solution/detail.vue
6 * @Description: 文件描述 6 * @Description: 文件描述
7 --> 7 -->
...@@ -33,8 +33,7 @@ ...@@ -33,8 +33,7 @@
33 </el-col> 33 </el-col>
34 <el-col :span="12" class="brief-introduction"> 34 <el-col :span="12" class="brief-introduction">
35 <div class="intro-box"> 35 <div class="intro-box">
36 - <p v-html="case_info.category_description"></p> 36 + <p v-html="category_description"></p>
37 - <!-- <i class="el-icon-right"></i> -->
38 </div> 37 </div>
39 </el-col> 38 </el-col>
40 </el-row> 39 </el-row>
...@@ -49,8 +48,8 @@ ...@@ -49,8 +48,8 @@
49 </div> 48 </div>
50 <div class="brief-introduction xs"> 49 <div class="brief-introduction xs">
51 <div class="intro-box xs"> 50 <div class="intro-box xs">
52 - <hager-h1 title="学校解决方案" sub="Electronic solutions"></hager-h1> 51 + <hager-h1 :title="case_info.category_name" :sub="case_info.category_name_en"></hager-h1>
53 - <p style="margin: 2rem 0;" v-html="case_info.post_description"></p> 52 + <div style="margin: 2rem 0;" v-html="category_description"></div>
54 <!-- <i class="el-icon-right"></i> --> 53 <!-- <i class="el-icon-right"></i> -->
55 </div> 54 </div>
56 </div> 55 </div>
...@@ -208,6 +207,7 @@ export default { ...@@ -208,6 +207,7 @@ export default {
208 productSlidesPerView: 4, 207 productSlidesPerView: 4,
209 case_list: [], 208 case_list: [],
210 current_id: '', 209 current_id: '',
210 + category_description: '',
211 } 211 }
212 }, 212 },
213 async mounted () { 213 async mounted () {
...@@ -215,10 +215,11 @@ export default { ...@@ -215,10 +215,11 @@ export default {
215 if (code) { 215 if (code) {
216 this.case_info = data; 216 this.case_info = data;
217 this.case_banner = data.file?.banner ? data.file?.banner[0] : 'https://cdn.ipadbiz.cn/hager/banner/banner08.png'; 217 this.case_banner = data.file?.banner ? data.file?.banner[0] : 'https://cdn.ipadbiz.cn/hager/banner/banner08.png';
218 - this.case_img = data.file?.img ? data.file?.img : ['https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg'];
219 this.case_list = data.list; 218 this.case_list = data.list;
220 this.current_id = this.case_list[0]['id']; 219 this.current_id = this.case_list[0]['id'];
221 this.success_data_list = this.case_list[0].list ?? []; 220 this.success_data_list = this.case_list[0].list ?? [];
221 + this.category_description = this.case_list[0].category_description ?? '';
222 + this.case_img = this.case_list[0].file?.img ? this.case_list[0].file?.img : ['https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg'];
222 this.product_list = this.case_list[0].product ?? []; 223 this.product_list = this.case_list[0].product ?? [];
223 } 224 }
224 this.$nextTick(() => { 225 this.$nextTick(() => {
...@@ -285,6 +286,8 @@ export default { ...@@ -285,6 +286,8 @@ export default {
285 changeCase (v, idx) { 286 changeCase (v, idx) {
286 this.current_id = this.case_list[idx]['id']; 287 this.current_id = this.case_list[idx]['id'];
287 this.success_data_list = this.case_list[idx].list ?? []; 288 this.success_data_list = this.case_list[idx].list ?? [];
289 + this.category_description = this.case_list[idx].category_description ?? '';
290 + this.case_img = this.case_list[idx].file?.img ? this.case_list[idx].file?.img : ['https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg'];
288 this.product_list = this.case_list[idx].product ?? []; 291 this.product_list = this.case_list[idx].product ?? [];
289 this.activeSuccessIndex = 0 292 this.activeSuccessIndex = 0
290 this.activeProductIndex = 0 293 this.activeProductIndex = 0
...@@ -337,6 +340,7 @@ export default { ...@@ -337,6 +340,7 @@ export default {
337 margin-top: 2rem; 340 margin-top: 2rem;
338 &.xs { 341 &.xs {
339 padding: 2rem; 342 padding: 2rem;
343 + display: block;
340 } 344 }
341 i { 345 i {
342 color: @primary-color; 346 color: @primary-color;
......