|
|
@ -487,9 +487,6 @@ openPopup() { |
|
|
}, |
|
|
}, |
|
|
// 添加产品弹窗 1.首先获取到该产品下的规格
|
|
|
// 添加产品弹窗 1.首先获取到该产品下的规格
|
|
|
addBuyCart(e) { |
|
|
addBuyCart(e) { |
|
|
this.setData({ |
|
|
|
|
|
user_type: null |
|
|
|
|
|
}) |
|
|
|
|
|
let item = e.currentTarget.dataset.item |
|
|
let item = e.currentTarget.dataset.item |
|
|
console.log(item); |
|
|
console.log(item); |
|
|
commonApi._post("product/get_product_detail", { |
|
|
commonApi._post("product/get_product_detail", { |
|
|
@ -503,6 +500,8 @@ openPopup() { |
|
|
this.setData({ |
|
|
this.setData({ |
|
|
info: res.data, |
|
|
info: res.data, |
|
|
// skuFlag: "cart"
|
|
|
// skuFlag: "cart"
|
|
|
|
|
|
skuIndex: 0, |
|
|
|
|
|
user_type: res.data.sku[0].use_type>1?1:res.data.sku[0].use_type |
|
|
}) |
|
|
}) |
|
|
this.showCart() |
|
|
this.showCart() |
|
|
this.BroswerRecord() |
|
|
this.BroswerRecord() |
|
|
@ -547,7 +546,7 @@ openPopup() { |
|
|
let index = e.currentTarget.dataset.index; |
|
|
let index = e.currentTarget.dataset.index; |
|
|
this.setData({ |
|
|
this.setData({ |
|
|
skuIndex: index, |
|
|
skuIndex: index, |
|
|
user_type: null, |
|
|
user_type: this.data.info.sku[index].use_type>1?null:this.data.info.sku[index].use_type, |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
changeSelectSkuPost: function(e) { |
|
|
changeSelectSkuPost: function(e) { |
|
|
|