diff --git a/components/goods_list/goods_list.wxml b/components/goods_list/goods_list.wxml index eb5ed88..5f18188 100644 --- a/components/goods_list/goods_list.wxml +++ b/components/goods_list/goods_list.wxml @@ -88,12 +88,12 @@ - - - {{filter.toFix(g_filter.get_card_price(item,card_list,0),2)}} - - {{g_filter.get_card_price(item,card_list,1)}} - + + + {{filter.toFix(g_filter.get_card_price(item,card_list,0),2)}} + + {{g_filter.get_card_price(item,card_list,1)}} + diff --git a/components/goods_list/goods_list.wxss b/components/goods_list/goods_list.wxss index a8352bd..7f1e0ab 100644 --- a/components/goods_list/goods_list.wxss +++ b/components/goods_list/goods_list.wxss @@ -37,6 +37,20 @@ align-items: center; } +.ellipsis-1 { + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; +} + +/* .ellipsis-1x { + overflow: hidden; + text-overflow: ellipsis; + display: -webkit-box; + -webkit-box-orient: vertical; + -webkit-line-clamp: 1; +} */ + .xc-wc { color: #d60021; } @@ -167,17 +181,19 @@ } .card_bg { - display: flex; + box-sizing: border-box; + /* display: flex; */ padding: 2rpx 10rpx; height: 25rpx; - align-items: center; + /* align-items: center; */ border-radius: 26rpx; font-size: 19rpx; line-height: 1em; /* max-width: 110rpx; */ + max-width: 220rpx; background: #333; color: #fff; - justify-content: center; + /* justify-content: center; */ margin-left: 8rpx; } diff --git a/pages/goods/goodsInfo/goodsInfo.wxss b/pages/goods/goodsInfo/goodsInfo.wxss index babf652..126e092 100644 --- a/pages/goods/goodsInfo/goodsInfo.wxss +++ b/pages/goods/goodsInfo/goodsInfo.wxss @@ -2549,6 +2549,7 @@ border-radius: 55rpx; .grade-card-frame .card-name{ margin-left: 8rpx; /* max-width: 120rpx; */ + max-width: 165rpx; } .card-effect{ margin-left: 15rpx;