fix:图片大小样式调整

This commit is contained in:
杨航
2025-12-01 14:52:02 +08:00
parent 61c5c2d53a
commit 788005fb21
2 changed files with 8 additions and 6 deletions
+2 -1
View File
@@ -2,9 +2,10 @@
ENV = 'development.yh'
# 'development.yh'
VITE_APP_BASE_API_Url = 'http://25.18.122.65:7001'
# VITE_APP_BASE_API_Url = 'http://25.18.122.65:7001'
VITE_APP_BASE_H5_API_Url = 'http://25.18.122.91:9786'
# VITE_APP_BASE_API_Url = 'https://aitstest.jlbank.com.cn:7002'
# VITE_APP_BASE_H5_API_Url_TRAEXAM = 'http://25.64.32.154:9604'
# VITE_APP_BASE_H5_API_Url_TRAPRACTICE = 'http://25.64.32.156:9603'
# VITE_APP_BASE_H5_API_Url_TRAAPP = 'http://25.64.32.154:9601'
+6 -5
View File
@@ -2,7 +2,7 @@
<view class="course-item-box" @click="clickItem">
<view class="item-title">{{itemInfo.crsName}}</view>
<view class="img-box-view">
<ImagePreview class="img-box" :imgId="itemInfo.imgId" :isCache="true" width="225" height="170" mode="scaleToFill">
<ImagePreview class="img-box" :imgId="itemInfo.imgId" :isCache="true" width="225" height="127">
</ImagePreview>
<view class="item-grade">{{itemInfo.evalGrade}}</view>
<!-- <image class="item-grade" mode="aspectFill"></view> -->
@@ -11,7 +11,8 @@
<scroll-view class="item-tags" :scroll-x="true">
<view class="item-tag-view">
<view :class="['item-tag', this.activeTag.includes(item.tagId)?'active-tag':'']" v-for="item in tagsShowList">
{{item.tagName}}</view>
{{item.tagName}}
</view>
</view>
</scroll-view>
<view class="item-publish">更新{{itemInfo.mtTime}}</view>
@@ -72,7 +73,7 @@
<style lang="scss" scoped>
.course-item-box {
padding:12rpx 15rpx 8rpx;
padding: 12rpx 15rpx 8rpx;
overflow: hidden;
width: 100%;
@@ -87,7 +88,7 @@
.img-box {
width: 225rpx;
height: 170rpx;
height: 127rpx;
}
.item-grade {
@@ -149,7 +150,7 @@
&.active-tag {
// background-color: #ffa150;
color: #ffa150;
color: #ffa150;
border: 2rpx solid #ffa150;
}
}