浏览代码

商品详情推荐商品

zhengjinyi 4 年之前
父节点
当前提交
be6eb35bfb
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/main/resources/static/js/product/detail.js

+ 1 - 1
src/main/resources/static/js/product/detail.js

@@ -98,6 +98,7 @@ var productDetail = new Vue({
                     if(product.stock == 0 && product.validFlag !='3'){
                         _self.disabledText = '售罄'
                     }
+                    _self.getRecommends();
                 }else{
                     CAIMEI.Alert(response.msg, '确定', false);
                 }
@@ -275,7 +276,6 @@ var productDetail = new Vue({
         this.getProductDetails();
         this.getProductPrice();
         this.getParameters();
-        this.getRecommends();
         // $('.productInfo').slide({
         //     mainCell:".tabCon"
         //     ,titCell:".tabTit span"