|
|
@@ -41,7 +41,12 @@
|
|
|
/>
|
|
|
<view class="goods-info">
|
|
|
<view class="goods-title-row">
|
|
|
- <text class="goods-name">{{ goods.name || '商品' }}</text>
|
|
|
+ <!-- 团购/秒杀:商品名前橙色描边标签,与详情页商品行保持一致 -->
|
|
|
+ <view class="goods-name-wrap">
|
|
|
+ <text v-if="info.groupBuyId > 0" class="goods-name-tag">团购</text>
|
|
|
+ <text v-if="goods.seckillGoodsId > 0" class="goods-name-tag">秒杀</text>
|
|
|
+ <text class="goods-name">{{ goods.name || '商品' }}</text>
|
|
|
+ </view>
|
|
|
<text class="goods-num">x{{ getGoodsNum(goods) }}</text>
|
|
|
</view>
|
|
|
<text v-if="getGoodsSpec(goods)" class="goods-spec">{{ getGoodsSpec(goods) }}</text>
|
|
|
@@ -335,12 +340,9 @@ export default {
|
|
|
justify-content: space-between;
|
|
|
}
|
|
|
|
|
|
-.goods-name {
|
|
|
+.goods-name-wrap {
|
|
|
flex: 1;
|
|
|
min-width: 0;
|
|
|
- font-size: 28upx;
|
|
|
- font-weight: 500;
|
|
|
- color: $fontColorMain;
|
|
|
line-height: 1.4;
|
|
|
overflow: hidden;
|
|
|
text-overflow: ellipsis;
|
|
|
@@ -349,6 +351,27 @@ export default {
|
|
|
-webkit-box-orient: vertical;
|
|
|
}
|
|
|
|
|
|
+/* 商品名标签(团购/秒杀):橙色描边小标签,贴在商品名称左侧 */
|
|
|
+.goods-name-tag {
|
|
|
+ display: inline-block;
|
|
|
+ margin-right: 8upx;
|
|
|
+ padding: 0 6upx;
|
|
|
+ font-size: 20upx;
|
|
|
+ line-height: 1.4;
|
|
|
+ color: $auxiliaryColor2;
|
|
|
+ border: 1upx solid $auxiliaryColor2;
|
|
|
+ border-radius: 4upx;
|
|
|
+ vertical-align: middle;
|
|
|
+}
|
|
|
+
|
|
|
+.goods-name {
|
|
|
+ font-size: 28upx;
|
|
|
+ font-weight: 500;
|
|
|
+ color: $fontColorMain;
|
|
|
+ line-height: 1.4;
|
|
|
+ vertical-align: middle;
|
|
|
+}
|
|
|
+
|
|
|
.goods-num {
|
|
|
flex-shrink: 0;
|
|
|
margin-left: 16upx;
|