浏览代码

优惠券

zhengjinyi 3 年之前
父节点
当前提交
85ca4fb4c2

+ 2 - 1
src/main/resources/static/css/activity/activityTopic.css

@@ -107,7 +107,8 @@ a:hover{color:#333}
 .product-template .floor-item .floor-item-text .pro-price span{vertical-align:middle}
 .product-template .floor-item .floor-item-text .pro-price .price-tag{height:22px;margin:2px 0 ;}
 .product-template .floor-item .floor-item-text .pro-price .none{color: #999999;text-decoration: line-through;}
-.product-template .floor-item .floor-item-text .pro-price .price-tag .tag{display:inline-block;height:20px;line-height:20px;border:1px solid #ffe6dc;border-radius:2px;font-size:12px;color:#e15616;cursor:pointer;background:#fff;padding:0 4px;position:relative;font-style:normal}
+.product-template .floor-item .floor-item-text .pro-price .price-tag .tag{display:inline-block;height:20px;line-height:20px;border:1px solid #ffe6dc;border-radius:2px;font-size:12px;color:#e15616;cursor:pointer;background:#fff;padding:0 4px;position:relative;font-style:normal;float: left;}
+.product-template .floor-item .floor-item-text .pro-price .price-tag .couponTag{display:inline-block;height:20px;line-height:20px;border:1px solid #f94b4b;border-radius:2px;font-size:12px;color:#f94b4b;background:#fff1eb;padding:0 5px;position:relative;font-style:normal;float: left;}
 .product-template.floor-grid-1 .floor-main{height:604.42857px;overflow:hidden}
 .product-template.floor-grid-1 .floor-item-ad.ad1{width:100%;height:117.14286px;margin-right:0}
 .product-template.floor-grid-1 .floor-item-ad.ad2{width:434px;height:175.71429px}

+ 1 - 1
src/main/resources/static/css/base/base.pc.css

@@ -321,7 +321,7 @@ iframe{width:320px !important;height: 280px !important}
 #scrollTop .item:hover .phoneHover{display:block}
 /* 活动标签,阶梯价格 */
 .priceTag{position:relative}
-.couponTag{display:inline-block;height:20px;line-height:20px;border:1px solid #f94b4b;border-radius:2px;font-size:12px;color:#f94b4b;background:#fff1eb;padding:0 10px;position:relative;font-style:normal}
+.couponTag{display:inline-block;height:20px;line-height:20px;border:1px solid #f94b4b;border-radius:2px;font-size:12px;color:#f94b4b;background:#fff1eb;padding:0 5px;position:relative;font-style:normal}
 .priceTag .tag,.listTag{display:inline-block;height:20px;line-height:20px;border:1px solid #ffe6dc;border-radius:2px;font-size:12px;color:#E15616;cursor:pointer;background:#fff;padding:0 24px 0 10px;position:relative;font-style:normal}
 .listTag{float:right;padding:0 5px;margin:12px 15px 0 0;}
 .priceTag .tag:before{width:24px;height:24px;background-position:-88px 3px;position:absolute;right:0;top:0}

+ 2 - 1
src/main/resources/static/css/product/list.css

@@ -15,7 +15,7 @@ li{list-style:none}
     .sortBox li.up:after{border-top-color:#E15616;opacity:.3}
     .sortBox li.down:after{border-top-color:#E15616}
     .sortBox li.down:before{border-bottom-color:#E15616;opacity:.3}
-    .productList{width:1200px;margin:0 auto;box-sizing:border-box}
+    .productList{width:1184px;margin:0 auto;box-sizing:border-box}
     .productList .productItem {
         width: 184px;
         height: 268px;
@@ -26,6 +26,7 @@ li{list-style:none}
         overflow: hidden;
         float: left;
     }
+    .productList .productItem:nth-child(6n){margin-right: 0;}
     .productList .productItem img {
         width: 100%;
         height: 164px;

+ 64 - 8
src/main/resources/templates/activity/activityTopic.html

@@ -396,6 +396,7 @@
                           <!-- 样式1 价格未公开-->
                           <template v-if="pros.product.priceFlag==1">
                             <div class="price-tag">
+                              <p class="couponTag" v-if="pros.product.couponsLogo">优惠券</p>
                               <span class="tag" v-if="pros.product.actStatus==1">{{pros.product.promotions.name}}</span>
                             </div>
                             <div class="price">¥价格未公开</div>
@@ -405,6 +406,7 @@
                             <template
                               v-if="(pros.product.priceFlag==0 && pros.product.userIdentity!=3) || pros.product.userIdentity==2 || (pros.product.userIdentity==3 && pros.product.shopID==GLOBAL_SHOP_ID)">
                               <div class="price-tag">
+                                <p class="couponTag" v-if="pros.product.couponsLogo">优惠券</p>
                                 <span class="tag" v-if="pros.product.actStatus==1">
                                   {{pros.product.promotions.name}}
                                   <span v-if="pros.priceFlag != 1 && PromotionsFormat(pros.product.promotions)">:¥{{pros.product.price | NumFormat}}</span>
@@ -420,6 +422,7 @@
                             <!-- 样式3 -->
                             <template v-else-if="pros.product.priceFlag==2 && pros.product.userIdentity==4">
                               <div class="price-tag" v-if="pros.product.actStatus==1">
+                                <p class="couponTag" v-if="pros.product.couponsLogo">优惠券</p>
                                 <span class="tag">{{pros.product.promotions.name}}</span>
                               </div>
                               <div class="price"><span>¥会员可见</span></div>
@@ -427,6 +430,7 @@
                             <!-- 样式4 -->
                             <template v-else>
                               <div class="price-tag" v-if="pros.product.actStatus==1">
+                                <p class="couponTag" v-if="pros.product.couponsLogo">优惠券</p>
                                 <span class="tag">{{pros.product.promotions.name}}</span>
                               </div>
                               <div class="price"><span>¥</span>
@@ -448,6 +452,7 @@
                         <!-- 样式6 -->
                         <template v-if="pros.product.productCategory == 1">
                           <div class="price-tag" v-if="params.userId>0">
+                            <p class="couponTag" v-if="pros.product.couponsLogo">优惠券</p>
                             <span class="tag" v-if="pros.product.actStatus==1">{{pros.product.promotions.name}}</span>
                           </div>
                           <div class="price">
@@ -513,6 +518,7 @@
                           <!-- 样式1 价格未公开-->
                           <template v-if="pros.product.priceFlag==1">
                             <div class="price-tag">
+                              <p class="couponTag" v-if="pros.product.couponsLogo">优惠券</p>
                               <span class="tag" v-if="pros.product.actStatus==1">{{pros.product.promotions.name}}</span>
                             </div>
                             <div class="price">¥价格未公开</div>
@@ -522,6 +528,7 @@
                             <template
                               v-if="(pros.product.priceFlag==0 && pros.product.userIdentity!=3) || pros.product.userIdentity==2 || (pros.product.userIdentity==3 && pros.product.shopID==GLOBAL_SHOP_ID)">
                               <div class="price-tag">
+                                <p class="couponTag" v-if="pros.product.couponsLogo">优惠券</p>
                                 <span class="tag" v-if="pros.product.actStatus==1">
                                   {{pros.product.promotions.name}}
                                   <span v-if="pros.priceFlag != 1 && PromotionsFormat(pros.product.promotions)">:¥{{pros.product.price | NumFormat}}</span>
@@ -537,6 +544,7 @@
                             <!-- 样式3 -->
                             <template v-else-if="pros.product.priceFlag==2 && pros.product.userIdentity==4">
                               <div class="price-tag" v-if="pros.product.actStatus==1">
+                                <p class="couponTag" v-if="pros.product.couponsLogo">优惠券</p>
                                 <span class="tag">{{pros.product.promotions.name}}</span>
                               </div>
                               <div class="price"><span>¥会员可见</span></div>
@@ -544,6 +552,7 @@
                             <!-- 样式4 -->
                             <template v-else>
                               <div class="price-tag" v-if="pros.product.actStatus==1">
+                                <p class="couponTag" v-if="pros.product.couponsLogo">优惠券</p>
                                 <span class="tag">{{pros.product.promotions.name}}</span>
                               </div>
                               <div class="price"><span>¥</span>
@@ -565,6 +574,7 @@
                         <!-- 样式6 -->
                         <template v-if="pros.product.productCategory == 1">
                           <div class="price-tag" v-if="params.userId>0">
+                            <p class="couponTag" v-if="pros.product.couponsLogo">优惠券</p>
                             <span class="tag" v-if="pros.product.actStatus==1">{{pros.product.promotions.name}}</span>
                           </div>
                           <div class="price  ">
@@ -641,6 +651,7 @@
                           <!-- 样式1 价格未公开-->
                           <template v-if="pros.product.priceFlag==1">
                             <div class="price-tag">
+                              <p class="couponTag" v-if="pros.product.couponsLogo">优惠券</p>
                               <span class="tag" v-if="pros.product.actStatus==1">{{pros.product.promotions.name}}</span>
                             </div>
                             <div class="price">¥价格未公开</div>
@@ -650,6 +661,7 @@
                             <template
                               v-if="(pros.product.priceFlag==0 && pros.product.userIdentity!=3) || pros.product.userIdentity==2 || (pros.product.userIdentity==3 && pros.product.shopID==GLOBAL_SHOP_ID)">
                               <div class="price-tag">
+                                <p class="couponTag" v-if="pros.product.couponsLogo">优惠券</p>
                                 <span class="tag" v-if="pros.product.actStatus==1">
                                   {{pros.product.promotions.name}}
                                   <span v-if="pros.priceFlag != 1 && PromotionsFormat(pros.product.promotions)">:¥{{pros.product.price | NumFormat}}</span>
@@ -665,6 +677,7 @@
                             <!-- 样式3 -->
                             <template v-else-if="pros.product.priceFlag==2 && pros.product.userIdentity==4">
                               <div class="price-tag" v-if="pros.product.actStatus==1">
+                                <p class="couponTag" v-if="pros.product.couponsLogo">优惠券</p>
                                 <span class="tag">{{pros.product.promotions.name}}</span>
                               </div>
                               <div class="price"><span>¥会员可见</span></div>
@@ -672,6 +685,7 @@
                             <!-- 样式4 -->
                             <template v-else>
                               <div class="price-tag" v-if="pros.product.actStatus==1">
+                                <p class="couponTag" v-if="pros.product.couponsLogo">优惠券</p>
                                 <span class="tag">{{pros.product.promotions.name}}</span>
                               </div>
                               <div class="price"><span>¥</span>
@@ -693,6 +707,7 @@
                         <!-- 样式6 -->
                         <template v-if="pros.product.productCategory == 1">
                           <div class="price-tag" v-if="params.userId>0">
+                            <p class="couponTag" v-if="pros.product.couponsLogo">优惠券</p>
                             <span class="tag" v-if="pros.product.actStatus==1">{{pros.product.promotions.name}}</span>
                           </div>
                           <div class="price  ">
@@ -742,6 +757,7 @@
                           <!-- 样式1 价格未公开-->
                           <template v-if="pros.product.priceFlag==1">
                             <div class="price-tag">
+                              <p class="couponTag" v-if="pros.product.couponsLogo">优惠券</p>
                               <span class="tag" v-if="pros.product.actStatus==1">{{pros.product.promotions.name}}</span>
                             </div>
                             <div class="price">¥价格未公开</div>
@@ -751,6 +767,7 @@
                             <template
                               v-if="(pros.product.priceFlag==0 && pros.product.userIdentity!=3) || pros.product.userIdentity==2 || (pros.product.userIdentity==3 && pros.product.shopID==GLOBAL_SHOP_ID)">
                               <div class="price-tag">
+                                <p class="couponTag" v-if="pros.product.couponsLogo">优惠券</p>
                                 <span class="tag" v-if="pros.product.actStatus==1">
                                   {{pros.product.promotions.name}}
                                   <span v-if="pros.priceFlag != 1 && PromotionsFormat(pros.product.promotions)">:¥{{pros.product.price | NumFormat}}</span>
@@ -766,6 +783,7 @@
                             <!-- 样式3 -->
                             <template v-else-if="pros.product.priceFlag==2 && pros.product.userIdentity==4">
                               <div class="price-tag" v-if="pros.product.actStatus==1">
+                                <p class="couponTag" v-if="pros.product.couponsLogo">优惠券</p>
                                 <span class="tag">{{pros.product.promotions.name}}</span>
                               </div>
                               <div class="price"><span>¥会员可见</span></div>
@@ -773,6 +791,7 @@
                             <!-- 样式4 -->
                             <template v-else>
                               <div class="price-tag" v-if="pros.product.actStatus==1">
+                                <p class="couponTag" v-if="pros.product.couponsLogo">优惠券</p>
                                 <span class="tag">{{pros.product.promotions.name}}</span>
                               </div>
                               <div class="price"><span>¥</span>
@@ -794,6 +813,7 @@
                         <!-- 样式6 -->
                         <template v-if="pros.product.productCategory == 1">
                           <div class="price-tag" v-if="params.userId>0">
+                            <p class="couponTag" v-if="pros.product.couponsLogo">优惠券</p>
                             <span class="tag" v-if="pros.product.actStatus==1">{{pros.product.promotions.name}}</span>
                           </div>
                           <div class="price  ">
@@ -860,6 +880,7 @@
                           <!-- 样式1 价格未公开-->
                           <template v-if="pros.product.priceFlag==1">
                             <div class="price-tag">
+                              <p class="couponTag" v-if="pros.product.couponsLogo">优惠券</p>
                               <span class="tag" v-if="pros.product.actStatus==1">{{pros.product.promotions.name}}</span>
                             </div>
                             <div class="price">¥价格未公开</div>
@@ -869,6 +890,7 @@
                             <template
                               v-if="(pros.product.priceFlag==0 && pros.product.userIdentity!=3) || pros.product.userIdentity==2 || (pros.product.userIdentity==3 && pros.product.shopID==GLOBAL_SHOP_ID)">
                               <div class="price-tag">
+                                <p class="couponTag" v-if="pros.product.couponsLogo">优惠券</p>
                                 <span class="tag" v-if="pros.product.actStatus==1">
                                   {{pros.product.promotions.name}}
                                   <span v-if="pros.priceFlag != 1 && PromotionsFormat(pros.product.promotions)">:¥{{pros.product.price | NumFormat}}</span>
@@ -884,6 +906,7 @@
                             <!-- 样式3 -->
                             <template v-else-if="pros.product.priceFlag==2 && pros.product.userIdentity==4">
                               <div class="price-tag" v-if="pros.product.actStatus==1">
+                                <p class="couponTag" v-if="pros.product.couponsLogo">优惠券</p>
                                 <span class="tag">{{pros.product.promotions.name}}</span>
                               </div>
                               <div class="price"><span>¥会员可见</span></div>
@@ -891,6 +914,7 @@
                             <!-- 样式4 -->
                             <template v-else>
                               <div class="price-tag" v-if="pros.product.actStatus==1">
+                                <p class="couponTag" v-if="pros.product.couponsLogo">优惠券</p>
                                 <span class="tag">{{pros.product.promotions.name}}</span>
                               </div>
                               <div class="price"><span>¥</span>
@@ -912,6 +936,7 @@
                         <!-- 样式6 -->
                         <template v-if="pros.product.productCategory == 1">
                           <div class="price-tag" v-if="params.userId>0">
+                            <p class="couponTag" v-if="pros.product.couponsLogo">优惠券</p>
                             <span class="tag" v-if="pros.product.actStatus==1">{{pros.product.promotions.name}}</span>
                           </div>
                           <div class="price  ">
@@ -972,6 +997,7 @@
                           <!-- 样式1 价格未公开-->
                           <template v-if="pros.product.priceFlag==1">
                             <div class="price-tag">
+                              <p class="couponTag" v-if="pros.product.couponsLogo">优惠券</p>
                               <span class="tag" v-if="pros.product.actStatus==1">{{pros.product.promotions.name}}</span>
                             </div>
                             <div class="price">¥价格未公开</div>
@@ -981,6 +1007,7 @@
                             <template
                               v-if="(pros.product.priceFlag==0 && pros.product.userIdentity!=3) || pros.product.userIdentity==2 || (pros.product.userIdentity==3 && pros.product.shopID==GLOBAL_SHOP_ID)">
                               <div class="price-tag">
+                                <p class="couponTag" v-if="pros.product.couponsLogo">优惠券</p>
                                 <span class="tag" v-if="pros.product.actStatus==1">
                                   {{pros.product.promotions.name}}
                                   <span v-if="pros.priceFlag != 1 && PromotionsFormat(pros.product.promotions)">:¥{{pros.product.price | NumFormat}}</span>
@@ -996,6 +1023,7 @@
                             <!-- 样式3 -->
                             <template v-else-if="pros.product.priceFlag==2 && pros.product.userIdentity==4">
                               <div class="price-tag" v-if="pros.product.actStatus==1">
+                                <p class="couponTag" v-if="pros.product.couponsLogo">优惠券</p>
                                 <span class="tag">{{pros.product.promotions.name}}</span>
                               </div>
                               <div class="price"><span>¥会员可见</span></div>
@@ -1003,6 +1031,7 @@
                             <!-- 样式4 -->
                             <template v-else>
                               <div class="price-tag" v-if="pros.product.actStatus==1">
+                                <p class="couponTag" v-if="pros.product.couponsLogo">优惠券</p>
                                 <span class="tag">{{pros.product.promotions.name}}</span>
                               </div>
                               <div class="price"><span>¥</span>
@@ -1024,6 +1053,7 @@
                         <!-- 样式6 -->
                         <template v-if="pros.product.productCategory == 1">
                           <div class="price-tag" v-if="params.userId>0">
+                            <p class="couponTag" v-if="pros.product.couponsLogo">优惠券</p>
                             <span class="tag" v-if="pros.product.actStatus==1">{{pros.product.promotions.name}}</span>
                           </div>
                           <div class="price  ">
@@ -1084,6 +1114,7 @@
                           <!-- 样式1 价格未公开-->
                           <template v-if="pros.product.priceFlag==1">
                             <div class="price-tag">
+                              <p class="couponTag" v-if="pros.product.couponsLogo">优惠券</p>
                               <span class="tag" v-if="pros.product.actStatus==1">{{pros.product.promotions.name}}</span>
                             </div>
                             <div class="price">¥价格未公开</div>
@@ -1093,6 +1124,7 @@
                             <template
                               v-if="(pros.product.priceFlag==0 && pros.product.userIdentity!=3) || pros.product.userIdentity==2 || (pros.product.userIdentity==3 && pros.product.shopID==GLOBAL_SHOP_ID)">
                               <div class="price-tag">
+                                <p class="couponTag" v-if="pros.product.couponsLogo">优惠券</p>
                                 <span class="tag" v-if="pros.product.actStatus==1">
                                   {{pros.product.promotions.name}}
                                   <span v-if="pros.priceFlag != 1 && PromotionsFormat(pros.product.promotions)">:¥{{pros.product.price | NumFormat}}</span>
@@ -1108,6 +1140,7 @@
                             <!-- 样式3 -->
                             <template v-else-if="pros.product.priceFlag==2 && pros.product.userIdentity==4">
                               <div class="price-tag" v-if="pros.product.actStatus==1">
+                                <p class="couponTag" v-if="pros.product.couponsLogo">优惠券</p>
                                 <span class="tag">{{pros.product.promotions.name}}</span>
                               </div>
                               <div class="price"><span>¥会员可见</span></div>
@@ -1115,6 +1148,7 @@
                             <!-- 样式4 -->
                             <template v-else>
                               <div class="price-tag" v-if="pros.product.actStatus==1">
+                                <p class="couponTag" v-if="pros.product.couponsLogo">优惠券</p>
                                 <span class="tag">{{pros.product.promotions.name}}</span>
                               </div>
                               <div class="price"><span>¥</span>
@@ -1136,6 +1170,7 @@
                         <!-- 样式6 -->
                         <template v-if="pros.product.productCategory == 1">
                           <div class="price-tag" v-if="params.userId>0">
+                            <p class="couponTag" v-if="pros.product.couponsLogo">优惠券</p>
                             <span class="tag" v-if="pros.product.actStatus==1">{{pros.product.promotions.name}}</span>
                           </div>
                           <div class="price  ">
@@ -1191,6 +1226,7 @@
                           <!-- 样式1 价格未公开-->
                           <template v-if="pros.product.priceFlag==1">
                             <div class="price-tag">
+                              <p class="couponTag" v-if="pros.product.couponsLogo">优惠券</p>
                               <span class="tag" v-if="pros.product.actStatus==1">{{pros.product.promotions.name}}</span>
                             </div>
                             <div class="price">¥价格未公开</div>
@@ -1200,6 +1236,7 @@
                             <template
                               v-if="(pros.product.priceFlag==0 && pros.product.userIdentity!=3) || pros.product.userIdentity==2 || (pros.product.userIdentity==3 && pros.product.shopID==GLOBAL_SHOP_ID)">
                               <div class="price-tag">
+                                <p class="couponTag" v-if="pros.product.couponsLogo">优惠券</p>
                                 <span class="tag" v-if="pros.product.actStatus==1">
                                   {{pros.product.promotions.name}}
                                   <span v-if="pros.priceFlag != 1 && PromotionsFormat(pros.product.promotions)">:¥{{pros.product.price | NumFormat}}</span>
@@ -1215,6 +1252,7 @@
                             <!-- 样式3 -->
                             <template v-else-if="pros.product.priceFlag==2 && pros.product.userIdentity==4">
                               <div class="price-tag" v-if="pros.product.actStatus==1">
+                                <p class="couponTag" v-if="pros.product.couponsLogo">优惠券</p>
                                 <span class="tag">{{pros.product.promotions.name}}</span>
                               </div>
                               <div class="price"><span>¥会员可见</span></div>
@@ -1222,6 +1260,7 @@
                             <!-- 样式4 -->
                             <template v-else>
                               <div class="price-tag" v-if="pros.product.actStatus==1">
+                                <p class="couponTag" v-if="pros.product.couponsLogo">优惠券</p>
                                 <span class="tag">{{pros.product.promotions.name}}</span>
                               </div>
                               <div class="price"><span>¥</span>
@@ -1243,6 +1282,7 @@
                         <!-- 样式6 -->
                         <template v-if="pros.product.productCategory == 1">
                           <div class="price-tag" v-if="params.userId>0">
+                            <p class="couponTag" v-if="pros.product.couponsLogo">优惠券</p>
                             <span class="tag" v-if="pros.product.actStatus==1">{{pros.product.promotions.name}}</span>
                           </div>
                           <div class="price  ">
@@ -1299,6 +1339,7 @@
                           <!-- 样式1 价格未公开-->
                           <template v-if="pros.product.priceFlag==1">
                             <div class="price-tag">
+                              <p class="couponTag" v-if="pros.product.couponsLogo">优惠券</p>
                               <span class="tag" v-if="pros.product.actStatus==1">{{pros.product.promotions.name}}</span>
                             </div>
                             <div class="price">¥价格未公开</div>
@@ -1308,6 +1349,7 @@
                             <template
                               v-if="(pros.product.priceFlag==0 && pros.product.userIdentity!=3) || pros.product.userIdentity==2 || (pros.product.userIdentity==3 && pros.product.shopID==GLOBAL_SHOP_ID)">
                               <div class="price-tag">
+                                <p class="couponTag" v-if="pros.product.couponsLogo">优惠券</p>
                                 <span class="tag" v-if="pros.product.actStatus==1">
                                   {{pros.product.promotions.name}}
                                   <span v-if="pros.priceFlag != 1 && PromotionsFormat(pros.product.promotions)">:¥{{pros.product.price | NumFormat}}</span>
@@ -1323,6 +1365,7 @@
                             <!-- 样式3 -->
                             <template v-else-if="pros.product.priceFlag==2 && pros.product.userIdentity==4">
                               <div class="price-tag" v-if="pros.product.actStatus==1">
+                                <p class="couponTag" v-if="pros.product.couponsLogo">优惠券</p>
                                 <span class="tag">{{pros.product.promotions.name}}</span>
                               </div>
                               <div class="price"><span>¥会员可见</span></div>
@@ -1330,6 +1373,7 @@
                             <!-- 样式4 -->
                             <template v-else>
                               <div class="price-tag" v-if="pros.product.actStatus==1">
+                                <p class="couponTag" v-if="pros.product.couponsLogo">优惠券</p>
                                 <span class="tag">{{pros.product.promotions.name}}</span>
                               </div>
                               <div class="price"><span>¥</span>
@@ -1351,6 +1395,7 @@
                         <!-- 样式6 -->
                         <template v-if="pros.product.productCategory == 1">
                           <div class="price-tag" v-if="params.userId>0">
+                            <p class="couponTag" v-if="pros.product.couponsLogo">优惠券</p>
                             <span class="tag" v-if="pros.product.actStatus==1">{{pros.product.promotions.name}}</span>
                           </div>
                           <div class="price  ">
@@ -1400,6 +1445,7 @@
                           <!-- 样式1 价格未公开-->
                           <template v-if="pros.product.priceFlag==1">
                             <div class="price-tag">
+                              <p class="couponTag" v-if="pros.product.couponsLogo">优惠券</p>
                               <span class="tag" v-if="pros.product.actStatus==1">{{pros.product.promotions.name}}</span>
                             </div>
                             <div class="price">¥价格未公开</div>
@@ -1409,6 +1455,7 @@
                             <template
                               v-if="(pros.product.priceFlag==0 && pros.product.userIdentity!=3) || pros.product.userIdentity==2 || (pros.product.userIdentity==3 && pros.product.shopID==GLOBAL_SHOP_ID)">
                               <div class="price-tag">
+                                <p class="couponTag" v-if="pros.product.couponsLogo">优惠券</p>
                                 <span class="tag" v-if="pros.product.actStatus==1">
                                   {{pros.product.promotions.name}}
                                   <span v-if="pros.priceFlag != 1 && PromotionsFormat(pros.product.promotions)">:¥{{pros.product.price | NumFormat}}</span>
@@ -1424,6 +1471,7 @@
                             <!-- 样式3 -->
                             <template v-else-if="pros.product.priceFlag==2 && pros.product.userIdentity==4">
                               <div class="price-tag" v-if="pros.product.actStatus==1">
+                                <p class="couponTag" v-if="pros.product.couponsLogo">优惠券</p>
                                 <span class="tag">{{pros.product.promotions.name}}</span>
                               </div>
                               <div class="price"><span>¥会员可见</span></div>
@@ -1431,6 +1479,7 @@
                             <!-- 样式4 -->
                             <template v-else>
                               <div class="price-tag" v-if="pros.product.actStatus==1">
+                                <p class="couponTag" v-if="pros.product.couponsLogo">优惠券</p>
                                 <span class="tag">{{pros.product.promotions.name}}</span>
                               </div>
                               <div class="price"><span>¥</span>
@@ -1452,6 +1501,7 @@
                         <!-- 样式6 -->
                         <template v-if="pros.product.productCategory == 1">
                           <div class="price-tag" v-if="params.userId>0">
+                            <p class="couponTag" v-if="pros.product.couponsLogo">优惠券</p>
                             <span class="tag" v-if="pros.product.actStatus==1">{{pros.product.promotions.name}}</span>
                           </div>
                           <div class="price  ">
@@ -1511,8 +1561,8 @@
                                 <!-- 样式1 价格未公开-->
                                 <template v-if="pros.product.priceFlag==1">
                                   <div class="price-tag">
-                                    <span class="tag"
-                                      v-if="pros.product.actStatus==1">{{pros.product.promotions.name}}</span>
+                                    <p class="couponTag" v-if="pros.product.couponsLogo">优惠券</p>
+                                    <span class="tag" v-if="pros.product.actStatus==1">{{pros.product.promotions.name}}</span>
                                   </div>
                                   <div class="price">¥价格未公开</div>
                                 </template>
@@ -1521,6 +1571,7 @@
                                   <template
                                     v-if="(pros.product.priceFlag==0 && pros.product.userIdentity!=3) || pros.product.userIdentity==2 || (pros.product.userIdentity==3 && pros.product.shopID==GLOBAL_SHOP_ID)">
                                     <div class="price-tag">
+                                      <p class="couponTag" v-if="pros.product.couponsLogo">优惠券</p>
                                       <span class="tag" v-if="pros.product.actStatus==1">
                                         {{pros.product.promotions.name}}
                                         <span v-if="pros.priceFlag != 1 && PromotionsFormat(pros.product.promotions)">:¥{{pros.product.price |
@@ -1537,6 +1588,7 @@
                                   <!-- 样式3 -->
                                   <template v-else-if="pros.product.priceFlag==2 && pros.product.userIdentity==4">
                                     <div class="price-tag" v-if="pros.product.actStatus==1">
+                                      <p class="couponTag" v-if="pros.product.couponsLogo">优惠券</p>
                                       <span class="tag">{{pros.product.promotions.name}}</span>
                                     </div>
                                     <div class="price"><span>¥会员可见</span></div>
@@ -1544,6 +1596,7 @@
                                   <!-- 样式4 -->
                                   <template v-else>
                                     <div class="price-tag" v-if="pros.product.actStatus==1">
+                                      <p class="couponTag" v-if="pros.product.couponsLogo">优惠券</p>
                                       <span class="tag">{{pros.product.promotions.name}}</span>
                                     </div>
                                     <div class="price"><span>¥</span>
@@ -1566,8 +1619,8 @@
                               <!-- 样式6 -->
                               <template v-if="pros.product.productCategory == 1">
                                 <div class="price-tag" v-if="params.userId>0">
-                                  <span class="tag"
-                                    v-if="pros.product.actStatus==1">{{pros.product.promotions.name}}</span>
+                                  <p class="couponTag" v-if="pros.product.couponsLogo">优惠券</p>
+                                  <span class="tag" v-if="pros.product.actStatus==1">{{pros.product.promotions.name}}</span>
                                 </div>
                                 <div class="price  ">
                                   <span>¥</span>
@@ -1617,8 +1670,8 @@
                                 <!-- 样式1 价格未公开-->
                                 <template v-if="pros.product.priceFlag==1">
                                   <div class="price-tag">
-                                    <span class="tag"
-                                      v-if="pros.product.actStatus==1">{{pros.product.promotions.name}}</span>
+                                    <p class="couponTag" v-if="pros.product.couponsLogo">优惠券</p>
+                                    <span class="tag" v-if="pros.product.actStatus==1">{{pros.product.promotions.name}}</span>
                                   </div>
                                   <div class="price">¥价格未公开</div>
                                 </template>
@@ -1627,6 +1680,7 @@
                                   <template
                                     v-if="(pros.product.priceFlag==0 && pros.product.userIdentity!=3) || pros.product.userIdentity==2 || (pros.product.userIdentity==3 && pros.product.shopID==GLOBAL_SHOP_ID)">
                                     <div class="price-tag">
+                                      <p class="couponTag" v-if="pros.product.couponsLogo">优惠券</p>
                                       <span class="tag" v-if="pros.product.actStatus==1">
                                         {{pros.product.promotions.name}}
                                         <span v-if="pros.priceFlag != 1 && PromotionsFormat(pros.product.promotions)">:¥{{pros.product.price |
@@ -1643,6 +1697,7 @@
                                   <!-- 样式3 -->
                                   <template v-else-if="pros.product.priceFlag==2 && pros.product.userIdentity==4">
                                     <div class="price-tag" v-if="pros.product.actStatus==1">
+                                      <p class="couponTag" v-if="pros.product.couponsLogo">优惠券</p>
                                       <span class="tag">{{pros.product.promotions.name}}</span>
                                     </div>
                                     <div class="price"><span>¥会员可见</span></div>
@@ -1650,6 +1705,7 @@
                                   <!-- 样式4 -->
                                   <template v-else>
                                     <div class="price-tag" v-if="pros.product.actStatus==1">
+                                      <p class="couponTag" v-if="pros.product.couponsLogo">优惠券</p>
                                       <span class="tag">{{pros.product.promotions.name}}</span>
                                     </div>
                                     <div class="price"><span>¥</span>
@@ -1672,8 +1728,8 @@
                               <!-- 样式6 -->
                               <template v-if="pros.product.productCategory == 1">
                                 <div class="price-tag" v-if="params.userId>0">
-                                  <span class="tag"
-                                    v-if="pros.product.actStatus==1">{{pros.product.promotions.name}}</span>
+                                  <p class="couponTag" v-if="pros.product.couponsLogo">优惠券</p>
+                                  <span class="tag" v-if="pros.product.actStatus==1">{{pros.product.promotions.name}}</span>
                                 </div>
                                 <div class="price  ">
                                   <span>¥</span>

+ 1 - 2
src/main/resources/templates/index.html

@@ -182,7 +182,7 @@
                                                         <template v-else>
                                                             <template v-if="PromotionsFormat(pros.product.promotions)">
                                                                 <!--单品优惠时的划线价-->
-                                                                <div class="main_price_show">
+                                                                <div class="main_price_show none">
                                                                     ¥<span class="price_o_num">{{ pros.product.originalPrice | NumFormat }}</span>
                                                                 </div>
                                                             </template>
@@ -201,7 +201,6 @@
                                                                     <span class="bold">¥</span><i :class="'icon mIcon price_grade_'+pros.product.priceGrade"></i>
                                                                 </em>
                                                             </template>
-
                                                         </template>
                                                     </div>
                                                 </template>