问题修复

This commit is contained in:
2024-04-16 01:39:23 +08:00
parent 0562554266
commit 178e8ff5cb
6 changed files with 13 additions and 12 deletions

View File

@@ -49,7 +49,7 @@
:key='index'>
<view class='recommend-item c-flex-column'>
<image :src='item.images||defaultImage' />
<text>{{ item.goodsName }}</text>
<text>{{ item.goodsName||'未知' }}</text>
<text class='goods-price'>{{ item.price }}</text>
</view>
</view>

View File

@@ -12,7 +12,7 @@
<view v-for='(item, index) in goodsList' :key='index' class='goods-item'
@click.stop='goPath(`/pages/mall/subs/goods/detail?goodsId=${item.goodsId}`)'>
<image class='goods-image' :src='item.images||defaultImage' />
<text class='goods-name'>{{ item.goodsName }}</text>
<text class='goods-name'>{{ item.goodsName||'未知' }}</text>
<text class='goods-price'>¥{{ item.price }}</text>
<image class='add-image' :src='assetsUrl("ic_add_goods.png")' @click.stop='addShoppingCart(item)' />
</view>
@@ -113,7 +113,7 @@ const addShoppingCart = (goodsBean: GoodsBean) => {
font-size: 28rpx;
font-weight: 400;
color: #333333;
-webkit-line-clamp: 2;
-webkit-line-clamp: 1;
overflow: hidden;
text-overflow: ellipsis;
margin-top: 10rpx;