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
2024-10-28 17:59:54 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
ab94ca613b1840bcea654e0cb44543b501ced036
ab94ca61
1 parent
617bd23d
自适应模式下产品图片宽高优化显示
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
src/views/product/detail.vue
src/views/product/index.vue
src/views/product/detail.vue
View file @
ab94ca6
<!--
* @Date: 2024-09-29 14:26:41
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-10-28 1
1:44:26
* @LastEditTime: 2024-10-28 1
7:57:14
* @FilePath: /hager/src/views/product/detail.vue
* @Description: 文件描述
-->
...
...
@@ -35,7 +35,7 @@
<div class="product-sub" style="margin: 1rem 0 2rem;" v-html="info.post_excerpt"></div>
</div>
<div v-for="(item, index) in info_images" :key="index" class="product-item-img">
<el-image style="height:
14rem
;" :src="item" fit="cover"></el-image>
<el-image style="height:
auto; width: 50vw
;" :src="item" fit="cover"></el-image>
</div>
</div>
</hager-box>
...
...
src/views/product/index.vue
View file @
ab94ca6
<!--
* @Date: 2024-09-27 16:53:09
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-10-28 1
5:03:0
9
* @LastEditTime: 2024-10-28 1
7:58:5
9
* @FilePath: /hager/src/views/product/index.vue
* @Description: 文件描述
-->
...
...
@@ -44,7 +44,7 @@
<div v-else class="product-list">
<div class="product-item xs" v-for="(item, index) in product_list" :key="index">
<div @click="goToDetail(item)" class="product-item-img xs">
<img style="width:
100%
; height: auto;" :src="item.product_status === 'publish' ? item.cover : no_product_img">
<img style="width:
35vw
; height: auto;" :src="item.product_status === 'publish' ? item.cover : no_product_img">
</div>
<p @click="goToDetail(item)" class="product-item-title">{{ item.product_name }}</p>
</div>
...
...
Please
register
or
login
to post a comment