Merge branch 'dev-yxl' of gitee.com:zongzhige/shopxo-uniapp into dev-sws

master
sws 2024-10-18 16:51:20 +08:00
commit 2005fa918e
1 changed files with 3 additions and 8 deletions

View File

@ -5,14 +5,14 @@
<view class="pr flex-row" :class="title_center">
<view class="z-i flex-row align-c gap-10">
<template v-if="!isEmpty(form.img_src) && !isEmpty(form.img_src[0].url)">
<view :style="{ 'height': form.img_height * 2 + 'rpx' }">
<image :src="form.img_src[0].url" class="title-img" mode="aspectFit"></image>
<view class="wh-auto" :style="{'height': new_style.img_height * 2 + 'rpx' }">
<image :src="form.img_src[0].url" class="ht-auto" mode="heightFix"></image>
</view>
</template>
<template v-else-if="!isEmpty(form.icon_class)">
<iconfont :name="'icon-' + form.icon_class" :size="new_style.icon_size * 2 + 'rpx'" :color="new_style.icon_color" propContainerDisplay="flex"></iconfont>
</template>
<view class="pr-15 nowrap" :style="title_style">{{ form.title }}</view>
<view v-if="!isEmpty(form.title)" class="pr-15 nowrap" :style="title_style">{{ form.title }}</view>
</view>
<view class="flex-row gap-10 align-c right-0 pa">
<template v-if="form.keyword_show == '1'">
@ -139,9 +139,4 @@
overflow-wrap: break-word;
word-wrap: break-word;
}
.title-img {
max-width: 120rpx;
max-height: 60rpx;
}
</style>