Commit 68756cae authored by 吕超's avatar 吕超

fix: 修改图片展示方式

parent 0f40e5f2
...@@ -178,7 +178,8 @@ export default { ...@@ -178,7 +178,8 @@ export default {
.partItem { .partItem {
width: 100%; width: 100%;
height: calc(100vh - 150px - 37vh - 2vw); // height: calc(100vh - 95px - 27vh - 2vw);
height: calc(100vh - 150px - 27vh - 2vw);
overflow-y: auto; overflow-y: auto;
} }
} }
......
...@@ -21,7 +21,10 @@ ...@@ -21,7 +21,10 @@
class="left el-icon-arrow-left" class="left el-icon-arrow-left"
@click="listValue <= 0 || (listValue -= 1)" @click="listValue <= 0 || (listValue -= 1)"
></i> ></i>
<img :src="`${BASE_URL}/images/${id}.jpg`" alt="" /> <img
:src="`${BASE_URL}/images/14_${list[listValue].key}.jpg`"
alt=""
/>
<i <i
class="right el-icon-arrow-right" class="right el-icon-arrow-right"
@click="listValue >= list.length - 1 || (listValue += 1)" @click="listValue >= list.length - 1 || (listValue += 1)"
...@@ -52,10 +55,12 @@ export default { ...@@ -52,10 +55,12 @@ export default {
return { return {
BASE_URL: process.env.VUE_APP_BASE_URL, BASE_URL: process.env.VUE_APP_BASE_URL,
list: [ list: [
{ key: "base", value: "基本情况" }, { key: "basic_info1", value: "基本情况" },
{ key: "technology", value: "技术模式" }, { key: "basic_info2", value: "基本情况2" },
{ key: "target", value: "目标实现情况" }, { key: "basic_info3", value: "基本情况3" },
{ key: "interest", value: "效益分析" }, { key: "technical_patterns", value: "技术模式" },
{ key: "goal_achievement", value: "目标实现情况" },
{ key: "eco_benefits", value: "效益分析" },
], ],
listValue: 0, listValue: 0,
}; };
...@@ -116,7 +121,7 @@ export default { ...@@ -116,7 +121,7 @@ export default {
img { img {
flex: 1; flex: 1;
height: 50vh; height: 50vh;
object-fit: cover; object-fit: contain;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment