...
|
...
|
@@ -76,7 +76,7 @@ const addToCart = (productSku, buyNumber, |
|
|
* @param bool $hasPromotion 是否有促销ID
|
|
|
* @return array 购物车接口返回的数据
|
|
|
*/
|
|
|
const selectGoods = (uid, sku, shoppingKey /*, hasPromotion*/) => {
|
|
|
const selectGoods = (uid, sku, shoppingKey /* , hasPromotion*/) => {
|
|
|
|
|
|
let param = {
|
|
|
// method: hasPromotion ? 'app.Shopping.selectedAndCart' : 'app.Shopping.selected',
|
...
|
...
|
@@ -105,7 +105,7 @@ const selectGoods = (uid, sku, shoppingKey /*, hasPromotion*/) => { |
|
|
* @param bool $hasPromotion 是否有促销ID
|
|
|
* @return array 接口返回的数据
|
|
|
*/
|
|
|
const removeFromCart = (uid, shoppingKey, skuList /*, hasPromotion*/ ) =>{
|
|
|
const removeFromCart = (uid, shoppingKey, skuList /* , hasPromotion*/) =>{
|
|
|
|
|
|
let param = {
|
|
|
// method: hasPromotion ? 'app.Shopping.removeAndCart' : 'app.Shopping.remove',
|
...
|
...
|
@@ -131,7 +131,7 @@ const removeFromCart = (uid, shoppingKey, skuList /*, hasPromotion*/ ) =>{ |
|
|
* @param bool $hasPromotion 是否有促销ID
|
|
|
* @return array 接口返回的数据
|
|
|
*/
|
|
|
const addToFav = (uid, skuList /*, hasPromotion*/ ) =>{
|
|
|
const addToFav = (uid, skuList /* , hasPromotion*/) =>{
|
|
|
|
|
|
let param = {
|
|
|
// method: hasPromotion ? 'app.Shopping.addfavoriteAndCart' : 'app.Shopping.addfavorite',
|
...
|
...
|
|