zhengjinyi %!s(int64=2) %!d(string=hai) anos
pai
achega
f02ef5010f
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      src/main/resources/templates/index.html

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

@@ -170,8 +170,8 @@
                                                         </div>
                                                     </template>
                                                     <template v-else>
-                                                        <p class="listTag" v-if="pros.product.actStatus ==1 && pros.product.promotions">
-                                                            <span v-text="pros.promotions.name"></span>
+                                                        <p class="listTag" v-if="pros.product.actStatus == 1 && pros.product.promotions">
+                                                            <span v-text="pros.promotions && pros.promotions.name"></span>
                                                             <template v-if="PromotionsFormat(pros.product.promotions)">
                                                                 <!--单品优惠:优惠价-->
                                                                 <span class="price_unit">:¥</span><span class="price_num">{{ pros.product.price | NumFormat }}</span>