zhengjinyi 2 年之前
父节点
当前提交
f02ef5010f
共有 1 个文件被更改,包括 2 次插入2 次删除
  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>