Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
hager
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2025-01-03 13:54:13 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
f798b405ae45daa51ee6a05ef0d958851e33b0ba
f798b405
1 parent
56088a08
fix 解决方案配电图片显示优化
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
6 deletions
src/components/common/hagerH1.vue
src/views/solution/detail.vue
src/components/common/hagerH1.vue
View file @
f798b40
<!--
* @Date: 2024-09-29 10:07:11
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 202
4-10-22 11:38:03
* @LastEditTime: 202
5-01-03 13:53:35
* @FilePath: /hager/src/components/common/hagerH1.vue
* @Description: 文件描述
-->
...
...
@@ -20,11 +20,11 @@ export default {
props: {
title: {
type: String,
default: '
标题
'
default: ''
},
sub: {
type: String,
default: '
副标题
'
default: ''
},
width: {
type: Number,
...
...
src/views/solution/detail.vue
View file @
f798b40
<!--
* @Date: 2024-09-29 15:49:27
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2025-01-03 1
0:05:48
* @LastEditTime: 2025-01-03 1
3:45:03
* @FilePath: /hager/src/views/solution/detail.vue
* @Description: 文件描述
-->
...
...
@@ -24,7 +24,7 @@
<hager-box v-if="!is_xs" class="box-n">
<hager-h1 title="典型配电系统图" sub="Typical Electrical Distribution System" style="margin: 2rem 0;"></hager-h1>
<div style="display: flex; justify-content:space-between; align-items: center;">
<div @click="onClickImg(item.value)" v-for="(item, index) in case_img" :key="index" class="carousel-img-test" :style="{backgroundImage: 'url(' + item.
value
+ ')'}"></div>
<div @click="onClickImg(item.value)" v-for="(item, index) in case_img" :key="index" class="carousel-img-test" :style="{backgroundImage: 'url(' + item.
thumbnail
+ ')'}"></div>
</div>
</hager-box>
<div v-else>
...
...
@@ -32,7 +32,7 @@
<div style="height: 25rem; margin-top: 2rem;">
<el-carousel height="25rem" :interval="8000" style="border-radius: 5px;">
<el-carousel-item v-for="(item, index) in case_img" :key="index" class="carousel-img">
<el-image @click="onClickImg(item.value)" style="width: 100%; height: 100%;" fit="contain" :src="item.
value
"></el-image>
<el-image @click="onClickImg(item.value)" style="width: 100%; height: 100%;" fit="contain" :src="item.
thumbnail
"></el-image>
</el-carousel-item>
</el-carousel>
</div>
...
...
@@ -215,6 +215,9 @@ export default {
this.success_data_list = this.case_list[this.current_index].list ?? [];
// this.category_description = this.case_list[this.current_index].category_description ?? '';
this.case_img = this.case_list[this.current_index].file?.img ? this.case_list[this.current_index].file?.img : ['https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg'];
this.case_img.forEach(item => {
item.thumbnail = item.value + '?imageView2/1/w/1370/h/850/q/75';
})
this.product_list = this.case_list[this.current_index].product ?? [];
}
this.$nextTick(() => {
...
...
Please
register
or
login
to post a comment