Ver código fonte

器件选型页面为buy插件做if判断(什么情况下显示—,什么情况下显示购物车和立即购买)

hangb 8 anos atrás
pai
commit
baf6563e3f
1 arquivos alterados com 4 adições e 2 exclusões
  1. 4 2
      components/product/ComponentGoods.vue

+ 4 - 2
components/product/ComponentGoods.vue

@@ -86,10 +86,12 @@
           </div>
         </td>
         <td>
-          <div v-if="!compGoods.reserve">
+          <div v-show="!compGoods.reserve">
             <span>—</span>
           </div>
-          <buy :item="compGoods"></buy>
+          <div v-if="compGoods.reserve > 0">
+            <buy :item="compGoods"></buy>
+          </div>
         </td>
       </tr>
       <tr v-if="componentGoods.totalElements == 0">