zs 2 years ago
parent
commit
09a4e7e4e7
1 changed files with 25 additions and 0 deletions
  1. 25 0
      pagesMy/order/afterInfo.vue

+ 25 - 0
pagesMy/order/afterInfo.vue

@@ -12,6 +12,10 @@
 					<view class="specs">
 						{{info.goods.name}}
 					</view>
+					<view class="other">
+						<text v-if="info.goods.gift.length>0" class="gift">赠品</text>
+						<text v-if="info.goods.sp_price" class="act">特价</text>
+					</view>
 				</view>
 				<view class="goodsother">
 					<view v-if="info.order_detail.type=='0'" class="price">
@@ -187,6 +191,27 @@
 					font-size: var(--font12Size);
 				}
 
+				.other {
+					display: flex;
+					padding: 1vw 0 0 0;
+
+					.gift {
+						margin: 0 1vw 0 0;
+						font-size: 12px;
+						color: #FFA500;
+						border: 1px solid #FFA500;
+						border-radius: 5px;
+						padding: 0 1vw;
+					}
+
+					.act {
+						font-size: 12px;
+						border: 1px solid var(--fFB1Color);
+						color: var(--fFB1Color);
+						border-radius: 5px;
+						padding: 0 1vw;
+					}
+				}
 			}
 
 			.goodsother {