diff --git a/themes/default/product.blade.php b/themes/default/product.blade.php index 2ced2113..50213f54 100644 --- a/themes/default/product.blade.php +++ b/themes/default/product.blade.php @@ -243,7 +243,7 @@ }, addWishlist() { - $http.post('account/wishlist', {product_id: this.product.id}).then((res) => { + $http.post('account/wishlist', {product_id: '{{ $product['id'] }}'}).then((res) => { layer.msg(res.message) }) },